From 74a463e9ab5c4d4794e65fe1af31edb026156029 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Thu, 6 Aug 2020 11:36:07 +0200 Subject: [PATCH 01/45] chore: npm-check-updates && yarn upgrade (#1852) Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- package.json | 4 +- yarn.lock | 234 +++++++++++++++++++++++++-------------------------- 2 files changed, 119 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index e0c2d20cbf..6ef612549c 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "test:update": "lerna run test:update --stream" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^3.7.1", - "@typescript-eslint/parser": "^3.7.1", + "@typescript-eslint/eslint-plugin": "^3.8.0", + "@typescript-eslint/parser": "^3.8.0", "eslint": "^7.6.0", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.2.0", diff --git a/yarn.lock b/yarn.lock index aa97ee3baa..9cfb11db48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,18 +10,18 @@ "@babel/highlight" "^7.10.4" "@babel/core@^7.0.0-beta.39", "@babel/core@^7.1.0", "@babel/core@^7.7.5": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.10.5.tgz#1f15e2cca8ad9a1d78a38ddba612f5e7cdbbd330" - integrity sha512-O34LQooYVDXPl7QWCdW9p4NR+QlzOr7xShPPJz8GsuCU3/8ua/wqTr7gmnxXv+WBESiGU/G5s16i6tUvHkNb+w== + version "7.11.1" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.11.1.tgz#2c55b604e73a40dc21b0e52650b11c65cf276643" + integrity sha512-XqF7F6FWQdKGGWAzGELL+aCO1p+lRY5Tj5/tbT3St1G8NaH70jhhDIKknIZaDans0OQBG5wRAldROLHSt44BgQ== dependencies: "@babel/code-frame" "^7.10.4" - "@babel/generator" "^7.10.5" - "@babel/helper-module-transforms" "^7.10.5" + "@babel/generator" "^7.11.0" + "@babel/helper-module-transforms" "^7.11.0" "@babel/helpers" "^7.10.4" - "@babel/parser" "^7.10.5" + "@babel/parser" "^7.11.1" "@babel/template" "^7.10.4" - "@babel/traverse" "^7.10.5" - "@babel/types" "^7.10.5" + "@babel/traverse" "^7.11.0" + "@babel/types" "^7.11.0" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.1" @@ -31,12 +31,12 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/generator@^7.10.5": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.10.5.tgz#1b903554bc8c583ee8d25f1e8969732e6b829a69" - integrity sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig== +"@babel/generator@^7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.11.0.tgz#4b90c78d8c12825024568cbe83ee6c9af193585c" + integrity sha512-fEm3Uzw7Mc9Xi//qU20cBKatTfs2aOtKqmvy/Vm7RkJEGFQ4xc9myCfbXxqK//ZS8MR/ciOHw6meGASJuKmDfQ== dependencies: - "@babel/types" "^7.10.5" + "@babel/types" "^7.11.0" jsesc "^2.5.1" source-map "^0.5.0" @@ -57,11 +57,11 @@ "@babel/types" "^7.10.4" "@babel/helper-member-expression-to-functions@^7.10.4": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.5.tgz#172f56e7a63e78112f3a04055f24365af702e7ee" - integrity sha512-HiqJpYD5+WopCXIAbQDG0zye5XYVvcO9w/DHp5GsaGkRUaamLj2bEtu6i8rnGGprAhHM3qidCMgp71HF4endhA== + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz#ae69c83d84ee82f4b42f96e2a09410935a8f26df" + integrity sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q== dependencies: - "@babel/types" "^7.10.5" + "@babel/types" "^7.11.0" "@babel/helper-module-imports@^7.10.4": version "7.10.4" @@ -70,17 +70,17 @@ dependencies: "@babel/types" "^7.10.4" -"@babel/helper-module-transforms@^7.10.5": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.10.5.tgz#120c271c0b3353673fcdfd8c053db3c544a260d6" - integrity sha512-4P+CWMJ6/j1W915ITJaUkadLObmCRRSC234uctJfn/vHrsLNxsR8dwlcXv9ZhJWzl77awf+mWXSZEKt5t0OnlA== +"@babel/helper-module-transforms@^7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz#b16f250229e47211abdd84b34b64737c2ab2d359" + integrity sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg== dependencies: "@babel/helper-module-imports" "^7.10.4" "@babel/helper-replace-supers" "^7.10.4" "@babel/helper-simple-access" "^7.10.4" - "@babel/helper-split-export-declaration" "^7.10.4" + "@babel/helper-split-export-declaration" "^7.11.0" "@babel/template" "^7.10.4" - "@babel/types" "^7.10.5" + "@babel/types" "^7.11.0" lodash "^4.17.19" "@babel/helper-optimise-call-expression@^7.10.4": @@ -113,12 +113,12 @@ "@babel/template" "^7.10.4" "@babel/types" "^7.10.4" -"@babel/helper-split-export-declaration@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.4.tgz#2c70576eaa3b5609b24cb99db2888cc3fc4251d1" - integrity sha512-pySBTeoUff56fL5CBU2hWm9TesA4r/rOkI9DyJLvvgz09MB9YtfIYe3iBriVaYNaPe+Alua0vBIOVOLs2buWhg== +"@babel/helper-split-export-declaration@^7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz#f8a491244acf6a676158ac42072911ba83ad099f" + integrity sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg== dependencies: - "@babel/types" "^7.10.4" + "@babel/types" "^7.11.0" "@babel/helper-validator-identifier@^7.10.4": version "7.10.4" @@ -143,10 +143,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.10.4", "@babel/parser@^7.10.5": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.10.5.tgz#e7c6bf5a7deff957cec9f04b551e2762909d826b" - integrity sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ== +"@babel/parser@^7.1.0", "@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1": + version "7.11.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.1.tgz#d91a387990b21e5d20047b336bb19b0553f02ff5" + integrity sha512-u9QMIRdKVF7hfEkb3nu2LgZDIzCQPv+yHD9Eg6ruoJLjkrQ9fFz4IBSlF/9XwoNri9+2F1IY+dYuOfZrXq8t3w== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -234,25 +234,25 @@ "@babel/parser" "^7.10.4" "@babel/types" "^7.10.4" -"@babel/traverse@^7.0.0-beta.39", "@babel/traverse@^7.1.0", "@babel/traverse@^7.10.4", "@babel/traverse@^7.10.5": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.10.5.tgz#77ce464f5b258be265af618d8fddf0536f20b564" - integrity sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ== +"@babel/traverse@^7.0.0-beta.39", "@babel/traverse@^7.1.0", "@babel/traverse@^7.10.4", "@babel/traverse@^7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.0.tgz#9b996ce1b98f53f7c3e4175115605d56ed07dd24" + integrity sha512-ZB2V+LskoWKNpMq6E5UUCrjtDUh5IOTAyIl0dTjIEoXum/iKWkoIEKIRDnUucO6f+2FzNkE0oD4RLKoPIufDtg== dependencies: "@babel/code-frame" "^7.10.4" - "@babel/generator" "^7.10.5" + "@babel/generator" "^7.11.0" "@babel/helper-function-name" "^7.10.4" - "@babel/helper-split-export-declaration" "^7.10.4" - "@babel/parser" "^7.10.5" - "@babel/types" "^7.10.5" + "@babel/helper-split-export-declaration" "^7.11.0" + "@babel/parser" "^7.11.0" + "@babel/types" "^7.11.0" debug "^4.1.0" globals "^11.1.0" lodash "^4.17.19" -"@babel/types@^7.0.0", "@babel/types@^7.0.0-beta.39", "@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.10.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.10.5.tgz#d88ae7e2fde86bfbfe851d4d81afa70a997b5d15" - integrity sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q== +"@babel/types@^7.0.0", "@babel/types@^7.0.0-beta.39", "@babel/types@^7.10.4", "@babel/types@^7.11.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.0.tgz#2ae6bf1ba9ae8c3c43824e5861269871b206e90d" + integrity sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA== dependencies: "@babel/helper-validator-identifier" "^7.10.4" lodash "^4.17.19" @@ -1251,9 +1251,9 @@ "@octokit/types" "^5.0.0" "@octokit/core@^3.0.0": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.1.1.tgz#1856745aa8fb154cf1544a2a1b82586c809c5e66" - integrity sha512-cQ2HGrtyNJ1IBxpTP1U5m/FkMAJvgw7d2j1q3c9P0XUuYilEgF6e4naTpsgm4iVcQeOnccZlw7XHRIUBy0ymcg== + version "3.1.2" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.1.2.tgz#c937d5f9621b764573068fcd2e5defcc872fd9cc" + integrity sha512-AInOFULmwOa7+NFi9F8DlDkm5qtZVmDQayi7TUgChE3yeIGPq0Y+6cAEXPexQ3Ea+uZy66hKEazR7DJyU+4wfw== dependencies: "@octokit/auth-token" "^2.4.0" "@octokit/graphql" "^4.3.1" @@ -1392,9 +1392,9 @@ "@types/node" ">= 8" "@octokit/types@^5.0.0", "@octokit/types@^5.0.1", "@octokit/types@^5.1.1", "@octokit/types@^5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.2.0.tgz#d075dc23bf293f540739250b6879e2c1be2fc20c" - integrity sha512-XjOk9y4m8xTLIKPe1NFxNWBdzA2/z3PFFA/bwf4EoH6oS8hM0Y46mEa4Cb+KCyj/tFDznJFahzQ0Aj3o1FYq4A== + version "5.2.1" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.2.1.tgz#c212f03b0492faf215fa2ae506d5ec18038c2a36" + integrity sha512-PugtgEw8u++zAyBpDpSkR8K1OsT2l8QWp3ECL6bZHFoq9PfHDoKeGFWSuX2Z+Ghy93k1fkKf8tsmqNBv+8dEfQ== dependencies: "@types/node" ">= 8" @@ -1650,52 +1650,52 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.1.tgz#d144c49a9a0ffe8dd704bb179c243df76c111bc9" - integrity sha512-3DB9JDYkMrc8Au00rGFiJLK2Ja9CoMP6Ut0sHsXp3ZtSugjNxvSSHTnKLfo4o+QmjYBJqEznDqsG1zj4F2xnsg== +"@typescript-eslint/eslint-plugin@^3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.8.0.tgz#f82947bcdd9a4e42be7ad80dfd61f1dc411dd1df" + integrity sha512-lFb4VCDleFSR+eo4Ew+HvrJ37ZH1Y9ZyE+qyP7EiwBpcCVxwmUc5PAqhShCQ8N8U5vqYydm74nss+a0wrrCErw== dependencies: - "@typescript-eslint/experimental-utils" "3.7.1" + "@typescript-eslint/experimental-utils" "3.8.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.1.tgz#ab036caaed4c870d22531d41f9352f3147364d61" - integrity sha512-TqE97pv7HrqWcGJbLbZt1v59tcqsSVpWTOf1AqrWK7n8nok2sGgVtYRuGXeNeLw3wXlLEbY1MKP3saB2HsO/Ng== +"@typescript-eslint/experimental-utils@3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.8.0.tgz#ac1f7c88322dcfb7635ece6f0441516dd951099a" + integrity sha512-o8T1blo1lAJE0QDsW7nSyvZHbiDzQDjINJKyB44Z3sSL39qBy5L10ScI/XwDtaiunoyKGLiY9bzRk4YjsUZl8w== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.7.1" - "@typescript-eslint/typescript-estree" "3.7.1" + "@typescript-eslint/types" "3.8.0" + "@typescript-eslint/typescript-estree" "3.8.0" eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.1.tgz#5d9ccecb116d12d9c6073e9861c57c9b1aa88128" - integrity sha512-W4QV/gXvfIsccN8225784LNOorcm7ch68Fi3V4Wg7gmkWSQRKevO4RrRqWo6N/Z/myK1QAiGgeaXN57m+R/8iQ== +"@typescript-eslint/parser@^3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.8.0.tgz#8e1dcd404299bf79492409c81c415fa95a7c622b" + integrity sha512-u5vjOBaCsnMVQOvkKCXAmmOhyyMmFFf5dbkM3TIbg3MZ2pyv5peE4gj81UAbTHwTOXEwf7eCQTUMKrDl/+qGnA== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.7.1" - "@typescript-eslint/types" "3.7.1" - "@typescript-eslint/typescript-estree" "3.7.1" + "@typescript-eslint/experimental-utils" "3.8.0" + "@typescript-eslint/types" "3.8.0" + "@typescript-eslint/typescript-estree" "3.8.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/types@3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.1.tgz#90375606b2fd73c1224fe9e397ee151e28fa1e0c" - integrity sha512-PZe8twm5Z4b61jt7GAQDor6KiMhgPgf4XmUb9zdrwTbgtC/Sj29gXP1dws9yEn4+aJeyXrjsD9XN7AWFhmnUfg== +"@typescript-eslint/types@3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.8.0.tgz#58581dd863f86e0cd23353d94362bb90b4bea796" + integrity sha512-8kROmEQkv6ss9kdQ44vCN1dTrgu4Qxrd2kXr10kz2NP5T8/7JnEfYNxCpPkArbLIhhkGLZV3aVMplH1RXQRF7Q== -"@typescript-eslint/typescript-estree@3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.1.tgz#ce1ffbd0fa53f34d4ce851a7a364e392432f6eb3" - integrity sha512-m97vNZkI08dunYOr2lVZOHoyfpqRs0KDpd6qkGaIcLGhQ2WPtgHOd/eVbsJZ0VYCQvupKrObAGTOvk3tfpybYA== +"@typescript-eslint/typescript-estree@3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.8.0.tgz#0606d19f629f813dbdd5a34c7a1e895d6191cac6" + integrity sha512-MTv9nPDhlKfclwnplRNDL44mP2SY96YmPGxmMbMy6x12I+pERcxpIUht7DXZaj4mOKKtet53wYYXU0ABaiXrLw== dependencies: - "@typescript-eslint/types" "3.7.1" - "@typescript-eslint/visitor-keys" "3.7.1" + "@typescript-eslint/types" "3.8.0" + "@typescript-eslint/visitor-keys" "3.8.0" debug "^4.1.1" glob "^7.1.6" is-glob "^4.0.1" @@ -1703,10 +1703,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.1.tgz#b90191e74efdee656be8c5a30f428ed16dda46d1" - integrity sha512-xn22sQbEya+Utj2IqJHGLA3i1jDzR43RzWupxojbSWnj3nnPLavaQmWe5utw03CwYao3r00qzXfgJMGNkrzrAA== +"@typescript-eslint/visitor-keys@3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.8.0.tgz#ad35110249fb3fc30a36bfcbfeea93e710cfaab1" + integrity sha512-gfqQWyVPpT9NpLREXNR820AYwgz+Kr1GuF3nf1wxpHD6hdxI62tq03ToomFnDxY0m3pUB39IF7sil7D5TQexLA== dependencies: eslint-visitor-keys "^1.1.0" @@ -1883,9 +1883,9 @@ JSONStream@^1.0.4, JSONStream@^1.3.4: through ">=2.2.7 <3" abab@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" - integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg== + version "2.0.4" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.4.tgz#6dfa57b417ca06d21b2478f0e638302f99c2405c" + integrity sha512-Eu9ELJWCz/c1e9gTiCY+FceWxcqzjYEbqMgtndnuSqZSUCOL73TWNK2mHfIj4Cw2E/ongOp+JISVNCmovt2KYQ== abbrev@1: version "1.1.1" @@ -1916,9 +1916,9 @@ acorn@^6.4.1: integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA== acorn@^7.1.1, acorn@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.3.1.tgz#85010754db53c3fbaf3b9ea3e083aa5c5d147ffd" - integrity sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA== + version "7.4.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c" + integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w== add-stream@^1.0.0: version "1.0.0" @@ -1956,7 +1956,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== -ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.5.5: +ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.12.3: version "6.12.3" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.3.tgz#18c5af38a111ddeb4f2697bd78d68abc1cabd706" integrity sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA== @@ -2447,15 +2447,15 @@ browserify-rsa@^4.0.0, browserify-rsa@^4.0.1: randombytes "^2.0.1" browserify-sign@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.0.tgz#545d0b1b07e6b2c99211082bf1b12cce7a0b0e11" - integrity sha512-hEZC1KEeYuoHRqhGhTy6gWrpJA3ZDjFWv0DE61643ZnOXAKJb3u7yWcrU0mMc9SwAqK1n7myPGndkp0dFG7NFA== + version "4.2.1" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.1.tgz#eaf4add46dd54be3bb3b36c0cf15abbeba7956c3" + integrity sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg== dependencies: bn.js "^5.1.1" browserify-rsa "^4.0.1" create-hash "^1.2.0" create-hmac "^1.1.7" - elliptic "^6.5.2" + elliptic "^6.5.3" inherits "^2.0.4" parse-asn1 "^5.1.5" readable-stream "^3.6.0" @@ -3209,12 +3209,12 @@ cosmiconfig@^5.1.0: parse-json "^4.0.0" create-ecdh@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" - integrity sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw== + version "4.0.4" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e" + integrity sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A== dependencies: bn.js "^4.1.0" - elliptic "^6.0.0" + elliptic "^6.5.3" create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: version "1.2.0" @@ -3634,7 +3634,7 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" -elliptic@^6.0.0, elliptic@^6.5.2: +elliptic@^6.5.3: version "6.5.3" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== @@ -4663,11 +4663,11 @@ har-schema@^2.0.0: integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= har-validator@~5.1.3: - version "5.1.3" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" - integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + version "5.1.5" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" + integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== dependencies: - ajv "^6.5.5" + ajv "^6.12.3" har-schema "^2.0.0" hard-rejection@^2.1.0: @@ -5135,9 +5135,9 @@ is-directory@^0.3.1: integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= is-docker@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.0.0.tgz#2cb0df0e75e2d064fe1864c37cdeacb7b2dcf25b" - integrity sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ== + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156" + integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" @@ -5247,9 +5247,9 @@ is-potential-custom-element-name@^1.0.0: integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= is-regex@^1.0.5, is-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.0.tgz#ece38e389e490df0dc21caea2bd596f987f767ff" - integrity sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw== + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.1.tgz#c6f98aacc546f6cec5468a07b7b153ab564a57b9" + integrity sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg== dependencies: has-symbols "^1.0.1" @@ -6960,9 +6960,9 @@ onetime@^2.0.0: mimic-fn "^1.0.0" onetime@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" - integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== + version "5.1.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.1.tgz#5c8016847b0d67fcedb7eef254751cfcdc7e9418" + integrity sha512-ZpZpjcJeugQfWsfyQlshVoowIIQ1qBGSVll4rfDq6JJVO//fesjoX808hXWfBjY+ROZgpKDI5TRSRBSoJiZ8eg== dependencies: mimic-fn "^2.1.0" @@ -7994,9 +7994,9 @@ run-queue@^1.0.0, run-queue@^1.0.3: aproba "^1.1.1" rxjs@^6.4.0, rxjs@^6.6.0: - version "6.6.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.0.tgz#af2901eedf02e3a83ffa7f886240ff9018bbec84" - integrity sha512-3HMA8z/Oz61DUHe+SdOiQyzIf4tOx5oQHmMir7IZEu6TMqCLHT4LRcmNaUS0NwOz8VLvmmBduMsoaUvMaIiqzg== + version "6.6.2" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.2.tgz#8096a7ac03f2cc4fe5860ef6e572810d9e01c0d2" + integrity sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg== dependencies: tslib "^1.9.0" @@ -9071,9 +9071,9 @@ typescript@^3.5.3, typescript@~3.9.6: integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== uglify-js@^3.1.4: - version "3.10.0" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.10.0.tgz#397a7e6e31ce820bfd1cb55b804ee140c587a9e7" - integrity sha512-Esj5HG5WAyrLIdYU74Z3JdG2PxdIusvj6IWHMtlyESxc7kcDz7zYlYjpnSokn1UbpV0d/QX9fan7gkCNd/9BQA== + version "3.10.1" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.10.1.tgz#dd14767eb7150de97f2573a5ff210db14fffe4ad" + integrity sha512-RjxApKkrPJB6kjJxQS3iZlf///REXWYxYJxO/MpmlQzVkDWVI3PSnCBWezMecmTU/TRkNxrl8bmsfFQCp+LO+Q== uid-number@0.0.6: version "0.0.6" From 2ed966f6a6fbfad3ab1c8003be6dab10fc51317d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2020 11:36:44 +0200 Subject: [PATCH 02/45] chore(deps-dev): bump @types/jest from 26.0.8 to 26.0.9 (#1857) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.8 to 26.0.9. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 23adeb8d25..ad21c36ba5 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/dotenv": "^8.2.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", "eslint": "^7.6.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index f9dfd65e78..81d6d3a72f 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -40,7 +40,7 @@ "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index f18754a99f..6b27bf33ca 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 4267cec6e3..4cfadcab83 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -34,7 +34,7 @@ "jsonschema": "^1.2.6" }, "devDependencies": { - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index b5e0fde04f..1cdfb0f41b 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index cac47847a8..b0a89faee4 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -20,7 +20,7 @@ }, "devDependencies": { "@types/inquirer": "^7.3.0", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index bd820ace62..e0c42e100a 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/tar-fs": "^2.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index db5182027b..5a8a42cdab 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -55,7 +55,7 @@ "@types/clone": "^0.1.30", "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/semver": "^7.3.1", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index d6582e00fe..3ccd8916b5 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -43,7 +43,7 @@ "devDependencies": { "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 4028dd3a8b..65087f525a 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index d32fdc273e..ad529e6b66 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -51,7 +51,7 @@ "@types/clone": "^0.1.30", "@types/deep-equal": "^1.0.1", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/semver": "^7.3.1", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 5c73a0cc64..63333f6a7d 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -31,7 +31,7 @@ "package": "package-js" }, "devDependencies": { - "@types/jest": "^26.0.8", + "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", diff --git a/yarn.lock b/yarn.lock index 9cfb11db48..b9a350dfcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1534,10 +1534,10 @@ dependencies: "@types/jest" "*" -"@types/jest@*", "@types/jest@^26.0.8": - version "26.0.8" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.8.tgz#f5c5559cf25911ce227f7ce30f1f160f24966369" - integrity sha512-eo3VX9jGASSuv680D4VQ89UmuLZneNxv2MCZjfwlInav05zXVJTzfc//lavdV0GPwSxsXJTy2jALscB7Acqg0g== +"@types/jest@*", "@types/jest@^26.0.9": + version "26.0.9" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.9.tgz#0543b57da5f0cd949c5f423a00c56c492289c989" + integrity sha512-k4qFfJ5AUKrWok5KYXp2EPm89b0P/KZpl7Vg4XuOTVVQEhLDBDBU3iBFrjjdgd8fLw96aAtmnwhXHl63bWeBQQ== dependencies: jest-diff "^25.2.1" pretty-format "^25.2.1" From 39769b0311886158631f56be6dce0b6262ba9c5c Mon Sep 17 00:00:00 2001 From: Niranjan Jayakar Date: Thu, 6 Aug 2020 17:50:41 +0100 Subject: [PATCH 03/45] fix(rosetta): use of keyword 'lambda' produces invalid Python code (#1850) Replace all 'lambda' identifiers with 'awslambda' fixes https://github.com/aws/aws-cdk/issues/9169 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii-rosetta/lib/languages/python.ts | 6 ++++-- .../jsii-rosetta/test/translations/identifiers/keyword.cs | 4 ++++ .../jsii-rosetta/test/translations/identifiers/keyword.java | 4 ++++ .../jsii-rosetta/test/translations/identifiers/keyword.py | 4 ++++ .../jsii-rosetta/test/translations/identifiers/keyword.ts | 4 ++++ 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 packages/jsii-rosetta/test/translations/identifiers/keyword.cs create mode 100644 packages/jsii-rosetta/test/translations/identifiers/keyword.java create mode 100644 packages/jsii-rosetta/test/translations/identifiers/keyword.py create mode 100644 packages/jsii-rosetta/test/translations/identifiers/keyword.ts diff --git a/packages/jsii-rosetta/lib/languages/python.ts b/packages/jsii-rosetta/lib/languages/python.ts index 1ec9c0bca6..682aa60586 100644 --- a/packages/jsii-rosetta/lib/languages/python.ts +++ b/packages/jsii-rosetta/lib/languages/python.ts @@ -179,7 +179,6 @@ export class PythonVisitor extends DefaultVisitor { const originalIdentifier = node.text; const explodedParameter = context.currentContext.explodedParameter; - // eslint-disable-next-line max-len if ( context.currentContext.tailPositionArgument && explodedParameter && @@ -815,10 +814,11 @@ function mangleIdentifier(originalIdentifier: string) { return originalIdentifier; } // Turn into snake-case - return originalIdentifier.replace( + const cased = originalIdentifier.replace( /[^A-Z][A-Z]/g, (m) => `${m[0].substr(0, 1)}_${m.substr(1).toLowerCase()}`, ); + return IDENTIFIER_KEYWORDS.includes(cased) ? `${cased}_` : cased; } const BUILTIN_FUNCTIONS: { [key: string]: string } = { @@ -833,6 +833,8 @@ const TOKEN_REWRITES: { [key: string]: string } = { false: 'False', }; +const IDENTIFIER_KEYWORDS: string[] = ['lambda']; + function last(xs: readonly A[]): A { return xs[xs.length - 1]; } diff --git a/packages/jsii-rosetta/test/translations/identifiers/keyword.cs b/packages/jsii-rosetta/test/translations/identifiers/keyword.cs new file mode 100644 index 0000000000..349bbebda0 --- /dev/null +++ b/packages/jsii-rosetta/test/translations/identifiers/keyword.cs @@ -0,0 +1,4 @@ +using Scope.Aws.Lambda; +new ClassFromLambda(new Struct { + Key = "lambda.amazonaws.com" +}); \ No newline at end of file diff --git a/packages/jsii-rosetta/test/translations/identifiers/keyword.java b/packages/jsii-rosetta/test/translations/identifiers/keyword.java new file mode 100644 index 0000000000..ef99fd4093 --- /dev/null +++ b/packages/jsii-rosetta/test/translations/identifiers/keyword.java @@ -0,0 +1,4 @@ +import scope.aws.lambda.*; +ClassFromLambda.Builder.create() + .key("lambda.amazonaws.com") + .build(); \ No newline at end of file diff --git a/packages/jsii-rosetta/test/translations/identifiers/keyword.py b/packages/jsii-rosetta/test/translations/identifiers/keyword.py new file mode 100644 index 0000000000..ec89e8f139 --- /dev/null +++ b/packages/jsii-rosetta/test/translations/identifiers/keyword.py @@ -0,0 +1,4 @@ +import scope.aws_lambda as lambda_ +lambda_.ClassFromLambda( + key="lambda.amazonaws.com" +) \ No newline at end of file diff --git a/packages/jsii-rosetta/test/translations/identifiers/keyword.ts b/packages/jsii-rosetta/test/translations/identifiers/keyword.ts new file mode 100644 index 0000000000..a58fcb2e52 --- /dev/null +++ b/packages/jsii-rosetta/test/translations/identifiers/keyword.ts @@ -0,0 +1,4 @@ +import * as lambda from '@scope/aws-lambda'; +new lambda.ClassFromLambda({ + key: 'lambda.amazonaws.com' +}); \ No newline at end of file From 2cc4628a42ba1d01d8e316f5af9a0850fce0a350 Mon Sep 17 00:00:00 2001 From: Niranjan Jayakar Date: Fri, 7 Aug 2020 12:14:18 +0100 Subject: [PATCH 04/45] chore: no more eslint warn rules (#1849) Either linter rules are enforced or relaxed, nothing inbetween. Converts existing warn rules to error or turn off. --- eslint-config.yaml | 14 ++++++-------- packages/jsii-rosetta/lib/jsii/assemblies.ts | 6 +++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/eslint-config.yaml b/eslint-config.yaml index 34963dfff7..4a95cdd3aa 100644 --- a/eslint-config.yaml +++ b/eslint-config.yaml @@ -54,14 +54,13 @@ rules: - allowSingleLine: true '@typescript-eslint/explicit-module-boundary-types': - - warn - - allowArgumentsExplicitlyTypedAsAny: true + - off '@typescript-eslint/explicit-member-accessibility': - error '@typescript-eslint/member-ordering': - - warn + - error - default: - static-field - static-method @@ -126,8 +125,7 @@ rules: - error 'complexity': - - warn - - 20 + - off 'consistent-return': - error @@ -153,7 +151,7 @@ rules: - error 'no-await-in-loop': - - warn + - error 'no-caller': - error @@ -166,7 +164,7 @@ rules: - error 'no-extra-bind': - - warn + - error 'no-implied-eval': - error @@ -184,7 +182,7 @@ rules: - error 'no-return-await': - - warn + - error 'no-unused-expressions': - error diff --git a/packages/jsii-rosetta/lib/jsii/assemblies.ts b/packages/jsii-rosetta/lib/jsii/assemblies.ts index aaab2e7164..b0fa14104c 100644 --- a/packages/jsii-rosetta/lib/jsii/assemblies.ts +++ b/packages/jsii-rosetta/lib/jsii/assemblies.ts @@ -21,15 +21,15 @@ export interface LoadedAssembly { export async function loadAssemblies(assemblyLocations: string[]) { const ret: LoadedAssembly[] = []; for (const loc of assemblyLocations) { - const stat = await fs.stat(loc); + const stat = await fs.stat(loc); // eslint-disable-line no-await-in-loop if (stat.isDirectory()) { ret.push({ - assembly: await loadAssemblyFromFile(path.join(loc, '.jsii')), + assembly: await loadAssemblyFromFile(path.join(loc, '.jsii')), // eslint-disable-line no-await-in-loop directory: loc, }); } else { ret.push({ - assembly: await loadAssemblyFromFile(loc), + assembly: await loadAssemblyFromFile(loc), // eslint-disable-line no-await-in-loop directory: path.dirname(loc), }); } From 2ee6f1e24969fa8c60252a343db2b10640da9bbf Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 10 Aug 2020 09:38:20 +0200 Subject: [PATCH 05/45] chore: a bunch of Windows-specific issues (#1843) Fixing a bunch of locations where `/` was asserted to be present in file paths, instead of using `path.join` to be Windows-compatible. Additionally, replaced the `diff-test` implementation with a `node`-based one, as `diff` is not readily available in Windows and the substitute command behaves just too differently. Finally, a couple of tests were shelling out to other node processes, but doing so unsafely (forgetting to pass `shell: true`, for example), so that the current `node` runtime is systematically being used. --- .gitattributes | 1 + .github/workflows/main.yml | 72 +- .mergify.yml => .mergify/config.yml | 45 + package.json | 4 +- .../@jsii/dotnet-runtime-test/package.json | 2 +- packages/@jsii/dotnet-runtime/package.json | 2 +- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/java-runtime/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/kernel/test/kernel.test.ts | 40 +- packages/@jsii/python-runtime/bin/generate | 38 - .../@jsii/python-runtime/bin/generate-calc | 44 - .../python-runtime/build-tools/_constants.ts | 28 + .../@jsii/python-runtime/build-tools/deps.ts | 33 + .../python-runtime/build-tools/gen-calc.ts | 39 + .../@jsii/python-runtime/build-tools/gen.ts | 39 + .../@jsii/python-runtime/build-tools/venv.ts | 11 + packages/@jsii/python-runtime/package.json | 13 +- packages/@jsii/runtime/package.json | 2 +- .../@jsii/runtime/test/kernel-host.test.ts | 2 +- packages/@jsii/runtime/test/playback.test.ts | 26 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 4 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/lib/npm-modules.ts | 9 +- .../lib/targets/dotnet/dotnetgenerator.ts | 4 +- packages/jsii-pacmak/lib/targets/java.ts | 10 +- packages/jsii-pacmak/lib/targets/python.ts | 84 +- packages/jsii-pacmak/lib/util.ts | 11 +- packages/jsii-pacmak/package.json | 10 +- .../__snapshots__/jsii-pacmak.test.js.snap | 67839 ++++++++++++++++ packages/jsii-pacmak/test/build-test.sh | 9 +- packages/jsii-pacmak/test/diff-test.sh | 92 - .../.jsii | 115 - ...ulatorPackageId.BaseOfBasePackageId.csproj | 34 - .../BaseOfBaseNamespace/IVeryBaseInterface.cs | 13 - .../IVeryBaseInterfaceProxy.cs | 20 - .../BaseOfBaseNamespace/IVeryBaseProps.cs | 16 - .../Internal/DependencyResolution/Anchor.cs | 11 - .../BaseOfBaseNamespace/Very.cs | 34 - .../BaseOfBaseNamespace/VeryBaseProps.cs | 19 - .../BaseOfBaseNamespace/VeryBasePropsProxy.cs | 20 - .../AssemblyInfo.cs | 3 - .../scope-jsii-calc-base-of-base-0.0.0.tgz | 2 - .../java/pom.xml | 144 - .../tests/calculator/baseofbase/$Module.java | 67 - .../baseofbase/IVeryBaseInterface.java | 23 - .../tests/calculator/baseofbase/Very.java | 23 - .../calculator/baseofbase/VeryBaseProps.java | 104 - .../tests/calculator/baseofbase/$Module.txt | 3 - .../jsii-calc-base-of-base@0.0.0.jsii.tgz | 2 - .../js/jsii-calc-base-of-base@0.0.0.jsii.tgz | 2 - .../python/MANIFEST.in | 1 - .../python/README.md | 1 - .../python/pyproject.toml | 3 - .../python/setup.py | 56 - .../scope/jsii_calc_base_of_base/__init__.py | 78 - .../jsii_calc_base_of_base/_jsii/__init__.py | 22 - .../jsii-calc-base-of-base@0.0.0.jsii.tgz | 2 - .../src/scope/jsii_calc_base_of_base/py.typed | 1 - .../.jsii | 155 - ...s.CalculatorPackageId.BasePackageId.csproj | 35 - .../CalculatorNamespace/BaseNamespace/Base.cs | 36 - .../BaseNamespace/BaseProps.cs | 26 - .../BaseNamespace/BasePropsProxy.cs | 26 - .../BaseNamespace/BaseProxy.cs | 15 - .../BaseNamespace/IBaseInterface.cs | 13 - .../BaseNamespace/IBaseInterfaceProxy.cs | 26 - .../BaseNamespace/IBaseProps.cs | 16 - .../Internal/DependencyResolution/Anchor.cs | 12 - .../AssemblyInfo.cs | 3 - .../scope-jsii-calc-base-0.0.0.tgz | 2 - .../test/expected.jsii-calc-base/java/pom.xml | 149 - .../jsii/tests/calculator/base/$Module.java | 75 - .../jsii/tests/calculator/base/Base.java | 38 - .../jsii/tests/calculator/base/BaseProps.java | 126 - .../tests/calculator/base/IBaseInterface.java | 28 - .../jsii/tests/calculator/base/$Module.txt | 3 - .../base/jsii-calc-base@0.0.0.jsii.tgz | 2 - .../js/jsii-calc-base@0.0.0.jsii.tgz | 2 - .../python/MANIFEST.in | 1 - .../expected.jsii-calc-base/python/README.md | 1 - .../python/pyproject.toml | 3 - .../expected.jsii-calc-base/python/setup.py | 57 - .../src/scope/jsii_calc_base/__init__.py | 104 - .../scope/jsii_calc_base/_jsii/__init__.py | 21 - .../_jsii/jsii-calc-base@0.0.0.jsii.tgz | 2 - .../python/src/scope/jsii_calc_base/py.typed | 1 - .../.jsii | 680 - ...ts.CalculatorPackageId.LibPackageId.csproj | 36 - .../LibNamespace/EnumFromScopedModule.cs | 30 - .../LibNamespace/IDoublable.cs | 25 - .../LibNamespace/IDoublableProxy.cs | 29 - .../LibNamespace/IFriendly.cs | 26 - .../LibNamespace/IFriendlyProxy.cs | 33 - .../LibNamespace/IMyFirstStruct.cs | 51 - .../LibNamespace/IStructWithOnlyOptionals.cs | 58 - .../LibNamespace/IThreeLevelsInterface.cs | 25 - .../IThreeLevelsInterfaceProxy.cs | 44 - .../Internal/DependencyResolution/Anchor.cs | 13 - .../LibNamespace/MyFirstStruct.cs | 52 - .../LibNamespace/MyFirstStructProxy.cs | 52 - .../LibNamespace/Number.cs | 63 - .../LibNamespace/Operation.cs | 42 - .../LibNamespace/OperationProxy.cs | 41 - .../LibNamespace/StructWithOnlyOptionals.cs | 51 - .../StructWithOnlyOptionalsProxy.cs | 53 - .../LibNamespace/ValueProxy.cs | 30 - .../LibNamespace/Value_.cs | 55 - .../Tests/CustomSubmoduleName/IReflectable.cs | 24 - .../CustomSubmoduleName/IReflectableEntry.cs | 34 - .../CustomSubmoduleName/IReflectableProxy.cs | 28 - .../CustomSubmoduleName/ReflectableEntry.cs | 37 - .../ReflectableEntryProxy.cs | 38 - .../Tests/CustomSubmoduleName/Reflector.cs | 48 - .../AssemblyInfo.cs | 3 - .../scope-jsii-calc-lib-0.0.0.tgz | 2 - .../test/expected.jsii-calc-lib/java/pom.xml | 154 - .../custom_submodule_name/IReflectable.java | 35 - .../ReflectableEntry.java | 152 - .../custom_submodule_name/Reflector.java | 36 - .../jsii/tests/calculator/lib/$Module.java | 75 - .../calculator/lib/EnumFromScopedModule.java | 23 - .../jsii/tests/calculator/lib/IDoublable.java | 36 - .../jsii/tests/calculator/lib/IFriendly.java | 41 - .../calculator/lib/IThreeLevelsInterface.java | 49 - .../tests/calculator/lib/MyFirstStruct.java | 189 - .../jsii/tests/calculator/lib/Number.java | 51 - .../jsii/tests/calculator/lib/Operation.java | 61 - .../lib/StructWithOnlyOptionals.java | 196 - .../jsii/tests/calculator/lib/Value.java | 59 - .../tests/calculator/lib/package-info.java | 7 - .../jsii/tests/calculator/lib/$Module.txt | 12 - .../lib/jsii-calc-lib@0.0.0.jsii.tgz | 2 - .../js/jsii-calc-lib@0.0.0.jsii.tgz | 2 - .../expected.jsii-calc-lib/python/MANIFEST.in | 1 - .../expected.jsii-calc-lib/python/README.md | 1 - .../python/pyproject.toml | 3 - .../expected.jsii-calc-lib/python/setup.py | 60 - .../src/scope/jsii_calc_lib/__init__.py | 453 - .../src/scope/jsii_calc_lib/_jsii/__init__.py | 22 - .../_jsii/jsii-calc-lib@0.0.0.jsii.tgz | 2 - .../custom_submodule_name/__init__.py | 132 - .../python/src/scope/jsii_calc_lib/py.typed | 1 - .../.jsii | 13726 ---- ...azon.JSII.Tests.CalculatorPackageId.csproj | 39 - .../CalculatorNamespace/AbstractClass.cs | 59 - .../CalculatorNamespace/AbstractClassBase.cs | 43 - .../AbstractClassBaseProxy.cs | 26 - .../CalculatorNamespace/AbstractClassProxy.cs | 35 - .../AbstractClassReturner.cs | 61 - .../CalculatorNamespace/AbstractSuite.cs | 63 - .../CalculatorNamespace/AbstractSuiteProxy.cs | 37 - .../JSII/Tests/CalculatorNamespace/Add.cs | 58 - .../Tests/CalculatorNamespace/AllTypes.cs | 255 - .../Tests/CalculatorNamespace/AllTypesEnum.cs | 30 - .../CalculatorNamespace/AllowedMethodNames.cs | 72 - .../AmbiguousParameters.cs | 52 - .../AnonymousImplementationProvider.cs | 52 - .../AsyncVirtualMethods.cs | 94 - .../CalculatorNamespace/AugmentableClass.cs | 52 - .../Tests/CalculatorNamespace/BaseJsii976.cs | 34 - .../JSII/Tests/CalculatorNamespace/Bell.cs | 53 - .../CalculatorNamespace/BinaryOperation.cs | 68 - .../BinaryOperationProxy.cs | 40 - .../Tests/CalculatorNamespace/Calculator.cs | 171 - .../CalculatorNamespace/CalculatorProps.cs | 44 - .../CalculatorPropsProxy.cs | 46 - .../CalculatorNamespace/ChildStruct982.cs | 35 - .../ChildStruct982Proxy.cs | 35 - ...ClassThatImplementsTheInternalInterface.cs | 74 - .../ClassThatImplementsThePrivateInterface.cs | 74 - .../ClassWithCollections.cs | 92 - .../CalculatorNamespace/ClassWithDocs.cs | 45 - .../ClassWithJavaReservedWords.cs | 52 - .../ClassWithMutableObjectLiteralProperty.cs | 44 - ...rivateConstructorAndAutomaticProperties.cs | 56 - .../Composition/CompositeOperation.cs | 118 - .../Composition/CompositeOperationProxy.cs | 30 - .../CalculatorNamespace/ConfusingToJackson.cs | 59 - .../ConfusingToJacksonStruct.cs | 24 - .../ConfusingToJacksonStructProxy.cs | 27 - .../ConstructorPassesThisOut.cs | 34 - .../Tests/CalculatorNamespace/Constructors.cs | 97 - .../ConsumePureInterface.cs | 43 - .../ConsumerCanRingBell.cs | 134 - .../ConsumersOfThisCrazyTypeSystem.cs | 52 - .../Tests/CalculatorNamespace/DataRenderer.cs | 62 - .../DefaultedConstructorArgument.cs | 62 - .../CalculatorNamespace/Demonstrate982.cs | 58 - .../CalculatorNamespace/DeprecatedClass.cs | 70 - .../CalculatorNamespace/DeprecatedEnum.cs | 28 - .../CalculatorNamespace/DeprecatedStruct.cs | 26 - .../DeprecatedStructProxy.cs | 28 - .../DerivedClassHasNoProperties/Base.cs | 44 - .../DerivedClassHasNoProperties/Derived.cs | 34 - .../CalculatorNamespace/DerivedStruct.cs | 117 - .../CalculatorNamespace/DerivedStructProxy.cs | 110 - .../DiamondInheritanceBaseLevelStruct.cs | 25 - .../DiamondInheritanceBaseLevelStructProxy.cs | 26 - .../DiamondInheritanceFirstMidLevelStruct.cs | 35 - ...mondInheritanceFirstMidLevelStructProxy.cs | 35 - .../DiamondInheritanceSecondMidLevelStruct.cs | 35 - ...ondInheritanceSecondMidLevelStructProxy.cs | 35 - .../DiamondInheritanceTopLevelStruct.cs | 55 - .../DiamondInheritanceTopLevelStructProxy.cs | 53 - .../DisappointingCollectionSource.cs | 56 - .../DoNotOverridePrivates.cs | 61 - .../DoNotRecognizeAnyAsOptional.cs | 44 - .../CalculatorNamespace/DocumentedClass.cs | 61 - .../DontComplainAboutVariadicAfterOptional.cs | 43 - .../CalculatorNamespace/DoubleTrouble.cs | 54 - .../CalculatorNamespace/EnumDispenser.cs | 45 - .../EraseUndefinedHashValues.cs | 67 - .../EraseUndefinedHashValuesOptions.cs | 35 - .../EraseUndefinedHashValuesOptionsProxy.cs | 37 - .../CalculatorNamespace/ExperimentalClass.cs | 63 - .../CalculatorNamespace/ExperimentalEnum.cs | 25 - .../CalculatorNamespace/ExperimentalStruct.cs | 25 - .../ExperimentalStructProxy.cs | 26 - .../CalculatorNamespace/ExportedBaseClass.cs | 43 - .../ExtendsInternalInterface.cs | 35 - .../ExtendsInternalInterfaceProxy.cs | 35 - .../CalculatorNamespace/ExternalClass.cs | 73 - .../Tests/CalculatorNamespace/ExternalEnum.cs | 31 - .../CalculatorNamespace/ExternalStruct.cs | 29 - .../ExternalStructProxy.cs | 30 - .../CalculatorNamespace/GiveMeStructs.cs | 73 - .../JSII/Tests/CalculatorNamespace/Greetee.cs | 28 - .../Tests/CalculatorNamespace/GreeteeProxy.cs | 31 - .../CalculatorNamespace/GreetingAugmenter.cs | 43 - .../IAnonymousImplementationProvider.cs | 25 - .../IAnonymousImplementationProviderProxy.cs | 36 - .../IAnonymouslyImplementMe.cs | 27 - .../IAnonymouslyImplementMeProxy.cs | 35 - .../IAnotherPublicInterface.cs | 23 - .../IAnotherPublicInterfaceProxy.cs | 27 - .../JSII/Tests/CalculatorNamespace/IBell.cs | 19 - .../Tests/CalculatorNamespace/IBellProxy.cs | 26 - .../Tests/CalculatorNamespace/IBellRinger.cs | 20 - .../CalculatorNamespace/IBellRingerProxy.cs | 27 - .../CalculatorNamespace/ICalculatorProps.cs | 48 - .../CalculatorNamespace/IChildStruct982.cs | 22 - .../IConcreteBellRinger.cs | 20 - .../IConcreteBellRingerProxy.cs | 27 - .../IConfusingToJacksonStruct.cs | 26 - .../IDeprecatedInterface.cs | 38 - .../IDeprecatedInterfaceProxy.cs | 40 - .../CalculatorNamespace/IDeprecatedStruct.cs | 24 - .../CalculatorNamespace/IDerivedStruct.cs | 82 - .../IDiamondInheritanceBaseLevelStruct.cs | 22 - .../IDiamondInheritanceFirstMidLevelStruct.cs | 22 - ...IDiamondInheritanceSecondMidLevelStruct.cs | 22 - .../IDiamondInheritanceTopLevelStruct.cs | 22 - .../IEraseUndefinedHashValuesOptions.cs | 39 - .../IExperimentalInterface.cs | 35 - .../IExperimentalInterfaceProxy.cs | 37 - .../IExperimentalStruct.cs | 22 - .../IExtendsInternalInterface.cs | 31 - .../IExtendsPrivateInterface.cs | 32 - .../IExtendsPrivateInterfaceProxy.cs | 36 - .../CalculatorNamespace/IExternalInterface.cs | 41 - .../IExternalInterfaceProxy.cs | 43 - .../CalculatorNamespace/IExternalStruct.cs | 26 - .../Tests/CalculatorNamespace/IFriendlier.cs | 28 - .../CalculatorNamespace/IFriendlierProxy.cs | 50 - .../IFriendlyRandomGenerator.cs | 14 - .../IFriendlyRandomGeneratorProxy.cs | 39 - .../Tests/CalculatorNamespace/IGreetee.cs | 30 - .../CalculatorNamespace/IImplictBaseOfBase.cs | 22 - .../IInterfaceImplementedByAbstractClass.cs | 23 - ...nterfaceImplementedByAbstractClassProxy.cs | 27 - .../IInterfaceThatShouldNotBeADataType.cs | 23 - ...IInterfaceThatShouldNotBeADataTypeProxy.cs | 45 - .../IInterfaceWithInternal.cs | 19 - .../IInterfaceWithInternalProxy.cs | 26 - .../IInterfaceWithMethods.cs | 27 - .../IInterfaceWithMethodsProxy.cs | 35 - .../IInterfaceWithOptionalMethodArguments.cs | 20 - ...terfaceWithOptionalMethodArgumentsProxy.cs | 27 - .../IInterfaceWithProperties.cs | 32 - .../IInterfaceWithPropertiesExtension.cs | 23 - .../IInterfaceWithPropertiesExtensionProxy.cs | 46 - .../IInterfaceWithPropertiesProxy.cs | 36 - .../CalculatorNamespace/IJSII417Derived.cs | 32 - .../IJSII417DerivedProxy.cs | 62 - .../IJSII417PublicBaseOfBase.cs | 27 - .../IJSII417PublicBaseOfBaseProxy.cs | 35 - .../CalculatorNamespace/IJsii487External.cs | 14 - .../CalculatorNamespace/IJsii487External2.cs | 14 - .../IJsii487External2Proxy.cs | 17 - .../IJsii487ExternalProxy.cs | 17 - .../Tests/CalculatorNamespace/IJsii496.cs | 14 - .../CalculatorNamespace/IJsii496Proxy.cs | 17 - .../ILoadBalancedFargateServiceProps.cs | 120 - .../IMutableObjectLiteral.cs | 23 - .../IMutableObjectLiteralProxy.cs | 27 - .../CalculatorNamespace/INestedStruct.cs | 23 - .../INonInternalInterface.cs | 33 - .../INonInternalInterfaceProxy.cs | 47 - .../INullShouldBeTreatedAsUndefinedData.cs | 35 - .../IObjectWithProperty.cs | 29 - .../IObjectWithPropertyProxy.cs | 37 - .../CalculatorNamespace/IOptionalMethod.cs | 20 - .../IOptionalMethodProxy.cs | 27 - .../CalculatorNamespace/IOptionalStruct.cs | 26 - .../CalculatorNamespace/IParentStruct982.cs | 23 - .../IPrivatelyImplemented.cs | 22 - .../IPrivatelyImplementedProxy.cs | 26 - .../CalculatorNamespace/IPublicInterface.cs | 19 - .../CalculatorNamespace/IPublicInterface2.cs | 19 - .../IPublicInterface2Proxy.cs | 26 - .../IPublicInterfaceProxy.cs | 26 - .../IRandomNumberGenerator.cs | 22 - .../IRandomNumberGeneratorProxy.cs | 29 - .../CalculatorNamespace/IReturnJsii976.cs | 23 - .../IReturnJsii976Proxy.cs | 27 - .../CalculatorNamespace/IReturnsNumber.cs | 27 - .../IReturnsNumberProxy.cs | 35 - .../Tests/CalculatorNamespace/IRootStruct.cs | 40 - .../CalculatorNamespace/ISecondLevelStruct.cs | 37 - .../CalculatorNamespace/ISmellyStruct.cs | 31 - .../CalculatorNamespace/IStableInterface.cs | 26 - .../IStableInterfaceProxy.cs | 28 - .../CalculatorNamespace/IStableStruct.cs | 16 - .../Tests/CalculatorNamespace/IStructA.cs | 49 - .../Tests/CalculatorNamespace/IStructB.cs | 49 - .../IStructParameterType.cs | 38 - .../IStructReturningDelegate.cs | 20 - .../IStructReturningDelegateProxy.cs | 27 - .../IStructWithJavaReservedWords.cs | 61 - .../ISupportsNiceJavaBuilderProps.cs | 39 - .../CalculatorNamespace/ITopLevelStruct.cs | 47 - .../CalculatorNamespace/IUnionProperties.cs | 35 - .../ImplementInternalInterface.cs | 44 - .../CalculatorNamespace/Implementation.cs | 43 - .../ImplementsInterfaceWithInternal.cs | 43 - ...ImplementsInterfaceWithInternalSubclass.cs | 34 - .../ImplementsPrivateInterface.cs | 44 - .../CalculatorNamespace/ImplictBaseOfBase.cs | 39 - .../ImplictBaseOfBaseProxy.cs | 38 - .../CalculatorNamespace/InbetweenClass.cs | 43 - .../InterfaceCollections.cs | 66 - .../Foo.cs | 45 - .../Hello.cs | 25 - .../HelloProxy.cs | 26 - .../IHello.cs | 22 - .../Hello.cs | 25 - .../HelloProxy.cs | 26 - .../IHello.cs | 22 - .../CalculatorNamespace/InterfacesMaker.cs | 37 - .../Internal/DependencyResolution/Anchor.cs | 14 - .../Tests/CalculatorNamespace/Isomorphism.cs | 47 - .../CalculatorNamespace/IsomorphismProxy.cs | 21 - .../CalculatorNamespace/JSII417Derived.cs | 61 - .../JSII417PublicBaseOfBase.cs | 61 - .../JSObjectLiteralForInterface.cs | 52 - .../JSObjectLiteralToNative.cs | 43 - .../JSObjectLiteralToNativeClass.cs | 54 - .../CalculatorNamespace/JavaReservedWords.cs | 512 - .../CalculatorNamespace/Jsii487Derived.cs | 34 - .../CalculatorNamespace/Jsii496Derived.cs | 34 - .../Tests/CalculatorNamespace/JsiiAgent_.cs | 46 - .../CalculatorNamespace/JsonFormatter.cs | 156 - .../LoadBalancedFargateServiceProps.cs | 110 - .../LoadBalancedFargateServicePropsProxy.cs | 109 - .../MethodNamedProperty.cs | 52 - .../Tests/CalculatorNamespace/Multiply.cs | 88 - .../Tests/CalculatorNamespace/NamespaceDoc.cs | 38 - .../JSII/Tests/CalculatorNamespace/Negate.cs | 85 - .../Tests/CalculatorNamespace/NestedStruct.cs | 26 - .../CalculatorNamespace/NestedStructProxy.cs | 27 - .../NodeStandardLibrary.cs | 78 - .../NullShouldBeTreatedAsUndefined.cs | 73 - .../NullShouldBeTreatedAsUndefinedData.cs | 36 - ...NullShouldBeTreatedAsUndefinedDataProxy.cs | 36 - .../CalculatorNamespace/NumberGenerator.cs | 63 - .../ObjectRefsInCollections.cs | 55 - .../ObjectWithPropertyProvider.cs | 36 - .../JSII/Tests/CalculatorNamespace/Old.cs | 47 - .../OptionalArgumentInvoker.cs | 52 - .../OptionalConstructorArgument.cs | 62 - .../CalculatorNamespace/OptionalStruct.cs | 24 - .../OptionalStructConsumer.cs | 53 - .../OptionalStructProxy.cs | 27 - .../OverridableProtectedMember.cs | 82 - .../OverrideReturnsObject.cs | 43 - .../CalculatorNamespace/ParentStruct982.cs | 26 - .../ParentStruct982Proxy.cs | 27 - .../PartiallyInitializedThisConsumer.cs | 41 - .../PartiallyInitializedThisConsumerProxy.cs | 26 - .../Tests/CalculatorNamespace/Polymorphism.cs | 43 - .../JSII/Tests/CalculatorNamespace/Power.cs | 70 - .../PropertyNamedProperty.cs | 53 - .../Tests/CalculatorNamespace/PublicClass.cs | 43 - .../PythonReservedWords.cs | 322 - .../PythonSelf/ClassWithSelf.cs | 52 - .../PythonSelf/ClassWithSelfKwarg.cs | 43 - .../PythonSelf/IInterfaceWithSelf.cs | 19 - .../PythonSelf/IInterfaceWithSelfProxy.cs | 26 - .../PythonSelf/IStructWithSelf.cs | 22 - .../PythonSelf/StructWithSelf.cs | 25 - .../PythonSelf/StructWithSelfProxy.cs | 26 - .../ReferenceEnumFromScopedPackage.cs | 64 - ...ReturnsPrivateImplementationOfInterface.cs | 47 - .../Tests/CalculatorNamespace/RootStruct.cs | 41 - .../CalculatorNamespace/RootStructProxy.cs | 41 - .../RootStructValidator.cs | 36 - .../RuntimeTypeChecking.cs | 62 - .../CalculatorNamespace/SecondLevelStruct.cs | 38 - .../SecondLevelStructProxy.cs | 38 - .../SingleInstanceTwoTypes.cs | 57 - .../Tests/CalculatorNamespace/SingletonInt.cs | 39 - .../CalculatorNamespace/SingletonIntEnum.cs | 22 - .../CalculatorNamespace/SingletonString.cs | 39 - .../SingletonStringEnum.cs | 22 - .../Tests/CalculatorNamespace/SmellyStruct.cs | 35 - .../CalculatorNamespace/SmellyStructProxy.cs | 35 - .../CalculatorNamespace/SomeTypeJsii976.cs | 52 - .../Tests/CalculatorNamespace/StableClass.cs | 48 - .../Tests/CalculatorNamespace/StableEnum.cs | 16 - .../Tests/CalculatorNamespace/StableStruct.cs | 19 - .../CalculatorNamespace/StableStructProxy.cs | 20 - .../CalculatorNamespace/StaticContext.cs | 49 - .../JSII/Tests/CalculatorNamespace/Statics.cs | 129 - .../Tests/CalculatorNamespace/StringEnum.cs | 30 - .../CalculatorNamespace/StripInternal.cs | 44 - .../JSII/Tests/CalculatorNamespace/StructA.cs | 48 - .../Tests/CalculatorNamespace/StructAProxy.cs | 47 - .../JSII/Tests/CalculatorNamespace/StructB.cs | 48 - .../Tests/CalculatorNamespace/StructBProxy.cs | 47 - .../StructParameterType.cs | 39 - .../StructParameterTypeProxy.cs | 39 - .../CalculatorNamespace/StructPassing.cs | 44 - .../StructUnionConsumer.cs | 45 - .../StructWithJavaReservedWords.cs | 58 - .../StructWithJavaReservedWordsProxy.cs | 56 - .../BackReferences/IMyClassReference.cs | 22 - .../BackReferences/MyClassReference.cs | 25 - .../BackReferences/MyClassReferenceProxy.cs | 26 - .../Submodule/Child/Awesomeness.cs | 21 - .../Submodule/Child/Goodness.cs | 33 - .../Submodule/Child/IKwargsProps.cs | 26 - .../Submodule/Child/ISomeStruct.cs | 22 - .../Submodule/Child/IStructure.cs | 22 - .../Submodule/Child/InnerClass.cs | 44 - .../Submodule/Child/KwargsProps.cs | 34 - .../Submodule/Child/KwargsPropsProxy.cs | 36 - .../Submodule/Child/OuterClass.cs | 46 - .../Submodule/Child/SomeEnum.cs | 20 - .../Submodule/Child/SomeStruct.cs | 25 - .../Submodule/Child/SomeStructProxy.cs | 26 - .../Submodule/Child/Structure.cs | 25 - .../Submodule/Child/StructureProxy.cs | 26 - .../Submodule/Isolated/Kwargs.cs | 37 - .../CalculatorNamespace/Submodule/MyClass.cs | 81 - .../DeeplyNested/INamespaced.cs | 22 - .../DeeplyNested/INamespacedProxy.cs | 26 - .../Submodule/NestedSubmodule/Namespaced.cs | 45 - .../NestedSubmodule/NamespacedProxy.cs | 26 - .../JSII/Tests/CalculatorNamespace/Sum.cs | 58 - .../SupportsNiceJavaBuilder.cs | 57 - .../SupportsNiceJavaBuilderProps.cs | 40 - .../SupportsNiceJavaBuilderPropsProxy.cs | 40 - ...upportsNiceJavaBuilderWithRequiredProps.cs | 66 - .../CalculatorNamespace/SyncVirtualMethods.cs | 183 - .../JSII/Tests/CalculatorNamespace/Thrower.cs | 43 - .../CalculatorNamespace/TopLevelStruct.cs | 49 - .../TopLevelStructProxy.cs | 48 - .../Tests/CalculatorNamespace/UmaskCheck.cs | 40 - .../CalculatorNamespace/UnaryOperation.cs | 44 - .../UnaryOperationProxy.cs | 40 - .../CalculatorNamespace/UnionProperties.cs | 36 - .../UnionPropertiesProxy.cs | 36 - .../UpcasingReflectable.cs | 54 - .../UseBundledDependency.cs | 43 - .../Tests/CalculatorNamespace/UseCalcBase.cs | 44 - .../UsesInterfaceWithProperties.cs | 70 - .../CalculatorNamespace/VariadicInvoker.cs | 43 - .../CalculatorNamespace/VariadicMethod.cs | 46 - .../VirtualMethodPlayground.cs | 79 - .../Tests/CalculatorNamespace/VoidCallback.cs | 66 - .../CalculatorNamespace/VoidCallbackProxy.cs | 33 - .../WithPrivatePropertyInConstructor.cs | 44 - .../AssemblyInfo.cs | 3 - .../jsii-calc-0.0.0.tgz | 2 - .../test/expected.jsii-calc/java/pom.xml | 180 - .../amazon/jsii/tests/calculator/$Module.java | 75 - .../jsii/tests/calculator/AbstractClass.java | 90 - .../tests/calculator/AbstractClassBase.java | 51 - .../calculator/AbstractClassReturner.java | 51 - .../jsii/tests/calculator/AbstractSuite.java | 99 - .../amazon/jsii/tests/calculator/Add.java | 56 - .../jsii/tests/calculator/AllTypes.java | 380 - .../jsii/tests/calculator/AllTypesEnum.java | 25 - .../tests/calculator/AllowedMethodNames.java | 75 - .../tests/calculator/AmbiguousParameters.java | 107 - .../AnonymousImplementationProvider.java | 45 - .../tests/calculator/AsyncVirtualMethods.java | 85 - .../tests/calculator/AugmentableClass.java | 43 - .../jsii/tests/calculator/BaseJsii976.java | 27 - .../amazon/jsii/tests/calculator/Bell.java | 52 - .../tests/calculator/BinaryOperation.java | 104 - .../jsii/tests/calculator/Calculator.java | 305 - .../tests/calculator/CalculatorProps.java | 167 - .../jsii/tests/calculator/ChildStruct982.java | 140 - ...assThatImplementsTheInternalInterface.java | 97 - ...lassThatImplementsThePrivateInterface.java | 97 - .../calculator/ClassWithCollections.java | 110 - .../jsii/tests/calculator/ClassWithDocs.java | 38 - .../ClassWithJavaReservedWords.java | 47 - ...ClassWithMutableObjectLiteralProperty.java | 43 - ...vateConstructorAndAutomaticProperties.java | 58 - .../tests/calculator/ConfusingToJackson.java | 62 - .../calculator/ConfusingToJacksonStruct.java | 132 - .../calculator/ConstructorPassesThisOut.java | 29 - .../jsii/tests/calculator/Constructors.java | 83 - .../calculator/ConsumePureInterface.java | 37 - .../tests/calculator/ConsumerCanRingBell.java | 144 - .../ConsumersOfThisCrazyTypeSystem.java | 47 - .../jsii/tests/calculator/DataRenderer.java | 67 - .../DefaultedConstructorArgument.java | 87 - .../jsii/tests/calculator/Demonstrate982.java | 52 - .../tests/calculator/DeprecatedClass.java | 78 - .../jsii/tests/calculator/DeprecatedEnum.java | 23 - .../tests/calculator/DeprecatedStruct.java | 125 - .../jsii/tests/calculator/DerivedStruct.java | 354 - .../DiamondInheritanceBaseLevelStruct.java | 117 - ...DiamondInheritanceFirstMidLevelStruct.java | 140 - ...iamondInheritanceSecondMidLevelStruct.java | 140 - .../DiamondInheritanceTopLevelStruct.java | 186 - .../DisappointingCollectionSource.java | 47 - .../calculator/DoNotOverridePrivates.java | 53 - .../DoNotRecognizeAnyAsOptional.java | 62 - .../tests/calculator/DocumentedClass.java | 69 - ...ontComplainAboutVariadicAfterOptional.java | 38 - .../jsii/tests/calculator/DoubleTrouble.java | 49 - .../jsii/tests/calculator/EnumDispenser.java | 34 - .../calculator/EraseUndefinedHashValues.java | 63 - .../EraseUndefinedHashValuesOptions.java | 154 - .../tests/calculator/ExperimentalClass.java | 73 - .../tests/calculator/ExperimentalEnum.java | 20 - .../tests/calculator/ExperimentalStruct.java | 117 - .../tests/calculator/ExportedBaseClass.java | 37 - .../calculator/ExtendsInternalInterface.java | 146 - .../jsii/tests/calculator/ExternalClass.java | 73 - .../jsii/tests/calculator/ExternalEnum.java | 20 - .../jsii/tests/calculator/ExternalStruct.java | 117 - .../jsii/tests/calculator/GiveMeStructs.java | 71 - .../amazon/jsii/tests/calculator/Greetee.java | 127 - .../tests/calculator/GreetingAugmenter.java | 37 - .../IAnonymousImplementationProvider.java | 52 - .../calculator/IAnonymouslyImplementMe.java | 50 - .../calculator/IAnotherPublicInterface.java | 49 - .../amazon/jsii/tests/calculator/IBell.java | 35 - .../jsii/tests/calculator/IBellRinger.java | 41 - .../tests/calculator/IConcreteBellRinger.java | 41 - .../calculator/IDeprecatedInterface.java | 75 - .../calculator/IExperimentalInterface.java | 69 - .../calculator/IExtendsPrivateInterface.java | 64 - .../tests/calculator/IExternalInterface.java | 69 - .../jsii/tests/calculator/IFriendlier.java | 74 - .../calculator/IFriendlyRandomGenerator.java | 43 - .../IInterfaceImplementedByAbstractClass.java | 37 - .../IInterfaceThatShouldNotBeADataType.java | 55 - .../calculator/IInterfaceWithInternal.java | 35 - .../calculator/IInterfaceWithMethods.java | 50 - ...IInterfaceWithOptionalMethodArguments.java | 62 - .../calculator/IInterfaceWithProperties.java | 64 - .../IInterfaceWithPropertiesExtension.java | 76 - .../tests/calculator/IJSII417Derived.java | 83 - .../calculator/IJSII417PublicBaseOfBase.java | 50 - .../tests/calculator/IJsii487External.java | 20 - .../tests/calculator/IJsii487External2.java | 20 - .../jsii/tests/calculator/IJsii496.java | 20 - .../calculator/IMutableObjectLiteral.java | 49 - .../calculator/INonInternalInterface.java | 96 - .../tests/calculator/IObjectWithProperty.java | 66 - .../tests/calculator/IOptionalMethod.java | 37 - .../calculator/IPrivatelyImplemented.java | 35 - .../tests/calculator/IPublicInterface.java | 35 - .../tests/calculator/IPublicInterface2.java | 35 - .../calculator/IRandomNumberGenerator.java | 45 - .../jsii/tests/calculator/IReturnJsii976.java | 37 - .../jsii/tests/calculator/IReturnsNumber.java | 50 - .../tests/calculator/IStableInterface.java | 62 - .../calculator/IStructReturningDelegate.java | 37 - .../ImplementInternalInterface.java | 43 - .../jsii/tests/calculator/Implementation.java | 35 - .../ImplementsInterfaceWithInternal.java | 36 - ...plementsInterfaceWithInternalSubclass.java | 27 - .../ImplementsPrivateInterface.java | 43 - .../tests/calculator/ImplictBaseOfBase.java | 161 - .../jsii/tests/calculator/InbetweenClass.java | 36 - .../calculator/InterfaceCollections.java | 54 - .../tests/calculator/InterfacesMaker.java | 30 - .../jsii/tests/calculator/Isomorphism.java | 49 - .../jsii/tests/calculator/JSII417Derived.java | 53 - .../calculator/JSII417PublicBaseOfBase.java | 51 - .../JSObjectLiteralForInterface.java | 43 - .../calculator/JSObjectLiteralToNative.java | 35 - .../JSObjectLiteralToNativeClass.java | 59 - .../tests/calculator/JavaReservedWords.java | 459 - .../jsii/tests/calculator/Jsii487Derived.java | 27 - .../jsii/tests/calculator/Jsii496Derived.java | 27 - .../jsii/tests/calculator/JsiiAgent.java | 39 - .../jsii/tests/calculator/JsonFormatter.java | 144 - .../LoadBalancedFargateServiceProps.java | 324 - .../tests/calculator/MethodNamedProperty.java | 43 - .../jsii/tests/calculator/Multiply.java | 89 - .../amazon/jsii/tests/calculator/Negate.java | 86 - .../jsii/tests/calculator/NestedStruct.java | 119 - .../tests/calculator/NodeStandardLibrary.java | 75 - .../NullShouldBeTreatedAsUndefined.java | 95 - .../NullShouldBeTreatedAsUndefinedData.java | 150 - .../tests/calculator/NumberGenerator.java | 65 - .../calculator/ObjectRefsInCollections.java | 53 - .../ObjectWithPropertyProvider.java | 26 - .../amazon/jsii/tests/calculator/Old.java | 39 - .../calculator/OptionalArgumentInvoker.java | 45 - .../OptionalConstructorArgument.java | 67 - .../jsii/tests/calculator/OptionalStruct.java | 121 - .../calculator/OptionalStructConsumer.java | 105 - .../OverridableProtectedMember.java | 77 - .../calculator/OverrideReturnsObject.java | 37 - .../tests/calculator/ParentStruct982.java | 119 - .../PartiallyInitializedThisConsumer.java | 59 - .../jsii/tests/calculator/Polymorphism.java | 37 - .../amazon/jsii/tests/calculator/Power.java | 67 - .../calculator/PropertyNamedProperty.java | 45 - .../jsii/tests/calculator/PublicClass.java | 35 - .../tests/calculator/PythonReservedWords.java | 283 - .../ReferenceEnumFromScopedPackage.java | 63 - ...turnsPrivateImplementationOfInterface.java | 40 - .../jsii/tests/calculator/RootStruct.java | 157 - .../tests/calculator/RootStructValidator.java | 28 - .../tests/calculator/RuntimeTypeChecking.java | 113 - .../tests/calculator/SecondLevelStruct.java | 154 - .../calculator/SingleInstanceTwoTypes.java | 49 - .../jsii/tests/calculator/SingletonInt.java | 32 - .../tests/calculator/SingletonIntEnum.java | 19 - .../tests/calculator/SingletonString.java | 32 - .../tests/calculator/SingletonStringEnum.java | 19 - .../jsii/tests/calculator/SmellyStruct.java | 146 - .../tests/calculator/SomeTypeJsii976.java | 43 - .../jsii/tests/calculator/StableClass.java | 64 - .../jsii/tests/calculator/StableEnum.java | 17 - .../jsii/tests/calculator/StableStruct.java | 115 - .../jsii/tests/calculator/StaticContext.java | 46 - .../amazon/jsii/tests/calculator/Statics.java | 134 - .../jsii/tests/calculator/StringEnum.java | 25 - .../jsii/tests/calculator/StripInternal.java | 43 - .../amazon/jsii/tests/calculator/StructA.java | 185 - .../amazon/jsii/tests/calculator/StructB.java | 185 - .../tests/calculator/StructParameterType.java | 154 - .../jsii/tests/calculator/StructPassing.java | 45 - .../tests/calculator/StructUnionConsumer.java | 38 - .../StructWithJavaReservedWords.java | 216 - .../amazon/jsii/tests/calculator/Sum.java | 62 - .../calculator/SupportsNiceJavaBuilder.java | 142 - .../SupportsNiceJavaBuilderProps.java | 157 - ...portsNiceJavaBuilderWithRequiredProps.java | 125 - .../tests/calculator/SyncVirtualMethods.java | 203 - .../amazon/jsii/tests/calculator/Thrower.java | 35 - .../jsii/tests/calculator/TopLevelStruct.java | 196 - .../jsii/tests/calculator/UmaskCheck.java | 32 - .../jsii/tests/calculator/UnaryOperation.java | 68 - .../tests/calculator/UnionProperties.java | 183 - .../tests/calculator/UpcasingReflectable.java | 50 - .../calculator/UseBundledDependency.java | 35 - .../jsii/tests/calculator/UseCalcBase.java | 37 - .../UsesInterfaceWithProperties.java | 65 - .../tests/calculator/VariadicInvoker.java | 39 - .../jsii/tests/calculator/VariadicMethod.java | 40 - .../calculator/VirtualMethodPlayground.java | 77 - .../jsii/tests/calculator/VoidCallback.java | 75 - .../WithPrivatePropertyInConstructor.java | 48 - .../composition/CompositeOperation.java | 182 - .../derived_class_has_no_properties/Base.java | 43 - .../Derived.java | 27 - .../Foo.java | 43 - .../Hello.java | 117 - .../Hello.java | 117 - .../jsii/tests/calculator/package-info.java | 31 - .../calculator/python_self/ClassWithSelf.java | 47 - .../python_self/ClassWithSelfKwarg.java | 82 - .../python_self/IInterfaceWithSelf.java | 39 - .../python_self/StructWithSelf.java | 117 - .../tests/calculator/submodule/MyClass.java | 123 - .../back_references/MyClassReference.java | 117 - .../submodule/child/Awesomeness.java | 17 - .../calculator/submodule/child/Goodness.java | 31 - .../submodule/child/InnerClass.java | 37 - .../submodule/child/KwargsProps.java | 144 - .../submodule/child/OuterClass.java | 39 - .../calculator/submodule/child/SomeEnum.java | 15 - .../submodule/child/SomeStruct.java | 117 - .../calculator/submodule/child/Structure.java | 117 - .../calculator/submodule/isolated/Kwargs.java | 38 - .../nested_submodule/Namespaced.java | 60 - .../deeply_nested/INamespaced.java | 35 - .../amazon/jsii/tests/calculator/$Module.txt | 213 - .../tests/calculator/jsii-calc@0.0.0.jsii.tgz | 2 - .../js/jsii-calc@0.0.0.jsii.tgz | 2 - .../expected.jsii-calc/python/MANIFEST.in | 1 - .../test/expected.jsii-calc/python/README.md | 27 - .../expected.jsii-calc/python/pyproject.toml | 3 - .../test/expected.jsii-calc/python/setup.py | 71 - .../python/src/jsii_calc/__init__.py | 10091 --- .../python/src/jsii_calc/_jsii/__init__.py | 23 - .../jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz | 2 - .../src/jsii_calc/composition/__init__.py | 152 - .../__init__.py | 66 - .../__init__.py | 86 - .../__init__.py | 55 - .../python/src/jsii_calc/py.typed | 1 - .../src/jsii_calc/python_self/__init__.py | 165 - .../src/jsii_calc/submodule/__init__.py | 95 - .../submodule/back_references/__init__.py | 57 - .../src/jsii_calc/submodule/child/__init__.py | 256 - .../jsii_calc/submodule/isolated/__init__.py | 44 - .../submodule/nested_submodule/__init__.py | 66 - .../deeply_nested/__init__.py | 59 - packages/jsii-pacmak/test/jsii-pacmak.test.ts | 169 + packages/jsii-pacmak/test/npm-modules.test.ts | 102 +- .../jsii-pacmak/test/targets/python.test.ts | 65 +- packages/jsii-reflect/bin/jsii-tree | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-reflect/test/jsii-tree.test.ts | 2 + packages/jsii-rosetta/package.json | 7 +- packages/jsii/package.json | 4 +- packages/oo-ascii-tree/package.json | 2 +- tools/jsii-build-tools/bin/diff-test | 99 +- tools/jsii-build-tools/package.json | 4 + yarn.lock | 61 +- 736 files changed, 68663 insertions(+), 63309 deletions(-) rename .mergify.yml => .mergify/config.yml (65%) delete mode 100755 packages/@jsii/python-runtime/bin/generate delete mode 100755 packages/@jsii/python-runtime/bin/generate-calc create mode 100644 packages/@jsii/python-runtime/build-tools/_constants.ts create mode 100644 packages/@jsii/python-runtime/build-tools/deps.ts create mode 100644 packages/@jsii/python-runtime/build-tools/gen-calc.ts create mode 100644 packages/@jsii/python-runtime/build-tools/gen.ts create mode 100644 packages/@jsii/python-runtime/build-tools/venv.ts create mode 100644 packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap delete mode 100755 packages/jsii-pacmak/test/diff-test.sh delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/pom.xml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/js/jsii-calc-base-of-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/MANIFEST.in delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/README.md delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/pyproject.toml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/py.typed delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/pom.xml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/js/jsii-calc-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/MANIFEST.in delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/README.md delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/pyproject.toml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/py.typed delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/pom.xml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/js/jsii-calc-lib@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/MANIFEST.in delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/README.md delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/pyproject.toml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/py.typed delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/pom.xml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Add.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Power.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/js/jsii-calc@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/MANIFEST.in delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/README.md delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/pyproject.toml delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/py.typed delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/isolated/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py create mode 100644 packages/jsii-pacmak/test/jsii-pacmak.test.ts diff --git a/.gitattributes b/.gitattributes index 7e451e4406..b2d7a6b1dc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,4 +14,5 @@ # Github Linguist configuration (https://github.com/github/linguist) yarn.lock linguidt-generated +*.snap linguist-generated docs/** linguist-documentation diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 668f033357..2094a02ac5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,8 +44,11 @@ jobs: - name: Locate Caches id: cache-locations run: |- + echo "::group::Upgrade pip" # Need to have PIP >= 20.1 for "pip cache dir" to work python3 -m pip install --upgrade pip + echo "::endgroup" + echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" echo "::set-output name=yarn-cache::$(yarn cache dir)" - name: Cache @@ -63,18 +66,26 @@ jobs: ${{ runner.os }}- # Prepare dependencies and build - name: Install Dependencies - run: yarn install --frozen-lockfile + run: |- + yarn install --frozen-lockfile - name: Full Build - run: yarn build - - name: "Upload Artifact: built-tree" + run: |- + yarn build + - name: Prepare Artifact + run: |- + tar Jcvf ${{ runner.temp }}/built-tree.tar.xz \ + --exclude='**/.env' \ + --exclude='**/node_modules' \ + --exclude='**/project/.m2/repository' \ + --exclude-tag-all='pyenv.cfg' \ + --directory=${{ github.workspace }} \ + . + # Upload artifact (we'll tar it up to save time) + - name: 'Upload Artifact: built-tree' uses: actions/upload-artifact@v2 with: name: built-tree - path: |- - ${{ github.workspace }} - !**/.env/** - !**/node_modules/** - !**/project/.m2/** + path: ${{ runner.temp }}/built-tree.tar.xz create-release-package: name: Create Release Package @@ -104,8 +115,11 @@ jobs: - name: Locate Caches id: cache-locations run: |- + echo "::group::Upgrade pip" # Need to have PIP >= 20.1 for "pip cache dir" to work python3 -m pip install --upgrade pip + echo "::endgroup" + echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" echo "::set-output name=yarn-cache::$(yarn cache dir)" - name: Cache @@ -140,17 +154,22 @@ jobs: --prerelease=nightly.$(date -u +'%Y%m%d') \ --skip.commit # Now we'll be preparing a release package (with the "real" version) - - name: Align Versions - run: ./scripts/align-version.sh + - name: Run "align-version.sh" + run: |- + ./scripts/align-version.sh - name: Full Build - run: yarn build - - name: Package Libraries - run: yarn package - - name: "Upload Artifact: release-package" + run: |- + yarn build + - name: Package + run: |- + yarn package + # Upload artifacts + - name: 'Upload Artifact: release-package' uses: actions/upload-artifact@v2 with: name: release-package path: ${{ github.workspace }}/dist/ + test: name: Test (${{ matrix.os }} / java ${{ matrix.java }} / node ${{ matrix.node }} / python ${{ matrix.python }}) needs: build @@ -226,11 +245,27 @@ jobs: uses: actions/download-artifact@v2 with: name: built-tree + # Put GitBash ahead of $PATH, so we avoid surprises due to bad tar, etc... + # (technically a hack around https://github.com/actions/virtual-environments/issues/282) + - name: 'Windows: Put GitBash ahead of $PATH' + if: runner.os == 'Windows' + run: |- + echo "::add-path::C:\Program Files\Git\usr\bin" + - name: Extract Artifact + run: |- + echo "::group::Untar Archive" + tar Jxvf built-tree.tar.xz + echo "::endgroup" + + rm built-tree.tar.xz - name: Locate Caches id: cache-locations run: |- + echo "::group::Upgrade pip" # Need to have PIP >= 20.1 for "pip cache dir" to work python3 -m pip install --upgrade pip + echo "::endgroup" + echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" echo "::set-output name=yarn-cache::$(yarn cache dir)" - name: Cache @@ -247,9 +282,10 @@ jobs: ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}- ${{ runner.os }}-node@${{ matrix.node }}- ${{ runner.os }}- - # Install dependencies (ensures arch/os specific packages are re-built) + # Run the tests - name: Install Dependencies - run: yarn install --frozen-lockfile - # Run all tests + run: |- + yarn install --frozen-lockfile - name: Test - run: yarn test + run: |- + yarn test diff --git a/.mergify.yml b/.mergify/config.yml similarity index 65% rename from .mergify.yml rename to .mergify/config.yml index 27750546cf..8fc821ee23 100644 --- a/.mergify.yml +++ b/.mergify/config.yml @@ -31,6 +31,21 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # One test for each OS + - status-success~=^Test \(ubuntu-.*$ + - status-success~=^Test \(macos-.*$ + - status-success~=^Test \(windows-.*$ + # One test for each supported nodejs version + - status-success~=^Test \(.* node 10 .*$ + - status-success~=^Test \(.* node 12 .*$ + - status-success~=^Test \(.* node 14 .*$ + # One test for Java 8 and 11 + - status-success~=^Test \(.* java 8 .*$ + - status-success~=^Test \(.* java 11 .*$ + # One test for Python 3.6, 3.7, and 3.8 + - status-success~=^Test \(.* python 3\.6 .*$ + - status-success~=^Test \(.* python 3\.7 .*$ + - status-success~=^Test \(.* python 3\.8 .*$ - name: Synchronize that PR to upstream and merge it (squash) actions: @@ -61,6 +76,21 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # One test for each OS + - status-success~=^Test \(ubuntu-.*$ + - status-success~=^Test \(macos-.*$ + - status-success~=^Test \(windows-.*$ + # One test for each supported nodejs version + - status-success~=^Test \(.* node 10 .*$ + - status-success~=^Test \(.* node 12 .*$ + - status-success~=^Test \(.* node 14 .*$ + # One test for Java 8 and 11 + - status-success~=^Test \(.* java 8 .*$ + - status-success~=^Test \(.* java 11 .*$ + # One test for Python 3.6, 3.7, and 3.8 + - status-success~=^Test \(.* python 3\.6 .*$ + - status-success~=^Test \(.* python 3\.7 .*$ + - status-success~=^Test \(.* python 3\.8 .*$ - name: Synchronize that PR to upstream and merge it (no-squash) actions: @@ -91,6 +121,21 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # One test for each OS + - status-success~=^Test \(ubuntu-.*$ + - status-success~=^Test \(macos-.*$ + - status-success~=^Test \(windows-.*$ + # One test for each supported nodejs version + - status-success~=^Test \(.* node 10 .*$ + - status-success~=^Test \(.* node 12 .*$ + - status-success~=^Test \(.* node 14 .*$ + # One test for Java 8 and 11 + - status-success~=^Test \(.* java 8 .*$ + - status-success~=^Test \(.* java 11 .*$ + # One test for Python 3.6, 3.7, and 3.8 + - status-success~=^Test \(.* python 3\.6 .*$ + - status-success~=^Test \(.* python 3\.7 .*$ + - status-success~=^Test \(.* python 3\.8 .*$ - name: Clean branch up actions: diff --git a/package.json b/package.json index 6ef612549c..4c93c3e5b7 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "dist-clean": "lerna run dist-clean --stream && rm -rf dist", "fetch-dotnet-snk": "bash scripts/fetch-dotnet-snk.sh", "package": "bash scripts/package.sh", - "test": "lerna run test --stream", + "test": "lerna run test --concurrency=1 --stream", "test:integ": "lerna run test:integ --stream", - "test:update": "lerna run test:update --stream" + "test:update": "lerna run test:update --concurrency=1 --stream" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^3.8.0", diff --git a/packages/@jsii/dotnet-runtime-test/package.json b/packages/@jsii/dotnet-runtime-test/package.json index e43c1e62b6..5cca9e72f2 100644 --- a/packages/@jsii/dotnet-runtime-test/package.json +++ b/packages/@jsii/dotnet-runtime-test/package.json @@ -34,6 +34,6 @@ "@types/node": "^10.17.28", "jsii-calc": "^0.0.0", "jsii-pacmak": "^0.0.0", - "typescript": "~3.9.6" + "typescript": "~3.9.7" } } diff --git a/packages/@jsii/dotnet-runtime/package.json b/packages/@jsii/dotnet-runtime/package.json index 9e3affa226..7982baea60 100644 --- a/packages/@jsii/dotnet-runtime/package.json +++ b/packages/@jsii/dotnet-runtime/package.json @@ -43,6 +43,6 @@ "@types/semver": "^7.3.1", "jsii-build-tools": "^0.0.0", "semver": "^7.3.2", - "typescript": "~3.9.6" + "typescript": "~3.9.7" } } diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index ad21c36ba5..29c6a67fbd 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -36,7 +36,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "prettier": "^1.19.1", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "jest": { "errorOnDeprecated": true, diff --git a/packages/@jsii/java-runtime/package.json b/packages/@jsii/java-runtime/package.json index bac5b77033..13d72a29c1 100644 --- a/packages/@jsii/java-runtime/package.json +++ b/packages/@jsii/java-runtime/package.json @@ -35,6 +35,6 @@ "@jsii/runtime": "^0.0.0", "@types/node": "^10.17.28", "jsii-build-tools": "^0.0.0", - "typescript": "~3.9.6" + "typescript": "~3.9.7" } } diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 81d6d3a72f..b037733e92 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -52,7 +52,7 @@ "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^1.19.1", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "jest": { "collectCoverage": true, diff --git a/packages/@jsii/kernel/test/kernel.test.ts b/packages/@jsii/kernel/test/kernel.test.ts index 4ab494b0d2..e8ab48b1ee 100644 --- a/packages/@jsii/kernel/test/kernel.test.ts +++ b/packages/@jsii/kernel/test/kernel.test.ts @@ -76,27 +76,31 @@ defineTest.skip = function ( return defineTest(name, method, test.skip); }; -test('load preserves file permissions', async () => { - // Changing the umask to 077 (which would neutralize group/other permissions) - const originalUmask = process.umask(0o077); +// Note: this test asserts file permissions, which work differently on Windows, so we skip it there +(process.platform === 'win32' ? test.skip : test)( + 'load preserves file permissions', + async () => { + // Changing the umask to 077 (which would neutralize group/other permissions) + const originalUmask = process.umask(0o077); - try { - const kernel = await createCalculatorSandbox( - 'load_preserves_file_permissions', - ); + try { + const kernel = await createCalculatorSandbox( + 'load_preserves_file_permissions', + ); - const result = kernel.sinvoke({ - fqn: 'jsii-calc.UmaskCheck', - method: 'mode', - }); - expect(result.result).toBe(0o644); + const result = kernel.sinvoke({ + fqn: 'jsii-calc.UmaskCheck', + method: 'mode', + }); + expect(result.result).toBe(0o644); - return closeRecording(kernel); - } finally { - // Restore the original umask - process.umask(originalUmask); - } -}); + return closeRecording(kernel); + } finally { + // Restore the original umask + process.umask(originalUmask); + } + }, +); defineTest('stats() return sandbox statistics', (sandbox) => { const stats = sandbox.stats({}); diff --git a/packages/@jsii/python-runtime/bin/generate b/packages/@jsii/python-runtime/bin/generate deleted file mode 100755 index 77e97735f9..0000000000 --- a/packages/@jsii/python-runtime/bin/generate +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -import json -import os -import os.path -import shutil - -EMBEDDED_SOURCE = "../runtime/webpack/" -EMBEDDED_INFO = "../runtime/package.json" - - -# Copy metadata over into the Python package -with open("package.json") as fp: - data = json.load(fp) - -with open(EMBEDDED_INFO) as fp: - embedded_data = json.load(fp) - -with open("src/jsii/_metadata.json", "w") as fp: - json.dump( - { - "version": data["version"], - "description": data["description"], - "license": data["license"], - "author": data["author"]["name"], - "jsii-runtime": {"version": embedded_data["version"]}, - "bugs": data["bugs"]["url"], - "homepage": data["homepage"], - "repository": data["repository"]["url"], - }, - fp, - indent=2, - ) - - -# Embed the JSII runtime into the Python Package. -for filename in os.listdir(EMBEDDED_SOURCE): - filepath = os.path.join(EMBEDDED_SOURCE, filename) - shutil.copy2(filepath, "src/jsii/_embedded/jsii") diff --git a/packages/@jsii/python-runtime/bin/generate-calc b/packages/@jsii/python-runtime/bin/generate-calc deleted file mode 100755 index 8be9ca2154..0000000000 --- a/packages/@jsii/python-runtime/bin/generate-calc +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python3 -import os -import subprocess -import sys - -# Clean out this directory, as it otherwise may -# accumuluate multiple versions of the same library -# and pip will complain. -subprocess.run(['rm', '-rf', '.env/jsii-calc'], check=True) - -venv = os.path.join(os.getcwd(), '.env') - -subprocess.run( - [ - "jsii-pacmak", - "-t", - "python", - "-o", - ".env/jsii-calc", - "--recurse", - "../../jsii-calc", - ], - check=True, - env={ - **os.environ, - # Make sure we run within the virtual environment provisioned here... - 'PATH': "%s:%s" % (os.path.join(venv, 'bin'), os.environ['PATH']), - 'VIRTUAL_ENV': venv, - }, -) -subprocess.run( - [ - sys.executable, - "-m", - "pip", - "install", - "--upgrade", - ] - + - [x for x in os.listdir(".") if x.endswith(".whl")] - + - [os.path.join('.env/jsii-calc/python', x) for x in os.listdir(".env/jsii-calc/python") if x.endswith(".whl")], - check=True, -) diff --git a/packages/@jsii/python-runtime/build-tools/_constants.ts b/packages/@jsii/python-runtime/build-tools/_constants.ts new file mode 100644 index 0000000000..9674acb8a6 --- /dev/null +++ b/packages/@jsii/python-runtime/build-tools/_constants.ts @@ -0,0 +1,28 @@ +import { spawnSync, SpawnOptions } from 'child_process'; +import { join, resolve } from 'path'; + +const venvRoot = resolve(__dirname, '..', '.env'); + +export const venv = { + root: venvRoot, + bin: join(venvRoot, process.platform === 'win32' ? 'Scripts' : 'bin'), +} as const; + +export function runCommand( + command: string, + args: readonly string[], + opts: SpawnOptions = {}, +): void { + const result = spawnSync(command, args, { + ...opts, + shell: process.platform === 'win32', + stdio: 'inherit', + }); + if (result.status !== 0) { + throw new Error( + `Command failed with ${ + result.signal ? `signal ${result.signal}` : `code ${result.status}` + }: ${command} ${args.join(' ')}`, + ); + } +} diff --git a/packages/@jsii/python-runtime/build-tools/deps.ts b/packages/@jsii/python-runtime/build-tools/deps.ts new file mode 100644 index 0000000000..6e76a9b2b2 --- /dev/null +++ b/packages/@jsii/python-runtime/build-tools/deps.ts @@ -0,0 +1,33 @@ +#!/usr/bin/env npx ts-node + +import { join } from 'path'; +import { venv, runCommand } from './_constants'; + +const python = join(venv.bin, 'python'); + +runCommand('python3', ['-m', 'venv', venv.root]); + +const env = { + ...process.env, + PATH: `${venv.bin}:${process.env.PATH}`, + VIRTUAL_ENV: venv.root, +}; + +runCommand( + python, + [ + '-m', + 'pip', + 'install', + '--no-input', + 'pip~=20.2', + 'setuptools~=46.1.3', + 'wheel~=0.34.2', + ], + { env }, +); +runCommand( + python, + ['-m', 'pip', 'install', '--no-input', '-r', 'requirements.txt'], + { env }, +); diff --git a/packages/@jsii/python-runtime/build-tools/gen-calc.ts b/packages/@jsii/python-runtime/build-tools/gen-calc.ts new file mode 100644 index 0000000000..da1667f3c1 --- /dev/null +++ b/packages/@jsii/python-runtime/build-tools/gen-calc.ts @@ -0,0 +1,39 @@ +#!/usr/bin/env npx ts-node + +import { readdirSync, removeSync } from 'fs-extra'; +import { join, resolve } from 'path'; +import { venv, runCommand } from './_constants'; + +const genRoot = join(venv.root, 'jsii-calc'); + +removeSync(genRoot); +runCommand( + 'npx', + [ + 'jsii-pacmak', + '-t', + 'python', + '-o', + genRoot, + '--recurse', + resolve(__dirname, '..', '..', '..', 'jsii-calc'), + ], + { + env: { + ...process.env, + PATH: `${venv.bin}:${process.env.PATH}`, + VIRTUAL_ENV: venv.root, + }, + }, +); + +runCommand(join(venv.bin, 'python'), [ + '-m', + 'pip', + 'install', + '--no-input', + '--upgrade', + ...readdirSync(join(genRoot, 'python')) + .filter((file) => file.endsWith('.whl')) + .map((file) => join(genRoot, 'python', file)), +]); diff --git a/packages/@jsii/python-runtime/build-tools/gen.ts b/packages/@jsii/python-runtime/build-tools/gen.ts new file mode 100644 index 0000000000..9ad96931da --- /dev/null +++ b/packages/@jsii/python-runtime/build-tools/gen.ts @@ -0,0 +1,39 @@ +#!/usr/bin/env npx ts-node + +import { copyFileSync, readdirSync, writeFileSync } from 'fs'; +import { join, resolve } from 'path'; + +const EMBEDDED_SOURCE = resolve(__dirname, '..', '..', 'runtime', 'webpack'); +const EMBEDDED_INFO = resolve(__dirname, '..', '..', 'runtime', 'package.json'); + +const data = require('../package.json'); +const embeddedData = require(EMBEDDED_INFO); + +writeFileSync( + resolve(__dirname, '..', 'src', 'jsii', '_metadata.json'), + JSON.stringify( + { + version: data.version, + description: data.description, + license: data.license, + author: data.author.name, + 'jsii-runtime': { + version: embeddedData.version, + }, + bugs: data.bugs.url, + homepage: data.homepage, + repository: data.repository.url, + }, + null, + 2, + ), + { encoding: 'utf-8' }, +); + +for (const filename of readdirSync(EMBEDDED_SOURCE)) { + const filepath = join(EMBEDDED_SOURCE, filename); + copyFileSync( + filepath, + resolve(__dirname, '..', 'src', 'jsii', '_embedded', 'jsii', filename), + ); +} diff --git a/packages/@jsii/python-runtime/build-tools/venv.ts b/packages/@jsii/python-runtime/build-tools/venv.ts new file mode 100644 index 0000000000..725eff7b89 --- /dev/null +++ b/packages/@jsii/python-runtime/build-tools/venv.ts @@ -0,0 +1,11 @@ +#!/usr/bin/env npx ts-node + +import { join } from 'path'; +import { venv, runCommand } from './_constants'; + +const [, , command, ...args] = process.argv; + +const argv0 = join(venv.bin, command); + +console.log(`Running: ${argv0} ${args.join(' ')}`); +runCommand(argv0, args); diff --git a/packages/@jsii/python-runtime/package.json b/packages/@jsii/python-runtime/package.json index 7a39a64e6a..3c53107395 100644 --- a/packages/@jsii/python-runtime/package.json +++ b/packages/@jsii/python-runtime/package.json @@ -22,22 +22,25 @@ }, "main": "index.js", "scripts": { - "generate": "python3 bin/generate", - "deps": "python3 -m venv .env && .env/bin/pip install pip~=20.2 setuptools~=46.1.3 wheel~=0.34.2 && .env/bin/pip install -r requirements.txt", + "generate": "ts-node build-tools/gen.ts", + "deps": "ts-node build-tools/deps.ts", "dist-clean": "rm -rf dist", "build": "cp ../../../README.md . && rm -f jsii-*.whl && npm run generate && npm run deps", "package": "package-python && package-private", "test": "npm run test:gen && npm run test:run", - "test:gen": "npm run deps && .env/bin/python bin/generate-calc", - "test:run": ".env/bin/py.test -v --mypy", + "test:gen": "npm run deps && ts-node build-tools/gen-calc.ts", + "test:run": "ts-node build-tools/venv.ts py.test -v --mypy", "test:update": "UPDATE_DIFF=1 npm run test" }, "dependencies": { "@jsii/runtime": "^0.0.0" }, "devDependencies": { + "fs-extra": "^9.0.1", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", - "jsii-pacmak": "^0.0.0" + "jsii-pacmak": "^0.0.0", + "ts-node": "^8.10.2", + "typescript": "~3.9.7" } } diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 6b27bf33ca..de6341cabf 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -51,7 +51,7 @@ "prettier": "^1.19.1", "source-map": "^0.7.3", "source-map-loader": "^1.0.1", - "typescript": "~3.9.6", + "typescript": "~3.9.7", "wasm-loader": "^1.3.0", "webpack": "^4.44.1", "webpack-cli": "^3.3.12" diff --git a/packages/@jsii/runtime/test/kernel-host.test.ts b/packages/@jsii/runtime/test/kernel-host.test.ts index 46bfe8704b..839461c1ab 100644 --- a/packages/@jsii/runtime/test/kernel-host.test.ts +++ b/packages/@jsii/runtime/test/kernel-host.test.ts @@ -96,7 +96,7 @@ function loadRequest(library: string): api.LoadRequest { const result = child.spawnSync( 'npm', ['pack', path.dirname(require.resolve(`${library}/package.json`))], - { cwd: targetDir, stdio: ['inherit', 'pipe', 'pipe'] }, + { cwd: targetDir, shell: true, stdio: ['inherit', 'pipe', 'pipe'] }, ); if (result.error) { throw result.error; diff --git a/packages/@jsii/runtime/test/playback.test.ts b/packages/@jsii/runtime/test/playback.test.ts index 0104222902..0a62fb701e 100644 --- a/packages/@jsii/runtime/test/playback.test.ts +++ b/packages/@jsii/runtime/test/playback.test.ts @@ -37,11 +37,15 @@ function createRecords(): string { path.join(os.tmpdir(), 'jsii-kernel.recording.'), ); const result = child.spawnSync( - require.resolve('jest/bin/jest'), - [require.resolve('@jsii/kernel/test/kernel.test.js')], + process.execPath, + [ + ...process.execArgv, + require.resolve('jest/bin/jest'), + '--coverage=false', + 'test/kernel.test.js', + ], { env: { ...process.env, JSII_RECORD: records, JSII_NOSTACK: '1' }, - shell: true, stdio: ['inherit', 'pipe', 'pipe'], cwd: path.resolve( require.resolve('@jsii/kernel/test/kernel.test.js'), @@ -56,8 +60,20 @@ function createRecords(): string { } if (result.signal != null || result.status !== 0) { - console.log(result.stdout); - console.error(result.stderr.toString('utf-8')); + console.log( + result.stdout + .toString('utf-8') + .split('\n') + .map((x) => `STDOUT: ${x}`) + .join('\n'), + ); + console.error( + result.stderr + .toString('utf-8') + .split('\n') + .map((x) => `STDERR: ${x}`) + .join('\n'), + ); } if (result.signal != null) { diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 4cfadcab83..68bfa89254 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -42,7 +42,7 @@ "jest": "^26.2.2", "jsii-build-tools": "^0.0.0", "prettier": "^1.19.1", - "typescript": "~3.9.6", + "typescript": "~3.9.7", "typescript-json-schema": "^0.42.0" }, "jest": { diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 1cdfb0f41b..d7fda28ab4 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -44,7 +44,7 @@ "eslint-plugin-prettier": "^3.1.4", "jest": "^26.2.2", "prettier": "^2.0.5", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "jest": { "collectCoverage": true, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index b0a89faee4..3627067f02 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -30,12 +30,12 @@ "jest": "^26.2.2", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "dependencies": { "@jsii/spec": "^0.0.0", "inquirer": "^7.3.3", - "yargs": "^15.4.0" + "yargs": "^15.4.1" }, "jest": { "collectCoverage": true, diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index e0c42e100a..d4d93dc2c0 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -37,7 +37,7 @@ "fs-extra": "^9.0.1", "jsii-reflect": "^0.0.0", "log4js": "^6.3.0", - "typescript": "~3.9.6", + "typescript": "~3.9.7", "yargs": "^15.4.0" }, "devDependencies": { diff --git a/packages/jsii-pacmak/lib/npm-modules.ts b/packages/jsii-pacmak/lib/npm-modules.ts index 435f0ecb39..cb86926ade 100644 --- a/packages/jsii-pacmak/lib/npm-modules.ts +++ b/packages/jsii-pacmak/lib/npm-modules.ts @@ -14,7 +14,10 @@ import { topologicalSort } from './toposort'; * * The result is topologically sorted. */ -export async function findJsiiModules(directories: string[], recurse: boolean) { +export async function findJsiiModules( + directories: string[], + recurse: boolean, +): Promise { const ret: JsiiModule[] = []; const visited = new Set(); @@ -83,7 +86,9 @@ export async function findJsiiModules(directories: string[], recurse: boolean) { } } -export async function updateAllNpmIgnores(packages: JsiiModule[]) { +export async function updateAllNpmIgnores( + packages: JsiiModule[], +): Promise { await Promise.all( packages.map((pkg) => updateNpmIgnore(pkg.moduleDirectory, pkg.outputDirectory), diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts index 49d525b414..691655584c 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts @@ -74,9 +74,9 @@ export class DotNetGenerator extends Generator { super.generate(fingerprint); } - public async save(outdir: string, tarball: string) { + public async save(outdir: string, tarball: string): Promise { // Generating the csproj and AssemblyInfo.cs files - const tarballFileName = tarball.substr(tarball.lastIndexOf('/') + 1); + const tarballFileName = path.basename(tarball); const filegen = new FileGenerator( this.assembly, tarballFileName, diff --git a/packages/jsii-pacmak/lib/targets/java.ts b/packages/jsii-pacmak/lib/targets/java.ts index 9d5d664aa4..ca722f187a 100644 --- a/packages/jsii-pacmak/lib/targets/java.ts +++ b/packages/jsii-pacmak/lib/targets/java.ts @@ -2060,11 +2060,13 @@ class JavaGenerator extends Generator { name: fqn.replace(/.*\.([^.]+)$/, '$1'), }); - const name = `${path.join( + const parts = [ ...packageName.split('.'), - typeName.split('.')[0], - )}${ext}`; - const filePath = path.join('src', 'main', 'resources', name); + `${typeName.split('.')[0]}${ext}`, + ]; + // Resource names are /-delimited paths (even on Windows *wink wink*) + const name = parts.join('/'); + const filePath = path.join('src', 'main', 'resources', ...parts); return { filePath, name }; } diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index b77b511a08..16e6feb547 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -1,11 +1,11 @@ +import * as spec from '@jsii/spec'; import { CodeMaker, toSnakeCase } from 'codemaker'; import * as escapeStringRegexp from 'escape-string-regexp'; import * as fs from 'fs-extra'; import * as reflect from 'jsii-reflect'; +import * as lockfile from 'lockfile'; import * as os from 'os'; import * as path from 'path'; -import * as spec from '@jsii/spec'; -import { Stability } from '@jsii/spec'; import { Generator, GeneratorOptions } from '../generator'; import { info, warn } from '../logging'; import { md2rst } from '../markdown'; @@ -33,6 +33,8 @@ import { die, toPythonIdentifier } from './python/util'; // eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-require-imports const spdxLicenseList = require('spdx-license-list'); +const VENV_BIN = process.platform === 'win32' ? 'Scripts' : 'bin'; + export default class Python extends Target { private static BLACK_PATH?: Promise; @@ -88,26 +90,48 @@ export default class Python extends Target { '.jsii-cache', 'python-black', ); - const exists = await fs.pathExists(blackInstallDir); - if (!exists) { + const venvRoot = path.join(blackInstallDir, 'venv'); + const black = path.join(venvRoot, VENV_BIN, 'black'); + + await fs.mkdirp(blackInstallDir); + const lockFile = path.join(blackInstallDir, 'busy.lock'); + + await lock(lockFile); + + try { + const existing = await cachedBlackPath(); + if (existing != null) { + return existing; + } + info( - `No existing black installation. Install afresh at ${blackInstallDir}...`, - ); - await fs.mkdirp(blackInstallDir); - await shell( - 'python3', - ['-m', 'venv', path.join(blackInstallDir, '.env')], - { - cwd: blackInstallDir, - }, + `No existing black installations. install afresh at ${blackInstallDir}...`, ); + + await shell('python3', ['-m', 'venv', venvRoot], { + cwd: blackInstallDir, + }); await shell( - path.join(blackInstallDir, '.env', 'bin', 'pip'), - ['install', 'black'], + path.join(venvRoot, VENV_BIN, 'pip'), + ['install', '--no-input', 'black'], { cwd: blackInstallDir }, ); + } finally { + await unlock(lockFile); + } + + return (await cachedBlackPath())!; + + async function cachedBlackPath() { + const suffixes = process.platform === 'win32' ? ['.exe', '.bat'] : ['']; + for (const suffix of suffixes) { + // eslint-disable-next-line no-await-in-loop + if (await fs.pathExists(`${black}${suffix}`)) { + return `${black}${suffix}`; + } + } + return undefined; } - return path.join(blackInstallDir, '.env', 'bin', 'black'); } } @@ -2391,9 +2415,9 @@ function onelineDescription(docs: spec.Docs | undefined) { return parts.join(' ').replace(/\s+/g, ' '); } -function shouldMentionStability(s: Stability) { +function shouldMentionStability(s: spec.Stability) { // Don't render "stable" or "external", those are both stable by implication. - return s === Stability.Deprecated || s === Stability.Experimental; + return s === spec.Stability.Deprecated || s === spec.Stability.Experimental; } function isStruct( @@ -2423,3 +2447,27 @@ function slugifyAsNeeded(name: string, inUse: readonly string[]): string { } return name; } + +async function lock(path: string, opts: lockfile.Options = { stale: 60_000 }) { + return new Promise((ok, ko) => + lockfile.lock(path, opts, (error) => { + if (error != null) { + ko(error); + } else { + ok(); + } + }), + ); +} + +async function unlock(path: string) { + return new Promise((ok, ko) => + lockfile.unlock(path, (error) => { + if (error != null) { + ko(error); + } else { + ok(); + } + }), + ); +} diff --git a/packages/jsii-pacmak/lib/util.ts b/packages/jsii-pacmak/lib/util.ts index fdd6c596e1..2d85818cb8 100644 --- a/packages/jsii-pacmak/lib/util.ts +++ b/packages/jsii-pacmak/lib/util.ts @@ -69,13 +69,12 @@ export async function shell( return ok(out); } const err = Buffer.concat(stderr).toString('utf-8'); - if (code != null) { - return ko( - new Error(`Process exited with status ${code}\n${out}\n${err}`), - ); - } + const reason = signal != null ? `signal ${signal}` : `status ${code}`; + const command = `${cmd} ${args.join(' ')}`; return ko( - new Error(`Process terminated by signal ${signal}\n${out}\n${err}`), + new Error( + `Command exited with ${reason}:\n- Command: ${command}\n- STDOUT:\n${out}\n- STDERR:\n${err}`, + ), ); }); }); diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 5a8a42cdab..a0fbc9b086 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -30,8 +30,8 @@ "watch": "tsc --build -w", "lint": "eslint . --ext .js,.ts --ignore-path=.gitignore", "lint:fix": "yarn lint --fix", - "test": "jest && bash test/diff-test.sh && bash test/build-test.sh", - "test:update": "UPDATE_DIFF=1 bash test/diff-test.sh && bash test/build-test.sh && jest -u", + "test": "jest && bash test/build-test.sh", + "test:update": "jest -u && bash test/build-test.sh", "package": "package-js" }, "dependencies": { @@ -43,10 +43,11 @@ "fs-extra": "^9.0.1", "jsii-reflect": "^0.0.0", "jsii-rosetta": "^0.0.0", + "lockfile": "^1.0.4", "semver": "^7.3.2", "spdx-license-list": "^6.2.0", "xmlbuilder": "^15.1.1", - "yargs": "^15.4.0" + "yargs": "^15.4.1" }, "devDependencies": { "@jsii/dotnet-runtime": "^0.0.0", @@ -56,6 +57,7 @@ "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.9", + "@types/lockfile": "^1.0.1", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/semver": "^7.3.1", @@ -68,7 +70,7 @@ "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", "prettier": "^2.0.5", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "keywords": [ "jsii", diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap new file mode 100644 index 0000000000..204f67e395 --- /dev/null +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap @@ -0,0 +1,67839 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Generated code for "@scope/jsii-calc-base": / 1`] = ` + + ┣━ 📁 dotnet + ┃ ┗━ 📁 Amazon.JSII.Tests.CalculatorPackageId.BasePackageId + ┃ ┣━ 📄 .jsii + ┃ ┣━ 📁 Amazon + ┃ ┃ ┗━ 📁 JSII + ┃ ┃ ┗━ 📁 Tests + ┃ ┃ ┗━ 📁 CalculatorNamespace + ┃ ┃ ┗━ 📁 BaseNamespace + ┃ ┃ ┣━ 📄 Base.cs + ┃ ┃ ┣━ 📄 BaseProps.cs + ┃ ┃ ┣━ 📄 BasePropsProxy.cs + ┃ ┃ ┣━ 📄 BaseProxy.cs + ┃ ┃ ┣━ 📄 IBaseInterface.cs + ┃ ┃ ┣━ 📄 IBaseInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IBaseProps.cs + ┃ ┃ ┗━ 📁 Internal + ┃ ┃ ┗━ 📁 DependencyResolution + ┃ ┃ ┗━ 📄 Anchor.cs + ┃ ┣━ 📄 Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj + ┃ ┣━ 📄 AssemblyInfo.cs + ┃ ┗━ 📄 scope-jsii-calc-base-0.0.0.tgz + ┣━ 📁 java + ┃ ┣━ 📄 pom.xml + ┃ ┗━ 📁 src + ┃ ┗━ 📁 main + ┃ ┣━ 📁 java + ┃ ┃ ┗━ 📁 software + ┃ ┃ ┗━ 📁 amazon + ┃ ┃ ┗━ 📁 jsii + ┃ ┃ ┗━ 📁 tests + ┃ ┃ ┗━ 📁 calculator + ┃ ┃ ┗━ 📁 base + ┃ ┃ ┣━ 📄 $Module.java + ┃ ┃ ┣━ 📄 Base.java + ┃ ┃ ┣━ 📄 BaseProps.java + ┃ ┃ ┗━ 📄 IBaseInterface.java + ┃ ┗━ 📁 resources + ┃ ┗━ 📁 software + ┃ ┗━ 📁 amazon + ┃ ┗━ 📁 jsii + ┃ ┗━ 📁 tests + ┃ ┗━ 📁 calculator + ┃ ┗━ 📁 base + ┃ ┣━ 📄 $Module.txt + ┃ ┗━ 📄 jsii-calc-base@0.0.0.jsii.tgz + ┣━ 📁 js + ┃ ┗━ 📄 jsii-calc-base@0.0.0.jsii.tgz + ┗━ 📁 python + ┣━ 📄 MANIFEST.in + ┣━ 📄 pyproject.toml + ┣━ 📄 README.md + ┣━ 📄 setup.py + ┗━ 📁 src + ┗━ 📁 scope + ┗━ 📁 jsii_calc_base + ┣━ 📄 __init__.py + ┣━ 📁 _jsii + ┃ ┣━ 📄 __init__.py + ┃ ┗━ 📄 jsii-calc-base@0.0.0.jsii.tgz + ┗━ 📄 py.typed +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii 1`] = ` +Object { + Symbol(file): "{ + \\"author\\": { + \\"name\\": \\"Amazon Web Services\\", + \\"organization\\": true, + \\"roles\\": [ + \\"author\\" + ], + \\"url\\": \\"https://aws.amazon.com\\" + }, + \\"dependencies\\": { + \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\" + }, + \\"dependencyClosure\\": { + \\"@scope/jsii-calc-base-of-base\\": { + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base-of-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base-of-base\\", + \\"module\\": \\"scope.jsii_calc_base_of_base\\" + } + } + } + }, + \\"description\\": \\"An example direct dependency for jsii-calc.\\", + \\"homepage\\": \\"https://github.com/aws/jsii\\", + \\"jsiiVersion\\": \\"0.0.0\\", + \\"license\\": \\"Apache-2.0\\", + \\"name\\": \\"@scope/jsii-calc-base\\", + \\"repository\\": { + \\"directory\\": \\"packages/@scope/jsii-calc-base\\", + \\"type\\": \\"git\\", + \\"url\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"schema\\": \\"jsii/0.10.0\\", + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base\\", + \\"module\\": \\"scope.jsii_calc_base\\" + } + }, + \\"types\\": { + \\"@scope/jsii-calc-base.Base\\": { + \\"abstract\\": true, + \\"assembly\\": \\"@scope/jsii-calc-base\\", + \\"docs\\": { + \\"summary\\": \\"A base class.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-base.Base\\", + \\"initializer\\": {}, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 6 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"returns\\": \\"the name of the class (to verify native type names are created for derived classes).\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 10 + }, + \\"name\\": \\"typeName\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + } + ], + \\"name\\": \\"Base\\" + }, + \\"@scope/jsii-calc-base.BaseProps\\": { + \\"assembly\\": \\"@scope/jsii-calc-base\\", + \\"datatype\\": true, + \\"fqn\\": \\"@scope/jsii-calc-base.BaseProps\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 15 + }, + \\"name\\": \\"BaseProps\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 16 + }, + \\"name\\": \\"bar\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"@scope/jsii-calc-base.IBaseInterface\\": { + \\"assembly\\": \\"@scope/jsii-calc-base\\", + \\"fqn\\": \\"@scope/jsii-calc-base.IBaseInterface\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 19 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 20 + }, + \\"name\\": \\"bar\\" + } + ], + \\"name\\": \\"IBaseInterface\\" + } + }, + \\"version\\": \\"0.0.0\\", + \\"fingerprint\\": \\"ttHhQ5EzgjW0lybCNSKOfqilJ04kp4VK3arcpRl3rBM=\\" +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj 1`] = ` +Object { + Symbol(file): " + + + An example direct dependency for jsii-calc. + Amazon.JSII.Tests.CalculatorPackageId.BasePackageId + Apache-2.0 + 0.0.0 + + Amazon Web Services + Amazon Web Services + en-US + https://github.com/aws/jsii + https://github.com/aws/jsii.git + git + + true + true + true + true + enable + snupkg + netcoreapp3.1 + + + + + + + + + + 0612,0618 + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + /// A base class. + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: \\"@scope/jsii-calc-base.Base\\")] + public abstract class Base : DeputyBase + { + protected Base(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Base(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Base(DeputyProps props): base(props) + { + } + + /// the name of the class (to verify native type names are created for derived classes). + [JsiiMethod(name: \\"typeName\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public virtual object TypeName() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + #pragma warning disable CS8618 + + [JsiiByValue(fqn: \\"@scope/jsii-calc-base.BaseProps\\")] + public class BaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps + { + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Bar + { + get; + set; + } + + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base.BaseProps\\")] + internal sealed class BasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps + { + private BasePropsProxy(ByRefValue reference): base(reference) + { + } + + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Bar + { + get => GetInstanceProperty(); + } + + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + /// A base class. + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: \\"@scope/jsii-calc-base.Base\\")] + internal sealed class BaseProxy : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base + { + private BaseProxy(ByRefValue reference): base(reference) + { + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + [JsiiInterface(nativeType: typeof(IBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base.IBaseInterface\\")] + public interface IBaseInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface + { + [JsiiMethod(name: \\"bar\\")] + void Bar(); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base.IBaseInterface\\")] + internal sealed class IBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface + { + private IBaseInterfaceProxy(ByRefValue reference): base(reference) + { + } + + [JsiiMethod(name: \\"bar\\")] + public void Bar() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + [JsiiMethod(name: \\"foo\\")] + public void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace +{ + [JsiiInterface(nativeType: typeof(IBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base.BaseProps\\")] + public interface IBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps + { + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Bar + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` +Object { + Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution +{ + public sealed class Anchor + { + public Anchor() + { + new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly(\\"@scope/jsii-calc-base\\", \\"0.0.0\\", \\"scope-jsii-calc-base-0.0.0.tgz\\")] +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/pom.xml 1`] = ` +Object { + Symbol(file): " + + 4.0.0 + \${project.groupId}:\${project.artifactId} + An example direct dependency for jsii-calc. + https://github.com/aws/jsii + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + An OSI-approved license + + + + + Amazon Web Services + + author + + https://aws.amazon.com + + + + scm:git:https://github.com/aws/jsii.git + https://github.com/aws/jsii.git + + software.amazon.jsii.tests + calculator-base + 0.0.0 + jar + + UTF-8 + + + + software.amazon.jsii.tests + calculator-base-of-base + [0.0.0,0.0.1) + + + software.amazon.jsii + jsii-runtime + [0.0.0,0.0.1) + + + org.jetbrains + annotations + [16.0.3,20.0.0) + + + + javax.annotation + javax.annotation-api + [1.3.2,1.4.0) + compile + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + true + + true + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + attach-javadocs + + jar + + + + + false + protected + + **/$Module.java + + -J-XX:+TieredCompilation + -J-XX:TieredStopAtLevel=1 + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-maven + + enforce + + + + + 3.6 + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + false + + + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.base; + +import static java.util.Arrays.asList; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.IOException; +import java.io.Reader; +import java.io.UncheckedIOException; + +import java.nio.charset.StandardCharsets; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import software.amazon.jsii.JsiiModule; + +public final class $Module extends JsiiModule { + private static final Map MODULE_TYPES = load(); + + private static Map load() { + final Map result = new HashMap<>(); + final ClassLoader cl = $Module.class.getClassLoader(); + try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/base/$Module.txt\\"); + final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); + final BufferedReader br = new BufferedReader(rd)) { + br.lines() + .filter(line -> !line.trim().isEmpty()) + .forEach(line -> { + final String[] parts = line.split(\\"=\\", 2); + final String fqn = parts[0]; + final String className = parts[1]; + result.put(fqn, className); + }); + } + catch (final IOException exception) { + throw new UncheckedIOException(exception); + } + return result; + } + + private final Map> cache = new HashMap<>(); + + public $Module() { + super(\\"@scope/jsii-calc-base\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-base@0.0.0.jsii.tgz\\"); + } + + @Override + public List> getDependencies() { + return asList(software.amazon.jsii.tests.calculator.baseofbase.$Module.class); + } + + @Override + protected Class resolveClass(final String fqn) throws ClassNotFoundException { + if (!MODULE_TYPES.containsKey(fqn)) { + throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + } + String className = MODULE_TYPES.get(fqn); + if (!this.cache.containsKey(className)) { + this.cache.put(className, this.findClass(className)); + } + return this.cache.get(className); + } + + private Class findClass(final String binaryName) { + try { + return Class.forName(binaryName); + } + catch (final ClassNotFoundException exception) { + throw new RuntimeException(exception); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.base; + +/** + * A base class. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.Base\\") +public abstract class Base extends software.amazon.jsii.JsiiObject { + + protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Base(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + protected Base() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * @return the name of the class (to verify native type names are created for derived classes). + */ + public @org.jetbrains.annotations.NotNull java.lang.Object typeName() { + return this.jsiiCall(\\"typeName\\", java.lang.Object.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.base.Base { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.base; + +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.BaseProps\\") +@software.amazon.jsii.Jsii.Proxy(BaseProps.Jsii$Proxy.class) +public interface BaseProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps { + + @org.jetbrains.annotations.NotNull java.lang.String getBar(); + + /** + * @return a {@link Builder} of {@link BaseProps} + */ + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link BaseProps} + */ + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String bar; + private software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Sets the value of {@link BaseProps#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + public Builder bar(java.lang.String bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link BaseProps#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link BaseProps} + * @throws NullPointerException if any required attribute was not provided + */ + @Override + public BaseProps build() { + return new Jsii$Proxy(bar, foo); + } + } + + /** + * An implementation for {@link BaseProps} + */ + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BaseProps { + private final java.lang.String bar; + private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bar = this.jsiiGet(\\"bar\\", java.lang.String.class); + this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.lang.String getBar() { + return this.bar; + } + + @Override + public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"bar\\", om.valueToTree(this.getBar())); + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-base.BaseProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + BaseProps.Jsii$Proxy that = (BaseProps.Jsii$Proxy) o; + + if (!bar.equals(that.bar)) return false; + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.bar.hashCode(); + result = 31 * result + (this.foo.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.base; + +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.IBaseInterface\\") +@software.amazon.jsii.Jsii.Proxy(IBaseInterface.Jsii$Proxy.class) +public interface IBaseInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface { + + void bar(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.base.IBaseInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + @Override + public void bar() { + this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + } + + @Override + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt 1`] = ` +Object { + Symbol(file): "@scope/jsii-calc-base.Base=software.amazon.jsii.tests.calculator.base.Base +@scope/jsii-calc-base.BaseProps=software.amazon.jsii.tests.calculator.base.BaseProps +@scope/jsii-calc-base.IBaseInterface=software.amazon.jsii.tests.calculator.base.IBaseInterface +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base": /js/jsii-calc-base@0.0.0.jsii.tgz 1`] = `js/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/MANIFEST.in 1`] = ` +Object { + Symbol(file): "include pyproject.toml +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/README.md 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/pyproject.toml 1`] = ` +Object { + Symbol(file): "[build-system] +requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] +build-backend = \\"setuptools.build_meta\\" +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/setup.py 1`] = ` +Object { + Symbol(file): "import json +import setuptools + +kwargs = json.loads( + \\"\\"\\" +{ + \\"name\\": \\"scope.jsii-calc-base\\", + \\"version\\": \\"0.0.0\\", + \\"description\\": \\"An example direct dependency for jsii-calc.\\", + \\"license\\": \\"Apache-2.0\\", + \\"url\\": \\"https://github.com/aws/jsii\\", + \\"long_description_content_type\\": \\"text/markdown\\", + \\"author\\": \\"Amazon Web Services\\", + \\"project_urls\\": { + \\"Source\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"package_dir\\": { + \\"\\": \\"src\\" + }, + \\"packages\\": [ + \\"scope.jsii_calc_base\\", + \\"scope.jsii_calc_base._jsii\\" + ], + \\"package_data\\": { + \\"scope.jsii_calc_base._jsii\\": [ + \\"jsii-calc-base@0.0.0.jsii.tgz\\" + ], + \\"scope.jsii_calc_base\\": [ + \\"py.typed\\" + ] + }, + \\"python_requires\\": \\">=3.6\\", + \\"install_requires\\": [ + \\"jsii>=0.0.0, <0.0.1\\", + \\"publication>=0.0.3\\", + \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\" + ], + \\"classifiers\\": [ + \\"Intended Audience :: Developers\\", + \\"Operating System :: OS Independent\\", + \\"Programming Language :: JavaScript\\", + \\"Programming Language :: Python :: 3 :: Only\\", + \\"Programming Language :: Python :: 3.6\\", + \\"Programming Language :: Python :: 3.7\\", + \\"Programming Language :: Python :: 3.8\\", + \\"Typing :: Typed\\", + \\"License :: OSI Approved\\" + ] +} +\\"\\"\\" +) + +with open(\\"README.md\\") as fp: + kwargs[\\"long_description\\"] = fp.read() + + +setuptools.setup(**kwargs) +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ._jsii import * + +import scope.jsii_calc_base_of_base + + +class Base(metaclass=jsii.JSIIAbstractClass, jsii_type=\\"@scope/jsii-calc-base.Base\\"): + \\"\\"\\"A base class.\\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _BaseProxy + + def __init__(self) -> None: + jsii.create(Base, self, []) + + @jsii.member(jsii_name=\\"typeName\\") + def type_name(self) -> typing.Any: + \\"\\"\\" + return + :return: the name of the class (to verify native type names are created for derived classes). + \\"\\"\\" + return jsii.invoke(self, \\"typeName\\", []) + + +class _BaseProxy(Base): + pass + + +@jsii.data_type( + jsii_type=\\"@scope/jsii-calc-base.BaseProps\\", + jsii_struct_bases=[scope.jsii_calc_base_of_base.VeryBaseProps], + name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\"}, +) +class BaseProps(scope.jsii_calc_base_of_base.VeryBaseProps): + def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str) -> None: + \\"\\"\\" + :param foo: - + :param bar: - + \\"\\"\\" + self._values = { + \\"foo\\": foo, + \\"bar\\": bar, + } + + @builtins.property + def foo(self) -> scope.jsii_calc_base_of_base.Very: + return self._values.get(\\"foo\\") + + @builtins.property + def bar(self) -> str: + return self._values.get(\\"bar\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"BaseProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-base.IBaseInterface\\") +class IBaseInterface( + scope.jsii_calc_base_of_base.IVeryBaseInterface, jsii.compat.Protocol +): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBaseInterfaceProxy + + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> None: + ... + + +class _IBaseInterfaceProxy( + jsii.proxy_for(scope.jsii_calc_base_of_base.IVeryBaseInterface) +): + __jsii_type__ = \\"@scope/jsii-calc-base.IBaseInterface\\" + + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> None: + return jsii.invoke(self, \\"bar\\", []) + + +__all__ = [ + \\"Base\\", + \\"BaseProps\\", + \\"IBaseInterface\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/_jsii/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +import scope.jsii_calc_base_of_base._jsii + +__jsii_assembly__ = jsii.JSIIAssembly.load( + \\"@scope/jsii-calc-base\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc-base@0.0.0.jsii.tgz\\" +) + +__all__ = [ + \\"__jsii_assembly__\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/py.typed 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": / 1`] = ` + + ┣━ 📁 dotnet + ┃ ┗━ 📁 Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId + ┃ ┣━ 📄 .jsii + ┃ ┣━ 📁 Amazon + ┃ ┃ ┗━ 📁 JSII + ┃ ┃ ┗━ 📁 Tests + ┃ ┃ ┗━ 📁 CalculatorNamespace + ┃ ┃ ┗━ 📁 BaseOfBaseNamespace + ┃ ┃ ┣━ 📁 Internal + ┃ ┃ ┃ ┗━ 📁 DependencyResolution + ┃ ┃ ┃ ┗━ 📄 Anchor.cs + ┃ ┃ ┣━ 📄 IVeryBaseInterface.cs + ┃ ┃ ┣━ 📄 IVeryBaseInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IVeryBaseProps.cs + ┃ ┃ ┣━ 📄 Very.cs + ┃ ┃ ┣━ 📄 VeryBaseProps.cs + ┃ ┃ ┗━ 📄 VeryBasePropsProxy.cs + ┃ ┣━ 📄 Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj + ┃ ┣━ 📄 AssemblyInfo.cs + ┃ ┗━ 📄 scope-jsii-calc-base-of-base-0.0.0.tgz + ┣━ 📁 java + ┃ ┣━ 📄 pom.xml + ┃ ┗━ 📁 src + ┃ ┗━ 📁 main + ┃ ┣━ 📁 java + ┃ ┃ ┗━ 📁 software + ┃ ┃ ┗━ 📁 amazon + ┃ ┃ ┗━ 📁 jsii + ┃ ┃ ┗━ 📁 tests + ┃ ┃ ┗━ 📁 calculator + ┃ ┃ ┗━ 📁 baseofbase + ┃ ┃ ┣━ 📄 $Module.java + ┃ ┃ ┣━ 📄 IVeryBaseInterface.java + ┃ ┃ ┣━ 📄 Very.java + ┃ ┃ ┗━ 📄 VeryBaseProps.java + ┃ ┗━ 📁 resources + ┃ ┗━ 📁 software + ┃ ┗━ 📁 amazon + ┃ ┗━ 📁 jsii + ┃ ┗━ 📁 tests + ┃ ┗━ 📁 calculator + ┃ ┗━ 📁 baseofbase + ┃ ┣━ 📄 $Module.txt + ┃ ┗━ 📄 jsii-calc-base-of-base@0.0.0.jsii.tgz + ┣━ 📁 js + ┃ ┗━ 📄 jsii-calc-base-of-base@0.0.0.jsii.tgz + ┗━ 📁 python + ┣━ 📄 MANIFEST.in + ┣━ 📄 pyproject.toml + ┣━ 📄 README.md + ┣━ 📄 setup.py + ┗━ 📁 src + ┗━ 📁 scope + ┗━ 📁 jsii_calc_base_of_base + ┣━ 📄 __init__.py + ┣━ 📁 _jsii + ┃ ┣━ 📄 __init__.py + ┃ ┗━ 📄 jsii-calc-base-of-base@0.0.0.jsii.tgz + ┗━ 📄 py.typed +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii 1`] = ` +Object { + Symbol(file): "{ + \\"author\\": { + \\"name\\": \\"Amazon Web Services\\", + \\"organization\\": true, + \\"roles\\": [ + \\"author\\" + ], + \\"url\\": \\"https://aws.amazon.com\\" + }, + \\"description\\": \\"An example transitive dependency for jsii-calc.\\", + \\"homepage\\": \\"https://github.com/aws/jsii\\", + \\"jsiiVersion\\": \\"0.0.0\\", + \\"license\\": \\"Apache-2.0\\", + \\"name\\": \\"@scope/jsii-calc-base-of-base\\", + \\"repository\\": { + \\"directory\\": \\"packages/@scope/jsii-calc-base-of-base\\", + \\"type\\": \\"git\\", + \\"url\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"schema\\": \\"jsii/0.10.0\\", + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base-of-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base-of-base\\", + \\"module\\": \\"scope.jsii_calc_base_of_base\\" + } + }, + \\"types\\": { + \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\": { + \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", + \\"fqn\\": \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 1 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 2 + }, + \\"name\\": \\"foo\\" + } + ], + \\"name\\": \\"IVeryBaseInterface\\" + }, + \\"@scope/jsii-calc-base-of-base.Very\\": { + \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", + \\"fqn\\": \\"@scope/jsii-calc-base-of-base.Very\\", + \\"initializer\\": {}, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 9 + }, + \\"methods\\": [ + { + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 10 + }, + \\"name\\": \\"hey\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"Very\\" + }, + \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\": { + \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", + \\"datatype\\": true, + \\"fqn\\": \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 5 + }, + \\"name\\": \\"VeryBaseProps\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-base-of-base.Very\\" + } + } + ] + } + }, + \\"version\\": \\"0.0.0\\", + \\"fingerprint\\": \\"v3mwSbKGQ2aa8g0DEKIeaEXh3csX7PX2MJJxHVRufhI=\\" +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj 1`] = ` +Object { + Symbol(file): " + + + An example transitive dependency for jsii-calc. + Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId + Apache-2.0 + 0.0.0 + + Amazon Web Services + Amazon Web Services + en-US + https://github.com/aws/jsii + https://github.com/aws/jsii.git + git + + true + true + true + true + enable + snupkg + netcoreapp3.1 + + + + + + + + + 0612,0618 + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + [JsiiInterface(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\")] + public interface IVeryBaseInterface + { + [JsiiMethod(name: \\"foo\\")] + void Foo(); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\")] + internal sealed class IVeryBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface + { + private IVeryBaseInterfaceProxy(ByRefValue reference): base(reference) + { + } + + [JsiiMethod(name: \\"foo\\")] + public void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + [JsiiInterface(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + public interface IVeryBaseProps + { + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` +Object { + Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution +{ + public sealed class Anchor + { + public Anchor() + { + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.Very\\")] + public class Very : DeputyBase + { + public Very(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Very(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Very(DeputyProps props): base(props) + { + } + + [JsiiMethod(name: \\"hey\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double Hey() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + #pragma warning disable CS8618 + + [JsiiByValue(fqn: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + public class VeryBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps + { + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + internal sealed class VeryBasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps + { + private VeryBasePropsProxy(ByRefValue reference): base(reference) + { + } + + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly(\\"@scope/jsii-calc-base-of-base\\", \\"0.0.0\\", \\"scope-jsii-calc-base-of-base-0.0.0.tgz\\")] +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/pom.xml 1`] = ` +Object { + Symbol(file): " + + 4.0.0 + \${project.groupId}:\${project.artifactId} + An example transitive dependency for jsii-calc. + https://github.com/aws/jsii + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + An OSI-approved license + + + + + Amazon Web Services + + author + + https://aws.amazon.com + + + + scm:git:https://github.com/aws/jsii.git + https://github.com/aws/jsii.git + + software.amazon.jsii.tests + calculator-base-of-base + 0.0.0 + jar + + UTF-8 + + + + software.amazon.jsii + jsii-runtime + [0.0.0,0.0.1) + + + org.jetbrains + annotations + [16.0.3,20.0.0) + + + + javax.annotation + javax.annotation-api + [1.3.2,1.4.0) + compile + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + true + + true + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + attach-javadocs + + jar + + + + + false + protected + + **/$Module.java + + -J-XX:+TieredCompilation + -J-XX:TieredStopAtLevel=1 + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-maven + + enforce + + + + + 3.6 + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + false + + + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.IOException; +import java.io.Reader; +import java.io.UncheckedIOException; + +import java.nio.charset.StandardCharsets; + +import java.util.HashMap; +import java.util.Map; + +import software.amazon.jsii.JsiiModule; + +public final class $Module extends JsiiModule { + private static final Map MODULE_TYPES = load(); + + private static Map load() { + final Map result = new HashMap<>(); + final ClassLoader cl = $Module.class.getClassLoader(); + try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/baseofbase/$Module.txt\\"); + final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); + final BufferedReader br = new BufferedReader(rd)) { + br.lines() + .filter(line -> !line.trim().isEmpty()) + .forEach(line -> { + final String[] parts = line.split(\\"=\\", 2); + final String fqn = parts[0]; + final String className = parts[1]; + result.put(fqn, className); + }); + } + catch (final IOException exception) { + throw new UncheckedIOException(exception); + } + return result; + } + + private final Map> cache = new HashMap<>(); + + public $Module() { + super(\\"@scope/jsii-calc-base-of-base\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\"); + } + + @Override + protected Class resolveClass(final String fqn) throws ClassNotFoundException { + if (!MODULE_TYPES.containsKey(fqn)) { + throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + } + String className = MODULE_TYPES.get(fqn); + if (!this.cache.containsKey(className)) { + this.cache.put(className, this.findClass(className)); + } + return this.cache.get(className); + } + + private Class findClass(final String binaryName) { + try { + return Class.forName(binaryName); + } + catch (final ClassNotFoundException exception) { + throw new RuntimeException(exception); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; + +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\") +@software.amazon.jsii.Jsii.Proxy(IVeryBaseInterface.Jsii$Proxy.class) +public interface IVeryBaseInterface extends software.amazon.jsii.JsiiSerializable { + + void foo(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + @Override + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; + +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.Very\\") +public class Very extends software.amazon.jsii.JsiiObject { + + protected Very(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Very(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + public Very() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + public @org.jetbrains.annotations.NotNull java.lang.Number hey() { + return this.jsiiCall(\\"hey\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; + +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\") +@software.amazon.jsii.Jsii.Proxy(VeryBaseProps.Jsii$Proxy.class) +public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { + + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.baseofbase.Very getFoo(); + + /** + * @return a {@link Builder} of {@link VeryBaseProps} + */ + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link VeryBaseProps} + */ + public static final class Builder implements software.amazon.jsii.Builder { + private software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Sets the value of {@link VeryBaseProps#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link VeryBaseProps} + * @throws NullPointerException if any required attribute was not provided + */ + @Override + public VeryBaseProps build() { + return new Jsii$Proxy(foo); + } + } + + /** + * An implementation for {@link VeryBaseProps} + */ + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements VeryBaseProps { + private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + VeryBaseProps.Jsii$Proxy that = (VeryBaseProps.Jsii$Proxy) o; + + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.foo.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt 1`] = ` +Object { + Symbol(file): "@scope/jsii-calc-base-of-base.IVeryBaseInterface=software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface +@scope/jsii-calc-base-of-base.Very=software.amazon.jsii.tests.calculator.baseofbase.Very +@scope/jsii-calc-base-of-base.VeryBaseProps=software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /js/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `js/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/MANIFEST.in 1`] = ` +Object { + Symbol(file): "include pyproject.toml +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/README.md 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/pyproject.toml 1`] = ` +Object { + Symbol(file): "[build-system] +requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] +build-backend = \\"setuptools.build_meta\\" +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/setup.py 1`] = ` +Object { + Symbol(file): "import json +import setuptools + +kwargs = json.loads( + \\"\\"\\" +{ + \\"name\\": \\"scope.jsii-calc-base-of-base\\", + \\"version\\": \\"0.0.0\\", + \\"description\\": \\"An example transitive dependency for jsii-calc.\\", + \\"license\\": \\"Apache-2.0\\", + \\"url\\": \\"https://github.com/aws/jsii\\", + \\"long_description_content_type\\": \\"text/markdown\\", + \\"author\\": \\"Amazon Web Services\\", + \\"project_urls\\": { + \\"Source\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"package_dir\\": { + \\"\\": \\"src\\" + }, + \\"packages\\": [ + \\"scope.jsii_calc_base_of_base\\", + \\"scope.jsii_calc_base_of_base._jsii\\" + ], + \\"package_data\\": { + \\"scope.jsii_calc_base_of_base._jsii\\": [ + \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\" + ], + \\"scope.jsii_calc_base_of_base\\": [ + \\"py.typed\\" + ] + }, + \\"python_requires\\": \\">=3.6\\", + \\"install_requires\\": [ + \\"jsii>=0.0.0, <0.0.1\\", + \\"publication>=0.0.3\\" + ], + \\"classifiers\\": [ + \\"Intended Audience :: Developers\\", + \\"Operating System :: OS Independent\\", + \\"Programming Language :: JavaScript\\", + \\"Programming Language :: Python :: 3 :: Only\\", + \\"Programming Language :: Python :: 3.6\\", + \\"Programming Language :: Python :: 3.7\\", + \\"Programming Language :: Python :: 3.8\\", + \\"Typing :: Typed\\", + \\"License :: OSI Approved\\" + ] +} +\\"\\"\\" +) + +with open(\\"README.md\\") as fp: + kwargs[\\"long_description\\"] = fp.read() + + +setuptools.setup(**kwargs) +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ._jsii import * + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\") +class IVeryBaseInterface(jsii.compat.Protocol): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IVeryBaseInterfaceProxy + + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> None: + ... + + +class _IVeryBaseInterfaceProxy: + __jsii_type__ = \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\" + + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> None: + return jsii.invoke(self, \\"foo\\", []) + + +class Very(metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-base-of-base.Very\\"): + def __init__(self) -> None: + jsii.create(Very, self, []) + + @jsii.member(jsii_name=\\"hey\\") + def hey(self) -> jsii.Number: + return jsii.invoke(self, \\"hey\\", []) + + +@jsii.data_type( + jsii_type=\\"@scope/jsii-calc-base-of-base.VeryBaseProps\\", + jsii_struct_bases=[], + name_mapping={\\"foo\\": \\"foo\\"}, +) +class VeryBaseProps: + def __init__(self, *, foo: \\"Very\\") -> None: + \\"\\"\\" + :param foo: - + \\"\\"\\" + self._values = { + \\"foo\\": foo, + } + + @builtins.property + def foo(self) -> \\"Very\\": + return self._values.get(\\"foo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"VeryBaseProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"IVeryBaseInterface\\", + \\"Very\\", + \\"VeryBaseProps\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +__jsii_assembly__ = jsii.JSIIAssembly.load( + \\"@scope/jsii-calc-base-of-base\\", + \\"0.0.0\\", + __name__[0:-6], + \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\", +) + +__all__ = [ + \\"__jsii_assembly__\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/py.typed 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` + + ┣━ 📁 dotnet + ┃ ┗━ 📁 Amazon.JSII.Tests.CalculatorPackageId.LibPackageId + ┃ ┣━ 📄 .jsii + ┃ ┣━ 📁 Amazon + ┃ ┃ ┗━ 📁 JSII + ┃ ┃ ┗━ 📁 Tests + ┃ ┃ ┣━ 📁 CalculatorNamespace + ┃ ┃ ┃ ┗━ 📁 LibNamespace + ┃ ┃ ┃ ┣━ 📄 EnumFromScopedModule.cs + ┃ ┃ ┃ ┣━ 📄 IDoublable.cs + ┃ ┃ ┃ ┣━ 📄 IDoublableProxy.cs + ┃ ┃ ┃ ┣━ 📄 IFriendly.cs + ┃ ┃ ┃ ┣━ 📄 IFriendlyProxy.cs + ┃ ┃ ┃ ┣━ 📄 IMyFirstStruct.cs + ┃ ┃ ┃ ┣━ 📁 Internal + ┃ ┃ ┃ ┃ ┗━ 📁 DependencyResolution + ┃ ┃ ┃ ┃ ┗━ 📄 Anchor.cs + ┃ ┃ ┃ ┣━ 📄 IStructWithOnlyOptionals.cs + ┃ ┃ ┃ ┣━ 📄 IThreeLevelsInterface.cs + ┃ ┃ ┃ ┣━ 📄 IThreeLevelsInterfaceProxy.cs + ┃ ┃ ┃ ┣━ 📄 MyFirstStruct.cs + ┃ ┃ ┃ ┣━ 📄 MyFirstStructProxy.cs + ┃ ┃ ┃ ┣━ 📄 Number.cs + ┃ ┃ ┃ ┣━ 📄 Operation.cs + ┃ ┃ ┃ ┣━ 📄 OperationProxy.cs + ┃ ┃ ┃ ┣━ 📄 StructWithOnlyOptionals.cs + ┃ ┃ ┃ ┣━ 📄 StructWithOnlyOptionalsProxy.cs + ┃ ┃ ┃ ┣━ 📄 Value_.cs + ┃ ┃ ┃ ┗━ 📄 ValueProxy.cs + ┃ ┃ ┗━ 📁 CustomSubmoduleName + ┃ ┃ ┣━ 📄 IReflectable.cs + ┃ ┃ ┣━ 📄 IReflectableEntry.cs + ┃ ┃ ┣━ 📄 IReflectableProxy.cs + ┃ ┃ ┣━ 📄 ReflectableEntry.cs + ┃ ┃ ┣━ 📄 ReflectableEntryProxy.cs + ┃ ┃ ┗━ 📄 Reflector.cs + ┃ ┣━ 📄 Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj + ┃ ┣━ 📄 AssemblyInfo.cs + ┃ ┗━ 📄 scope-jsii-calc-lib-0.0.0.tgz + ┣━ 📁 java + ┃ ┣━ 📄 pom.xml + ┃ ┗━ 📁 src + ┃ ┗━ 📁 main + ┃ ┣━ 📁 java + ┃ ┃ ┗━ 📁 software + ┃ ┃ ┗━ 📁 amazon + ┃ ┃ ┗━ 📁 jsii + ┃ ┃ ┗━ 📁 tests + ┃ ┃ ┗━ 📁 calculator + ┃ ┃ ┣━ 📁 custom_submodule_name + ┃ ┃ ┃ ┣━ 📄 IReflectable.java + ┃ ┃ ┃ ┣━ 📄 ReflectableEntry.java + ┃ ┃ ┃ ┗━ 📄 Reflector.java + ┃ ┃ ┗━ 📁 lib + ┃ ┃ ┣━ 📄 $Module.java + ┃ ┃ ┣━ 📄 EnumFromScopedModule.java + ┃ ┃ ┣━ 📄 IDoublable.java + ┃ ┃ ┣━ 📄 IFriendly.java + ┃ ┃ ┣━ 📄 IThreeLevelsInterface.java + ┃ ┃ ┣━ 📄 MyFirstStruct.java + ┃ ┃ ┣━ 📄 Number.java + ┃ ┃ ┣━ 📄 Operation.java + ┃ ┃ ┣━ 📄 package-info.java + ┃ ┃ ┣━ 📄 StructWithOnlyOptionals.java + ┃ ┃ ┗━ 📄 Value.java + ┃ ┗━ 📁 resources + ┃ ┗━ 📁 software + ┃ ┗━ 📁 amazon + ┃ ┗━ 📁 jsii + ┃ ┗━ 📁 tests + ┃ ┗━ 📁 calculator + ┃ ┗━ 📁 lib + ┃ ┣━ 📄 $Module.txt + ┃ ┗━ 📄 jsii-calc-lib@0.0.0.jsii.tgz + ┣━ 📁 js + ┃ ┗━ 📄 jsii-calc-lib@0.0.0.jsii.tgz + ┗━ 📁 python + ┣━ 📄 MANIFEST.in + ┣━ 📄 pyproject.toml + ┣━ 📄 README.md + ┣━ 📄 setup.py + ┗━ 📁 src + ┗━ 📁 scope + ┗━ 📁 jsii_calc_lib + ┣━ 📄 __init__.py + ┣━ 📁 _jsii + ┃ ┣━ 📄 __init__.py + ┃ ┗━ 📄 jsii-calc-lib@0.0.0.jsii.tgz + ┣━ 📁 custom_submodule_name + ┃ ┗━ 📄 __init__.py + ┗━ 📄 py.typed +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii 1`] = ` +Object { + Symbol(file): "{ + \\"author\\": { + \\"name\\": \\"Amazon Web Services\\", + \\"organization\\": true, + \\"roles\\": [ + \\"author\\" + ], + \\"url\\": \\"https://aws.amazon.com\\" + }, + \\"dependencies\\": { + \\"@scope/jsii-calc-base\\": \\"^0.0.0\\", + \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\" + }, + \\"dependencyClosure\\": { + \\"@scope/jsii-calc-base\\": { + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base\\", + \\"module\\": \\"scope.jsii_calc_base\\" + } + } + }, + \\"@scope/jsii-calc-base-of-base\\": { + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base-of-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base-of-base\\", + \\"module\\": \\"scope.jsii_calc_base_of_base\\" + } + } + } + }, + \\"description\\": \\"A simple calcuator library built on JSII.\\", + \\"docs\\": { + \\"deprecated\\": \\"Really just deprecated for shows...\\", + \\"stability\\": \\"deprecated\\" + }, + \\"homepage\\": \\"https://github.com/aws/jsii\\", + \\"jsiiVersion\\": \\"0.0.0\\", + \\"license\\": \\"Apache-2.0\\", + \\"name\\": \\"@scope/jsii-calc-lib\\", + \\"repository\\": { + \\"directory\\": \\"packages/@scope/jsii-calc-lib\\", + \\"type\\": \\"git\\", + \\"url\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"schema\\": \\"jsii/0.10.0\\", + \\"submodules\\": { + \\"@scope/jsii-calc-lib.submodule\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 112 + }, + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CustomSubmoduleName\\" + }, + \\"java\\": { + \\"package\\": \\"software.amazon.jsii.tests.calculator.custom_submodule_name\\" + }, + \\"python\\": { + \\"module\\": \\"scope.jsii_calc_lib.custom_submodule_name\\" + } + } + } + }, + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.LibNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.LibPackageId\\", + \\"versionSuffix\\": \\"-devpreview\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-lib\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\", + \\"versionSuffix\\": \\".DEVPREVIEW\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.lib\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-lib\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-lib\\", + \\"module\\": \\"scope.jsii_calc_lib\\" + } + }, + \\"types\\": { + \\"@scope/jsii-calc-lib.EnumFromScopedModule\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"remarks\\": \\"See awslabs/jsii#138\\", + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Check that enums from \\\\\\\\@scoped packages can be references.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 97 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"name\\": \\"VALUE1\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"name\\": \\"VALUE2\\" + } + ], + \\"name\\": \\"EnumFromScopedModule\\" + }, + \\"@scope/jsii-calc-lib.IDoublable\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"The general contract for a concrete number.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 23 + }, + \\"name\\": \\"IDoublable\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 24 + }, + \\"name\\": \\"doubleValue\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"@scope/jsii-calc-lib.IFriendly\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"remarks\\": \\"These classes can be greeted with\\\\na \\\\\\"hello\\\\\\" or \\\\\\"goodbye\\\\\\" blessing and they will respond back in a fun and friendly manner.\\", + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Applies to classes that are considered friendly.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 58 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Say hello!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 62 + }, + \\"name\\": \\"hello\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IFriendly\\" + }, + \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"remarks\\": \\"Their presence validates that .NET/Java/jsii-reflect can track all fields\\\\nfar enough up the tree.\\", + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Interface that inherits from packages 2 levels up the tree.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-base.IBaseInterface\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 108 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 109 + }, + \\"name\\": \\"baz\\" + } + ], + \\"name\\": \\"IThreeLevelsInterface\\" + }, + \\"@scope/jsii-calc-lib.MyFirstStruct\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"This is the first struct we have created in jsii.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 68 + }, + \\"name\\": \\"MyFirstStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"An awesome number value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 77 + }, + \\"name\\": \\"anumber\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"A string value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 72 + }, + \\"name\\": \\"astring\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 78 + }, + \\"name\\": \\"firstOptional\\", + \\"optional\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"@scope/jsii-calc-lib.Number\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"base\\": \\"@scope/jsii-calc-lib.Value\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Represents a concrete number.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Creates a Number object.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 35 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"The number.\\" + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"interfaces\\": [ + \\"@scope/jsii-calc-lib.IDoublable\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 30 + }, + \\"name\\": \\"Number\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"The number multiplied by 2.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 42 + }, + \\"name\\": \\"doubleValue\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.IDoublable\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"The number.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 35 + }, + \\"name\\": \\"value\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"@scope/jsii-calc-lib.Operation\\": { + \\"abstract\\": true, + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"base\\": \\"@scope/jsii-calc-lib.Value\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Represents an operation on values.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"initializer\\": {}, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 50 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 51 + }, + \\"name\\": \\"toString\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Operation\\" + }, + \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"This is a struct with only optional properties.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 84 + }, + \\"name\\": \\"StructWithOnlyOptionals\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"The first optional!\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 88 + }, + \\"name\\": \\"optional1\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 89 + }, + \\"name\\": \\"optional2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 90 + }, + \\"name\\": \\"optional3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"@scope/jsii-calc-lib.Value\\": { + \\"abstract\\": true, + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"base\\": \\"@scope/jsii-calc-base.Base\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Abstract class which represents a numeric value.\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\", + \\"initializer\\": {}, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 6 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 15 + }, + \\"name\\": \\"toString\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Value\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"The value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 10 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"@scope/jsii-calc-lib.submodule.IReflectable\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 1 + }, + \\"name\\": \\"IReflectable\\", + \\"namespace\\": \\"submodule\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 2 + }, + \\"name\\": \\"entries\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 5 + }, + \\"name\\": \\"ReflectableEntry\\", + \\"namespace\\": \\"submodule\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"key\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 7 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + \\"@scope/jsii-calc-lib.submodule.Reflector\\": { + \\"assembly\\": \\"@scope/jsii-calc-lib\\", + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.Reflector\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 11 + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 10 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 13 + }, + \\"name\\": \\"asMap\\", + \\"parameters\\": [ + { + \\"name\\": \\"reflectable\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + } + } + ], + \\"name\\": \\"Reflector\\", + \\"namespace\\": \\"submodule\\" + } + }, + \\"version\\": \\"0.0.0\\", + \\"fingerprint\\": \\"fVfpIK7xUajlT1zkHIJ8uYJPvy0gLgEe5BM8afu1mVg=\\" +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj 1`] = ` +Object { + Symbol(file): " + + + A simple calcuator library built on JSII. (Stability: Deprecated) + Amazon.JSII.Tests.CalculatorPackageId.LibPackageId + Apache-2.0 + 0.0.0-devpreview + + Amazon Web Services + Amazon Web Services + en-US + https://github.com/aws/jsii + https://github.com/aws/jsii.git + git + + true + true + true + true + enable + snupkg + netcoreapp3.1 + + + + + + + + + + + 0612,0618 + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Check that enums from \\\\@scoped packages can be references. + /// + /// See awslabs/jsii#138 + /// + /// Stability: Deprecated + /// + [JsiiEnum(nativeType: typeof(EnumFromScopedModule), fullyQualifiedName: \\"@scope/jsii-calc-lib.EnumFromScopedModule\\")] + [System.Obsolete()] + public enum EnumFromScopedModule + { + /// + /// Stability: Deprecated + /// + [JsiiEnumMember(name: \\"VALUE1\\")] + [System.Obsolete()] + VALUE1, + /// + /// Stability: Deprecated + /// + [JsiiEnumMember(name: \\"VALUE2\\")] + [System.Obsolete()] + VALUE2 + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// The general contract for a concrete number. + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IDoublable), fullyQualifiedName: \\"@scope/jsii-calc-lib.IDoublable\\")] + [System.Obsolete()] + public interface IDoublable + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + double DoubleValue + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// The general contract for a concrete number. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IDoublable), fullyQualifiedName: \\"@scope/jsii-calc-lib.IDoublable\\")] + [System.Obsolete()] + internal sealed class IDoublableProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable + { + private IDoublableProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public double DoubleValue + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Applies to classes that are considered friendly. + /// + /// These classes can be greeted with + /// a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IFriendly), fullyQualifiedName: \\"@scope/jsii-calc-lib.IFriendly\\")] + [System.Obsolete()] + public interface IFriendly + { + /// Say hello! + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [System.Obsolete()] + string Hello(); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Applies to classes that are considered friendly. + /// + /// These classes can be greeted with + /// a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IFriendly), fullyQualifiedName: \\"@scope/jsii-calc-lib.IFriendly\\")] + [System.Obsolete()] + internal sealed class IFriendlyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly + { + private IFriendlyProxy(ByRefValue reference): base(reference) + { + } + + /// Say hello! + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [System.Obsolete()] + public string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// This is the first struct we have created in jsii. + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + [System.Obsolete()] + public interface IMyFirstStruct + { + /// An awesome number value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + double Anumber + { + get; + } + + /// A string value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete()] + string Astring + { + get; + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [System.Obsolete()] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string[]? FirstOptional + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// This is a struct with only optional properties. + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + [System.Obsolete()] + public interface IStructWithOnlyOptionals + { + /// The first optional! + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Optional1 + { + get + { + return null; + } + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? Optional2 + { + get + { + return null; + } + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + bool? Optional3 + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Interface that inherits from packages 2 levels up the tree. + /// + /// Their presence validates that .NET/Java/jsii-reflect can track all fields + /// far enough up the tree. + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\")] + [System.Obsolete()] + public interface IThreeLevelsInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface + { + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"baz\\")] + [System.Obsolete()] + void Baz(); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Interface that inherits from packages 2 levels up the tree. + /// + /// Their presence validates that .NET/Java/jsii-reflect can track all fields + /// far enough up the tree. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\")] + [System.Obsolete()] + internal sealed class IThreeLevelsInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IThreeLevelsInterface + { + private IThreeLevelsInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"baz\\")] + [System.Obsolete()] + public void Baz() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + [JsiiMethod(name: \\"bar\\")] + public void Bar() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + [JsiiMethod(name: \\"foo\\")] + public void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` +Object { + Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.DependencyResolution +{ + public sealed class Anchor + { + public Anchor() + { + new Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution.Anchor(); + new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + #pragma warning disable CS8618 + + /// This is the first struct we have created in jsii. + /// + /// Stability: Deprecated + /// + [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + public class MyFirstStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct + { + /// An awesome number value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public double Anumber + { + get; + set; + } + + /// A string value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public string Astring + { + get; + set; + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + [System.Obsolete()] + public string[]? FirstOptional + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// This is the first struct we have created in jsii. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + [System.Obsolete()] + internal sealed class MyFirstStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct + { + private MyFirstStructProxy(ByRefValue reference): base(reference) + { + } + + /// An awesome number value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public double Anumber + { + get => GetInstanceProperty(); + } + + /// A string value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete()] + public string Astring + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [System.Obsolete()] + public string[]? FirstOptional + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Represents a concrete number. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number), fullyQualifiedName: \\"@scope/jsii-calc-lib.Number\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The number.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [System.Obsolete()] + public class Number : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable + { + /// Creates a Number object. + /// The number. + /// + /// Stability: Deprecated + /// + [System.Obsolete()] + public Number(double @value): base(new DeputyProps(new object[]{@value})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Number(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Number(DeputyProps props): base(props) + { + } + + /// The number multiplied by 2. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public virtual double DoubleValue + { + get => GetInstanceProperty(); + } + + /// The number. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public override double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Represents an operation on values. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: \\"@scope/jsii-calc-lib.Operation\\")] + [System.Obsolete()] + public abstract class Operation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ + { + protected Operation(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Operation(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Operation(DeputyProps props): base(props) + { + } + + /// String representation of the value. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [System.Obsolete()] + public override abstract string ToString(); + + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Represents an operation on values. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: \\"@scope/jsii-calc-lib.Operation\\")] + [System.Obsolete()] + internal sealed class OperationProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation + { + private OperationProxy(ByRefValue reference): base(reference) + { + } + + /// The value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public override double Value + { + get => GetInstanceProperty(); + } + + /// String representation of the value. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [System.Obsolete()] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// This is a struct with only optional properties. + /// + /// Stability: Deprecated + /// + [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + public class StructWithOnlyOptionals : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals + { + /// The first optional! + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [System.Obsolete()] + public string? Optional1 + { + get; + set; + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [System.Obsolete()] + public double? Optional2 + { + get; + set; + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [System.Obsolete()] + public bool? Optional3 + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// This is a struct with only optional properties. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + [System.Obsolete()] + internal sealed class StructWithOnlyOptionalsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals + { + private StructWithOnlyOptionalsProxy(ByRefValue reference): base(reference) + { + } + + /// The first optional! + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + public string? Optional1 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + public double? Optional2 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [System.Obsolete()] + public bool? Optional3 + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Abstract class which represents a numeric value. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: \\"@scope/jsii-calc-lib.Value\\")] + [System.Obsolete()] + public abstract class Value_ : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base + { + protected Value_(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Value_(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Value_(DeputyProps props): base(props) + { + } + + /// String representation of the value. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [System.Obsolete()] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// The value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public abstract double Value + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace +{ + /// Abstract class which represents a numeric value. + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: \\"@scope/jsii-calc-lib.Value\\")] + [System.Obsolete()] + internal sealed class ValueProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ + { + private ValueProxy(ByRefValue reference): base(reference) + { + } + + /// The value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public override double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IReflectable), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.IReflectable\\")] + [System.Obsolete()] + public interface IReflectable + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [System.Obsolete()] + Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IReflectableEntry), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + [System.Obsolete()] + public interface IReflectableEntry + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete()] + string Key + { + get; + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [System.Obsolete()] + object Value + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IReflectable), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.IReflectable\\")] + [System.Obsolete()] + internal sealed class IReflectableProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable + { + private IReflectableProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [System.Obsolete()] + public Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + #pragma warning disable CS8618 + + /// + /// Stability: Deprecated + /// + [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + public class ReflectableEntry : Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public string Key + { + get; + set; + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public object Value + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IReflectableEntry), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + [System.Obsolete()] + internal sealed class ReflectableEntryProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry + { + private ReflectableEntryProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete()] + public string Key + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [System.Obsolete()] + public object Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.Reflector), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.Reflector\\")] + [System.Obsolete()] + public class Reflector : DeputyBase + { + /// + /// Stability: Deprecated + /// + [System.Obsolete()] + public Reflector(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Reflector(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Reflector(DeputyProps props): base(props) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"asMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"reflectable\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.IReflectable\\\\\\"}}]\\")] + [System.Obsolete()] + public virtual System.Collections.Generic.IDictionary AsMap(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable reflectable) + { + return InvokeInstanceMethod>(new System.Type[]{typeof(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable)}, new object[]{reflectable}); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly(\\"@scope/jsii-calc-lib\\", \\"0.0.0\\", \\"scope-jsii-calc-lib-0.0.0.tgz\\")] +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/pom.xml 1`] = ` +Object { + Symbol(file): " + + 4.0.0 + \${project.groupId}:\${project.artifactId} + A simple calcuator library built on JSII. + https://github.com/aws/jsii + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + An OSI-approved license + + + + + Amazon Web Services + + author + + https://aws.amazon.com + + + + scm:git:https://github.com/aws/jsii.git + https://github.com/aws/jsii.git + + software.amazon.jsii.tests + calculator-lib + 0.0.0.DEVPREVIEW + jar + + UTF-8 + + + + software.amazon.jsii.tests + calculator-base + [0.0.0,0.0.1) + + + software.amazon.jsii.tests + calculator-base-of-base + [0.0.0,0.0.1) + + + software.amazon.jsii + jsii-runtime + [0.0.0,0.0.1) + + + org.jetbrains + annotations + [16.0.3,20.0.0) + + + + javax.annotation + javax.annotation-api + [1.3.2,1.4.0) + compile + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + true + + true + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + attach-javadocs + + jar + + + + + false + protected + + **/$Module.java + + -J-XX:+TieredCompilation + -J-XX:TieredStopAtLevel=1 + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-maven + + enforce + + + + + 3.6 + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + false + + + + + +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.IReflectable\\") +@software.amazon.jsii.Jsii.Proxy(IReflectable.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface IReflectable extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.util.List getEntries(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.util.List getEntries() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"entries\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\") +@software.amazon.jsii.Jsii.Proxy(ReflectableEntry.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.String getKey(); + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.Object getValue(); + + /** + * @return a {@link Builder} of {@link ReflectableEntry} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ReflectableEntry} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String key; + private java.lang.Object value; + + /** + * Sets the value of {@link ReflectableEntry#getKey} + * @param key the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder key(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Sets the value of {@link ReflectableEntry#getValue} + * @param value the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder value(java.lang.Object value) { + this.value = value; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ReflectableEntry} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public ReflectableEntry build() { + return new Jsii$Proxy(key, value); + } + } + + /** + * An implementation for {@link ReflectableEntry} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ReflectableEntry { + private final java.lang.String key; + private final java.lang.Object value; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.key = this.jsiiGet(\\"key\\", java.lang.String.class); + this.value = this.jsiiGet(\\"value\\", java.lang.Object.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String key, final java.lang.Object value) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.key = java.util.Objects.requireNonNull(key, \\"key is required\\"); + this.value = java.util.Objects.requireNonNull(value, \\"value is required\\"); + } + + @Override + public java.lang.String getKey() { + return this.key; + } + + @Override + public java.lang.Object getValue() { + return this.value; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"key\\", om.valueToTree(this.getKey())); + data.set(\\"value\\", om.valueToTree(this.getValue())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ReflectableEntry.Jsii$Proxy that = (ReflectableEntry.Jsii$Proxy) o; + + if (!key.equals(that.key)) return false; + return this.value.equals(that.value); + } + + @Override + public int hashCode() { + int result = this.key.hashCode(); + result = 31 * result + (this.value.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.Reflector\\") +public class Reflector extends software.amazon.jsii.JsiiObject { + + protected Reflector(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Reflector(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Reflector() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * @param reflectable This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.util.Map asMap(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable reflectable) { + return java.util.Collections.unmodifiableMap(this.jsiiCall(\\"asMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(reflectable, \\"reflectable is required\\") })); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +import static java.util.Arrays.asList; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.IOException; +import java.io.Reader; +import java.io.UncheckedIOException; + +import java.nio.charset.StandardCharsets; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import software.amazon.jsii.JsiiModule; + +public final class $Module extends JsiiModule { + private static final Map MODULE_TYPES = load(); + + private static Map load() { + final Map result = new HashMap<>(); + final ClassLoader cl = $Module.class.getClassLoader(); + try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/lib/$Module.txt\\"); + final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); + final BufferedReader br = new BufferedReader(rd)) { + br.lines() + .filter(line -> !line.trim().isEmpty()) + .forEach(line -> { + final String[] parts = line.split(\\"=\\", 2); + final String fqn = parts[0]; + final String className = parts[1]; + result.put(fqn, className); + }); + } + catch (final IOException exception) { + throw new UncheckedIOException(exception); + } + return result; + } + + private final Map> cache = new HashMap<>(); + + public $Module() { + super(\\"@scope/jsii-calc-lib\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-lib@0.0.0.jsii.tgz\\"); + } + + @Override + public List> getDependencies() { + return asList(software.amazon.jsii.tests.calculator.base.$Module.class, software.amazon.jsii.tests.calculator.baseofbase.$Module.class); + } + + @Override + protected Class resolveClass(final String fqn) throws ClassNotFoundException { + if (!MODULE_TYPES.containsKey(fqn)) { + throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + } + String className = MODULE_TYPES.get(fqn); + if (!this.cache.containsKey(className)) { + this.cache.put(className, this.findClass(className)); + } + return this.cache.get(className); + } + + private Class findClass(final String binaryName) { + try { + return Class.forName(binaryName); + } + catch (final ClassNotFoundException exception) { + throw new RuntimeException(exception); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Check that enums from \\\\@scoped packages can be references. + *

+ * See awslabs/jsii#138 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.EnumFromScopedModule\\") +public enum EnumFromScopedModule { + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + VALUE1, + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + VALUE2, +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * The general contract for a concrete number. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IDoublable\\") +@software.amazon.jsii.Jsii.Proxy(IDoublable.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface IDoublable extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IDoublable { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { + return this.jsiiGet(\\"doubleValue\\", java.lang.Number.class); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Applies to classes that are considered friendly. + *

+ * These classes can be greeted with + * a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IFriendly\\") +@software.amazon.jsii.Jsii.Proxy(IFriendly.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface IFriendly extends software.amazon.jsii.JsiiSerializable { + + /** + * Say hello! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.String hello(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IFriendly { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * Say hello! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Interface that inherits from packages 2 levels up the tree. + *

+ * Their presence validates that .NET/Java/jsii-reflect can track all fields + * far enough up the tree. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\") +@software.amazon.jsii.Jsii.Proxy(IThreeLevelsInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface IThreeLevelsInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.IBaseInterface { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + void baz(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IThreeLevelsInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public void baz() { + this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + } + + @Override + public void bar() { + this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + } + + @Override + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * This is the first struct we have created in jsii. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.MyFirstStruct\\") +@software.amazon.jsii.Jsii.Proxy(MyFirstStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * An awesome number value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.Number getAnumber(); + + /** + * A string value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.String getAstring(); + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + default @org.jetbrains.annotations.Nullable java.util.List getFirstOptional() { + return null; + } + + /** + * @return a {@link Builder} of {@link MyFirstStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link MyFirstStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number anumber; + private java.lang.String astring; + private java.util.List firstOptional; + + /** + * Sets the value of {@link MyFirstStruct#getAnumber} + * @param anumber An awesome number value. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder anumber(java.lang.Number anumber) { + this.anumber = anumber; + return this; + } + + /** + * Sets the value of {@link MyFirstStruct#getAstring} + * @param astring A string value. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder astring(java.lang.String astring) { + this.astring = astring; + return this; + } + + /** + * Sets the value of {@link MyFirstStruct#getFirstOptional} + * @param firstOptional the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder firstOptional(java.util.List firstOptional) { + this.firstOptional = firstOptional; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link MyFirstStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public MyFirstStruct build() { + return new Jsii$Proxy(anumber, astring, firstOptional); + } + } + + /** + * An implementation for {@link MyFirstStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MyFirstStruct { + private final java.lang.Number anumber; + private final java.lang.String astring; + private final java.util.List firstOptional; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.anumber = this.jsiiGet(\\"anumber\\", java.lang.Number.class); + this.astring = this.jsiiGet(\\"astring\\", java.lang.String.class); + this.firstOptional = this.jsiiGet(\\"firstOptional\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.anumber = java.util.Objects.requireNonNull(anumber, \\"anumber is required\\"); + this.astring = java.util.Objects.requireNonNull(astring, \\"astring is required\\"); + this.firstOptional = firstOptional; + } + + @Override + public java.lang.Number getAnumber() { + return this.anumber; + } + + @Override + public java.lang.String getAstring() { + return this.astring; + } + + @Override + public java.util.List getFirstOptional() { + return this.firstOptional; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"anumber\\", om.valueToTree(this.getAnumber())); + data.set(\\"astring\\", om.valueToTree(this.getAstring())); + if (this.getFirstOptional() != null) { + data.set(\\"firstOptional\\", om.valueToTree(this.getFirstOptional())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.MyFirstStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + MyFirstStruct.Jsii$Proxy that = (MyFirstStruct.Jsii$Proxy) o; + + if (!anumber.equals(that.anumber)) return false; + if (!astring.equals(that.astring)) return false; + return this.firstOptional != null ? this.firstOptional.equals(that.firstOptional) : that.firstOptional == null; + } + + @Override + public int hashCode() { + int result = this.anumber.hashCode(); + result = 31 * result + (this.astring.hashCode()); + result = 31 * result + (this.firstOptional != null ? this.firstOptional.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Represents a concrete number. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Number\\") +public class Number extends software.amazon.jsii.tests.calculator.lib.Value implements software.amazon.jsii.tests.calculator.lib.IDoublable { + + protected Number(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Number(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a Number object. + *

+ * @param value The number. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Number(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * The number multiplied by 2. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { + return this.jsiiGet(\\"doubleValue\\", java.lang.Number.class); + } + + /** + * The number. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Represents an operation on values. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Operation\\") +public abstract class Operation extends software.amazon.jsii.tests.calculator.lib.Value { + + protected Operation(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Operation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + protected Operation() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public abstract @org.jetbrains.annotations.NotNull java.lang.String toString(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.lib.Operation { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * The value. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * This is a struct with only optional properties. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\") +@software.amazon.jsii.Jsii.Proxy(StructWithOnlyOptionals.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface StructWithOnlyOptionals extends software.amazon.jsii.JsiiSerializable { + + /** + * The first optional! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + default @org.jetbrains.annotations.Nullable java.lang.String getOptional1() { + return null; + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + default @org.jetbrains.annotations.Nullable java.lang.Number getOptional2() { + return null; + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + default @org.jetbrains.annotations.Nullable java.lang.Boolean getOptional3() { + return null; + } + + /** + * @return a {@link Builder} of {@link StructWithOnlyOptionals} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructWithOnlyOptionals} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String optional1; + private java.lang.Number optional2; + private java.lang.Boolean optional3; + + /** + * Sets the value of {@link StructWithOnlyOptionals#getOptional1} + * @param optional1 The first optional!. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder optional1(java.lang.String optional1) { + this.optional1 = optional1; + return this; + } + + /** + * Sets the value of {@link StructWithOnlyOptionals#getOptional2} + * @param optional2 the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder optional2(java.lang.Number optional2) { + this.optional2 = optional2; + return this; + } + + /** + * Sets the value of {@link StructWithOnlyOptionals#getOptional3} + * @param optional3 the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder optional3(java.lang.Boolean optional3) { + this.optional3 = optional3; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructWithOnlyOptionals} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public StructWithOnlyOptionals build() { + return new Jsii$Proxy(optional1, optional2, optional3); + } + } + + /** + * An implementation for {@link StructWithOnlyOptionals} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithOnlyOptionals { + private final java.lang.String optional1; + private final java.lang.Number optional2; + private final java.lang.Boolean optional3; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.optional1 = this.jsiiGet(\\"optional1\\", java.lang.String.class); + this.optional2 = this.jsiiGet(\\"optional2\\", java.lang.Number.class); + this.optional3 = this.jsiiGet(\\"optional3\\", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String optional1, final java.lang.Number optional2, final java.lang.Boolean optional3) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.optional1 = optional1; + this.optional2 = optional2; + this.optional3 = optional3; + } + + @Override + public java.lang.String getOptional1() { + return this.optional1; + } + + @Override + public java.lang.Number getOptional2() { + return this.optional2; + } + + @Override + public java.lang.Boolean getOptional3() { + return this.optional3; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getOptional1() != null) { + data.set(\\"optional1\\", om.valueToTree(this.getOptional1())); + } + if (this.getOptional2() != null) { + data.set(\\"optional2\\", om.valueToTree(this.getOptional2())); + } + if (this.getOptional3() != null) { + data.set(\\"optional3\\", om.valueToTree(this.getOptional3())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructWithOnlyOptionals.Jsii$Proxy that = (StructWithOnlyOptionals.Jsii$Proxy) o; + + if (this.optional1 != null ? !this.optional1.equals(that.optional1) : that.optional1 != null) return false; + if (this.optional2 != null ? !this.optional2.equals(that.optional2) : that.optional2 != null) return false; + return this.optional3 != null ? this.optional3.equals(that.optional3) : that.optional3 == null; + } + + @Override + public int hashCode() { + int result = this.optional1 != null ? this.optional1.hashCode() : 0; + result = 31 * result + (this.optional2 != null ? this.optional2.hashCode() : 0); + result = 31 * result + (this.optional3 != null ? this.optional3.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.lib; + +/** + * Abstract class which represents a numeric value. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Value\\") +public abstract class Value extends software.amazon.jsii.tests.calculator.base.Base { + + protected Value(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Value(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + protected Value() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + + /** + * The value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public abstract @org.jetbrains.annotations.NotNull java.lang.Number getValue(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.lib.Value { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * The value. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + } +} +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java 1`] = ` +Object { + Symbol(file): "/** + * + * Deprecated: Really just deprecated for shows... + */ +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +package software.amazon.jsii.tests.calculator.lib; +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt 1`] = ` +Object { + Symbol(file): "@scope/jsii-calc-lib.EnumFromScopedModule=software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule +@scope/jsii-calc-lib.IDoublable=software.amazon.jsii.tests.calculator.lib.IDoublable +@scope/jsii-calc-lib.IFriendly=software.amazon.jsii.tests.calculator.lib.IFriendly +@scope/jsii-calc-lib.IThreeLevelsInterface=software.amazon.jsii.tests.calculator.lib.IThreeLevelsInterface +@scope/jsii-calc-lib.MyFirstStruct=software.amazon.jsii.tests.calculator.lib.MyFirstStruct +@scope/jsii-calc-lib.Number=software.amazon.jsii.tests.calculator.lib.Number +@scope/jsii-calc-lib.Operation=software.amazon.jsii.tests.calculator.lib.Operation +@scope/jsii-calc-lib.StructWithOnlyOptionals=software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals +@scope/jsii-calc-lib.Value=software.amazon.jsii.tests.calculator.lib.Value +@scope/jsii-calc-lib.submodule.IReflectable=software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable +@scope/jsii-calc-lib.submodule.ReflectableEntry=software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry +@scope/jsii-calc-lib.submodule.Reflector=software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-lib": /js/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `js/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/MANIFEST.in 1`] = ` +Object { + Symbol(file): "include pyproject.toml +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/README.md 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/pyproject.toml 1`] = ` +Object { + Symbol(file): "[build-system] +requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] +build-backend = \\"setuptools.build_meta\\" +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/setup.py 1`] = ` +Object { + Symbol(file): "import json +import setuptools + +kwargs = json.loads( + \\"\\"\\" +{ + \\"name\\": \\"scope.jsii-calc-lib\\", + \\"version\\": \\"0.0.0\\", + \\"description\\": \\"A simple calcuator library built on JSII.\\", + \\"license\\": \\"Apache-2.0\\", + \\"url\\": \\"https://github.com/aws/jsii\\", + \\"long_description_content_type\\": \\"text/markdown\\", + \\"author\\": \\"Amazon Web Services\\", + \\"project_urls\\": { + \\"Source\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"package_dir\\": { + \\"\\": \\"src\\" + }, + \\"packages\\": [ + \\"scope.jsii_calc_lib\\", + \\"scope.jsii_calc_lib._jsii\\", + \\"scope.jsii_calc_lib.custom_submodule_name\\" + ], + \\"package_data\\": { + \\"scope.jsii_calc_lib._jsii\\": [ + \\"jsii-calc-lib@0.0.0.jsii.tgz\\" + ], + \\"scope.jsii_calc_lib\\": [ + \\"py.typed\\" + ] + }, + \\"python_requires\\": \\">=3.6\\", + \\"install_requires\\": [ + \\"jsii>=0.0.0, <0.0.1\\", + \\"publication>=0.0.3\\", + \\"scope.jsii-calc-base>=0.0.0, <0.0.1\\", + \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\" + ], + \\"classifiers\\": [ + \\"Intended Audience :: Developers\\", + \\"Operating System :: OS Independent\\", + \\"Programming Language :: JavaScript\\", + \\"Programming Language :: Python :: 3 :: Only\\", + \\"Programming Language :: Python :: 3.6\\", + \\"Programming Language :: Python :: 3.7\\", + \\"Programming Language :: Python :: 3.8\\", + \\"Typing :: Typed\\", + \\"Development Status :: 7 - Inactive\\", + \\"License :: OSI Approved\\" + ] +} +\\"\\"\\" +) + +with open(\\"README.md\\") as fp: + kwargs[\\"long_description\\"] = fp.read() + + +setuptools.setup(**kwargs) +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ._jsii import * + +import scope.jsii_calc_base + + +@jsii.enum(jsii_type=\\"@scope/jsii-calc-lib.EnumFromScopedModule\\") +class EnumFromScopedModule(enum.Enum): + \\"\\"\\"Check that enums from @scoped packages can be references. + + See awslabs/jsii#138 + + stability + :stability: deprecated + \\"\\"\\" + + VALUE1 = \\"VALUE1\\" + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + VALUE2 = \\"VALUE2\\" + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IDoublable\\") +class IDoublable(jsii.compat.Protocol): + \\"\\"\\"The general contract for a concrete number. + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IDoublableProxy + + @builtins.property + @jsii.member(jsii_name=\\"doubleValue\\") + def double_value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _IDoublableProxy: + \\"\\"\\"The general contract for a concrete number. + + stability + :stability: deprecated + \\"\\"\\" + + __jsii_type__ = \\"@scope/jsii-calc-lib.IDoublable\\" + + @builtins.property + @jsii.member(jsii_name=\\"doubleValue\\") + def double_value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"doubleValue\\") + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IFriendly\\") +class IFriendly(jsii.compat.Protocol): + \\"\\"\\"Applies to classes that are considered friendly. + + These classes can be greeted with + a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlyProxy + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> str: + \\"\\"\\"Say hello! + + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _IFriendlyProxy: + \\"\\"\\"Applies to classes that are considered friendly. + + These classes can be greeted with + a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + + stability + :stability: deprecated + \\"\\"\\" + + __jsii_type__ = \\"@scope/jsii-calc-lib.IFriendly\\" + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> str: + \\"\\"\\"Say hello! + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IThreeLevelsInterface\\") +class IThreeLevelsInterface(scope.jsii_calc_base.IBaseInterface, jsii.compat.Protocol): + \\"\\"\\"Interface that inherits from packages 2 levels up the tree. + + Their presence validates that .NET/Java/jsii-reflect can track all fields + far enough up the tree. + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IThreeLevelsInterfaceProxy + + @jsii.member(jsii_name=\\"baz\\") + def baz(self) -> None: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _IThreeLevelsInterfaceProxy(jsii.proxy_for(scope.jsii_calc_base.IBaseInterface)): + \\"\\"\\"Interface that inherits from packages 2 levels up the tree. + + Their presence validates that .NET/Java/jsii-reflect can track all fields + far enough up the tree. + + stability + :stability: deprecated + \\"\\"\\" + + __jsii_type__ = \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\" + + @jsii.member(jsii_name=\\"baz\\") + def baz(self) -> None: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"baz\\", []) + + +@jsii.data_type( + jsii_type=\\"@scope/jsii-calc-lib.MyFirstStruct\\", + jsii_struct_bases=[], + name_mapping={ + \\"anumber\\": \\"anumber\\", + \\"astring\\": \\"astring\\", + \\"first_optional\\": \\"firstOptional\\", + }, +) +class MyFirstStruct: + def __init__( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> None: + \\"\\"\\"This is the first struct we have created in jsii. + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: deprecated + \\"\\"\\" + self._values = { + \\"anumber\\": anumber, + \\"astring\\": astring, + } + if first_optional is not None: + self._values[\\"first_optional\\"] = first_optional + + @builtins.property + def anumber(self) -> jsii.Number: + \\"\\"\\"An awesome number value. + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"anumber\\") + + @builtins.property + def astring(self) -> str: + \\"\\"\\"A string value. + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"astring\\") + + @builtins.property + def first_optional(self) -> typing.Optional[typing.List[str]]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"first_optional\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"MyFirstStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\", + jsii_struct_bases=[], + name_mapping={ + \\"optional1\\": \\"optional1\\", + \\"optional2\\": \\"optional2\\", + \\"optional3\\": \\"optional3\\", + }, +) +class StructWithOnlyOptionals: + def __init__( + self, + *, + optional1: typing.Optional[str] = None, + optional2: typing.Optional[jsii.Number] = None, + optional3: typing.Optional[bool] = None, + ) -> None: + \\"\\"\\"This is a struct with only optional properties. + + :param optional1: The first optional! + :param optional2: + :param optional3: + + stability + :stability: deprecated + \\"\\"\\" + self._values = {} + if optional1 is not None: + self._values[\\"optional1\\"] = optional1 + if optional2 is not None: + self._values[\\"optional2\\"] = optional2 + if optional3 is not None: + self._values[\\"optional3\\"] = optional3 + + @builtins.property + def optional1(self) -> typing.Optional[str]: + \\"\\"\\"The first optional! + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"optional1\\") + + @builtins.property + def optional2(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"optional2\\") + + @builtins.property + def optional3(self) -> typing.Optional[bool]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"optional3\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructWithOnlyOptionals(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class Value( + scope.jsii_calc_base.Base, + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"@scope/jsii-calc-lib.Value\\", +): + \\"\\"\\"Abstract class which represents a numeric value. + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _ValueProxy + + def __init__(self) -> None: + jsii.create(Value, self, []) + + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + @abc.abstractmethod + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _ValueProxy(Value, jsii.proxy_for(scope.jsii_calc_base.Base)): + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +@jsii.implements(IDoublable) +class Number(Value, metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-lib.Number\\"): + \\"\\"\\"Represents a concrete number. + + stability + :stability: deprecated + \\"\\"\\" + + def __init__(self, value: jsii.Number) -> None: + \\"\\"\\"Creates a Number object. + + :param value: The number. + + stability + :stability: deprecated + \\"\\"\\" + jsii.create(Number, self, [value]) + + @builtins.property + @jsii.member(jsii_name=\\"doubleValue\\") + def double_value(self) -> jsii.Number: + \\"\\"\\"The number multiplied by 2. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"doubleValue\\") + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The number. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +class Operation( + Value, metaclass=jsii.JSIIAbstractClass, jsii_type=\\"@scope/jsii-calc-lib.Operation\\" +): + \\"\\"\\"Represents an operation on values. + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _OperationProxy + + def __init__(self) -> None: + jsii.create(Operation, self, []) + + @jsii.member(jsii_name=\\"toString\\") + @abc.abstractmethod + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _OperationProxy(Operation, jsii.proxy_for(Value)): + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + +__all__ = [ + \\"EnumFromScopedModule\\", + \\"IDoublable\\", + \\"IFriendly\\", + \\"IThreeLevelsInterface\\", + \\"MyFirstStruct\\", + \\"Number\\", + \\"Operation\\", + \\"StructWithOnlyOptionals\\", + \\"Value\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/_jsii/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +import scope.jsii_calc_base._jsii +import scope.jsii_calc_base_of_base._jsii + +__jsii_assembly__ = jsii.JSIIAssembly.load( + \\"@scope/jsii-calc-lib\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc-lib@0.0.0.jsii.tgz\\" +) + +__all__ = [ + \\"__jsii_assembly__\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + + +@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.submodule.IReflectable\\") +class IReflectable(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReflectableProxy + + @builtins.property + @jsii.member(jsii_name=\\"entries\\") + def entries(self) -> typing.List[\\"ReflectableEntry\\"]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _IReflectableProxy: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + + __jsii_type__ = \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + + @builtins.property + @jsii.member(jsii_name=\\"entries\\") + def entries(self) -> typing.List[\\"ReflectableEntry\\"]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"entries\\") + + +@jsii.data_type( + jsii_type=\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\", + jsii_struct_bases=[], + name_mapping={\\"key\\": \\"key\\", \\"value\\": \\"value\\"}, +) +class ReflectableEntry: + def __init__(self, *, key: str, value: typing.Any) -> None: + \\"\\"\\" + :param key: + :param value: + + stability + :stability: deprecated + \\"\\"\\" + self._values = { + \\"key\\": key, + \\"value\\": value, + } + + @builtins.property + def key(self) -> str: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"key\\") + + @builtins.property + def value(self) -> typing.Any: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"value\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ReflectableEntry(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class Reflector( + metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-lib.submodule.Reflector\\" +): + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + jsii.create(Reflector, self, []) + + @jsii.member(jsii_name=\\"asMap\\") + def as_map(self, reflectable: \\"IReflectable\\") -> typing.Mapping[str, typing.Any]: + \\"\\"\\" + :param reflectable: - + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"asMap\\", [reflectable]) + + +__all__ = [ + \\"IReflectable\\", + \\"ReflectableEntry\\", + \\"Reflector\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/py.typed 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "jsii-calc": / 1`] = ` + + ┣━ 📁 dotnet + ┃ ┗━ 📁 Amazon.JSII.Tests.CalculatorPackageId + ┃ ┣━ 📄 .jsii + ┃ ┣━ 📁 Amazon + ┃ ┃ ┗━ 📁 JSII + ┃ ┃ ┗━ 📁 Tests + ┃ ┃ ┗━ 📁 CalculatorNamespace + ┃ ┃ ┣━ 📄 AbstractClass.cs + ┃ ┃ ┣━ 📄 AbstractClassBase.cs + ┃ ┃ ┣━ 📄 AbstractClassBaseProxy.cs + ┃ ┃ ┣━ 📄 AbstractClassProxy.cs + ┃ ┃ ┣━ 📄 AbstractClassReturner.cs + ┃ ┃ ┣━ 📄 AbstractSuite.cs + ┃ ┃ ┣━ 📄 AbstractSuiteProxy.cs + ┃ ┃ ┣━ 📄 Add.cs + ┃ ┃ ┣━ 📄 AllowedMethodNames.cs + ┃ ┃ ┣━ 📄 AllTypes.cs + ┃ ┃ ┣━ 📄 AllTypesEnum.cs + ┃ ┃ ┣━ 📄 AmbiguousParameters.cs + ┃ ┃ ┣━ 📄 AnonymousImplementationProvider.cs + ┃ ┃ ┣━ 📄 AsyncVirtualMethods.cs + ┃ ┃ ┣━ 📄 AugmentableClass.cs + ┃ ┃ ┣━ 📄 BaseJsii976.cs + ┃ ┃ ┣━ 📄 Bell.cs + ┃ ┃ ┣━ 📄 BinaryOperation.cs + ┃ ┃ ┣━ 📄 BinaryOperationProxy.cs + ┃ ┃ ┣━ 📄 Calculator.cs + ┃ ┃ ┣━ 📄 CalculatorProps.cs + ┃ ┃ ┣━ 📄 CalculatorPropsProxy.cs + ┃ ┃ ┣━ 📄 ChildStruct982.cs + ┃ ┃ ┣━ 📄 ChildStruct982Proxy.cs + ┃ ┃ ┣━ 📄 ClassThatImplementsTheInternalInterface.cs + ┃ ┃ ┣━ 📄 ClassThatImplementsThePrivateInterface.cs + ┃ ┃ ┣━ 📄 ClassWithCollections.cs + ┃ ┃ ┣━ 📄 ClassWithDocs.cs + ┃ ┃ ┣━ 📄 ClassWithJavaReservedWords.cs + ┃ ┃ ┣━ 📄 ClassWithMutableObjectLiteralProperty.cs + ┃ ┃ ┣━ 📄 ClassWithPrivateConstructorAndAutomaticProperties.cs + ┃ ┃ ┣━ 📁 Composition + ┃ ┃ ┃ ┣━ 📄 CompositeOperation.cs + ┃ ┃ ┃ ┗━ 📄 CompositeOperationProxy.cs + ┃ ┃ ┣━ 📄 ConfusingToJackson.cs + ┃ ┃ ┣━ 📄 ConfusingToJacksonStruct.cs + ┃ ┃ ┣━ 📄 ConfusingToJacksonStructProxy.cs + ┃ ┃ ┣━ 📄 ConstructorPassesThisOut.cs + ┃ ┃ ┣━ 📄 Constructors.cs + ┃ ┃ ┣━ 📄 ConsumePureInterface.cs + ┃ ┃ ┣━ 📄 ConsumerCanRingBell.cs + ┃ ┃ ┣━ 📄 ConsumersOfThisCrazyTypeSystem.cs + ┃ ┃ ┣━ 📄 DataRenderer.cs + ┃ ┃ ┣━ 📄 DefaultedConstructorArgument.cs + ┃ ┃ ┣━ 📄 Demonstrate982.cs + ┃ ┃ ┣━ 📄 DeprecatedClass.cs + ┃ ┃ ┣━ 📄 DeprecatedEnum.cs + ┃ ┃ ┣━ 📄 DeprecatedStruct.cs + ┃ ┃ ┣━ 📄 DeprecatedStructProxy.cs + ┃ ┃ ┣━ 📁 DerivedClassHasNoProperties + ┃ ┃ ┃ ┣━ 📄 Base.cs + ┃ ┃ ┃ ┗━ 📄 Derived.cs + ┃ ┃ ┣━ 📄 DerivedStruct.cs + ┃ ┃ ┣━ 📄 DerivedStructProxy.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceBaseLevelStruct.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceBaseLevelStructProxy.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceFirstMidLevelStruct.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceFirstMidLevelStructProxy.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceSecondMidLevelStruct.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceSecondMidLevelStructProxy.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceTopLevelStruct.cs + ┃ ┃ ┣━ 📄 DiamondInheritanceTopLevelStructProxy.cs + ┃ ┃ ┣━ 📄 DisappointingCollectionSource.cs + ┃ ┃ ┣━ 📄 DocumentedClass.cs + ┃ ┃ ┣━ 📄 DoNotOverridePrivates.cs + ┃ ┃ ┣━ 📄 DoNotRecognizeAnyAsOptional.cs + ┃ ┃ ┣━ 📄 DontComplainAboutVariadicAfterOptional.cs + ┃ ┃ ┣━ 📄 DoubleTrouble.cs + ┃ ┃ ┣━ 📄 EnumDispenser.cs + ┃ ┃ ┣━ 📄 EraseUndefinedHashValues.cs + ┃ ┃ ┣━ 📄 EraseUndefinedHashValuesOptions.cs + ┃ ┃ ┣━ 📄 EraseUndefinedHashValuesOptionsProxy.cs + ┃ ┃ ┣━ 📄 ExperimentalClass.cs + ┃ ┃ ┣━ 📄 ExperimentalEnum.cs + ┃ ┃ ┣━ 📄 ExperimentalStruct.cs + ┃ ┃ ┣━ 📄 ExperimentalStructProxy.cs + ┃ ┃ ┣━ 📄 ExportedBaseClass.cs + ┃ ┃ ┣━ 📄 ExtendsInternalInterface.cs + ┃ ┃ ┣━ 📄 ExtendsInternalInterfaceProxy.cs + ┃ ┃ ┣━ 📄 ExternalClass.cs + ┃ ┃ ┣━ 📄 ExternalEnum.cs + ┃ ┃ ┣━ 📄 ExternalStruct.cs + ┃ ┃ ┣━ 📄 ExternalStructProxy.cs + ┃ ┃ ┣━ 📄 GiveMeStructs.cs + ┃ ┃ ┣━ 📄 Greetee.cs + ┃ ┃ ┣━ 📄 GreeteeProxy.cs + ┃ ┃ ┣━ 📄 GreetingAugmenter.cs + ┃ ┃ ┣━ 📄 IAnonymousImplementationProvider.cs + ┃ ┃ ┣━ 📄 IAnonymousImplementationProviderProxy.cs + ┃ ┃ ┣━ 📄 IAnonymouslyImplementMe.cs + ┃ ┃ ┣━ 📄 IAnonymouslyImplementMeProxy.cs + ┃ ┃ ┣━ 📄 IAnotherPublicInterface.cs + ┃ ┃ ┣━ 📄 IAnotherPublicInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IBell.cs + ┃ ┃ ┣━ 📄 IBellProxy.cs + ┃ ┃ ┣━ 📄 IBellRinger.cs + ┃ ┃ ┣━ 📄 IBellRingerProxy.cs + ┃ ┃ ┣━ 📄 ICalculatorProps.cs + ┃ ┃ ┣━ 📄 IChildStruct982.cs + ┃ ┃ ┣━ 📄 IConcreteBellRinger.cs + ┃ ┃ ┣━ 📄 IConcreteBellRingerProxy.cs + ┃ ┃ ┣━ 📄 IConfusingToJacksonStruct.cs + ┃ ┃ ┣━ 📄 IDeprecatedInterface.cs + ┃ ┃ ┣━ 📄 IDeprecatedInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IDeprecatedStruct.cs + ┃ ┃ ┣━ 📄 IDerivedStruct.cs + ┃ ┃ ┣━ 📄 IDiamondInheritanceBaseLevelStruct.cs + ┃ ┃ ┣━ 📄 IDiamondInheritanceFirstMidLevelStruct.cs + ┃ ┃ ┣━ 📄 IDiamondInheritanceSecondMidLevelStruct.cs + ┃ ┃ ┣━ 📄 IDiamondInheritanceTopLevelStruct.cs + ┃ ┃ ┣━ 📄 IEraseUndefinedHashValuesOptions.cs + ┃ ┃ ┣━ 📄 IExperimentalInterface.cs + ┃ ┃ ┣━ 📄 IExperimentalInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IExperimentalStruct.cs + ┃ ┃ ┣━ 📄 IExtendsInternalInterface.cs + ┃ ┃ ┣━ 📄 IExtendsPrivateInterface.cs + ┃ ┃ ┣━ 📄 IExtendsPrivateInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IExternalInterface.cs + ┃ ┃ ┣━ 📄 IExternalInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IExternalStruct.cs + ┃ ┃ ┣━ 📄 IFriendlier.cs + ┃ ┃ ┣━ 📄 IFriendlierProxy.cs + ┃ ┃ ┣━ 📄 IFriendlyRandomGenerator.cs + ┃ ┃ ┣━ 📄 IFriendlyRandomGeneratorProxy.cs + ┃ ┃ ┣━ 📄 IGreetee.cs + ┃ ┃ ┣━ 📄 IImplictBaseOfBase.cs + ┃ ┃ ┣━ 📄 IInterfaceImplementedByAbstractClass.cs + ┃ ┃ ┣━ 📄 IInterfaceImplementedByAbstractClassProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceThatShouldNotBeADataType.cs + ┃ ┃ ┣━ 📄 IInterfaceThatShouldNotBeADataTypeProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceWithInternal.cs + ┃ ┃ ┣━ 📄 IInterfaceWithInternalProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceWithMethods.cs + ┃ ┃ ┣━ 📄 IInterfaceWithMethodsProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceWithOptionalMethodArguments.cs + ┃ ┃ ┣━ 📄 IInterfaceWithOptionalMethodArgumentsProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceWithProperties.cs + ┃ ┃ ┣━ 📄 IInterfaceWithPropertiesExtension.cs + ┃ ┃ ┣━ 📄 IInterfaceWithPropertiesExtensionProxy.cs + ┃ ┃ ┣━ 📄 IInterfaceWithPropertiesProxy.cs + ┃ ┃ ┣━ 📄 IJSII417Derived.cs + ┃ ┃ ┣━ 📄 IJSII417DerivedProxy.cs + ┃ ┃ ┣━ 📄 IJSII417PublicBaseOfBase.cs + ┃ ┃ ┣━ 📄 IJSII417PublicBaseOfBaseProxy.cs + ┃ ┃ ┣━ 📄 IJsii487External.cs + ┃ ┃ ┣━ 📄 IJsii487External2.cs + ┃ ┃ ┣━ 📄 IJsii487External2Proxy.cs + ┃ ┃ ┣━ 📄 IJsii487ExternalProxy.cs + ┃ ┃ ┣━ 📄 IJsii496.cs + ┃ ┃ ┣━ 📄 IJsii496Proxy.cs + ┃ ┃ ┣━ 📄 ILoadBalancedFargateServiceProps.cs + ┃ ┃ ┣━ 📄 Implementation.cs + ┃ ┃ ┣━ 📄 ImplementInternalInterface.cs + ┃ ┃ ┣━ 📄 ImplementsInterfaceWithInternal.cs + ┃ ┃ ┣━ 📄 ImplementsInterfaceWithInternalSubclass.cs + ┃ ┃ ┣━ 📄 ImplementsPrivateInterface.cs + ┃ ┃ ┣━ 📄 ImplictBaseOfBase.cs + ┃ ┃ ┣━ 📄 ImplictBaseOfBaseProxy.cs + ┃ ┃ ┣━ 📄 IMutableObjectLiteral.cs + ┃ ┃ ┣━ 📄 IMutableObjectLiteralProxy.cs + ┃ ┃ ┣━ 📄 InbetweenClass.cs + ┃ ┃ ┣━ 📄 INestedStruct.cs + ┃ ┃ ┣━ 📄 INonInternalInterface.cs + ┃ ┃ ┣━ 📄 INonInternalInterfaceProxy.cs + ┃ ┃ ┣━ 📄 InterfaceCollections.cs + ┃ ┃ ┣━ 📁 InterfaceInNamespaceIncludesClasses + ┃ ┃ ┃ ┣━ 📄 Foo.cs + ┃ ┃ ┃ ┣━ 📄 Hello.cs + ┃ ┃ ┃ ┣━ 📄 HelloProxy.cs + ┃ ┃ ┃ ┗━ 📄 IHello.cs + ┃ ┃ ┣━ 📁 InterfaceInNamespaceOnlyInterface + ┃ ┃ ┃ ┣━ 📄 Hello.cs + ┃ ┃ ┃ ┣━ 📄 HelloProxy.cs + ┃ ┃ ┃ ┗━ 📄 IHello.cs + ┃ ┃ ┣━ 📄 InterfacesMaker.cs + ┃ ┃ ┣━ 📁 Internal + ┃ ┃ ┃ ┗━ 📁 DependencyResolution + ┃ ┃ ┃ ┗━ 📄 Anchor.cs + ┃ ┃ ┣━ 📄 INullShouldBeTreatedAsUndefinedData.cs + ┃ ┃ ┣━ 📄 IObjectWithProperty.cs + ┃ ┃ ┣━ 📄 IObjectWithPropertyProxy.cs + ┃ ┃ ┣━ 📄 IOptionalMethod.cs + ┃ ┃ ┣━ 📄 IOptionalMethodProxy.cs + ┃ ┃ ┣━ 📄 IOptionalStruct.cs + ┃ ┃ ┣━ 📄 IParentStruct982.cs + ┃ ┃ ┣━ 📄 IPrivatelyImplemented.cs + ┃ ┃ ┣━ 📄 IPrivatelyImplementedProxy.cs + ┃ ┃ ┣━ 📄 IPublicInterface.cs + ┃ ┃ ┣━ 📄 IPublicInterface2.cs + ┃ ┃ ┣━ 📄 IPublicInterface2Proxy.cs + ┃ ┃ ┣━ 📄 IPublicInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IRandomNumberGenerator.cs + ┃ ┃ ┣━ 📄 IRandomNumberGeneratorProxy.cs + ┃ ┃ ┣━ 📄 IReturnJsii976.cs + ┃ ┃ ┣━ 📄 IReturnJsii976Proxy.cs + ┃ ┃ ┣━ 📄 IReturnsNumber.cs + ┃ ┃ ┣━ 📄 IReturnsNumberProxy.cs + ┃ ┃ ┣━ 📄 IRootStruct.cs + ┃ ┃ ┣━ 📄 ISecondLevelStruct.cs + ┃ ┃ ┣━ 📄 ISmellyStruct.cs + ┃ ┃ ┣━ 📄 Isomorphism.cs + ┃ ┃ ┣━ 📄 IsomorphismProxy.cs + ┃ ┃ ┣━ 📄 IStableInterface.cs + ┃ ┃ ┣━ 📄 IStableInterfaceProxy.cs + ┃ ┃ ┣━ 📄 IStableStruct.cs + ┃ ┃ ┣━ 📄 IStructA.cs + ┃ ┃ ┣━ 📄 IStructB.cs + ┃ ┃ ┣━ 📄 IStructParameterType.cs + ┃ ┃ ┣━ 📄 IStructReturningDelegate.cs + ┃ ┃ ┣━ 📄 IStructReturningDelegateProxy.cs + ┃ ┃ ┣━ 📄 IStructWithJavaReservedWords.cs + ┃ ┃ ┣━ 📄 ISupportsNiceJavaBuilderProps.cs + ┃ ┃ ┣━ 📄 ITopLevelStruct.cs + ┃ ┃ ┣━ 📄 IUnionProperties.cs + ┃ ┃ ┣━ 📄 JavaReservedWords.cs + ┃ ┃ ┣━ 📄 JSII417Derived.cs + ┃ ┃ ┣━ 📄 JSII417PublicBaseOfBase.cs + ┃ ┃ ┣━ 📄 Jsii487Derived.cs + ┃ ┃ ┣━ 📄 Jsii496Derived.cs + ┃ ┃ ┣━ 📄 JsiiAgent_.cs + ┃ ┃ ┣━ 📄 JSObjectLiteralForInterface.cs + ┃ ┃ ┣━ 📄 JSObjectLiteralToNative.cs + ┃ ┃ ┣━ 📄 JSObjectLiteralToNativeClass.cs + ┃ ┃ ┣━ 📄 JsonFormatter.cs + ┃ ┃ ┣━ 📄 LoadBalancedFargateServiceProps.cs + ┃ ┃ ┣━ 📄 LoadBalancedFargateServicePropsProxy.cs + ┃ ┃ ┣━ 📄 MethodNamedProperty.cs + ┃ ┃ ┣━ 📄 Multiply.cs + ┃ ┃ ┣━ 📄 NamespaceDoc.cs + ┃ ┃ ┣━ 📄 Negate.cs + ┃ ┃ ┣━ 📄 NestedStruct.cs + ┃ ┃ ┣━ 📄 NestedStructProxy.cs + ┃ ┃ ┣━ 📄 NodeStandardLibrary.cs + ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefined.cs + ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefinedData.cs + ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefinedDataProxy.cs + ┃ ┃ ┣━ 📄 NumberGenerator.cs + ┃ ┃ ┣━ 📄 ObjectRefsInCollections.cs + ┃ ┃ ┣━ 📄 ObjectWithPropertyProvider.cs + ┃ ┃ ┣━ 📄 Old.cs + ┃ ┃ ┣━ 📄 OptionalArgumentInvoker.cs + ┃ ┃ ┣━ 📄 OptionalConstructorArgument.cs + ┃ ┃ ┣━ 📄 OptionalStruct.cs + ┃ ┃ ┣━ 📄 OptionalStructConsumer.cs + ┃ ┃ ┣━ 📄 OptionalStructProxy.cs + ┃ ┃ ┣━ 📄 OverridableProtectedMember.cs + ┃ ┃ ┣━ 📄 OverrideReturnsObject.cs + ┃ ┃ ┣━ 📄 ParentStruct982.cs + ┃ ┃ ┣━ 📄 ParentStruct982Proxy.cs + ┃ ┃ ┣━ 📄 PartiallyInitializedThisConsumer.cs + ┃ ┃ ┣━ 📄 PartiallyInitializedThisConsumerProxy.cs + ┃ ┃ ┣━ 📄 Polymorphism.cs + ┃ ┃ ┣━ 📄 Power.cs + ┃ ┃ ┣━ 📄 PropertyNamedProperty.cs + ┃ ┃ ┣━ 📄 PublicClass.cs + ┃ ┃ ┣━ 📄 PythonReservedWords.cs + ┃ ┃ ┣━ 📁 PythonSelf + ┃ ┃ ┃ ┣━ 📄 ClassWithSelf.cs + ┃ ┃ ┃ ┣━ 📄 ClassWithSelfKwarg.cs + ┃ ┃ ┃ ┣━ 📄 IInterfaceWithSelf.cs + ┃ ┃ ┃ ┣━ 📄 IInterfaceWithSelfProxy.cs + ┃ ┃ ┃ ┣━ 📄 IStructWithSelf.cs + ┃ ┃ ┃ ┣━ 📄 StructWithSelf.cs + ┃ ┃ ┃ ┗━ 📄 StructWithSelfProxy.cs + ┃ ┃ ┣━ 📄 ReferenceEnumFromScopedPackage.cs + ┃ ┃ ┣━ 📄 ReturnsPrivateImplementationOfInterface.cs + ┃ ┃ ┣━ 📄 RootStruct.cs + ┃ ┃ ┣━ 📄 RootStructProxy.cs + ┃ ┃ ┣━ 📄 RootStructValidator.cs + ┃ ┃ ┣━ 📄 RuntimeTypeChecking.cs + ┃ ┃ ┣━ 📄 SecondLevelStruct.cs + ┃ ┃ ┣━ 📄 SecondLevelStructProxy.cs + ┃ ┃ ┣━ 📄 SingleInstanceTwoTypes.cs + ┃ ┃ ┣━ 📄 SingletonInt.cs + ┃ ┃ ┣━ 📄 SingletonIntEnum.cs + ┃ ┃ ┣━ 📄 SingletonString.cs + ┃ ┃ ┣━ 📄 SingletonStringEnum.cs + ┃ ┃ ┣━ 📄 SmellyStruct.cs + ┃ ┃ ┣━ 📄 SmellyStructProxy.cs + ┃ ┃ ┣━ 📄 SomeTypeJsii976.cs + ┃ ┃ ┣━ 📄 StableClass.cs + ┃ ┃ ┣━ 📄 StableEnum.cs + ┃ ┃ ┣━ 📄 StableStruct.cs + ┃ ┃ ┣━ 📄 StableStructProxy.cs + ┃ ┃ ┣━ 📄 StaticContext.cs + ┃ ┃ ┣━ 📄 Statics.cs + ┃ ┃ ┣━ 📄 StringEnum.cs + ┃ ┃ ┣━ 📄 StripInternal.cs + ┃ ┃ ┣━ 📄 StructA.cs + ┃ ┃ ┣━ 📄 StructAProxy.cs + ┃ ┃ ┣━ 📄 StructB.cs + ┃ ┃ ┣━ 📄 StructBProxy.cs + ┃ ┃ ┣━ 📄 StructParameterType.cs + ┃ ┃ ┣━ 📄 StructParameterTypeProxy.cs + ┃ ┃ ┣━ 📄 StructPassing.cs + ┃ ┃ ┣━ 📄 StructUnionConsumer.cs + ┃ ┃ ┣━ 📄 StructWithJavaReservedWords.cs + ┃ ┃ ┣━ 📄 StructWithJavaReservedWordsProxy.cs + ┃ ┃ ┣━ 📁 Submodule + ┃ ┃ ┃ ┣━ 📁 BackReferences + ┃ ┃ ┃ ┃ ┣━ 📄 IMyClassReference.cs + ┃ ┃ ┃ ┃ ┣━ 📄 MyClassReference.cs + ┃ ┃ ┃ ┃ ┗━ 📄 MyClassReferenceProxy.cs + ┃ ┃ ┃ ┣━ 📁 Child + ┃ ┃ ┃ ┃ ┣━ 📄 Awesomeness.cs + ┃ ┃ ┃ ┃ ┣━ 📄 Goodness.cs + ┃ ┃ ┃ ┃ ┣━ 📄 IKwargsProps.cs + ┃ ┃ ┃ ┃ ┣━ 📄 InnerClass.cs + ┃ ┃ ┃ ┃ ┣━ 📄 ISomeStruct.cs + ┃ ┃ ┃ ┃ ┣━ 📄 IStructure.cs + ┃ ┃ ┃ ┃ ┣━ 📄 KwargsProps.cs + ┃ ┃ ┃ ┃ ┣━ 📄 KwargsPropsProxy.cs + ┃ ┃ ┃ ┃ ┣━ 📄 OuterClass.cs + ┃ ┃ ┃ ┃ ┣━ 📄 SomeEnum.cs + ┃ ┃ ┃ ┃ ┣━ 📄 SomeStruct.cs + ┃ ┃ ┃ ┃ ┣━ 📄 SomeStructProxy.cs + ┃ ┃ ┃ ┃ ┣━ 📄 Structure.cs + ┃ ┃ ┃ ┃ ┗━ 📄 StructureProxy.cs + ┃ ┃ ┃ ┣━ 📁 Isolated + ┃ ┃ ┃ ┃ ┗━ 📄 Kwargs.cs + ┃ ┃ ┃ ┣━ 📄 MyClass.cs + ┃ ┃ ┃ ┗━ 📁 NestedSubmodule + ┃ ┃ ┃ ┣━ 📁 DeeplyNested + ┃ ┃ ┃ ┃ ┣━ 📄 INamespaced.cs + ┃ ┃ ┃ ┃ ┗━ 📄 INamespacedProxy.cs + ┃ ┃ ┃ ┣━ 📄 Namespaced.cs + ┃ ┃ ┃ ┗━ 📄 NamespacedProxy.cs + ┃ ┃ ┣━ 📄 Sum.cs + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilder.cs + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilderProps.cs + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilderPropsProxy.cs + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilderWithRequiredProps.cs + ┃ ┃ ┣━ 📄 SyncVirtualMethods.cs + ┃ ┃ ┣━ 📄 Thrower.cs + ┃ ┃ ┣━ 📄 TopLevelStruct.cs + ┃ ┃ ┣━ 📄 TopLevelStructProxy.cs + ┃ ┃ ┣━ 📄 UmaskCheck.cs + ┃ ┃ ┣━ 📄 UnaryOperation.cs + ┃ ┃ ┣━ 📄 UnaryOperationProxy.cs + ┃ ┃ ┣━ 📄 UnionProperties.cs + ┃ ┃ ┣━ 📄 UnionPropertiesProxy.cs + ┃ ┃ ┣━ 📄 UpcasingReflectable.cs + ┃ ┃ ┣━ 📄 UseBundledDependency.cs + ┃ ┃ ┣━ 📄 UseCalcBase.cs + ┃ ┃ ┣━ 📄 UsesInterfaceWithProperties.cs + ┃ ┃ ┣━ 📄 VariadicInvoker.cs + ┃ ┃ ┣━ 📄 VariadicMethod.cs + ┃ ┃ ┣━ 📄 VirtualMethodPlayground.cs + ┃ ┃ ┣━ 📄 VoidCallback.cs + ┃ ┃ ┣━ 📄 VoidCallbackProxy.cs + ┃ ┃ ┗━ 📄 WithPrivatePropertyInConstructor.cs + ┃ ┣━ 📄 Amazon.JSII.Tests.CalculatorPackageId.csproj + ┃ ┣━ 📄 AssemblyInfo.cs + ┃ ┗━ 📄 jsii-calc-0.0.0.tgz + ┣━ 📁 java + ┃ ┣━ 📄 pom.xml + ┃ ┗━ 📁 src + ┃ ┗━ 📁 main + ┃ ┣━ 📁 java + ┃ ┃ ┗━ 📁 software + ┃ ┃ ┗━ 📁 amazon + ┃ ┃ ┗━ 📁 jsii + ┃ ┃ ┗━ 📁 tests + ┃ ┃ ┗━ 📁 calculator + ┃ ┃ ┣━ 📄 $Module.java + ┃ ┃ ┣━ 📄 AbstractClass.java + ┃ ┃ ┣━ 📄 AbstractClassBase.java + ┃ ┃ ┣━ 📄 AbstractClassReturner.java + ┃ ┃ ┣━ 📄 AbstractSuite.java + ┃ ┃ ┣━ 📄 Add.java + ┃ ┃ ┣━ 📄 AllowedMethodNames.java + ┃ ┃ ┣━ 📄 AllTypes.java + ┃ ┃ ┣━ 📄 AllTypesEnum.java + ┃ ┃ ┣━ 📄 AmbiguousParameters.java + ┃ ┃ ┣━ 📄 AnonymousImplementationProvider.java + ┃ ┃ ┣━ 📄 AsyncVirtualMethods.java + ┃ ┃ ┣━ 📄 AugmentableClass.java + ┃ ┃ ┣━ 📄 BaseJsii976.java + ┃ ┃ ┣━ 📄 Bell.java + ┃ ┃ ┣━ 📄 BinaryOperation.java + ┃ ┃ ┣━ 📄 Calculator.java + ┃ ┃ ┣━ 📄 CalculatorProps.java + ┃ ┃ ┣━ 📄 ChildStruct982.java + ┃ ┃ ┣━ 📄 ClassThatImplementsTheInternalInterface.java + ┃ ┃ ┣━ 📄 ClassThatImplementsThePrivateInterface.java + ┃ ┃ ┣━ 📄 ClassWithCollections.java + ┃ ┃ ┣━ 📄 ClassWithDocs.java + ┃ ┃ ┣━ 📄 ClassWithJavaReservedWords.java + ┃ ┃ ┣━ 📄 ClassWithMutableObjectLiteralProperty.java + ┃ ┃ ┣━ 📄 ClassWithPrivateConstructorAndAutomaticProperties.java + ┃ ┃ ┣━ 📁 composition + ┃ ┃ ┃ ┗━ 📄 CompositeOperation.java + ┃ ┃ ┣━ 📄 ConfusingToJackson.java + ┃ ┃ ┣━ 📄 ConfusingToJacksonStruct.java + ┃ ┃ ┣━ 📄 ConstructorPassesThisOut.java + ┃ ┃ ┣━ 📄 Constructors.java + ┃ ┃ ┣━ 📄 ConsumePureInterface.java + ┃ ┃ ┣━ 📄 ConsumerCanRingBell.java + ┃ ┃ ┣━ 📄 ConsumersOfThisCrazyTypeSystem.java + ┃ ┃ ┣━ 📄 DataRenderer.java + ┃ ┃ ┣━ 📄 DefaultedConstructorArgument.java + ┃ ┃ ┣━ 📄 Demonstrate982.java + ┃ ┃ ┣━ 📄 DeprecatedClass.java + ┃ ┃ ┣━ 📄 DeprecatedEnum.java + ┃ ┃ ┣━ 📄 DeprecatedStruct.java + ┃ ┃ ┣━ 📁 derived_class_has_no_properties + ┃ ┃ ┃ ┣━ 📄 Base.java + ┃ ┃ ┃ ┗━ 📄 Derived.java + ┃ ┃ ┣━ 📄 DerivedStruct.java + ┃ ┃ ┣━ 📄 DiamondInheritanceBaseLevelStruct.java + ┃ ┃ ┣━ 📄 DiamondInheritanceFirstMidLevelStruct.java + ┃ ┃ ┣━ 📄 DiamondInheritanceSecondMidLevelStruct.java + ┃ ┃ ┣━ 📄 DiamondInheritanceTopLevelStruct.java + ┃ ┃ ┣━ 📄 DisappointingCollectionSource.java + ┃ ┃ ┣━ 📄 DocumentedClass.java + ┃ ┃ ┣━ 📄 DoNotOverridePrivates.java + ┃ ┃ ┣━ 📄 DoNotRecognizeAnyAsOptional.java + ┃ ┃ ┣━ 📄 DontComplainAboutVariadicAfterOptional.java + ┃ ┃ ┣━ 📄 DoubleTrouble.java + ┃ ┃ ┣━ 📄 EnumDispenser.java + ┃ ┃ ┣━ 📄 EraseUndefinedHashValues.java + ┃ ┃ ┣━ 📄 EraseUndefinedHashValuesOptions.java + ┃ ┃ ┣━ 📄 ExperimentalClass.java + ┃ ┃ ┣━ 📄 ExperimentalEnum.java + ┃ ┃ ┣━ 📄 ExperimentalStruct.java + ┃ ┃ ┣━ 📄 ExportedBaseClass.java + ┃ ┃ ┣━ 📄 ExtendsInternalInterface.java + ┃ ┃ ┣━ 📄 ExternalClass.java + ┃ ┃ ┣━ 📄 ExternalEnum.java + ┃ ┃ ┣━ 📄 ExternalStruct.java + ┃ ┃ ┣━ 📄 GiveMeStructs.java + ┃ ┃ ┣━ 📄 Greetee.java + ┃ ┃ ┣━ 📄 GreetingAugmenter.java + ┃ ┃ ┣━ 📄 IAnonymousImplementationProvider.java + ┃ ┃ ┣━ 📄 IAnonymouslyImplementMe.java + ┃ ┃ ┣━ 📄 IAnotherPublicInterface.java + ┃ ┃ ┣━ 📄 IBell.java + ┃ ┃ ┣━ 📄 IBellRinger.java + ┃ ┃ ┣━ 📄 IConcreteBellRinger.java + ┃ ┃ ┣━ 📄 IDeprecatedInterface.java + ┃ ┃ ┣━ 📄 IExperimentalInterface.java + ┃ ┃ ┣━ 📄 IExtendsPrivateInterface.java + ┃ ┃ ┣━ 📄 IExternalInterface.java + ┃ ┃ ┣━ 📄 IFriendlier.java + ┃ ┃ ┣━ 📄 IFriendlyRandomGenerator.java + ┃ ┃ ┣━ 📄 IInterfaceImplementedByAbstractClass.java + ┃ ┃ ┣━ 📄 IInterfaceThatShouldNotBeADataType.java + ┃ ┃ ┣━ 📄 IInterfaceWithInternal.java + ┃ ┃ ┣━ 📄 IInterfaceWithMethods.java + ┃ ┃ ┣━ 📄 IInterfaceWithOptionalMethodArguments.java + ┃ ┃ ┣━ 📄 IInterfaceWithProperties.java + ┃ ┃ ┣━ 📄 IInterfaceWithPropertiesExtension.java + ┃ ┃ ┣━ 📄 IJSII417Derived.java + ┃ ┃ ┣━ 📄 IJSII417PublicBaseOfBase.java + ┃ ┃ ┣━ 📄 IJsii487External.java + ┃ ┃ ┣━ 📄 IJsii487External2.java + ┃ ┃ ┣━ 📄 IJsii496.java + ┃ ┃ ┣━ 📄 Implementation.java + ┃ ┃ ┣━ 📄 ImplementInternalInterface.java + ┃ ┃ ┣━ 📄 ImplementsInterfaceWithInternal.java + ┃ ┃ ┣━ 📄 ImplementsInterfaceWithInternalSubclass.java + ┃ ┃ ┣━ 📄 ImplementsPrivateInterface.java + ┃ ┃ ┣━ 📄 ImplictBaseOfBase.java + ┃ ┃ ┣━ 📄 IMutableObjectLiteral.java + ┃ ┃ ┣━ 📄 InbetweenClass.java + ┃ ┃ ┣━ 📄 INonInternalInterface.java + ┃ ┃ ┣━ 📁 interface_in_namespace_includes_classes + ┃ ┃ ┃ ┣━ 📄 Foo.java + ┃ ┃ ┃ ┗━ 📄 Hello.java + ┃ ┃ ┣━ 📁 interface_in_namespace_only_interface + ┃ ┃ ┃ ┗━ 📄 Hello.java + ┃ ┃ ┣━ 📄 InterfaceCollections.java + ┃ ┃ ┣━ 📄 InterfacesMaker.java + ┃ ┃ ┣━ 📄 IObjectWithProperty.java + ┃ ┃ ┣━ 📄 IOptionalMethod.java + ┃ ┃ ┣━ 📄 IPrivatelyImplemented.java + ┃ ┃ ┣━ 📄 IPublicInterface.java + ┃ ┃ ┣━ 📄 IPublicInterface2.java + ┃ ┃ ┣━ 📄 IRandomNumberGenerator.java + ┃ ┃ ┣━ 📄 IReturnJsii976.java + ┃ ┃ ┣━ 📄 IReturnsNumber.java + ┃ ┃ ┣━ 📄 Isomorphism.java + ┃ ┃ ┣━ 📄 IStableInterface.java + ┃ ┃ ┣━ 📄 IStructReturningDelegate.java + ┃ ┃ ┣━ 📄 JavaReservedWords.java + ┃ ┃ ┣━ 📄 JSII417Derived.java + ┃ ┃ ┣━ 📄 JSII417PublicBaseOfBase.java + ┃ ┃ ┣━ 📄 Jsii487Derived.java + ┃ ┃ ┣━ 📄 Jsii496Derived.java + ┃ ┃ ┣━ 📄 JsiiAgent.java + ┃ ┃ ┣━ 📄 JSObjectLiteralForInterface.java + ┃ ┃ ┣━ 📄 JSObjectLiteralToNative.java + ┃ ┃ ┣━ 📄 JSObjectLiteralToNativeClass.java + ┃ ┃ ┣━ 📄 JsonFormatter.java + ┃ ┃ ┣━ 📄 LoadBalancedFargateServiceProps.java + ┃ ┃ ┣━ 📄 MethodNamedProperty.java + ┃ ┃ ┣━ 📄 Multiply.java + ┃ ┃ ┣━ 📄 Negate.java + ┃ ┃ ┣━ 📄 NestedStruct.java + ┃ ┃ ┣━ 📄 NodeStandardLibrary.java + ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefined.java + ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefinedData.java + ┃ ┃ ┣━ 📄 NumberGenerator.java + ┃ ┃ ┣━ 📄 ObjectRefsInCollections.java + ┃ ┃ ┣━ 📄 ObjectWithPropertyProvider.java + ┃ ┃ ┣━ 📄 Old.java + ┃ ┃ ┣━ 📄 OptionalArgumentInvoker.java + ┃ ┃ ┣━ 📄 OptionalConstructorArgument.java + ┃ ┃ ┣━ 📄 OptionalStruct.java + ┃ ┃ ┣━ 📄 OptionalStructConsumer.java + ┃ ┃ ┣━ 📄 OverridableProtectedMember.java + ┃ ┃ ┣━ 📄 OverrideReturnsObject.java + ┃ ┃ ┣━ 📄 package-info.java + ┃ ┃ ┣━ 📄 ParentStruct982.java + ┃ ┃ ┣━ 📄 PartiallyInitializedThisConsumer.java + ┃ ┃ ┣━ 📄 Polymorphism.java + ┃ ┃ ┣━ 📄 Power.java + ┃ ┃ ┣━ 📄 PropertyNamedProperty.java + ┃ ┃ ┣━ 📄 PublicClass.java + ┃ ┃ ┣━ 📁 python_self + ┃ ┃ ┃ ┣━ 📄 ClassWithSelf.java + ┃ ┃ ┃ ┣━ 📄 ClassWithSelfKwarg.java + ┃ ┃ ┃ ┣━ 📄 IInterfaceWithSelf.java + ┃ ┃ ┃ ┗━ 📄 StructWithSelf.java + ┃ ┃ ┣━ 📄 PythonReservedWords.java + ┃ ┃ ┣━ 📄 ReferenceEnumFromScopedPackage.java + ┃ ┃ ┣━ 📄 ReturnsPrivateImplementationOfInterface.java + ┃ ┃ ┣━ 📄 RootStruct.java + ┃ ┃ ┣━ 📄 RootStructValidator.java + ┃ ┃ ┣━ 📄 RuntimeTypeChecking.java + ┃ ┃ ┣━ 📄 SecondLevelStruct.java + ┃ ┃ ┣━ 📄 SingleInstanceTwoTypes.java + ┃ ┃ ┣━ 📄 SingletonInt.java + ┃ ┃ ┣━ 📄 SingletonIntEnum.java + ┃ ┃ ┣━ 📄 SingletonString.java + ┃ ┃ ┣━ 📄 SingletonStringEnum.java + ┃ ┃ ┣━ 📄 SmellyStruct.java + ┃ ┃ ┣━ 📄 SomeTypeJsii976.java + ┃ ┃ ┣━ 📄 StableClass.java + ┃ ┃ ┣━ 📄 StableEnum.java + ┃ ┃ ┣━ 📄 StableStruct.java + ┃ ┃ ┣━ 📄 StaticContext.java + ┃ ┃ ┣━ 📄 Statics.java + ┃ ┃ ┣━ 📄 StringEnum.java + ┃ ┃ ┣━ 📄 StripInternal.java + ┃ ┃ ┣━ 📄 StructA.java + ┃ ┃ ┣━ 📄 StructB.java + ┃ ┃ ┣━ 📄 StructParameterType.java + ┃ ┃ ┣━ 📄 StructPassing.java + ┃ ┃ ┣━ 📄 StructUnionConsumer.java + ┃ ┃ ┣━ 📄 StructWithJavaReservedWords.java + ┃ ┃ ┣━ 📁 submodule + ┃ ┃ ┃ ┣━ 📁 back_references + ┃ ┃ ┃ ┃ ┗━ 📄 MyClassReference.java + ┃ ┃ ┃ ┣━ 📁 child + ┃ ┃ ┃ ┃ ┣━ 📄 Awesomeness.java + ┃ ┃ ┃ ┃ ┣━ 📄 Goodness.java + ┃ ┃ ┃ ┃ ┣━ 📄 InnerClass.java + ┃ ┃ ┃ ┃ ┣━ 📄 KwargsProps.java + ┃ ┃ ┃ ┃ ┣━ 📄 OuterClass.java + ┃ ┃ ┃ ┃ ┣━ 📄 SomeEnum.java + ┃ ┃ ┃ ┃ ┣━ 📄 SomeStruct.java + ┃ ┃ ┃ ┃ ┗━ 📄 Structure.java + ┃ ┃ ┃ ┣━ 📁 isolated + ┃ ┃ ┃ ┃ ┗━ 📄 Kwargs.java + ┃ ┃ ┃ ┣━ 📄 MyClass.java + ┃ ┃ ┃ ┗━ 📁 nested_submodule + ┃ ┃ ┃ ┣━ 📁 deeply_nested + ┃ ┃ ┃ ┃ ┗━ 📄 INamespaced.java + ┃ ┃ ┃ ┗━ 📄 Namespaced.java + ┃ ┃ ┣━ 📄 Sum.java + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilder.java + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilderProps.java + ┃ ┃ ┣━ 📄 SupportsNiceJavaBuilderWithRequiredProps.java + ┃ ┃ ┣━ 📄 SyncVirtualMethods.java + ┃ ┃ ┣━ 📄 Thrower.java + ┃ ┃ ┣━ 📄 TopLevelStruct.java + ┃ ┃ ┣━ 📄 UmaskCheck.java + ┃ ┃ ┣━ 📄 UnaryOperation.java + ┃ ┃ ┣━ 📄 UnionProperties.java + ┃ ┃ ┣━ 📄 UpcasingReflectable.java + ┃ ┃ ┣━ 📄 UseBundledDependency.java + ┃ ┃ ┣━ 📄 UseCalcBase.java + ┃ ┃ ┣━ 📄 UsesInterfaceWithProperties.java + ┃ ┃ ┣━ 📄 VariadicInvoker.java + ┃ ┃ ┣━ 📄 VariadicMethod.java + ┃ ┃ ┣━ 📄 VirtualMethodPlayground.java + ┃ ┃ ┣━ 📄 VoidCallback.java + ┃ ┃ ┗━ 📄 WithPrivatePropertyInConstructor.java + ┃ ┗━ 📁 resources + ┃ ┗━ 📁 software + ┃ ┗━ 📁 amazon + ┃ ┗━ 📁 jsii + ┃ ┗━ 📁 tests + ┃ ┗━ 📁 calculator + ┃ ┣━ 📄 $Module.txt + ┃ ┗━ 📄 jsii-calc@0.0.0.jsii.tgz + ┣━ 📁 js + ┃ ┗━ 📄 jsii-calc@0.0.0.jsii.tgz + ┗━ 📁 python + ┣━ 📄 MANIFEST.in + ┣━ 📄 pyproject.toml + ┣━ 📄 README.md + ┣━ 📄 setup.py + ┗━ 📁 src + ┗━ 📁 jsii_calc + ┣━ 📄 __init__.py + ┣━ 📁 _jsii + ┃ ┣━ 📄 __init__.py + ┃ ┗━ 📄 jsii-calc@0.0.0.jsii.tgz + ┣━ 📁 composition + ┃ ┗━ 📄 __init__.py + ┣━ 📁 derived_class_has_no_properties + ┃ ┗━ 📄 __init__.py + ┣━ 📁 interface_in_namespace_includes_classes + ┃ ┗━ 📄 __init__.py + ┣━ 📁 interface_in_namespace_only_interface + ┃ ┗━ 📄 __init__.py + ┣━ 📄 py.typed + ┣━ 📁 python_self + ┃ ┗━ 📄 __init__.py + ┗━ 📁 submodule + ┣━ 📄 __init__.py + ┣━ 📁 back_references + ┃ ┗━ 📄 __init__.py + ┣━ 📁 child + ┃ ┗━ 📄 __init__.py + ┣━ 📁 isolated + ┃ ┗━ 📄 __init__.py + ┗━ 📁 nested_submodule + ┣━ 📄 __init__.py + ┗━ 📁 deeply_nested + ┗━ 📄 __init__.py +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii 1`] = ` +Object { + Symbol(file): "{ + \\"author\\": { + \\"name\\": \\"Amazon Web Services\\", + \\"organization\\": true, + \\"roles\\": [ + \\"author\\" + ], + \\"url\\": \\"https://aws.amazon.com\\" + }, + \\"bundled\\": { + \\"@fixtures/jsii-calc-bundled\\": \\"^0.19.0\\" + }, + \\"contributors\\": [ + { + \\"name\\": \\"Elad Ben-Israel\\", + \\"roles\\": [ + \\"maintainer\\" + ], + \\"url\\": \\"https://github.com/eladb\\" + }, + { + \\"name\\": \\"Rico Huijbers\\", + \\"roles\\": [ + \\"maintainer\\" + ], + \\"url\\": \\"https://github.com/rix0rrr\\" + }, + { + \\"name\\": \\"Romain Marcadier-Muller\\", + \\"roles\\": [ + \\"maintainer\\" + ], + \\"url\\": \\"https://github.com/RomainMuller\\" + } + ], + \\"dependencies\\": { + \\"@scope/jsii-calc-base\\": \\"^0.0.0\\", + \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\", + \\"@scope/jsii-calc-lib\\": \\"^0.0.0\\" + }, + \\"dependencyClosure\\": { + \\"@scope/jsii-calc-base\\": { + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base\\", + \\"module\\": \\"scope.jsii_calc_base\\" + } + } + }, + \\"@scope/jsii-calc-base-of-base\\": { + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-base-of-base\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-base-of-base\\", + \\"module\\": \\"scope.jsii_calc_base_of_base\\" + } + } + }, + \\"@scope/jsii-calc-lib\\": { + \\"submodules\\": { + \\"@scope/jsii-calc-lib.submodule\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 112 + }, + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CustomSubmoduleName\\" + }, + \\"java\\": { + \\"package\\": \\"software.amazon.jsii.tests.calculator.custom_submodule_name\\" + }, + \\"python\\": { + \\"module\\": \\"scope.jsii_calc_lib.custom_submodule_name\\" + } + } + } + }, + \\"targets\\": { + \\"dotnet\\": { + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.LibNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.LibPackageId\\", + \\"versionSuffix\\": \\"-devpreview\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator-lib\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\", + \\"versionSuffix\\": \\".DEVPREVIEW\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator.lib\\" + }, + \\"js\\": { + \\"npm\\": \\"@scope/jsii-calc-lib\\" + }, + \\"python\\": { + \\"distName\\": \\"scope.jsii-calc-lib\\", + \\"module\\": \\"scope.jsii_calc_lib\\" + } + } + } + }, + \\"description\\": \\"A simple calcuator built on JSII.\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"homepage\\": \\"https://github.com/aws/jsii\\", + \\"jsiiVersion\\": \\"0.0.0\\", + \\"keywords\\": [ + \\"aws\\", + \\"jsii\\", + \\"test\\" + ], + \\"license\\": \\"Apache-2.0\\", + \\"metadata\\": { + \\"jsii:boolean\\": true, + \\"jsii:number\\": 1337, + \\"jsii:object\\": { + \\"string\\": \\"yes!\\" + } + }, + \\"name\\": \\"jsii-calc\\", + \\"readme\\": { + \\"markdown\\": \\"# jsii Calculator\\\\n\\\\nThis library is used to demonstrate and test the features of JSII\\\\n\\\\n## How to use running sum API:\\\\n\\\\nFirst, create a calculator:\\\\n\\\\n\`\`\`ts\\\\nconst calculator = new calc.Calculator();\\\\n\`\`\`\\\\n\\\\nThen call some operations:\\\\n\\\\n\\\\n\`\`\`ts fixture=with-calculator\\\\ncalculator.add(10);\\\\n\`\`\`\\\\n\\\\n## Code Samples\\\\n\\\\n\`\`\`ts\\\\n/* This is totes a magic comment in here, just you wait! */\\\\nconst foo = 'bar';\\\\n\`\`\`\\\\n\\" + }, + \\"repository\\": { + \\"directory\\": \\"packages/jsii-calc\\", + \\"type\\": \\"git\\", + \\"url\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"schema\\": \\"jsii/0.10.0\\", + \\"submodules\\": { + \\"@scope/jsii-calc-lib.submodule\\": { + \\"locationInModule\\": { + \\"filename\\": \\"../@scope/jsii-calc-lib/build/index.d.ts\\", + \\"line\\": 94 + } + }, + \\"jsii-calc.DerivedClassHasNoProperties\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 325 + } + }, + \\"jsii-calc.InterfaceInNamespaceIncludesClasses\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1206 + } + }, + \\"jsii-calc.InterfaceInNamespaceOnlyInterface\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1199 + } + }, + \\"jsii-calc.PythonSelf\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1090 + } + }, + \\"jsii-calc.composition\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 134 + } + }, + \\"jsii-calc.submodule\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/index.ts\\", + \\"line\\": 8 + } + }, + \\"jsii-calc.submodule.back_references\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 5 + } + }, + \\"jsii-calc.submodule.child\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 1 + } + }, + \\"jsii-calc.submodule.isolated\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/index.ts\\", + \\"line\\": 2 + } + }, + \\"jsii-calc.submodule.nested_submodule\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 4 + } + }, + \\"jsii-calc.submodule.nested_submodule.deeplyNested\\": { + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 6 + } + } + }, + \\"targets\\": { + \\"dotnet\\": { + \\"iconUrl\\": \\"https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png\\", + \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace\\", + \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId\\" + }, + \\"java\\": { + \\"maven\\": { + \\"artifactId\\": \\"calculator\\", + \\"groupId\\": \\"software.amazon.jsii.tests\\" + }, + \\"package\\": \\"software.amazon.jsii.tests.calculator\\" + }, + \\"js\\": { + \\"npm\\": \\"jsii-calc\\" + }, + \\"python\\": { + \\"distName\\": \\"jsii-calc\\", + \\"module\\": \\"jsii_calc\\" + } + }, + \\"types\\": { + \\"jsii-calc.AbstractClass\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.AbstractClassBase\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AbstractClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1250 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1256 + }, + \\"name\\": \\"abstractMethod\\", + \\"parameters\\": [ + { + \\"name\\": \\"name\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1252 + }, + \\"name\\": \\"nonAbstractMethod\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"AbstractClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1258 + }, + \\"name\\": \\"propFromInterface\\", + \\"overrides\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.AbstractClassBase\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AbstractClassBase\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1246 + }, + \\"name\\": \\"AbstractClassBase\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1247 + }, + \\"name\\": \\"abstractProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.AbstractClassReturner\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AbstractClassReturner\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1273 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1274 + }, + \\"name\\": \\"giveMeAbstract\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AbstractClass\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1278 + }, + \\"name\\": \\"giveMeInterface\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + } + } + } + ], + \\"name\\": \\"AbstractClassReturner\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1282 + }, + \\"name\\": \\"returnAbstractFromProperty\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AbstractClassBase\\" + } + } + ] + }, + \\"jsii-calc.AbstractSuite\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Ensures abstract members implementations correctly register overrides in various languages.\\" + }, + \\"fqn\\": \\"jsii-calc.AbstractSuite\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 411 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 413 + }, + \\"name\\": \\"someMethod\\", + \\"parameters\\": [ + { + \\"name\\": \\"str\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"protected\\": true, + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 419 + }, + \\"name\\": \\"workItAll\\", + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"a \`string\`.\\" + }, + \\"name\\": \\"seed\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"AbstractSuite\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 412 + }, + \\"name\\": \\"property\\", + \\"protected\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Add\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.BinaryOperation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The \\\\\\"+\\\\\\" binary operation.\\" + }, + \\"fqn\\": \\"jsii-calc.Add\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Creates a BinaryOperation.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 49 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"Left-hand side operand.\\" + }, + \\"name\\": \\"lhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"Right-hand side operand.\\" + }, + \\"name\\": \\"rhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 61 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 66 + }, + \\"name\\": \\"toString\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Add\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 62 + }, + \\"name\\": \\"value\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.AllTypes\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"The setters will validate\\\\nthat the value set is of the expected type and throw otherwise.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This class includes property for all types supported by jsii.\\" + }, + \\"fqn\\": \\"jsii-calc.AllTypes\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 63 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 232 + }, + \\"name\\": \\"anyIn\\", + \\"parameters\\": [ + { + \\"name\\": \\"inp\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 224 + }, + \\"name\\": \\"anyOut\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 220 + }, + \\"name\\": \\"enumMethod\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StringEnum\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StringEnum\\" + } + } + } + ], + \\"name\\": \\"AllTypes\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 216 + }, + \\"name\\": \\"enumPropertyValue\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 180 + }, + \\"name\\": \\"anyArrayProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 181 + }, + \\"name\\": \\"anyMapProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 179 + }, + \\"name\\": \\"anyProperty\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 165 + }, + \\"name\\": \\"arrayProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 68 + }, + \\"name\\": \\"booleanProperty\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 114 + }, + \\"name\\": \\"dateProperty\\", + \\"type\\": { + \\"primitive\\": \\"date\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 200 + }, + \\"name\\": \\"enumProperty\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 133 + }, + \\"name\\": \\"jsonProperty\\", + \\"type\\": { + \\"primitive\\": \\"json\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 150 + }, + \\"name\\": \\"mapProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 99 + }, + \\"name\\": \\"numberProperty\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 83 + }, + \\"name\\": \\"stringProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 192 + }, + \\"name\\": \\"unionArrayProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"number\\" + }, + { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + ] + } + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 193 + }, + \\"name\\": \\"unionMapProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"string\\" + }, + { + \\"primitive\\": \\"number\\" + }, + { + \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + } + ] + } + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 191 + }, + \\"name\\": \\"unionProperty\\", + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"string\\" + }, + { + \\"primitive\\": \\"number\\" + }, + { + \\"fqn\\": \\"jsii-calc.Multiply\\" + }, + { + \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + } + ] + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 186 + }, + \\"name\\": \\"unknownArrayProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 187 + }, + \\"name\\": \\"unknownMapProperty\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 185 + }, + \\"name\\": \\"unknownProperty\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 197 + }, + \\"name\\": \\"optionalEnumValue\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StringEnum\\" + } + } + ] + }, + \\"jsii-calc.AllTypesEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AllTypesEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 33 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"MY_ENUM_VALUE\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"YOUR_ENUM_VALUE\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"THIS_IS_GREAT\\" + } + ], + \\"name\\": \\"AllTypesEnum\\" + }, + \\"jsii-calc.AllowedMethodNames\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AllowedMethodNames\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 615 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 623 + }, + \\"name\\": \\"getBar\\", + \\"parameters\\": [ + { + \\"name\\": \\"_p1\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"_p2\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 619 + }, + \\"name\\": \\"getFoo\\", + \\"parameters\\": [ + { + \\"name\\": \\"withParam\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 634 + }, + \\"name\\": \\"setBar\\", + \\"parameters\\": [ + { + \\"name\\": \\"_x\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"_y\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"_z\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 630 + }, + \\"name\\": \\"setFoo\\", + \\"parameters\\": [ + { + \\"name\\": \\"_x\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"_y\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + } + ], + \\"name\\": \\"AllowedMethodNames\\" + }, + \\"jsii-calc.AmbiguousParameters\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AmbiguousParameters\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2683 + }, + \\"parameters\\": [ + { + \\"name\\": \\"scope\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Bell\\" + } + }, + { + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StructParameterType\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2682 + }, + \\"name\\": \\"AmbiguousParameters\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2685 + }, + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StructParameterType\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2684 + }, + \\"name\\": \\"scope\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Bell\\" + } + } + ] + }, + \\"jsii-calc.AnonymousImplementationProvider\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AnonymousImplementationProvider\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IAnonymousImplementationProvider\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2212 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2216 + }, + \\"name\\": \\"provideAsClass\\", + \\"overrides\\": \\"jsii-calc.IAnonymousImplementationProvider\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Implementation\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2220 + }, + \\"name\\": \\"provideAsInterface\\", + \\"overrides\\": \\"jsii-calc.IAnonymousImplementationProvider\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\" + } + } + } + ], + \\"name\\": \\"AnonymousImplementationProvider\\" + }, + \\"jsii-calc.AsyncVirtualMethods\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AsyncVirtualMethods\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 333 + }, + \\"methods\\": [ + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 334 + }, + \\"name\\": \\"callMe\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Just calls \\\\\\"overrideMeToo\\\\\\".\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 353 + }, + \\"name\\": \\"callMe2\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"remarks\\": \\"This is a \\\\\\"double promise\\\\\\" situation, which\\\\nmeans that callbacks are not going to be available immediate, but only\\\\nafter an \\\\\\"immediates\\\\\\" cycle.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This method calls the \\\\\\"callMe\\\\\\" async method indirectly, which will then invoke a virtual method.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 363 + }, + \\"name\\": \\"callMeDoublePromise\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 371 + }, + \\"name\\": \\"dontOverrideMe\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 342 + }, + \\"name\\": \\"overrideMe\\", + \\"parameters\\": [ + { + \\"name\\": \\"mult\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 346 + }, + \\"name\\": \\"overrideMeToo\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"AsyncVirtualMethods\\" + }, + \\"jsii-calc.AugmentableClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.AugmentableClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1539 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1540 + }, + \\"name\\": \\"methodOne\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1546 + }, + \\"name\\": \\"methodTwo\\" + } + ], + \\"name\\": \\"AugmentableClass\\" + }, + \\"jsii-calc.BaseJsii976\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.BaseJsii976\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2477 + }, + \\"name\\": \\"BaseJsii976\\" + }, + \\"jsii-calc.Bell\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Bell\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IBell\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2421 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2424 + }, + \\"name\\": \\"ring\\", + \\"overrides\\": \\"jsii-calc.IBell\\" + } + ], + \\"name\\": \\"Bell\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2422 + }, + \\"name\\": \\"rung\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.BinaryOperation\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Represents an operation with two operands.\\" + }, + \\"fqn\\": \\"jsii-calc.BinaryOperation\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Creates a BinaryOperation.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 49 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"Left-hand side operand.\\" + }, + \\"name\\": \\"lhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"Right-hand side operand.\\" + }, + \\"name\\": \\"rhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"interfaces\\": [ + \\"@scope/jsii-calc-lib.IFriendly\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 43 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say hello!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 53 + }, + \\"name\\": \\"hello\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"BinaryOperation\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Left-hand side operand.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 49 + }, + \\"name\\": \\"lhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Right-hand side operand.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 49 + }, + \\"name\\": \\"rhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"jsii-calc.Calculator\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"docs\\": { + \\"example\\": \\"const calculator = new calc.Calculator();\\\\ncalculator.add(5);\\\\ncalculator.mul(3);\\\\nconsole.log(calculator.expression.value);\\", + \\"remarks\\": \\"Here's how you use it:\\\\n\\\\n\`\`\`ts\\\\nconst calculator = new calc.Calculator();\\\\ncalculator.add(5);\\\\ncalculator.mul(3);\\\\nconsole.log(calculator.expression.value);\\\\n\`\`\`\\\\n\\\\nI will repeat this example again, but in an @example tag.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A calculator which maintains a current value and allows adding operations.\\" + }, + \\"fqn\\": \\"jsii-calc.Calculator\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Creates a Calculator object.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 287 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"Initialization properties.\\" + }, + \\"name\\": \\"props\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.CalculatorProps\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 282 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Adds a number to the current value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 320 + }, + \\"name\\": \\"add\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Multiplies the current value by a number.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 327 + }, + \\"name\\": \\"mul\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Negates the current value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 341 + }, + \\"name\\": \\"neg\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Raises the current value by a power.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 334 + }, + \\"name\\": \\"pow\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns teh value of the union property (if defined).\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 360 + }, + \\"name\\": \\"readUnionValue\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"Calculator\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the expression.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 348 + }, + \\"name\\": \\"expression\\", + \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A log of all operations.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 310 + }, + \\"name\\": \\"operationsLog\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A map of per operation name of all operations performed.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 305 + }, + \\"name\\": \\"operationsMap\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"array\\" + } + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The current value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 300 + }, + \\"name\\": \\"curr\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The maximum value allows in this calculator.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 315 + }, + \\"name\\": \\"maxValue\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Example of a property that accepts a union of types.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 355 + }, + \\"name\\": \\"unionProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"jsii-calc.Add\\" + }, + { + \\"fqn\\": \\"jsii-calc.Multiply\\" + }, + { + \\"fqn\\": \\"jsii-calc.Power\\" + } + ] + } + } + } + ] + }, + \\"jsii-calc.CalculatorProps\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Properties for Calculator.\\" + }, + \\"fqn\\": \\"jsii-calc.CalculatorProps\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 243 + }, + \\"name\\": \\"CalculatorProps\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"0\\", + \\"remarks\\": \\"NOTE: Any number works here, it's fine.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The initial value of the calculator.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 251 + }, + \\"name\\": \\"initialValue\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"none\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The maximum value the calculator can store.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 258 + }, + \\"name\\": \\"maximumValue\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.ChildStruct982\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ChildStruct982\\", + \\"interfaces\\": [ + \\"jsii-calc.ParentStruct982\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2501 + }, + \\"name\\": \\"ChildStruct982\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2502 + }, + \\"name\\": \\"bar\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.ClassThatImplementsTheInternalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ClassThatImplementsTheInternalInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.INonInternalInterface\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1802 + }, + \\"name\\": \\"ClassThatImplementsTheInternalInterface\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1806 + }, + \\"name\\": \\"a\\", + \\"overrides\\": \\"jsii-calc.IAnotherPublicInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1807 + }, + \\"name\\": \\"b\\", + \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1808 + }, + \\"name\\": \\"c\\", + \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1809 + }, + \\"name\\": \\"d\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ClassThatImplementsThePrivateInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ClassThatImplementsThePrivateInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.INonInternalInterface\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1812 + }, + \\"name\\": \\"ClassThatImplementsThePrivateInterface\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1814 + }, + \\"name\\": \\"a\\", + \\"overrides\\": \\"jsii-calc.IAnotherPublicInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1815 + }, + \\"name\\": \\"b\\", + \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1816 + }, + \\"name\\": \\"c\\", + \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1817 + }, + \\"name\\": \\"e\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ClassWithCollections\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ClassWithCollections\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2118 + }, + \\"parameters\\": [ + { + \\"name\\": \\"map\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"name\\": \\"array\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2108 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2123 + }, + \\"name\\": \\"createAList\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2127 + }, + \\"name\\": \\"createAMap\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"ClassWithCollections\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2116 + }, + \\"name\\": \\"staticArray\\", + \\"static\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2112 + }, + \\"name\\": \\"staticMap\\", + \\"static\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2110 + }, + \\"name\\": \\"array\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2109 + }, + \\"name\\": \\"map\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ] + }, + \\"jsii-calc.ClassWithDocs\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"custom\\": { + \\"customAttribute\\": \\"hasAValue\\" + }, + \\"example\\": \\"function anExample() {\\\\n}\\", + \\"remarks\\": \\"The docs are great. They're a bunch of tags.\\", + \\"see\\": \\"https://aws.amazon.com/\\", + \\"stability\\": \\"stable\\", + \\"summary\\": \\"This class has docs.\\" + }, + \\"fqn\\": \\"jsii-calc.ClassWithDocs\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1885 + }, + \\"name\\": \\"ClassWithDocs\\" + }, + \\"jsii-calc.ClassWithJavaReservedWords\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ClassWithJavaReservedWords\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2058 + }, + \\"parameters\\": [ + { + \\"name\\": \\"int\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2055 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2062 + }, + \\"name\\": \\"import\\", + \\"parameters\\": [ + { + \\"name\\": \\"assert\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"ClassWithJavaReservedWords\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2056 + }, + \\"name\\": \\"int\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1293 + }, + \\"name\\": \\"ClassWithMutableObjectLiteralProperty\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1294 + }, + \\"name\\": \\"mutableObject\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IMutableObjectLiteral\\" + } + } + ] + }, + \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Class that implements interface properties automatically, but using a private constructor.\\" + }, + \\"fqn\\": \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\", + \\"interfaces\\": [ + \\"jsii-calc.IInterfaceWithProperties\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1320 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1322 + }, + \\"name\\": \\"create\\", + \\"parameters\\": [ + { + \\"name\\": \\"readOnlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"readWriteString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"ClassWithPrivateConstructorAndAutomaticProperties\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1330 + }, + \\"name\\": \\"readOnlyString\\", + \\"overrides\\": \\"jsii-calc.IInterfaceWithProperties\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1331 + }, + \\"name\\": \\"readWriteString\\", + \\"overrides\\": \\"jsii-calc.IInterfaceWithProperties\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ConfusingToJackson\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"see\\": \\"https://github.com/aws/aws-cdk/issues/4080\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This tries to confuse Jackson by having overloaded property setters.\\" + }, + \\"fqn\\": \\"jsii-calc.ConfusingToJackson\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2640 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2641 + }, + \\"name\\": \\"makeInstance\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ConfusingToJackson\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2645 + }, + \\"name\\": \\"makeStructInstance\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ConfusingToJacksonStruct\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"ConfusingToJackson\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2649 + }, + \\"name\\": \\"unionProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + }, + { + \\"collection\\": { + \\"elementtype\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + }, + { + \\"fqn\\": \\"jsii-calc.AbstractClass\\" + } + ] + } + }, + \\"kind\\": \\"array\\" + } + } + ] + } + } + } + ] + }, + \\"jsii-calc.ConfusingToJacksonStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ConfusingToJacksonStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2653 + }, + \\"name\\": \\"ConfusingToJacksonStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2654 + }, + \\"name\\": \\"unionProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + }, + { + \\"collection\\": { + \\"elementtype\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + }, + { + \\"fqn\\": \\"jsii-calc.AbstractClass\\" + } + ] + } + }, + \\"kind\\": \\"array\\" + } + } + ] + } + } + } + ] + }, + \\"jsii-calc.ConstructorPassesThisOut\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ConstructorPassesThisOut\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1842 + }, + \\"parameters\\": [ + { + \\"name\\": \\"consumer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.PartiallyInitializedThisConsumer\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1841 + }, + \\"name\\": \\"ConstructorPassesThisOut\\" + }, + \\"jsii-calc.Constructors\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Constructors\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1587 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1604 + }, + \\"name\\": \\"hiddenInterface\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1608 + }, + \\"name\\": \\"hiddenInterfaces\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1612 + }, + \\"name\\": \\"hiddenSubInterfaces\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1588 + }, + \\"name\\": \\"makeClass\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.PublicClass\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1592 + }, + \\"name\\": \\"makeInterface\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1596 + }, + \\"name\\": \\"makeInterface2\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface2\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1600 + }, + \\"name\\": \\"makeInterfaces\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"Constructors\\" + }, + \\"jsii-calc.ConsumePureInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ConsumePureInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2664 + }, + \\"parameters\\": [ + { + \\"name\\": \\"delegate\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IStructReturningDelegate\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2663 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2666 + }, + \\"name\\": \\"workItBaby\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StructB\\" + } + } + } + ], + \\"name\\": \\"ConsumePureInterface\\" + }, + \\"jsii-calc.ConsumerCanRingBell\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\\\\nthe method on the argument that they're passed...\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Test calling back to consumers that implement interfaces.\\" + }, + \\"fqn\\": \\"jsii-calc.ConsumerCanRingBell\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2306 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"remarks\\": \\"Returns whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using an object literal.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2312 + }, + \\"name\\": \\"staticImplementedByObjectLiteral\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using a private class.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2338 + }, + \\"name\\": \\"staticImplementedByPrivateClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using a public class.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2327 + }, + \\"name\\": \\"staticImplementedByPublicClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"If the parameter is a concrete class instead of an interface.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2349 + }, + \\"name\\": \\"staticWhenTypedAsClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"remarks\\": \\"Returns whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using an object literal.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2359 + }, + \\"name\\": \\"implementedByObjectLiteral\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using a private class.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2385 + }, + \\"name\\": \\"implementedByPrivateClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"...if the interface is implemented using a public class.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2374 + }, + \\"name\\": \\"implementedByPublicClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + }, + { + \\"docs\\": { + \\"remarks\\": \\"Return whether the bell was rung.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"If the parameter is a concrete class instead of an interface.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2396 + }, + \\"name\\": \\"whenTypedAsClass\\", + \\"parameters\\": [ + { + \\"name\\": \\"ringer\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + } + ], + \\"name\\": \\"ConsumerCanRingBell\\" + }, + \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1820 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1821 + }, + \\"name\\": \\"consumeAnotherPublicInterface\\", + \\"parameters\\": [ + { + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IAnotherPublicInterface\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1825 + }, + \\"name\\": \\"consumeNonInternalInterface\\", + \\"parameters\\": [ + { + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.INonInternalInterface\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + } + ], + \\"name\\": \\"ConsumersOfThisCrazyTypeSystem\\" + }, + \\"jsii-calc.DataRenderer\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies proper type handling through dynamic overrides.\\" + }, + \\"fqn\\": \\"jsii-calc.DataRenderer\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1981 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1982 + }, + \\"name\\": \\"render\\", + \\"parameters\\": [ + { + \\"name\\": \\"data\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1988 + }, + \\"name\\": \\"renderArbitrary\\", + \\"parameters\\": [ + { + \\"name\\": \\"data\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1992 + }, + \\"name\\": \\"renderMap\\", + \\"parameters\\": [ + { + \\"name\\": \\"map\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"DataRenderer\\" + }, + \\"jsii-calc.DefaultedConstructorArgument\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DefaultedConstructorArgument\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 318 + }, + \\"parameters\\": [ + { + \\"name\\": \\"arg1\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"arg2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"arg3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 317 + }, + \\"name\\": \\"DefaultedConstructorArgument\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 319 + }, + \\"name\\": \\"arg1\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 321 + }, + \\"name\\": \\"arg3\\", + \\"type\\": { + \\"primitive\\": \\"date\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 320 + }, + \\"name\\": \\"arg2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Demonstrate982\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\\\\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"1.\\" + }, + \\"fqn\\": \\"jsii-calc.Demonstrate982\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2508 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's dangerous to go alone!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2515 + }, + \\"name\\": \\"takeThis\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ChildStruct982\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's dangerous to go alone!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2520 + }, + \\"name\\": \\"takeThisToo\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ParentStruct982\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"Demonstrate982\\" + }, + \\"jsii-calc.DeprecatedClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"deprecated\\": \\"a pretty boring class\\", + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"jsii-calc.DeprecatedClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"deprecated\\": \\"this constructor is \\\\\\"just\\\\\\" okay\\", + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 95 + }, + \\"parameters\\": [ + { + \\"name\\": \\"readonlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"mutableNumber\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 89 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"deprecated\\": \\"it was a bad idea\\", + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 100 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"DeprecatedClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"deprecated\\": \\"this is not always \\\\\\"wazoo\\\\\\", be ready to be disappointed\\", + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 91 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"deprecated\\": \\"shouldn't have been mutable\\", + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 93 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.DeprecatedEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"deprecated\\": \\"your deprecated selection of bad options\\", + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"jsii-calc.DeprecatedEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 105 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"deprecated\\": \\"option A is not great\\", + \\"stability\\": \\"deprecated\\" + }, + \\"name\\": \\"OPTION_A\\" + }, + { + \\"docs\\": { + \\"deprecated\\": \\"option B is kinda bad, too\\", + \\"stability\\": \\"deprecated\\" + }, + \\"name\\": \\"OPTION_B\\" + } + ], + \\"name\\": \\"DeprecatedEnum\\" + }, + \\"jsii-calc.DeprecatedStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"deprecated\\": \\"it just wraps a string\\", + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"jsii-calc.DeprecatedStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 77 + }, + \\"name\\": \\"DeprecatedStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"deprecated\\": \\"well, yeah\\", + \\"stability\\": \\"deprecated\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 79 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DerivedClassHasNoProperties.Base\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DerivedClassHasNoProperties.Base\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 326 + }, + \\"name\\": \\"Base\\", + \\"namespace\\": \\"DerivedClassHasNoProperties\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 327 + }, + \\"name\\": \\"prop\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DerivedClassHasNoProperties.Derived\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.DerivedClassHasNoProperties.Base\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DerivedClassHasNoProperties.Derived\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 330 + }, + \\"name\\": \\"Derived\\", + \\"namespace\\": \\"DerivedClassHasNoProperties\\" + }, + \\"jsii-calc.DerivedStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A struct which derives from another struct.\\" + }, + \\"fqn\\": \\"jsii-calc.DerivedStruct\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-lib.MyFirstStruct\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 541 + }, + \\"name\\": \\"DerivedStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 547 + }, + \\"name\\": \\"anotherRequired\\", + \\"type\\": { + \\"primitive\\": \\"date\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 546 + }, + \\"name\\": \\"bool\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"An example of a non primitive property.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 545 + }, + \\"name\\": \\"nonPrimitive\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This is optional.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 553 + }, + \\"name\\": \\"anotherOptional\\", + \\"optional\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 549 + }, + \\"name\\": \\"optionalAny\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 548 + }, + \\"name\\": \\"optionalArray\\", + \\"optional\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2026 + }, + \\"name\\": \\"DiamondInheritanceBaseLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2027 + }, + \\"name\\": \\"baseLevelProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", + \\"interfaces\\": [ + \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2030 + }, + \\"name\\": \\"DiamondInheritanceFirstMidLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2032 + }, + \\"name\\": \\"firstMidLevelProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\", + \\"interfaces\\": [ + \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2035 + }, + \\"name\\": \\"DiamondInheritanceSecondMidLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2037 + }, + \\"name\\": \\"secondMidLevelProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DiamondInheritanceTopLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DiamondInheritanceTopLevelStruct\\", + \\"interfaces\\": [ + \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", + \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2040 + }, + \\"name\\": \\"DiamondInheritanceTopLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2043 + }, + \\"name\\": \\"topLevelProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.DisappointingCollectionSource\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"This source of collections is disappointing - it'll always give you nothing :(\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that null/undefined can be returned for optional collections.\\" + }, + \\"fqn\\": \\"jsii-calc.DisappointingCollectionSource\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2530 + }, + \\"name\\": \\"DisappointingCollectionSource\\", + \\"properties\\": [ + { + \\"const\\": true, + \\"docs\\": { + \\"remarks\\": \\"(Nah, just a billion dollars mistake!)\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Some List of strings, maybe?\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2532 + }, + \\"name\\": \\"maybeList\\", + \\"optional\\": true, + \\"static\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"const\\": true, + \\"docs\\": { + \\"remarks\\": \\"(Nah, just a billion dollars mistake!)\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Some Map of strings to numbers, maybe?\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2534 + }, + \\"name\\": \\"maybeMap\\", + \\"optional\\": true, + \\"static\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"number\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ] + }, + \\"jsii-calc.DoNotOverridePrivates\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DoNotOverridePrivates\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1297 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1312 + }, + \\"name\\": \\"changePrivatePropertyValue\\", + \\"parameters\\": [ + { + \\"name\\": \\"newValue\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1304 + }, + \\"name\\": \\"privateMethodValue\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1308 + }, + \\"name\\": \\"privatePropertyValue\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"DoNotOverridePrivates\\" + }, + \\"jsii-calc.DoNotRecognizeAnyAsOptional\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"jsii#284: do not recognize \\\\\\"any\\\\\\" as an optional argument.\\" + }, + \\"fqn\\": \\"jsii-calc.DoNotRecognizeAnyAsOptional\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1353 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1354 + }, + \\"name\\": \\"method\\", + \\"parameters\\": [ + { + \\"name\\": \\"_requiredAny\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + { + \\"name\\": \\"_optionalAny\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + { + \\"name\\": \\"_optionalString\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + } + ], + \\"name\\": \\"DoNotRecognizeAnyAsOptional\\" + }, + \\"jsii-calc.DocumentedClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"This is the meat of the TSDoc comment. It may contain\\\\nmultiple lines and multiple paragraphs.\\\\n\\\\nMultiple paragraphs are separated by an empty line.\\", + \\"stability\\": \\"stable\\", + \\"summary\\": \\"Here's the first line of the TSDoc comment.\\" + }, + \\"fqn\\": \\"jsii-calc.DocumentedClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 11 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"remarks\\": \\"This will print out a friendly greeting intended for\\\\nthe indicated person.\\", + \\"returns\\": \\"A number that everyone knows very well\\", + \\"stability\\": \\"stable\\", + \\"summary\\": \\"Greet the indicated person.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 21 + }, + \\"name\\": \\"greet\\", + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"The person to be greeted.\\" + }, + \\"name\\": \\"greetee\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Greetee\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say ¡Hola!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 31 + }, + \\"name\\": \\"hola\\" + } + ], + \\"name\\": \\"DocumentedClass\\" + }, + \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1430 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1431 + }, + \\"name\\": \\"optionalAndVariadic\\", + \\"parameters\\": [ + { + \\"name\\": \\"optional\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"things\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + }, + \\"variadic\\": true + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + \\"variadic\\": true + } + ], + \\"name\\": \\"DontComplainAboutVariadicAfterOptional\\" + }, + \\"jsii-calc.DoubleTrouble\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.DoubleTrouble\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IFriendlyRandomGenerator\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 485 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say hello!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 490 + }, + \\"name\\": \\"hello\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns another random number.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 486 + }, + \\"name\\": \\"next\\", + \\"overrides\\": \\"jsii-calc.IRandomNumberGenerator\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"DoubleTrouble\\" + }, + \\"jsii-calc.EnumDispenser\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.EnumDispenser\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 45 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 51 + }, + \\"name\\": \\"randomIntegerLikeEnum\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 46 + }, + \\"name\\": \\"randomStringLikeEnum\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StringEnum\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"EnumDispenser\\" + }, + \\"jsii-calc.EraseUndefinedHashValues\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValues\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1643 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"remarks\\": \\"Used to check that undefined/null hash values\\\\nare being erased when sending values from native code to JS.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns \`true\` if \`key\` is defined in \`opts\`.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1648 + }, + \\"name\\": \\"doesKeyExist\\", + \\"parameters\\": [ + { + \\"name\\": \\"opts\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValuesOptions\\" + } + }, + { + \\"name\\": \\"key\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We expect \\\\\\"prop1\\\\\\" to be erased.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1668 + }, + \\"name\\": \\"prop1IsNull\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We expect \\\\\\"prop2\\\\\\" to be erased.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1658 + }, + \\"name\\": \\"prop2IsUndefined\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"EraseUndefinedHashValues\\" + }, + \\"jsii-calc.EraseUndefinedHashValuesOptions\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValuesOptions\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1638 + }, + \\"name\\": \\"EraseUndefinedHashValuesOptions\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1639 + }, + \\"name\\": \\"option1\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1640 + }, + \\"name\\": \\"option2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ExperimentalClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExperimentalClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 22 + }, + \\"parameters\\": [ + { + \\"name\\": \\"readonlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"mutableNumber\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 16 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 28 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"ExperimentalClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 18 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 20 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.ExperimentalEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExperimentalEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 33 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"OPTION_A\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"OPTION_B\\" + } + ], + \\"name\\": \\"ExperimentalEnum\\" + }, + \\"jsii-calc.ExperimentalStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExperimentalStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 4 + }, + \\"name\\": \\"ExperimentalStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ExportedBaseClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExportedBaseClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1516 + }, + \\"parameters\\": [ + { + \\"name\\": \\"success\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1515 + }, + \\"name\\": \\"ExportedBaseClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1516 + }, + \\"name\\": \\"success\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.ExtendsInternalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExtendsInternalInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1757 + }, + \\"name\\": \\"ExtendsInternalInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1758 + }, + \\"name\\": \\"boom\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1698 + }, + \\"name\\": \\"prop\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ExternalClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExternalClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 131 + }, + \\"parameters\\": [ + { + \\"name\\": \\"readonlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"mutableNumber\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 125 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 136 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"ExternalClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 127 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 129 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.ExternalEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExternalEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 141 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"OPTION_A\\" + }, + { + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"OPTION_B\\" + } + ], + \\"name\\": \\"ExternalEnum\\" + }, + \\"jsii-calc.ExternalStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ExternalStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 113 + }, + \\"name\\": \\"ExternalStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 115 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.GiveMeStructs\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.GiveMeStructs\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 556 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 574 + }, + \\"name\\": \\"derivedToFirst\\", + \\"parameters\\": [ + { + \\"name\\": \\"derived\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.DerivedStruct\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the boolean from a DerivedStruct struct.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 567 + }, + \\"name\\": \\"readDerivedNonPrimitive\\", + \\"parameters\\": [ + { + \\"name\\": \\"derived\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.DerivedStruct\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the \\\\\\"anumber\\\\\\" from a MyFirstStruct struct;\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 560 + }, + \\"name\\": \\"readFirstNumber\\", + \\"parameters\\": [ + { + \\"name\\": \\"first\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"GiveMeStructs\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 578 + }, + \\"name\\": \\"structLiteral\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\" + } + } + ] + }, + \\"jsii-calc.Greetee\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"These are some arguments you can pass to a method.\\" + }, + \\"fqn\\": \\"jsii-calc.Greetee\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 39 + }, + \\"name\\": \\"Greetee\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"world\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The name of the greetee.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 45 + }, + \\"name\\": \\"name\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.GreetingAugmenter\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.GreetingAugmenter\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 532 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 533 + }, + \\"name\\": \\"betterGreeting\\", + \\"parameters\\": [ + { + \\"name\\": \\"friendly\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"GreetingAugmenter\\" + }, + \\"jsii-calc.IAnonymousImplementationProvider\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We can return an anonymous interface implementation from an override without losing the interface declarations.\\" + }, + \\"fqn\\": \\"jsii-calc.IAnonymousImplementationProvider\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2208 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2210 + }, + \\"name\\": \\"provideAsClass\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Implementation\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2209 + }, + \\"name\\": \\"provideAsInterface\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\" + } + } + } + ], + \\"name\\": \\"IAnonymousImplementationProvider\\" + }, + \\"jsii-calc.IAnonymouslyImplementMe\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2227 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2229 + }, + \\"name\\": \\"verb\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IAnonymouslyImplementMe\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2228 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IAnotherPublicInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IAnotherPublicInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1778 + }, + \\"name\\": \\"IAnotherPublicInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1779 + }, + \\"name\\": \\"a\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IBell\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IBell\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2417 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2418 + }, + \\"name\\": \\"ring\\" + } + ], + \\"name\\": \\"IBell\\" + }, + \\"jsii-calc.IBellRinger\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Takes the object parameter as an interface.\\" + }, + \\"fqn\\": \\"jsii-calc.IBellRinger\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2406 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2407 + }, + \\"name\\": \\"yourTurn\\", + \\"parameters\\": [ + { + \\"name\\": \\"bell\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IBell\\" + } + } + ] + } + ], + \\"name\\": \\"IBellRinger\\" + }, + \\"jsii-calc.IConcreteBellRinger\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Takes the object parameter as a calss.\\" + }, + \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2413 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2414 + }, + \\"name\\": \\"yourTurn\\", + \\"parameters\\": [ + { + \\"name\\": \\"bell\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Bell\\" + } + } + ] + } + ], + \\"name\\": \\"IConcreteBellRinger\\" + }, + \\"jsii-calc.IDeprecatedInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"deprecated\\": \\"useless interface\\", + \\"stability\\": \\"deprecated\\" + }, + \\"fqn\\": \\"jsii-calc.IDeprecatedInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 82 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"deprecated\\": \\"services no purpose\\", + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 86 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"IDeprecatedInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"deprecated\\": \\"could be better\\", + \\"stability\\": \\"deprecated\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 84 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IExperimentalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IExperimentalInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 9 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 13 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"IExperimentalInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 11 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IExtendsPrivateInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IExtendsPrivateInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1769 + }, + \\"name\\": \\"IExtendsPrivateInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1770 + }, + \\"name\\": \\"moreThings\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1754 + }, + \\"name\\": \\"private\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IExternalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IExternalInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 118 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 122 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"IExternalInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"custom\\": { + \\"external\\": \\"true\\" + }, + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 120 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IFriendlier\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Even friendlier classes can implement this interface.\\" + }, + \\"fqn\\": \\"jsii-calc.IFriendlier\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-lib.IFriendly\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 12 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say farewell.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 22 + }, + \\"name\\": \\"farewell\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"returns\\": \\"A goodbye blessing.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say goodbye.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 17 + }, + \\"name\\": \\"goodbye\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IFriendlier\\" + }, + \\"jsii-calc.IFriendlyRandomGenerator\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IFriendlyRandomGenerator\\", + \\"interfaces\\": [ + \\"jsii-calc.IRandomNumberGenerator\\", + \\"@scope/jsii-calc-lib.IFriendly\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 36 + }, + \\"name\\": \\"IFriendlyRandomGenerator\\" + }, + \\"jsii-calc.IInterfaceImplementedByAbstractClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"awslabs/jsii#220 Abstract return type.\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1242 + }, + \\"name\\": \\"IInterfaceImplementedByAbstractClass\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1243 + }, + \\"name\\": \\"propFromInterface\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype.\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\", + \\"interfaces\\": [ + \\"jsii-calc.IInterfaceWithMethods\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1345 + }, + \\"name\\": \\"IInterfaceThatShouldNotBeADataType\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1347 + }, + \\"name\\": \\"otherValue\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IInterfaceWithInternal\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceWithInternal\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1709 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1710 + }, + \\"name\\": \\"visible\\" + } + ], + \\"name\\": \\"IInterfaceWithInternal\\" + }, + \\"jsii-calc.IInterfaceWithMethods\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceWithMethods\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1335 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1338 + }, + \\"name\\": \\"doThings\\" + } + ], + \\"name\\": \\"IInterfaceWithMethods\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1336 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods.\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1220 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1221 + }, + \\"name\\": \\"hello\\", + \\"parameters\\": [ + { + \\"name\\": \\"arg1\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"arg2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + } + ], + \\"name\\": \\"IInterfaceWithOptionalMethodArguments\\" + }, + \\"jsii-calc.IInterfaceWithProperties\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 586 + }, + \\"name\\": \\"IInterfaceWithProperties\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 587 + }, + \\"name\\": \\"readOnlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 588 + }, + \\"name\\": \\"readWriteString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IInterfaceWithPropertiesExtension\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IInterfaceWithPropertiesExtension\\", + \\"interfaces\\": [ + \\"jsii-calc.IInterfaceWithProperties\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 591 + }, + \\"name\\": \\"IInterfaceWithPropertiesExtension\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 593 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IJSII417Derived\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IJSII417Derived\\", + \\"interfaces\\": [ + \\"jsii-calc.IJSII417PublicBaseOfBase\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 43 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 41 + }, + \\"name\\": \\"bar\\" + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 44 + }, + \\"name\\": \\"baz\\" + } + ], + \\"name\\": \\"IJSII417Derived\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 40 + }, + \\"name\\": \\"property\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IJSII417PublicBaseOfBase\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IJSII417PublicBaseOfBase\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 36 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 37 + }, + \\"name\\": \\"foo\\" + } + ], + \\"name\\": \\"IJSII417PublicBaseOfBase\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 34 + }, + \\"name\\": \\"hasRoot\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.IJsii487External\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IJsii487External\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 52 + }, + \\"name\\": \\"IJsii487External\\" + }, + \\"jsii-calc.IJsii487External2\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IJsii487External2\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 54 + }, + \\"name\\": \\"IJsii487External2\\" + }, + \\"jsii-calc.IJsii496\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IJsii496\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 64 + }, + \\"name\\": \\"IJsii496\\" + }, + \\"jsii-calc.IMutableObjectLiteral\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IMutableObjectLiteral\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1289 + }, + \\"name\\": \\"IMutableObjectLiteral\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1290 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.INonInternalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.INonInternalInterface\\", + \\"interfaces\\": [ + \\"jsii-calc.IAnotherPublicInterface\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1787 + }, + \\"name\\": \\"INonInternalInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1784 + }, + \\"name\\": \\"b\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1788 + }, + \\"name\\": \\"c\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IObjectWithProperty\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Make sure that setters are properly called on objects with interfaces.\\" + }, + \\"fqn\\": \\"jsii-calc.IObjectWithProperty\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2542 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2544 + }, + \\"name\\": \\"wasSet\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + } + ], + \\"name\\": \\"IObjectWithProperty\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2543 + }, + \\"name\\": \\"property\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.IOptionalMethod\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Checks that optional result from interface method code generates correctly.\\" + }, + \\"fqn\\": \\"jsii-calc.IOptionalMethod\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2731 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2732 + }, + \\"name\\": \\"optional\\", + \\"returns\\": { + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IOptionalMethod\\" + }, + \\"jsii-calc.IPrivatelyImplemented\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IPrivatelyImplemented\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1512 + }, + \\"name\\": \\"IPrivatelyImplemented\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1513 + }, + \\"name\\": \\"success\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.IPublicInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IPublicInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1558 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1559 + }, + \\"name\\": \\"bye\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IPublicInterface\\" + }, + \\"jsii-calc.IPublicInterface2\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IPublicInterface2\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1562 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1563 + }, + \\"name\\": \\"ciao\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IPublicInterface2\\" + }, + \\"jsii-calc.IRandomNumberGenerator\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Generates random numbers.\\" + }, + \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 28 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"returns\\": \\"A random number.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns another random number.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 33 + }, + \\"name\\": \\"next\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"IRandomNumberGenerator\\" + }, + \\"jsii-calc.IReturnJsii976\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns a subclass of a known class which implements an interface.\\" + }, + \\"fqn\\": \\"jsii-calc.IReturnJsii976\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2473 + }, + \\"name\\": \\"IReturnJsii976\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2474 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IReturnsNumber\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.IReturnsNumber\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 639 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 640 + }, + \\"name\\": \\"obtainNumber\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\" + } + } + } + ], + \\"name\\": \\"IReturnsNumber\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 642 + }, + \\"name\\": \\"numberProp\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + } + } + ] + }, + \\"jsii-calc.IStableInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"fqn\\": \\"jsii-calc.IStableInterface\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 46 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 50 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"IStableInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 48 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.IStructReturningDelegate\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that a \\\\\\"pure\\\\\\" implementation of an interface works correctly.\\" + }, + \\"fqn\\": \\"jsii-calc.IStructReturningDelegate\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2660 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2661 + }, + \\"name\\": \\"returnStruct\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StructB\\" + } + } + } + ], + \\"name\\": \\"IStructReturningDelegate\\" + }, + \\"jsii-calc.ImplementInternalInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ImplementInternalInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1761 + }, + \\"name\\": \\"ImplementInternalInterface\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1762 + }, + \\"name\\": \\"prop\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Implementation\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Implementation\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2224 + }, + \\"name\\": \\"Implementation\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2225 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.ImplementsInterfaceWithInternal\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ImplementsInterfaceWithInternal\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IInterfaceWithInternal\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1716 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1717 + }, + \\"name\\": \\"visible\\", + \\"overrides\\": \\"jsii-calc.IInterfaceWithInternal\\" + } + ], + \\"name\\": \\"ImplementsInterfaceWithInternal\\" + }, + \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.ImplementsInterfaceWithInternal\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1735 + }, + \\"name\\": \\"ImplementsInterfaceWithInternalSubclass\\" + }, + \\"jsii-calc.ImplementsPrivateInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ImplementsPrivateInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1765 + }, + \\"name\\": \\"ImplementsPrivateInterface\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1766 + }, + \\"name\\": \\"private\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ImplictBaseOfBase\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ImplictBaseOfBase\\", + \\"interfaces\\": [ + \\"@scope/jsii-calc-base.BaseProps\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1176 + }, + \\"name\\": \\"ImplictBaseOfBase\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1177 + }, + \\"name\\": \\"goo\\", + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + }, + \\"jsii-calc.InbetweenClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.PublicClass\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.InbetweenClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IPublicInterface2\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1565 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1566 + }, + \\"name\\": \\"ciao\\", + \\"overrides\\": \\"jsii-calc.IPublicInterface2\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"InbetweenClass\\" + }, + \\"jsii-calc.InterfaceCollections\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"See: https://github.com/aws/jsii/issues/1196\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that collections of interfaces or structs are correctly handled.\\" + }, + \\"fqn\\": \\"jsii-calc.InterfaceCollections\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2694 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2705 + }, + \\"name\\": \\"listOfInterfaces\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.IBell\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2695 + }, + \\"name\\": \\"listOfStructs\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.StructA\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2715 + }, + \\"name\\": \\"mapOfInterfaces\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.IBell\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2699 + }, + \\"name\\": \\"mapOfStructs\\", + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"jsii-calc.StructA\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"InterfaceCollections\\" + }, + \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1207 + }, + \\"name\\": \\"Foo\\", + \\"namespace\\": \\"InterfaceInNamespaceIncludesClasses\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1208 + }, + \\"name\\": \\"bar\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1211 + }, + \\"name\\": \\"Hello\\", + \\"namespace\\": \\"InterfaceInNamespaceIncludesClasses\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1212 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1201 + }, + \\"name\\": \\"Hello\\", + \\"namespace\\": \\"InterfaceInNamespaceOnlyInterface\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1202 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.InterfacesMaker\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We can return arrays of interfaces See aws/aws-cdk#2362.\\" + }, + \\"fqn\\": \\"jsii-calc.InterfacesMaker\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2096 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2097 + }, + \\"name\\": \\"makeInterfaces\\", + \\"parameters\\": [ + { + \\"name\\": \\"count\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"InterfacesMaker\\" + }, + \\"jsii-calc.Isomorphism\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"Create a subclass of this, and assert that \`this.myself()\` actually returns\\\\n\`this\` from within the constructor.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Checks the \\\\\\"same instance\\\\\\" isomorphism is preserved within the constructor.\\" + }, + \\"fqn\\": \\"jsii-calc.Isomorphism\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2741 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2742 + }, + \\"name\\": \\"myself\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Isomorphism\\" + } + } + } + ], + \\"name\\": \\"Isomorphism\\" + }, + \\"jsii-calc.JSII417Derived\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.JSII417PublicBaseOfBase\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JSII417Derived\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 17 + }, + \\"parameters\\": [ + { + \\"name\\": \\"property\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 24 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 25 + }, + \\"name\\": \\"bar\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 28 + }, + \\"name\\": \\"baz\\" + } + ], + \\"name\\": \\"JSII417Derived\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 17 + }, + \\"name\\": \\"property\\", + \\"protected\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.JSII417PublicBaseOfBase\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JSII417PublicBaseOfBase\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 8 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 9 + }, + \\"name\\": \\"makeInstance\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.JSII417PublicBaseOfBase\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 12 + }, + \\"name\\": \\"foo\\" + } + ], + \\"name\\": \\"JSII417PublicBaseOfBase\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"hasRoot\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.JSObjectLiteralForInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JSObjectLiteralForInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 517 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 518 + }, + \\"name\\": \\"giveMeFriendly\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 524 + }, + \\"name\\": \\"giveMeFriendlyGenerator\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IFriendlyRandomGenerator\\" + } + } + } + ], + \\"name\\": \\"JSObjectLiteralForInterface\\" + }, + \\"jsii-calc.JSObjectLiteralToNative\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNative\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 247 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 248 + }, + \\"name\\": \\"returnLiteral\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNativeClass\\" + } + } + } + ], + \\"name\\": \\"JSObjectLiteralToNative\\" + }, + \\"jsii-calc.JSObjectLiteralToNativeClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNativeClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 256 + }, + \\"name\\": \\"JSObjectLiteralToNativeClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 257 + }, + \\"name\\": \\"propA\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 258 + }, + \\"name\\": \\"propB\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.JavaReservedWords\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.JavaReservedWords\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 745 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 746 + }, + \\"name\\": \\"abstract\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 750 + }, + \\"name\\": \\"assert\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 754 + }, + \\"name\\": \\"boolean\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 758 + }, + \\"name\\": \\"break\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 762 + }, + \\"name\\": \\"byte\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 766 + }, + \\"name\\": \\"case\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 770 + }, + \\"name\\": \\"catch\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 774 + }, + \\"name\\": \\"char\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 778 + }, + \\"name\\": \\"class\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 782 + }, + \\"name\\": \\"const\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 786 + }, + \\"name\\": \\"continue\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 790 + }, + \\"name\\": \\"default\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 798 + }, + \\"name\\": \\"do\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 794 + }, + \\"name\\": \\"double\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 802 + }, + \\"name\\": \\"else\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 806 + }, + \\"name\\": \\"enum\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 810 + }, + \\"name\\": \\"extends\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 814 + }, + \\"name\\": \\"false\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 818 + }, + \\"name\\": \\"final\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 822 + }, + \\"name\\": \\"finally\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 826 + }, + \\"name\\": \\"float\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 830 + }, + \\"name\\": \\"for\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 834 + }, + \\"name\\": \\"goto\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 838 + }, + \\"name\\": \\"if\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 842 + }, + \\"name\\": \\"implements\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 846 + }, + \\"name\\": \\"import\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 850 + }, + \\"name\\": \\"instanceof\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 854 + }, + \\"name\\": \\"int\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 858 + }, + \\"name\\": \\"interface\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 862 + }, + \\"name\\": \\"long\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 866 + }, + \\"name\\": \\"native\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 870 + }, + \\"name\\": \\"new\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 874 + }, + \\"name\\": \\"null\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 878 + }, + \\"name\\": \\"package\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 882 + }, + \\"name\\": \\"private\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 886 + }, + \\"name\\": \\"protected\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 890 + }, + \\"name\\": \\"public\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 894 + }, + \\"name\\": \\"return\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 898 + }, + \\"name\\": \\"short\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 902 + }, + \\"name\\": \\"static\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 906 + }, + \\"name\\": \\"strictfp\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 910 + }, + \\"name\\": \\"super\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 914 + }, + \\"name\\": \\"switch\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 918 + }, + \\"name\\": \\"synchronized\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 922 + }, + \\"name\\": \\"this\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 926 + }, + \\"name\\": \\"throw\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 930 + }, + \\"name\\": \\"throws\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 934 + }, + \\"name\\": \\"transient\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 938 + }, + \\"name\\": \\"true\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 942 + }, + \\"name\\": \\"try\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 946 + }, + \\"name\\": \\"void\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 950 + }, + \\"name\\": \\"volatile\\" + } + ], + \\"name\\": \\"JavaReservedWords\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 954 + }, + \\"name\\": \\"while\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Jsii487Derived\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Jsii487Derived\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IJsii487External2\\", + \\"jsii-calc.IJsii487External\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 56 + }, + \\"name\\": \\"Jsii487Derived\\" + }, + \\"jsii-calc.Jsii496Derived\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Jsii496Derived\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"interfaces\\": [ + \\"jsii-calc.IJsii496\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/erasures.ts\\", + \\"line\\": 66 + }, + \\"name\\": \\"Jsii496Derived\\" + }, + \\"jsii-calc.JsiiAgent\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Host runtime version should be set via JSII_AGENT.\\" + }, + \\"fqn\\": \\"jsii-calc.JsiiAgent\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1528 + }, + \\"name\\": \\"JsiiAgent\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the value of the JSII_AGENT environment variable.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1532 + }, + \\"name\\": \\"jsiiAgent\\", + \\"optional\\": true, + \\"static\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.JsonFormatter\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"see\\": \\"https://github.com/aws/aws-cdk/issues/5066\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Make sure structs are un-decorated on the way in.\\" + }, + \\"fqn\\": \\"jsii-calc.JsonFormatter\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2575 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2620 + }, + \\"name\\": \\"anyArray\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2616 + }, + \\"name\\": \\"anyBooleanFalse\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2612 + }, + \\"name\\": \\"anyBooleanTrue\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2592 + }, + \\"name\\": \\"anyDate\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2608 + }, + \\"name\\": \\"anyEmptyString\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2588 + }, + \\"name\\": \\"anyFunction\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2624 + }, + \\"name\\": \\"anyHash\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2580 + }, + \\"name\\": \\"anyNull\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2596 + }, + \\"name\\": \\"anyNumber\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2628 + }, + \\"name\\": \\"anyRef\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2604 + }, + \\"name\\": \\"anyString\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2584 + }, + \\"name\\": \\"anyUndefined\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2600 + }, + \\"name\\": \\"anyZero\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2576 + }, + \\"name\\": \\"stringify\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ], + \\"returns\\": { + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"JsonFormatter\\" + }, + \\"jsii-calc.LoadBalancedFargateServiceProps\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"jsii#298: show default values in sphinx documentation, and respect newlines.\\" + }, + \\"fqn\\": \\"jsii-calc.LoadBalancedFargateServiceProps\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1439 + }, + \\"name\\": \\"LoadBalancedFargateServiceProps\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"80\\", + \\"remarks\\": \\"Corresponds to container port mapping.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The container port of the application load balancer attached to your Fargate service.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1482 + }, + \\"name\\": \\"containerPort\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"256\\", + \\"remarks\\": \\"Valid values, which determines your range of valid values for the memory parameter:\\\\n256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB\\\\n512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB\\\\n1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB\\\\n2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments\\\\n4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments\\\\n\\\\nThis default is set in the underlying FargateTaskDefinition construct.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The number of cpu units used by the task.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1453 + }, + \\"name\\": \\"cpu\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"512\\", + \\"remarks\\": \\"This field is required and you must use one of the following values, which determines your range of valid values\\\\nfor the cpu parameter:\\\\n\\\\n0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)\\\\n\\\\n1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)\\\\n\\\\n2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)\\\\n\\\\nBetween 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)\\\\n\\\\nBetween 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)\\\\n\\\\nThis default is set in the underlying FargateTaskDefinition construct.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The amount (in MiB) of memory used by the task.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1475 + }, + \\"name\\": \\"memoryMiB\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"true\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Determines whether the Application Load Balancer will be internet-facing.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1489 + }, + \\"name\\": \\"publicLoadBalancer\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"default\\": \\"false\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Determines whether your Fargate Service will be assigned a public IP address.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1496 + }, + \\"name\\": \\"publicTasks\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.MethodNamedProperty\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.MethodNamedProperty\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 396 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 397 + }, + \\"name\\": \\"property\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"MethodNamedProperty\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 401 + }, + \\"name\\": \\"elite\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.Multiply\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.BinaryOperation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The \\\\\\"*\\\\\\" binary operation.\\" + }, + \\"fqn\\": \\"jsii-calc.Multiply\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Creates a BinaryOperation.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 49 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"Left-hand side operand.\\" + }, + \\"name\\": \\"lhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"Right-hand side operand.\\" + }, + \\"name\\": \\"rhs\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"interfaces\\": [ + \\"jsii-calc.IFriendlier\\", + \\"jsii-calc.IRandomNumberGenerator\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 74 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say farewell.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 88 + }, + \\"name\\": \\"farewell\\", + \\"overrides\\": \\"jsii-calc.IFriendlier\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say goodbye.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 84 + }, + \\"name\\": \\"goodbye\\", + \\"overrides\\": \\"jsii-calc.IFriendlier\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns another random number.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 92 + }, + \\"name\\": \\"next\\", + \\"overrides\\": \\"jsii-calc.IRandomNumberGenerator\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 80 + }, + \\"name\\": \\"toString\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Multiply\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 76 + }, + \\"name\\": \\"value\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.Negate\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.UnaryOperation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The negation operation (\\\\\\"-value\\\\\\").\\" + }, + \\"fqn\\": \\"jsii-calc.Negate\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 101 + }, + \\"parameters\\": [ + { + \\"name\\": \\"operand\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"interfaces\\": [ + \\"jsii-calc.IFriendlier\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 109 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say farewell.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 126 + }, + \\"name\\": \\"farewell\\", + \\"overrides\\": \\"jsii-calc.IFriendlier\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say goodbye.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 122 + }, + \\"name\\": \\"goodbye\\", + \\"overrides\\": \\"jsii-calc.IFriendlier\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Say hello!\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 118 + }, + \\"name\\": \\"hello\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 114 + }, + \\"name\\": \\"toString\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Negate\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 110 + }, + \\"name\\": \\"value\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.NestedStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.NestedStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2449 + }, + \\"name\\": \\"NestedStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"When provided, must be > 0.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2453 + }, + \\"name\\": \\"numberProp\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.NodeStandardLibrary\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Test fixture to verify that jsii modules can use the node standard library.\\" + }, + \\"fqn\\": \\"jsii-calc.NodeStandardLibrary\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1126 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"returns\\": \\"\\\\\\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\\\\\"\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Uses node.js \\\\\\"crypto\\\\\\" module to calculate sha256 of a string.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1157 + }, + \\"name\\": \\"cryptoSha256\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"returns\\": \\"\\\\\\"Hello, resource!\\\\\\"\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Reads a local resource file (resource.txt) asynchronously.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1131 + }, + \\"name\\": \\"fsReadFile\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"returns\\": \\"\\\\\\"Hello, resource! SYNC!\\\\\\"\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Sync version of fsReadFile.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1140 + }, + \\"name\\": \\"fsReadFileSync\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"NodeStandardLibrary\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the current os.platform() from the \\\\\\"os\\\\\\" node module.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1149 + }, + \\"name\\": \\"osPlatform\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.NullShouldBeTreatedAsUndefined\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"jsii#282, aws-cdk#157: null should be treated as \\\\\\"undefined\\\\\\".\\" + }, + \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefined\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1369 + }, + \\"parameters\\": [ + { + \\"name\\": \\"_param1\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"optional\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1366 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1377 + }, + \\"name\\": \\"giveMeUndefined\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1387 + }, + \\"name\\": \\"giveMeUndefinedInsideAnObject\\", + \\"parameters\\": [ + { + \\"name\\": \\"input\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1416 + }, + \\"name\\": \\"verifyPropertyIsUndefined\\" + } + ], + \\"name\\": \\"NullShouldBeTreatedAsUndefined\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1367 + }, + \\"name\\": \\"changeMeToUndefined\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1425 + }, + \\"name\\": \\"NullShouldBeTreatedAsUndefinedData\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1427 + }, + \\"name\\": \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1426 + }, + \\"name\\": \\"thisShouldBeUndefined\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + \\"jsii-calc.NumberGenerator\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This allows us to test that a reference can be stored for objects that implement interfaces.\\" + }, + \\"fqn\\": \\"jsii-calc.NumberGenerator\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 506 + }, + \\"parameters\\": [ + { + \\"name\\": \\"generator\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 505 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 512 + }, + \\"name\\": \\"isSameGenerator\\", + \\"parameters\\": [ + { + \\"name\\": \\"gen\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 508 + }, + \\"name\\": \\"nextTimes100\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"NumberGenerator\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 506 + }, + \\"name\\": \\"generator\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + } + } + ] + }, + \\"jsii-calc.ObjectRefsInCollections\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verify that object references can be passed inside collections.\\" + }, + \\"fqn\\": \\"jsii-calc.ObjectRefsInCollections\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 264 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the sum of all values.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 268 + }, + \\"name\\": \\"sumFromArray\\", + \\"parameters\\": [ + { + \\"name\\": \\"values\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Returns the sum of all values in a map.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 279 + }, + \\"name\\": \\"sumFromMap\\", + \\"parameters\\": [ + { + \\"name\\": \\"values\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"ObjectRefsInCollections\\" + }, + \\"jsii-calc.ObjectWithPropertyProvider\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.ObjectWithPropertyProvider\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2546 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2547 + }, + \\"name\\": \\"provide\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IObjectWithProperty\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"ObjectWithPropertyProvider\\" + }, + \\"jsii-calc.Old\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"deprecated\\": \\"Use the new class\\", + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Old class.\\" + }, + \\"fqn\\": \\"jsii-calc.Old\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 53 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"deprecated\\", + \\"summary\\": \\"Doo wop that thing.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/documented.ts\\", + \\"line\\": 57 + }, + \\"name\\": \\"doAThing\\" + } + ], + \\"name\\": \\"Old\\" + }, + \\"jsii-calc.OptionalArgumentInvoker\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OptionalArgumentInvoker\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1224 + }, + \\"parameters\\": [ + { + \\"name\\": \\"delegate\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1223 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1232 + }, + \\"name\\": \\"invokeWithOptional\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1228 + }, + \\"name\\": \\"invokeWithoutOptional\\" + } + ], + \\"name\\": \\"OptionalArgumentInvoker\\" + }, + \\"jsii-calc.OptionalConstructorArgument\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OptionalConstructorArgument\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 310 + }, + \\"parameters\\": [ + { + \\"name\\": \\"arg1\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"arg2\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"arg3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 309 + }, + \\"name\\": \\"OptionalConstructorArgument\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 311 + }, + \\"name\\": \\"arg1\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 312 + }, + \\"name\\": \\"arg2\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 313 + }, + \\"name\\": \\"arg3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + }, + \\"jsii-calc.OptionalStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OptionalStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1867 + }, + \\"name\\": \\"OptionalStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1868 + }, + \\"name\\": \\"field\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.OptionalStructConsumer\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OptionalStructConsumer\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1862 + }, + \\"parameters\\": [ + { + \\"name\\": \\"optionalStruct\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.OptionalStruct\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1858 + }, + \\"name\\": \\"OptionalStructConsumer\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1859 + }, + \\"name\\": \\"parameterWasUndefined\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1860 + }, + \\"name\\": \\"fieldValue\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.OverridableProtectedMember\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"see\\": \\"https://github.com/aws/jsii/issues/903\\", + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OverridableProtectedMember\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2135 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2147 + }, + \\"name\\": \\"overrideMe\\", + \\"protected\\": true, + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2143 + }, + \\"name\\": \\"switchModes\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2139 + }, + \\"name\\": \\"valueFromProtected\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"OverridableProtectedMember\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2136 + }, + \\"name\\": \\"overrideReadOnly\\", + \\"protected\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2137 + }, + \\"name\\": \\"overrideReadWrite\\", + \\"protected\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.OverrideReturnsObject\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.OverrideReturnsObject\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 645 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 646 + }, + \\"name\\": \\"test\\", + \\"parameters\\": [ + { + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IReturnsNumber\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"OverrideReturnsObject\\" + }, + \\"jsii-calc.ParentStruct982\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"https://github.com/aws/jsii/issues/982.\\" + }, + \\"fqn\\": \\"jsii-calc.ParentStruct982\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2498 + }, + \\"name\\": \\"ParentStruct982\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2499 + }, + \\"name\\": \\"foo\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.PartiallyInitializedThisConsumer\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PartiallyInitializedThisConsumer\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1833 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1834 + }, + \\"name\\": \\"consumePartiallyInitializedThis\\", + \\"parameters\\": [ + { + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.ConstructorPassesThisOut\\" + } + }, + { + \\"name\\": \\"dt\\", + \\"type\\": { + \\"primitive\\": \\"date\\" + } + }, + { + \\"name\\": \\"ev\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"PartiallyInitializedThisConsumer\\" + }, + \\"jsii-calc.Polymorphism\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Polymorphism\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 495 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 496 + }, + \\"name\\": \\"sayHello\\", + \\"parameters\\": [ + { + \\"name\\": \\"friendly\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Polymorphism\\" + }, + \\"jsii-calc.Power\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The power operation.\\" + }, + \\"fqn\\": \\"jsii-calc.Power\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Creates a Power operation.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 227 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"The base of the power.\\" + }, + \\"name\\": \\"base\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"The number of times to multiply.\\" + }, + \\"name\\": \\"pow\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 221 + }, + \\"name\\": \\"Power\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The base of the power.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 227 + }, + \\"name\\": \\"base\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"remarks\\": \\"Must be implemented by derived classes.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The expression that this operation consists of.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 231 + }, + \\"name\\": \\"expression\\", + \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The number of times to multiply.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 227 + }, + \\"name\\": \\"pow\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"jsii-calc.PropertyNamedProperty\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\\\\\"property\\\\\\" would result in impossible to load Python code.\\" + }, + \\"fqn\\": \\"jsii-calc.PropertyNamedProperty\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 392 + }, + \\"name\\": \\"PropertyNamedProperty\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 393 + }, + \\"name\\": \\"property\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 394 + }, + \\"name\\": \\"yetAnoterOne\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.PublicClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PublicClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1553 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1554 + }, + \\"name\\": \\"hello\\" + } + ], + \\"name\\": \\"PublicClass\\" + }, + \\"jsii-calc.PythonReservedWords\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PythonReservedWords\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 957 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 958 + }, + \\"name\\": \\"and\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 962 + }, + \\"name\\": \\"as\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 966 + }, + \\"name\\": \\"assert\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 970 + }, + \\"name\\": \\"async\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 974 + }, + \\"name\\": \\"await\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 978 + }, + \\"name\\": \\"break\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 982 + }, + \\"name\\": \\"class\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 986 + }, + \\"name\\": \\"continue\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 990 + }, + \\"name\\": \\"def\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 994 + }, + \\"name\\": \\"del\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 998 + }, + \\"name\\": \\"elif\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1002 + }, + \\"name\\": \\"else\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1006 + }, + \\"name\\": \\"except\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1010 + }, + \\"name\\": \\"finally\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1014 + }, + \\"name\\": \\"for\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1018 + }, + \\"name\\": \\"from\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1022 + }, + \\"name\\": \\"global\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1026 + }, + \\"name\\": \\"if\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1030 + }, + \\"name\\": \\"import\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1034 + }, + \\"name\\": \\"in\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1038 + }, + \\"name\\": \\"is\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1042 + }, + \\"name\\": \\"lambda\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1046 + }, + \\"name\\": \\"nonlocal\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1050 + }, + \\"name\\": \\"not\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1054 + }, + \\"name\\": \\"or\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1058 + }, + \\"name\\": \\"pass\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1062 + }, + \\"name\\": \\"raise\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1066 + }, + \\"name\\": \\"return\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1070 + }, + \\"name\\": \\"try\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1074 + }, + \\"name\\": \\"while\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1078 + }, + \\"name\\": \\"with\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1082 + }, + \\"name\\": \\"yield\\" + } + ], + \\"name\\": \\"PythonReservedWords\\" + }, + \\"jsii-calc.PythonSelf.ClassWithSelf\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PythonSelf.ClassWithSelf\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1092 + }, + \\"parameters\\": [ + { + \\"name\\": \\"self\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1091 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1094 + }, + \\"name\\": \\"method\\", + \\"parameters\\": [ + { + \\"name\\": \\"self\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"ClassWithSelf\\", + \\"namespace\\": \\"PythonSelf\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1092 + }, + \\"name\\": \\"self\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1100 + }, + \\"parameters\\": [ + { + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1099 + }, + \\"name\\": \\"ClassWithSelfKwarg\\", + \\"namespace\\": \\"PythonSelf\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1100 + }, + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\" + } + } + ] + }, + \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1107 + }, + \\"methods\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1108 + }, + \\"name\\": \\"method\\", + \\"parameters\\": [ + { + \\"name\\": \\"self\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"IInterfaceWithSelf\\", + \\"namespace\\": \\"PythonSelf\\" + }, + \\"jsii-calc.PythonSelf.StructWithSelf\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1103 + }, + \\"name\\": \\"StructWithSelf\\", + \\"namespace\\": \\"PythonSelf\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1104 + }, + \\"name\\": \\"self\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.ReferenceEnumFromScopedPackage\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"See awslabs/jsii#138.\\" + }, + \\"fqn\\": \\"jsii-calc.ReferenceEnumFromScopedPackage\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1183 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1186 + }, + \\"name\\": \\"loadFoo\\", + \\"returns\\": { + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1190 + }, + \\"name\\": \\"saveFoo\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + } + } + ] + } + ], + \\"name\\": \\"ReferenceEnumFromScopedPackage\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1184 + }, + \\"name\\": \\"foo\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + } + } + ] + }, + \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"returns\\": \\"an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`.\\", + \\"see\\": \\"https://github.com/aws/jsii/issues/320\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class.\\" + }, + \\"fqn\\": \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1507 + }, + \\"name\\": \\"ReturnsPrivateImplementationOfInterface\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1508 + }, + \\"name\\": \\"privateImplementation\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IPrivatelyImplemented\\" + } + } + ] + }, + \\"jsii-calc.RootStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"remarks\\": \\"This is cheating with the (current) declared types, but this is the \\\\\\"more\\\\nidiomatic\\\\\\" way for Pythonists.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary.\\" + }, + \\"fqn\\": \\"jsii-calc.RootStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2442 + }, + \\"name\\": \\"RootStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"May not be empty.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2446 + }, + \\"name\\": \\"stringProp\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2447 + }, + \\"name\\": \\"nestedStruct\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.NestedStruct\\" + } + } + ] + }, + \\"jsii-calc.RootStructValidator\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.RootStructValidator\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2455 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2456 + }, + \\"name\\": \\"validate\\", + \\"parameters\\": [ + { + \\"name\\": \\"struct\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.RootStruct\\" + } + } + ], + \\"static\\": true + } + ], + \\"name\\": \\"RootStructValidator\\" + }, + \\"jsii-calc.RuntimeTypeChecking\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.RuntimeTypeChecking\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 288 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 296 + }, + \\"name\\": \\"methodWithDefaultedArguments\\", + \\"parameters\\": [ + { + \\"name\\": \\"arg1\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"arg2\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"arg3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 304 + }, + \\"name\\": \\"methodWithOptionalAnyArgument\\", + \\"parameters\\": [ + { + \\"name\\": \\"arg\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Used to verify verification of number of method arguments.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 292 + }, + \\"name\\": \\"methodWithOptionalArguments\\", + \\"parameters\\": [ + { + \\"name\\": \\"arg1\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"arg2\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"arg3\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"date\\" + } + } + ] + } + ], + \\"name\\": \\"RuntimeTypeChecking\\" + }, + \\"jsii-calc.SecondLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SecondLevelStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2014 + }, + \\"name\\": \\"SecondLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's long and required.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2018 + }, + \\"name\\": \\"deeperRequiredProp\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's long, but you'll almost never pass it.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2023 + }, + \\"name\\": \\"deeperOptionalProp\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.SingleInstanceTwoTypes\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"JSII clients can instantiate 2 different strongly-typed wrappers for the same\\\\nobject. Unfortunately, this will break object equality, but if we didn't do\\\\nthis it would break runtime type checks in the JVM or CLR.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Test that a single instance can be returned under two different FQNs.\\" + }, + \\"fqn\\": \\"jsii-calc.SingleInstanceTwoTypes\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1624 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1627 + }, + \\"name\\": \\"interface1\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.InbetweenClass\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1631 + }, + \\"name\\": \\"interface2\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + } + } + } + ], + \\"name\\": \\"SingleInstanceTwoTypes\\" + }, + \\"jsii-calc.SingletonInt\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"https://github.com/aws/jsii/issues/231\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that singleton enums are handled correctly.\\" + }, + \\"fqn\\": \\"jsii-calc.SingletonInt\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1966 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1968 + }, + \\"name\\": \\"isSingletonInt\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + } + ], + \\"name\\": \\"SingletonInt\\" + }, + \\"jsii-calc.SingletonIntEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A singleton integer.\\" + }, + \\"fqn\\": \\"jsii-calc.SingletonIntEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1973 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Elite!\\" + }, + \\"name\\": \\"SINGLETON_INT\\" + } + ], + \\"name\\": \\"SingletonIntEnum\\" + }, + \\"jsii-calc.SingletonString\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"https://github.com/aws/jsii/issues/231\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that singleton enums are handled correctly.\\" + }, + \\"fqn\\": \\"jsii-calc.SingletonString\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1949 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1952 + }, + \\"name\\": \\"isSingletonString\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + } + ], + \\"name\\": \\"SingletonString\\" + }, + \\"jsii-calc.SingletonStringEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A singleton string.\\" + }, + \\"fqn\\": \\"jsii-calc.SingletonStringEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1957 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"1337.\\" + }, + \\"name\\": \\"SINGLETON_STRING\\" + } + ], + \\"name\\": \\"SingletonStringEnum\\" + }, + \\"jsii-calc.SmellyStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SmellyStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 403 + }, + \\"name\\": \\"SmellyStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 404 + }, + \\"name\\": \\"property\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 405 + }, + \\"name\\": \\"yetAnoterOne\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.SomeTypeJsii976\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SomeTypeJsii976\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2479 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2488 + }, + \\"name\\": \\"returnAnonymous\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2480 + }, + \\"name\\": \\"returnReturn\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IReturnJsii976\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"SomeTypeJsii976\\" + }, + \\"jsii-calc.StableClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"fqn\\": \\"jsii-calc.StableClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 59 + }, + \\"parameters\\": [ + { + \\"name\\": \\"readonlyString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"name\\": \\"mutableNumber\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 53 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 64 + }, + \\"name\\": \\"method\\" + } + ], + \\"name\\": \\"StableClass\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 55 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 57 + }, + \\"name\\": \\"mutableProperty\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + }, + \\"jsii-calc.StableEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"fqn\\": \\"jsii-calc.StableEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 69 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"name\\": \\"OPTION_A\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"name\\": \\"OPTION_B\\" + } + ], + \\"name\\": \\"StableEnum\\" + }, + \\"jsii-calc.StableStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"fqn\\": \\"jsii-calc.StableStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 41 + }, + \\"name\\": \\"StableStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"stable\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/stability.ts\\", + \\"line\\": 43 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.StaticContext\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"https://github.com/awslabs/aws-cdk/issues/2304\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This is used to validate the ability to use \`this\` from within a static context.\\" + }, + \\"fqn\\": \\"jsii-calc.StaticContext\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1892 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1895 + }, + \\"name\\": \\"canAccessStaticContext\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"StaticContext\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1903 + }, + \\"name\\": \\"staticVariable\\", + \\"static\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.Statics\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Statics\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 690 + }, + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 689 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Jsdocs for static method.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 696 + }, + \\"name\\": \\"staticMethod\\", + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"The name of the person to say hello to.\\" + }, + \\"name\\": \\"name\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 700 + }, + \\"name\\": \\"justMethod\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"Statics\\", + \\"properties\\": [ + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Constants may also use all-caps.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 712 + }, + \\"name\\": \\"BAR\\", + \\"static\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 741 + }, + \\"name\\": \\"ConstObj\\", + \\"static\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + } + }, + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Jsdocs for static property.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 707 + }, + \\"name\\": \\"Foo\\", + \\"static\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Constants can also use camelCase.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 717 + }, + \\"name\\": \\"zooBar\\", + \\"static\\": true, + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"map\\" + } + } + }, + { + \\"docs\\": { + \\"remarks\\": \\"Jsdocs for static setter.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Jsdocs for static getter.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 726 + }, + \\"name\\": \\"instance\\", + \\"static\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.Statics\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 740 + }, + \\"name\\": \\"nonConstStatic\\", + \\"static\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 690 + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.StringEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.StringEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 39 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"A\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"B\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"C\\" + } + ], + \\"name\\": \\"StringEnum\\" + }, + \\"jsii-calc.StripInternal\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.StripInternal\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1677 + }, + \\"name\\": \\"StripInternal\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1678 + }, + \\"name\\": \\"youSeeMe\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.StructA\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We can serialize and deserialize structs without silently ignoring optional fields.\\" + }, + \\"fqn\\": \\"jsii-calc.StructA\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2240 + }, + \\"name\\": \\"StructA\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2241 + }, + \\"name\\": \\"requiredString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2243 + }, + \\"name\\": \\"optionalNumber\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2242 + }, + \\"name\\": \\"optionalString\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.StructB\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those.\\" + }, + \\"fqn\\": \\"jsii-calc.StructB\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2249 + }, + \\"name\\": \\"StructB\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2250 + }, + \\"name\\": \\"requiredString\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2251 + }, + \\"name\\": \\"optionalBoolean\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2252 + }, + \\"name\\": \\"optionalStructA\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.StructA\\" + } + } + ] + }, + \\"jsii-calc.StructParameterType\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"remarks\\": \\"See: https://github.com/aws/aws-cdk/issues/4302\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted.\\" + }, + \\"fqn\\": \\"jsii-calc.StructParameterType\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2678 + }, + \\"name\\": \\"StructParameterType\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2679 + }, + \\"name\\": \\"scope\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2680 + }, + \\"name\\": \\"props\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.StructPassing\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"external\\", + \\"summary\\": \\"Just because we can.\\" + }, + \\"fqn\\": \\"jsii-calc.StructPassing\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2072 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"external\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2084 + }, + \\"name\\": \\"howManyVarArgsDidIPass\\", + \\"parameters\\": [ + { + \\"name\\": \\"_positional\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"inputs\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + }, + \\"variadic\\": true + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + \\"static\\": true, + \\"variadic\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"external\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2073 + }, + \\"name\\": \\"roundTrip\\", + \\"parameters\\": [ + { + \\"name\\": \\"_positional\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"name\\": \\"input\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"StructPassing\\" + }, + \\"jsii-calc.StructUnionConsumer\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.StructUnionConsumer\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2254 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2255 + }, + \\"name\\": \\"isStructA\\", + \\"parameters\\": [ + { + \\"name\\": \\"struct\\", + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"jsii-calc.StructA\\" + }, + { + \\"fqn\\": \\"jsii-calc.StructB\\" + } + ] + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2276 + }, + \\"name\\": \\"isStructB\\", + \\"parameters\\": [ + { + \\"name\\": \\"struct\\", + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"fqn\\": \\"jsii-calc.StructA\\" + }, + { + \\"fqn\\": \\"jsii-calc.StructB\\" + } + ] + } + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"StructUnionConsumer\\" + }, + \\"jsii-calc.StructWithJavaReservedWords\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.StructWithJavaReservedWords\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2046 + }, + \\"name\\": \\"StructWithJavaReservedWords\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2047 + }, + \\"name\\": \\"default\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2048 + }, + \\"name\\": \\"assert\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2051 + }, + \\"name\\": \\"result\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2052 + }, + \\"name\\": \\"that\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Sum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"An operation that sums multiple values.\\" + }, + \\"fqn\\": \\"jsii-calc.Sum\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 205 + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 197 + }, + \\"name\\": \\"Sum\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"remarks\\": \\"Must be implemented by derived classes.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The expression that this operation consists of.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 209 + }, + \\"name\\": \\"expression\\", + \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The parts to sum.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 201 + }, + \\"name\\": \\"parts\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"jsii-calc.SupportsNiceJavaBuilder\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilder\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2181 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"some identifier.\\" + }, + \\"name\\": \\"id\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"the default value of \`bar\`.\\" + }, + \\"name\\": \\"defaultBar\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"some props once can provide.\\" + }, + \\"name\\": \\"props\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"a variadic continuation.\\" + }, + \\"name\\": \\"rest\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + }, + \\"variadic\\": true + } + ], + \\"variadic\\": true + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2171 + }, + \\"name\\": \\"SupportsNiceJavaBuilder\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"some identifier.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2182 + }, + \\"name\\": \\"id\\", + \\"overrides\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2172 + }, + \\"name\\": \\"rest\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"jsii-calc.SupportsNiceJavaBuilderProps\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2191 + }, + \\"name\\": \\"SupportsNiceJavaBuilderProps\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Some number, like 42.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2201 + }, + \\"name\\": \\"bar\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"remarks\\": \\"But here we are, doing it like we didn't care.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2196 + }, + \\"name\\": \\"id\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"We can generate fancy builders in Java for classes which take a mix of positional & struct parameters.\\" + }, + \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2163 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"some identifier of your choice.\\" + }, + \\"name\\": \\"id\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"some properties.\\" + }, + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2155 + }, + \\"name\\": \\"SupportsNiceJavaBuilderWithRequiredProps\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2157 + }, + \\"name\\": \\"bar\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"some identifier of your choice.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2164 + }, + \\"name\\": \\"id\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2156 + }, + \\"name\\": \\"propId\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.SyncVirtualMethods\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.SyncVirtualMethods\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 376 + }, + \\"methods\\": [ + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 389 + }, + \\"name\\": \\"callerIsAsync\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 377 + }, + \\"name\\": \\"callerIsMethod\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 429 + }, + \\"name\\": \\"modifyOtherProperty\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 401 + }, + \\"name\\": \\"modifyValueOfTheProperty\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 442 + }, + \\"name\\": \\"readA\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 433 + }, + \\"name\\": \\"retrieveOtherProperty\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 413 + }, + \\"name\\": \\"retrieveReadOnlyProperty\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 405 + }, + \\"name\\": \\"retrieveValueOfTheProperty\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 393 + }, + \\"name\\": \\"virtualMethod\\", + \\"parameters\\": [ + { + \\"name\\": \\"n\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 446 + }, + \\"name\\": \\"writeA\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ] + } + ], + \\"name\\": \\"SyncVirtualMethods\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 411 + }, + \\"name\\": \\"readonlyProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 440 + }, + \\"name\\": \\"a\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 381 + }, + \\"name\\": \\"callerIsProperty\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 419 + }, + \\"name\\": \\"otherProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 399 + }, + \\"name\\": \\"theProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 427 + }, + \\"name\\": \\"valueOfOtherProperty\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.Thrower\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.Thrower\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 651 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 652 + }, + \\"name\\": \\"throwError\\" + } + ], + \\"name\\": \\"Thrower\\" + }, + \\"jsii-calc.TopLevelStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.TopLevelStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1997 + }, + \\"name\\": \\"TopLevelStruct\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This is a required field.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2001 + }, + \\"name\\": \\"required\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A union to really stress test our serialization.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2011 + }, + \\"name\\": \\"secondLevel\\", + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"number\\" + }, + { + \\"fqn\\": \\"jsii-calc.SecondLevelStruct\\" + } + ] + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"You don't have to pass this.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2006 + }, + \\"name\\": \\"optional\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.UmaskCheck\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"see\\": \\"https://github.com/aws/jsii/issues/1765\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Checks the current file permissions are cool (no funky UMASK down-scoping happened).\\" + }, + \\"fqn\\": \\"jsii-calc.UmaskCheck\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2752 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This should return 0o644 (-rw-r--r--).\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2756 + }, + \\"name\\": \\"mode\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"UmaskCheck\\" + }, + \\"jsii-calc.UnaryOperation\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"An operation on a single operand.\\" + }, + \\"fqn\\": \\"jsii-calc.UnaryOperation\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 101 + }, + \\"parameters\\": [ + { + \\"name\\": \\"operand\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 100 + }, + \\"name\\": \\"UnaryOperation\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 101 + }, + \\"name\\": \\"operand\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + } + ] + }, + \\"jsii-calc.UnionProperties\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.UnionProperties\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1112 + }, + \\"name\\": \\"UnionProperties\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1114 + }, + \\"name\\": \\"bar\\", + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"string\\" + }, + { + \\"primitive\\": \\"number\\" + }, + { + \\"fqn\\": \\"jsii-calc.AllTypes\\" + } + ] + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1113 + }, + \\"name\\": \\"foo\\", + \\"optional\\": true, + \\"type\\": { + \\"union\\": { + \\"types\\": [ + { + \\"primitive\\": \\"string\\" + }, + { + \\"primitive\\": \\"number\\" + } + ] + } + } + } + ] + }, + \\"jsii-calc.UpcasingReflectable\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Ensures submodule-imported types from dependencies can be used correctly.\\" + }, + \\"fqn\\": \\"jsii-calc.UpcasingReflectable\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodules.ts\\", + \\"line\\": 9 + }, + \\"parameters\\": [ + { + \\"name\\": \\"delegate\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"any\\" + }, + \\"kind\\": \\"map\\" + } + } + } + ] + }, + \\"interfaces\\": [ + \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodules.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"UpcasingReflectable\\", + \\"properties\\": [ + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodules.ts\\", + \\"line\\": 7 + }, + \\"name\\": \\"reflector\\", + \\"static\\": true, + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.Reflector\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodules.ts\\", + \\"line\\": 11 + }, + \\"name\\": \\"entries\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\" + }, + \\"kind\\": \\"array\\" + } + } + } + ] + }, + \\"jsii-calc.UseBundledDependency\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.UseBundledDependency\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1117 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1118 + }, + \\"name\\": \\"value\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + } + ], + \\"name\\": \\"UseBundledDependency\\" + }, + \\"jsii-calc.UseCalcBase\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Depend on a type from jsii-calc-base as a test for awslabs/jsii#128.\\" + }, + \\"fqn\\": \\"jsii-calc.UseCalcBase\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1168 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1169 + }, + \\"name\\": \\"hello\\", + \\"returns\\": { + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-base.Base\\" + } + } + } + ], + \\"name\\": \\"UseCalcBase\\" + }, + \\"jsii-calc.UsesInterfaceWithProperties\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.UsesInterfaceWithProperties\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 597 + }, + \\"parameters\\": [ + { + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 596 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 599 + }, + \\"name\\": \\"justRead\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 608 + }, + \\"name\\": \\"readStringAndNumber\\", + \\"parameters\\": [ + { + \\"name\\": \\"ext\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IInterfaceWithPropertiesExtension\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 603 + }, + \\"name\\": \\"writeAndRead\\", + \\"parameters\\": [ + { + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"UsesInterfaceWithProperties\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 597 + }, + \\"name\\": \\"obj\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\" + } + } + ] + }, + \\"jsii-calc.VariadicInvoker\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.VariadicInvoker\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 681 + }, + \\"parameters\\": [ + { + \\"name\\": \\"method\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.VariadicMethod\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 680 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 683 + }, + \\"name\\": \\"asArray\\", + \\"parameters\\": [ + { + \\"name\\": \\"values\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + }, + \\"variadic\\": true + } + ], + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"number\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"variadic\\": true + } + ], + \\"name\\": \\"VariadicInvoker\\" + }, + \\"jsii-calc.VariadicMethod\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.VariadicMethod\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 667 + }, + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"a prefix that will be use for all values returned by \`#asArray\`.\\" + }, + \\"name\\": \\"prefix\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + }, + \\"variadic\\": true + } + ], + \\"variadic\\": true + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 661 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 675 + }, + \\"name\\": \\"asArray\\", + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\" + }, + \\"name\\": \\"first\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"summary\\": \\"other elements to be included in the array.\\" + }, + \\"name\\": \\"others\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + }, + \\"variadic\\": true + } + ], + \\"returns\\": { + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"number\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + \\"variadic\\": true + } + ], + \\"name\\": \\"VariadicMethod\\" + }, + \\"jsii-calc.VirtualMethodPlayground\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.VirtualMethodPlayground\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 451 + }, + \\"methods\\": [ + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 476 + }, + \\"name\\": \\"overrideMeAsync\\", + \\"parameters\\": [ + { + \\"name\\": \\"index\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 480 + }, + \\"name\\": \\"overrideMeSync\\", + \\"parameters\\": [ + { + \\"name\\": \\"index\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 458 + }, + \\"name\\": \\"parallelSumAsync\\", + \\"parameters\\": [ + { + \\"name\\": \\"count\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"async\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 452 + }, + \\"name\\": \\"serialSumAsync\\", + \\"parameters\\": [ + { + \\"name\\": \\"count\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 468 + }, + \\"name\\": \\"sumSync\\", + \\"parameters\\": [ + { + \\"name\\": \\"count\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"number\\" + } + } + } + ], + \\"name\\": \\"VirtualMethodPlayground\\" + }, + \\"jsii-calc.VoidCallback\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"remarks\\": \\"- Implement \`overrideMe\` (method does not have to do anything).\\\\n- Invoke \`callMe\`\\\\n- Verify that \`methodWasCalled\` is \`true\`.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"This test is used to validate the runtimes can return correctly from a void callback.\\" + }, + \\"fqn\\": \\"jsii-calc.VoidCallback\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1921 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1926 + }, + \\"name\\": \\"callMe\\" + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1930 + }, + \\"name\\": \\"overrideMe\\", + \\"protected\\": true + } + ], + \\"name\\": \\"VoidCallback\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1923 + }, + \\"name\\": \\"methodWasCalled\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.WithPrivatePropertyInConstructor\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Verifies that private property declarations in constructor arguments are hidden.\\" + }, + \\"fqn\\": \\"jsii-calc.WithPrivatePropertyInConstructor\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1937 + }, + \\"parameters\\": [ + { + \\"name\\": \\"privateField\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1936 + }, + \\"name\\": \\"WithPrivatePropertyInConstructor\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 1939 + }, + \\"name\\": \\"success\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.composition.CompositeOperation\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Abstract operation composed from an expression of other operations.\\" + }, + \\"fqn\\": \\"jsii-calc.composition.CompositeOperation\\", + \\"initializer\\": {}, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 138 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"String representation of the value.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 164 + }, + \\"name\\": \\"toString\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + } + ], + \\"name\\": \\"CompositeOperation\\", + \\"namespace\\": \\"composition\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"remarks\\": \\"Must be implemented by derived classes.\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The expression that this operation consists of.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 162 + }, + \\"name\\": \\"expression\\", + \\"type\\": { + \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The value.\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 154 + }, + \\"name\\": \\"value\\", + \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", + \\"type\\": { + \\"primitive\\": \\"number\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A set of postfixes to include in a decorated .toString().\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 152 + }, + \\"name\\": \\"decorationPostfixes\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"A set of prefixes to include in a decorated .toString().\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 147 + }, + \\"name\\": \\"decorationPrefixes\\", + \\"type\\": { + \\"collection\\": { + \\"elementtype\\": { + \\"primitive\\": \\"string\\" + }, + \\"kind\\": \\"array\\" + } + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"The .toString() style.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 142 + }, + \\"name\\": \\"stringStyle\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\" + } + } + ] + }, + \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Style of .toString() output for CompositeOperation.\\" + }, + \\"fqn\\": \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/calculator.ts\\", + \\"line\\": 184 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Normal string expression.\\" + }, + \\"name\\": \\"NORMAL\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Decorated string expression.\\" + }, + \\"name\\": \\"DECORATED\\" + } + ], + \\"name\\": \\"CompositionStringStyle\\", + \\"namespace\\": \\"composition.CompositeOperation\\" + }, + \\"jsii-calc.submodule.MyClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.MyClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 11 + }, + \\"parameters\\": [ + { + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + } + } + ] + }, + \\"interfaces\\": [ + \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 5 + }, + \\"name\\": \\"MyClass\\", + \\"namespace\\": \\"submodule\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 8 + }, + \\"name\\": \\"awesomeness\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.Awesomeness\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 6 + }, + \\"name\\": \\"definedAt\\", + \\"overrides\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 7 + }, + \\"name\\": \\"goodness\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 11 + }, + \\"name\\": \\"props\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + } + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/my-class.ts\\", + \\"line\\": 9 + }, + \\"name\\": \\"allTypes\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.AllTypes\\" + } + } + ] + }, + \\"jsii-calc.submodule.back_references.MyClassReference\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.back_references.MyClassReference\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/refers-to-parent/index.ts\\", + \\"line\\": 3 + }, + \\"name\\": \\"MyClassReference\\", + \\"namespace\\": \\"submodule.back_references\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/refers-to-parent/index.ts\\", + \\"line\\": 4 + }, + \\"name\\": \\"reference\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.MyClass\\" + } + } + ] + }, + \\"jsii-calc.submodule.child.Awesomeness\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.Awesomeness\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 15 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It was awesome!\\" + }, + \\"name\\": \\"AWESOME\\" + } + ], + \\"name\\": \\"Awesomeness\\", + \\"namespace\\": \\"submodule.child\\" + }, + \\"jsii-calc.submodule.child.Goodness\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 5 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's pretty good.\\" + }, + \\"name\\": \\"PRETTY_GOOD\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's really good.\\" + }, + \\"name\\": \\"REALLY_GOOD\\" + }, + { + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"It's amazingly good.\\" + }, + \\"name\\": \\"AMAZINGLY_GOOD\\" + } + ], + \\"name\\": \\"Goodness\\", + \\"namespace\\": \\"submodule.child\\" + }, + \\"jsii-calc.submodule.child.InnerClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.InnerClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 37 + }, + \\"name\\": \\"InnerClass\\", + \\"namespace\\": \\"submodule.child\\", + \\"properties\\": [ + { + \\"const\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 38 + }, + \\"name\\": \\"staticProp\\", + \\"static\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + } + } + ] + }, + \\"jsii-calc.submodule.child.KwargsProps\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.KwargsProps\\", + \\"interfaces\\": [ + \\"jsii-calc.submodule.child.SomeStruct\\" + ], + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 41 + }, + \\"name\\": \\"KwargsProps\\", + \\"namespace\\": \\"submodule.child\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 42 + }, + \\"name\\": \\"extra\\", + \\"optional\\": true, + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + }, + \\"jsii-calc.submodule.child.OuterClass\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"see\\": \\": https://github.com/aws/jsii/pull/1706\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Checks that classes can self-reference during initialization.\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.OuterClass\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 27 + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 24 + }, + \\"name\\": \\"OuterClass\\", + \\"namespace\\": \\"submodule.child\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 25 + }, + \\"name\\": \\"innerClass\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.InnerClass\\" + } + } + ] + }, + \\"jsii-calc.submodule.child.SomeEnum\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.SomeEnum\\", + \\"kind\\": \\"enum\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 31 + }, + \\"members\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"name\\": \\"SOME\\" + } + ], + \\"name\\": \\"SomeEnum\\", + \\"namespace\\": \\"submodule.child\\" + }, + \\"jsii-calc.submodule.child.SomeStruct\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 34 + }, + \\"name\\": \\"SomeStruct\\", + \\"namespace\\": \\"submodule.child\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 35 + }, + \\"name\\": \\"prop\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.SomeEnum\\" + } + } + ] + }, + \\"jsii-calc.submodule.child.Structure\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"datatype\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.child.Structure\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 1 + }, + \\"name\\": \\"Structure\\", + \\"namespace\\": \\"submodule.child\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/child/index.ts\\", + \\"line\\": 2 + }, + \\"name\\": \\"bool\\", + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + ] + }, + \\"jsii-calc.submodule.isolated.Kwargs\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Ensures imports are correctly registered for kwargs lifted properties from super-structs.\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.isolated.Kwargs\\", + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/isolated.ts\\", + \\"line\\": 7 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/isolated.ts\\", + \\"line\\": 8 + }, + \\"name\\": \\"method\\", + \\"parameters\\": [ + { + \\"name\\": \\"props\\", + \\"optional\\": true, + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.KwargsProps\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + }, + \\"static\\": true + } + ], + \\"name\\": \\"Kwargs\\", + \\"namespace\\": \\"submodule.isolated\\" + }, + \\"jsii-calc.submodule.nested_submodule.Namespaced\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.nested_submodule.Namespaced\\", + \\"interfaces\\": [ + \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + ], + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 12 + }, + \\"name\\": \\"Namespaced\\", + \\"namespace\\": \\"submodule.nested_submodule\\", + \\"properties\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 13 + }, + \\"name\\": \\"definedAt\\", + \\"overrides\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 14 + }, + \\"name\\": \\"goodness\\", + \\"type\\": { + \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\" + } + } + ] + }, + \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\": { + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"fqn\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", + \\"kind\\": \\"interface\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 7 + }, + \\"name\\": \\"INamespaced\\", + \\"namespace\\": \\"submodule.nested_submodule.deeplyNested\\", + \\"properties\\": [ + { + \\"abstract\\": true, + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"immutable\\": true, + \\"locationInModule\\": { + \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", + \\"line\\": 8 + }, + \\"name\\": \\"definedAt\\", + \\"type\\": { + \\"primitive\\": \\"string\\" + } + } + ] + } + }, + \\"version\\": \\"0.0.0\\", + \\"fingerprint\\": \\"AksOoFurRMyuF7gSjHXHbIRIIjq0e0R0CvpHycvyI3U=\\" +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj 1`] = ` +Object { + Symbol(file): " + + + A simple calcuator built on JSII. (Stability: Experimental) + https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png + Amazon.JSII.Tests.CalculatorPackageId + Apache-2.0 + 0.0.0 + + Amazon Web Services + Amazon Web Services + aws;jsii;test + en-US + https://github.com/aws/jsii + https://github.com/aws/jsii.git + git + + true + true + true + true + enable + snupkg + netcoreapp3.1 + + + + + + + + + + + + 0612,0618 + + + +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: \\"jsii-calc.AbstractClass\\")] + public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass + { + /// + /// Stability: Experimental + /// + protected AbstractClass(): base(new DeputyProps(new object[]{})) + { + } + + ///

Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"abstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public abstract string AbstractMethod(string name); + + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"nonAbstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double NonAbstractMethod() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string PropFromInterface + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: \\"jsii-calc.AbstractClassBase\\")] + public abstract class AbstractClassBase : DeputyBase + { + /// + /// Stability: Experimental + /// + protected AbstractClassBase(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClassBase(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClassBase(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public abstract string AbstractProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: \\"jsii-calc.AbstractClassBase\\")] + internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase + { + private AbstractClassBaseProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public override string AbstractProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: \\"jsii-calc.AbstractClass\\")] + internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClass + { + private AbstractClassProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public override string AbstractProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"abstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public override string AbstractMethod(string name) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{name}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: \\"jsii-calc.AbstractClassReturner\\")] + public class AbstractClassReturner : DeputyBase + { + /// + /// Stability: Experimental + /// + public AbstractClassReturner(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClassReturner(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractClassReturner(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeAbstract\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceImplementedByAbstractClass\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"returnAbstractFromProperty\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClassBase\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Ensures abstract members implementations correctly register overrides in various languages. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: \\"jsii-calc.AbstractSuite\\")] + public abstract class AbstractSuite : DeputyBase + { + /// + /// Stability: Experimental + /// + protected AbstractSuite(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractSuite(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AbstractSuite(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"someMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"str\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + protected abstract string SomeMethod(string str); + + + /// Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result. + /// a \`string\`. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"workItAll\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a \`string\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"seed\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual string WorkItAll(string seed) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{seed}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + protected abstract string Property + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Ensures abstract members implementations correctly register overrides in various languages. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: \\"jsii-calc.AbstractSuite\\")] + internal sealed class AbstractSuiteProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite + { + private AbstractSuiteProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + protected override string Property + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"someMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"str\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + protected override string SomeMethod(string str) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{str}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// The \\"+\\" binary operation. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Add), fullyQualifiedName: \\"jsii-calc.Add\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public class Add : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation + { + /// Creates a BinaryOperation. + /// Left-hand side operand. + /// Right-hand side operand. + /// + /// Stability: Experimental + /// + public Add(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Add(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Add(DeputyProps props): base(props) + { + } + + /// String representation of the value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// The value. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public override double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This class includes property for all types supported by jsii. + /// + /// The setters will validate + /// that the value set is of the expected type and throw otherwise. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: \\"jsii-calc.AllTypes\\")] + public class AllTypes : DeputyBase + { + /// + /// Stability: Experimental + /// + public AllTypes(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AllTypes(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AllTypes(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyIn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"inp\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public virtual void AnyIn(object inp) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object[]{inp}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyOut\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public virtual object AnyOut() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"enumMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}]\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"enumPropertyValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double EnumPropertyValue + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anyArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual object[] AnyArrayProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anyMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary AnyMapProperty + { + get => GetInstanceProperty>(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + public virtual object AnyProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual string[] ArrayProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"booleanProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool BooleanProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"dateProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + public virtual System.DateTime DateProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"enumProperty\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"jsonProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"json\\\\\\"}\\")] + public virtual Newtonsoft.Json.Linq.JObject JsonProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"mapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary MapProperty + { + get => GetInstanceProperty>(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double NumberProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"stringProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string StringProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unionArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual object[] UnionArrayProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unionMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary UnionMapProperty + { + get => GetInstanceProperty>(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Multiply\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}]}}\\")] + public virtual object UnionProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unknownArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual object[] UnknownArrayProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unknownMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary UnknownMapProperty + { + get => GetInstanceProperty>(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unknownProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + public virtual object UnknownProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalEnumValue\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}\\", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum? OptionalEnumValue + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: \\"jsii-calc.AllTypesEnum\\")] + public enum AllTypesEnum + { + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"MY_ENUM_VALUE\\")] + MY_ENUM_VALUE, + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"YOUR_ENUM_VALUE\\")] + YOUR_ENUM_VALUE, + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"THIS_IS_GREAT\\")] + THIS_IS_GREAT + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: \\"jsii-calc.AllowedMethodNames\\")] + public class AllowedMethodNames : DeputyBase + { + /// + /// Stability: Experimental + /// + public AllowedMethodNames(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AllowedMethodNames(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AllowedMethodNames(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"getBar\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_p1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_p2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void GetBar(string p1, double p2) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{p1, p2}); + } + + /// getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"getFoo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"withParam\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual string GetFoo(string withParam) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{withParam}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"setBar\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_x\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_y\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_z\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}]\\")] + public virtual void SetBar(string x, double y, bool z) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double), typeof(bool)}, new object[]{x, y, z}); + } + + /// setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"setFoo\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_x\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_y\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void SetFoo(string x, double y) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{x, y}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: \\"jsii-calc.AmbiguousParameters\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"scope\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructParameterType\\\\\\"}}]\\")] + public class AmbiguousParameters : DeputyBase + { + /// + /// Stability: Experimental + /// + public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AmbiguousParameters(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AmbiguousParameters(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructParameterType\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.AnonymousImplementationProvider\\")] + public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider + { + /// + /// Stability: Experimental + /// + public AnonymousImplementationProvider(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AnonymousImplementationProvider(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AnonymousImplementationProvider(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: \\"jsii-calc.AsyncVirtualMethods\\")] + public class AsyncVirtualMethods : DeputyBase + { + /// + /// Stability: Experimental + /// + public AsyncVirtualMethods(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AsyncVirtualMethods(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AsyncVirtualMethods(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + public virtual double CallMe() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Just calls \\"overrideMeToo\\". + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callMe2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + public virtual double CallMe2() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + /// + /// This is a \\"double promise\\" situation, which + /// means that callbacks are not going to be available immediate, but only + /// after an \\"immediates\\" cycle. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callMeDoublePromise\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + public virtual double CallMeDoublePromise() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"dontOverrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double DontOverrideMe() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"mult\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + public virtual double OverrideMe(double mult) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{mult}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMeToo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + public virtual double OverrideMeToo() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: \\"jsii-calc.AugmentableClass\\")] + public class AugmentableClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public AugmentableClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AugmentableClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected AugmentableClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"methodOne\\")] + public virtual void MethodOne() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"methodTwo\\")] + public virtual void MethodTwo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: \\"jsii-calc.BaseJsii976\\")] + public class BaseJsii976 : DeputyBase + { + /// + /// Stability: Experimental + /// + public BaseJsii976(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BaseJsii976(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BaseJsii976(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: \\"jsii-calc.Bell\\")] + public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell + { + /// + /// Stability: Experimental + /// + public Bell(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Bell(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Bell(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ring\\", isOverride: true)] + public virtual void Ring() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"rung\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool Rung + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Represents an operation with two operands. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: \\"jsii-calc.BinaryOperation\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public abstract class BinaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly + { + /// Creates a BinaryOperation. + /// Left-hand side operand. + /// Right-hand side operand. + /// + /// Stability: Experimental + /// + protected BinaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BinaryOperation(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BinaryOperation(DeputyProps props): base(props) + { + } + + /// Say hello! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Left-hand side operand. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"lhs\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Lhs + { + get => GetInstanceProperty(); + } + + /// Right-hand side operand. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"rhs\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Rhs + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Represents an operation with two operands. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: \\"jsii-calc.BinaryOperation\\")] + internal sealed class BinaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation + { + private BinaryOperationProxy(ByRefValue reference): base(reference) + { + } + + /// The value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public override double Value + { + get => GetInstanceProperty(); + } + + /// String representation of the value. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [System.Obsolete()] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// A calculator which maintains a current value and allows adding operations. + /// + /// Here's how you use it: + /// + /// + /// + /// I will repeat this example again, but in an @example tag. + /// + /// Stability: Experimental + /// + /// + /// // Example automatically generated. See https://github.com/aws/jsii/issues/826 + /// Calculator calculator = new Calculator(); + /// calculator.Add(5); + /// calculator.Mul(3); + /// Console.WriteLine(calculator.Expression.Value); + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Calculator), fullyQualifiedName: \\"jsii-calc.Calculator\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Initialization properties.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.CalculatorProps\\\\\\"}}]\\")] + public class Calculator : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation + { + /// Creates a Calculator object. + /// Initialization properties. + /// + /// Stability: Experimental + /// + public Calculator(Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps? props = null): base(new DeputyProps(new object?[]{props})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Calculator(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Calculator(DeputyProps props): base(props) + { + } + + /// Adds a number to the current value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"add\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void Add(double @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + } + + /// Multiplies the current value by a number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"mul\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void Mul(double @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + } + + /// Negates the current value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"neg\\")] + public virtual void Neg() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// Raises the current value by a power. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"pow\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void Pow(double @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + } + + /// Returns teh value of the union property (if defined). + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"readUnionValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double ReadUnionValue() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Returns the expression. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression + { + get => GetInstanceProperty(); + } + + /// A log of all operations. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"operationsLog\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] OperationsLog + { + get => GetInstanceProperty(); + } + + /// A map of per operation name of all operations performed. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"operationsMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary OperationsMap + { + get => GetInstanceProperty>(); + } + + /// The current value. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"curr\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Curr + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// The maximum value allows in this calculator. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"maxValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public virtual double? MaxValue + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// Example of a property that accepts a union of types. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Add\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Multiply\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Power\\\\\\"}]}}\\", isOptional: true)] + public virtual object? UnionProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Properties for Calculator. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.CalculatorProps\\")] + public class CalculatorProps : Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps + { + /// The initial value of the calculator. + /// + /// NOTE: Any number works here, it's fine. + /// + /// Default: 0 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + public double? InitialValue + { + get; + set; + } + + /// The maximum value the calculator can store. + /// + /// Default: none + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + public double? MaximumValue + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Properties for Calculator. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ICalculatorProps), fullyQualifiedName: \\"jsii-calc.CalculatorProps\\")] + internal sealed class CalculatorPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps + { + private CalculatorPropsProxy(ByRefValue reference): base(reference) + { + } + + /// The initial value of the calculator. + /// + /// NOTE: Any number works here, it's fine. + /// + /// Default: 0 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? InitialValue + { + get => GetInstanceProperty(); + } + + /// The maximum value the calculator can store. + /// + /// Default: none + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? MaximumValue + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ChildStruct982\\")] + public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + public double Bar + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: \\"jsii-calc.ChildStruct982\\")] + internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 + { + private ChildStruct982Proxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Bar + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: \\"jsii-calc.ClassThatImplementsTheInternalInterface\\")] + public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + { + /// + /// Stability: Experimental + /// + public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassThatImplementsTheInternalInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassThatImplementsTheInternalInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string A + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string B + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string C + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"d\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string D + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: \\"jsii-calc.ClassThatImplementsThePrivateInterface\\")] + public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + { + /// + /// Stability: Experimental + /// + public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassThatImplementsThePrivateInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassThatImplementsThePrivateInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string A + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string B + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string C + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"e\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string E + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: \\"jsii-calc.ClassWithCollections\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"map\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}},{\\\\\\"name\\\\\\":\\\\\\"array\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}]\\")] + public class ClassWithCollections : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithCollections(System.Collections.Generic.IDictionary map, string[] array): base(new DeputyProps(new object[]{map, array})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithCollections(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithCollections(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"createAList\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static string[] CreateAList() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"createAMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + public static System.Collections.Generic.IDictionary CreateAMap() + { + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"staticArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public static string[] StaticArray + { + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"staticMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public static System.Collections.Generic.IDictionary StaticMap + { + get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"array\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual string[] Array + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"map\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public virtual System.Collections.Generic.IDictionary Map + { + get => GetInstanceProperty>(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This class has docs. + /// + /// The docs are great. They're a bunch of tags. + /// + /// See: https://aws.amazon.com/ + /// + /// CustomAttribute: hasAValue + /// + /// + /// // Example automatically generated. See https://github.com/aws/jsii/issues/826 + /// public void AnExample() + /// { + /// } + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: \\"jsii-calc.ClassWithDocs\\")] + public class ClassWithDocs : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithDocs(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithDocs(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithDocs(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.ClassWithJavaReservedWords\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"int\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public class ClassWithJavaReservedWords : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithJavaReservedWords(string @int): base(new DeputyProps(new object[]{@int})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithJavaReservedWords(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithJavaReservedWords(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"import\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"assert\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual string Import(string assert) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{assert}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"int\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Int + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\")] + public class ClassWithMutableObjectLiteralProperty : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithMutableObjectLiteralProperty(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithMutableObjectLiteralProperty(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"mutableObject\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IMutableObjectLiteral\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Class that implements interface properties automatically, but using a private constructor. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\")] + public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithPrivateConstructorAndAutomaticProperties(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithPrivateConstructorAndAutomaticProperties(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"create\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readOnlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"readWriteString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadOnlyString + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadWriteString + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Composition +{ + /// Abstract operation composed from an expression of other operations. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation\\")] + public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation + { + protected CompositeOperation(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected CompositeOperation(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected CompositeOperation(DeputyProps props): base(props) + { + } + + /// String representation of the value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// The expression that this operation consists of. + /// + /// Must be implemented by derived classes. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public abstract Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression + { + get; + } + + /// The value. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public override double Value + { + get => GetInstanceProperty(); + } + + /// A set of postfixes to include in a decorated .toString(). + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"decorationPostfixes\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual string[] DecorationPostfixes + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// A set of prefixes to include in a decorated .toString(). + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"decorationPrefixes\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual string[] DecorationPrefixes + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// The .toString() style. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"stringStyle\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation.CompositionStringStyle StringStyle + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// Style of .toString() output for CompositeOperation. + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(CompositionStringStyle), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\")] + public enum CompositionStringStyle + { + /// Normal string expression. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"NORMAL\\")] + NORMAL, + /// Decorated string expression. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"DECORATED\\")] + DECORATED + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Composition +{ + /// Abstract operation composed from an expression of other operations. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation\\")] + internal sealed class CompositeOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation + { + private CompositeOperationProxy(ByRefValue reference): base(reference) + { + } + + /// The expression that this operation consists of. + /// + /// Must be implemented by derived classes. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This tries to confuse Jackson by having overloaded property setters. + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/aws-cdk/issues/4080 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: \\"jsii-calc.ConfusingToJackson\\")] + public class ConfusingToJackson : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConfusingToJackson(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConfusingToJackson(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConfusingToJackson\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeStructInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConfusingToJacksonStruct\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + public virtual object? UnionProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ConfusingToJacksonStruct\\")] + public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct + { + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true, isOverride: true)] + public object? UnionProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: \\"jsii-calc.ConfusingToJacksonStruct\\")] + internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct + { + private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + public object? UnionProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: \\"jsii-calc.ConstructorPassesThisOut\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"consumer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PartiallyInitializedThisConsumer\\\\\\"}}]\\")] + public class ConstructorPassesThisOut : DeputyBase + { + /// + /// Stability: Experimental + /// + public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConstructorPassesThisOut(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConstructorPassesThisOut(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: \\"jsii-calc.Constructors\\")] + public class Constructors : DeputyBase + { + /// + /// Stability: Experimental + /// + public Constructors(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Constructors(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Constructors(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hiddenInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hiddenInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hiddenSubInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PublicClass\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInterface2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface2\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: \\"jsii-calc.ConsumePureInterface\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IStructReturningDelegate\\\\\\"}}]\\")] + public class ConsumePureInterface : DeputyBase + { + /// + /// Stability: Experimental + /// + public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumePureInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumePureInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"workItBaby\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Test calling back to consumers that implement interfaces. + /// + /// Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + /// the method on the argument that they're passed... + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: \\"jsii-calc.ConsumerCanRingBell\\")] + public class ConsumerCanRingBell : DeputyBase + { + /// + /// Stability: Experimental + /// + public ConsumerCanRingBell(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumerCanRingBell(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumerCanRingBell(DeputyProps props): base(props) + { + } + + /// ...if the interface is implemented using an object literal. + /// + /// Returns whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"staticImplementedByObjectLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// ...if the interface is implemented using a private class. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"staticImplementedByPrivateClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// ...if the interface is implemented using a public class. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"staticImplementedByPublicClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// If the parameter is a concrete class instead of an interface. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"staticWhenTypedAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IConcreteBellRinger\\\\\\"}}]\\")] + public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + } + + /// ...if the interface is implemented using an object literal. + /// + /// Returns whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"implementedByObjectLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// ...if the interface is implemented using a private class. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"implementedByPrivateClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// ...if the interface is implemented using a public class. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"implementedByPublicClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + } + + /// If the parameter is a concrete class instead of an interface. + /// + /// Return whether the bell was rung. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"whenTypedAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IConcreteBellRinger\\\\\\"}}]\\")] + public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\")] + public class ConsumersOfThisCrazyTypeSystem : DeputyBase + { + /// + /// Stability: Experimental + /// + public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumersOfThisCrazyTypeSystem(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ConsumersOfThisCrazyTypeSystem(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"consumeAnotherPublicInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnotherPublicInterface\\\\\\"}}]\\")] + public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"consumeNonInternalInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.INonInternalInterface\\\\\\"}}]\\")] + public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies proper type handling through dynamic overrides. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: \\"jsii-calc.DataRenderer\\")] + public class DataRenderer : DeputyBase + { + /// + /// Stability: Experimental + /// + public DataRenderer(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DataRenderer(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DataRenderer(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"render\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"data\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}]\\")] + public virtual string Render(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct? data = null) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object?[]{data}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"renderArbitrary\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"data\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + public virtual string RenderArbitrary(System.Collections.Generic.IDictionary data) + { + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{data}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"renderMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"map\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + public virtual string RenderMap(System.Collections.Generic.IDictionary map) + { + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{map}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: \\"jsii-calc.DefaultedConstructorArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + public class DefaultedConstructorArgument : DeputyBase + { + /// + /// Stability: Experimental + /// + public DefaultedConstructorArgument(double? arg1 = null, string? arg2 = null, System.DateTime? arg3 = null): base(new DeputyProps(new object?[]{arg1, arg2, arg3})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DefaultedConstructorArgument(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DefaultedConstructorArgument(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arg1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Arg1 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arg3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + public virtual System.DateTime Arg3 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"arg2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public virtual string? Arg2 + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// 1. + /// + /// call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + /// 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: \\"jsii-calc.Demonstrate982\\")] + public class Demonstrate982 : DeputyBase + { + /// + /// Stability: Experimental + /// + public Demonstrate982(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Demonstrate982(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Demonstrate982(DeputyProps props): base(props) + { + } + + /// It's dangerous to go alone! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"takeThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ChildStruct982\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + } + + /// It's dangerous to go alone! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"takeThisToo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ParentStruct982\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: \\"jsii-calc.DeprecatedClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [System.Obsolete(\\"a pretty boring class\\")] + public class DeprecatedClass : DeputyBase + { + /// + /// Stability: Deprecated + /// + [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + public DeprecatedClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DeprecatedClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DeprecatedClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"method\\")] + [System.Obsolete(\\"it was a bad idea\\")] + public virtual void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete(\\"this is not always \\\\\\"wazoo\\\\\\", be ready to be disappointed\\")] + public virtual string ReadonlyProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [System.Obsolete(\\"shouldn't have been mutable\\")] + public virtual double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// + /// Stability: Deprecated + /// + [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: \\"jsii-calc.DeprecatedEnum\\")] + [System.Obsolete(\\"your deprecated selection of bad options\\")] + public enum DeprecatedEnum + { + /// + /// Stability: Deprecated + /// + [JsiiEnumMember(name: \\"OPTION_A\\")] + [System.Obsolete(\\"option A is not great\\")] + OPTION_A, + /// + /// Stability: Deprecated + /// + [JsiiEnumMember(name: \\"OPTION_B\\")] + [System.Obsolete(\\"option B is kinda bad, too\\")] + OPTION_B + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Deprecated + /// + [JsiiByValue(fqn: \\"jsii-calc.DeprecatedStruct\\")] + public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [System.Obsolete(\\"well, yeah\\")] + public string ReadonlyProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: \\"jsii-calc.DeprecatedStruct\\")] + [System.Obsolete(\\"it just wraps a string\\")] + internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct + { + private DeprecatedStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete(\\"well, yeah\\")] + public string ReadonlyProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: \\"jsii-calc.DerivedClassHasNoProperties.Base\\")] + public class Base : DeputyBase + { + /// + /// Stability: Experimental + /// + public Base(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Base(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Base(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Prop + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: \\"jsii-calc.DerivedClassHasNoProperties.Derived\\")] + public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base + { + /// + /// Stability: Experimental + /// + public Derived(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Derived(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Derived(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// A struct which derives from another struct. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.DerivedStruct\\")] + public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOverride: true)] + public System.DateTime AnotherRequired + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + public bool Bool + { + get; + set; + } + + /// An example of a non primitive property. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + { + get; + set; + } + + /// This is optional. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true, isOverride: true)] + public System.Collections.Generic.IDictionary? AnotherOptional + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true, isOverride: true)] + public object? OptionalAny + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + public string[]? OptionalArray + { + get; + set; + } + + /// An awesome number value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public double Anumber + { + get; + set; + } + + /// A string value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [System.Obsolete()] + public string Astring + { + get; + set; + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + [System.Obsolete()] + public string[]? FirstOptional + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// A struct which derives from another struct. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: \\"jsii-calc.DerivedStruct\\")] + internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct + { + private DerivedStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + public System.DateTime AnotherRequired + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool Bool + { + get => GetInstanceProperty(); + } + + /// An example of a non primitive property. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + { + get => GetInstanceProperty(); + } + + /// This is optional. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + public System.Collections.Generic.IDictionary? AnotherOptional + { + get => GetInstanceProperty?>(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + public object? OptionalAny + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + public string[]? OptionalArray + { + get => GetInstanceProperty(); + } + + /// An awesome number value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public double Anumber + { + get => GetInstanceProperty(); + } + + /// A string value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete()] + public string Astring + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [System.Obsolete()] + public string[]? FirstOptional + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string BaseLevelProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + { + private DiamondInheritanceBaseLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string BaseLevelProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string FirstMidLevelProperty + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string BaseLevelProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct + { + private DiamondInheritanceFirstMidLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string FirstMidLevelProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string BaseLevelProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string SecondMidLevelProperty + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string BaseLevelProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + { + private DiamondInheritanceSecondMidLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string SecondMidLevelProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string BaseLevelProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string TopLevelProperty + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string FirstMidLevelProperty + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string BaseLevelProperty + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string SecondMidLevelProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct + { + private DiamondInheritanceTopLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string TopLevelProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string FirstMidLevelProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string BaseLevelProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string SecondMidLevelProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that null/undefined can be returned for optional collections. + /// + /// This source of collections is disappointing - it'll always give you nothing :( + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: \\"jsii-calc.DisappointingCollectionSource\\")] + public class DisappointingCollectionSource : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DisappointingCollectionSource(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DisappointingCollectionSource(DeputyProps props): base(props) + { + } + + /// Some List of strings, maybe? + /// + /// (Nah, just a billion dollars mistake!) + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"maybeList\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + public static string[] MaybeList + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); + + /// Some Map of strings to numbers, maybe? + /// + /// (Nah, just a billion dollars mistake!) + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"maybeMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + public static System.Collections.Generic.IDictionary MaybeMap + { + get; + } + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: \\"jsii-calc.DoNotOverridePrivates\\")] + public class DoNotOverridePrivates : DeputyBase + { + /// + /// Stability: Experimental + /// + public DoNotOverridePrivates(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoNotOverridePrivates(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoNotOverridePrivates(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"changePrivatePropertyValue\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"newValue\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual void ChangePrivatePropertyValue(string newValue) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{newValue}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"privateMethodValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string PrivateMethodValue() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"privatePropertyValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string PrivatePropertyValue() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// jsii#284: do not recognize \\"any\\" as an optional argument. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: \\"jsii-calc.DoNotRecognizeAnyAsOptional\\")] + public class DoNotRecognizeAnyAsOptional : DeputyBase + { + /// + /// Stability: Experimental + /// + public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoNotRecognizeAnyAsOptional(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoNotRecognizeAnyAsOptional(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_requiredAny\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_optionalAny\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_optionalString\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual void Method(object requiredAny, object? optionalAny = null, string? optionalString = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(object), typeof(object), typeof(string)}, new object?[]{requiredAny, optionalAny, optionalString}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Here's the first line of the TSDoc comment. + /// + /// This is the meat of the TSDoc comment. It may contain + /// multiple lines and multiple paragraphs. + /// + /// Multiple paragraphs are separated by an empty line. + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: \\"jsii-calc.DocumentedClass\\")] + public class DocumentedClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public DocumentedClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DocumentedClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DocumentedClass(DeputyProps props): base(props) + { + } + + /// Greet the indicated person. + /// The person to be greeted. + /// A number that everyone knows very well + /// + /// This will print out a friendly greeting intended for + /// the indicated person. + /// + [JsiiMethod(name: \\"greet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The person to be greeted.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"greetee\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Greetee\\\\\\"}}]\\")] + public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); + } + + /// Say ¡Hola! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hola\\")] + public virtual void Hola() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\")] + public class DontComplainAboutVariadicAfterOptional : DeputyBase + { + /// + /// Stability: Experimental + /// + public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DontComplainAboutVariadicAfterOptional(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DontComplainAboutVariadicAfterOptional(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"optionalAndVariadic\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"optional\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"things\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public virtual string OptionalAndVariadic(string? optional = null, params string[] things) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string), typeof(string[])}, new object?[]{optional, things}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: \\"jsii-calc.DoubleTrouble\\")] + public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator + { + /// + /// Stability: Experimental + /// + public DoubleTrouble(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoubleTrouble(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected DoubleTrouble(DeputyProps props): base(props) + { + } + + /// Say hello! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Returns another random number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isOverride: true)] + public virtual double Next() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: \\"jsii-calc.EnumDispenser\\")] + public class EnumDispenser : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected EnumDispenser(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected EnumDispenser(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"randomIntegerLikeEnum\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"randomStringLikeEnum\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValues\\")] + public class EraseUndefinedHashValues : DeputyBase + { + /// + /// Stability: Experimental + /// + public EraseUndefinedHashValues(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected EraseUndefinedHashValues(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected EraseUndefinedHashValues(DeputyProps props): base(props) + { + } + + /// Returns \`true\` if \`key\` is defined in \`opts\`. + /// + /// Used to check that undefined/null hash values + /// are being erased when sending values from native code to JS. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"doesKeyExist\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"opts\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.EraseUndefinedHashValuesOptions\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"key\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); + } + + /// We expect \\"prop1\\" to be erased. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"prop1IsNull\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + public static System.Collections.Generic.IDictionary Prop1IsNull() + { + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + } + + /// We expect \\"prop2\\" to be erased. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"prop2IsUndefined\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + public static System.Collections.Generic.IDictionary Prop2IsUndefined() + { + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions + { + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Option1 + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Option2 + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions + { + private EraseUndefinedHashValuesOptionsProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Option1 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Option2 + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: \\"jsii-calc.ExperimentalClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public class ExperimentalClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public ExperimentalClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExperimentalClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExperimentalClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\")] + public virtual void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadonlyProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public virtual double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: \\"jsii-calc.ExperimentalEnum\\")] + public enum ExperimentalEnum + { + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"OPTION_A\\")] + OPTION_A, + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"OPTION_B\\")] + OPTION_B + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ExperimentalStruct\\")] + public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string ReadonlyProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: \\"jsii-calc.ExperimentalStruct\\")] + internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct + { + private ExperimentalStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadonlyProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: \\"jsii-calc.ExportedBaseClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"success\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}]\\")] + public class ExportedBaseClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public ExportedBaseClass(bool success): base(new DeputyProps(new object[]{success})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExportedBaseClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExportedBaseClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool Success + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ExtendsInternalInterface\\")] + public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + public bool Boom + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Prop + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: \\"jsii-calc.ExtendsInternalInterface\\")] + internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface + { + private ExtendsInternalInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool Boom + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Prop + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExternalClass), fullyQualifiedName: \\"jsii-calc.ExternalClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public class ExternalClass : DeputyBase + { + /// + /// Stability: Experimental + /// + /// External: true + /// + public ExternalClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExternalClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ExternalClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiMethod(name: \\"method\\")] + public virtual void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadonlyProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public virtual double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiEnum(nativeType: typeof(ExternalEnum), fullyQualifiedName: \\"jsii-calc.ExternalEnum\\")] + public enum ExternalEnum + { + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiEnumMember(name: \\"OPTION_A\\")] + OPTION_A, + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiEnumMember(name: \\"OPTION_B\\")] + OPTION_B + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiByValue(fqn: \\"jsii-calc.ExternalStruct\\")] + public class ExternalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct + { + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string ReadonlyProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiTypeProxy(nativeType: typeof(IExternalStruct), fullyQualifiedName: \\"jsii-calc.ExternalStruct\\")] + internal sealed class ExternalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct + { + private ExternalStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadonlyProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: \\"jsii-calc.GiveMeStructs\\")] + public class GiveMeStructs : DeputyBase + { + /// + /// Stability: Experimental + /// + public GiveMeStructs(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected GiveMeStructs(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected GiveMeStructs(DeputyProps props): base(props) + { + } + + /// Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"derivedToFirst\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"derived\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DerivedStruct\\\\\\"}}]\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + } + + /// Returns the boolean from a DerivedStruct struct. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"readDerivedNonPrimitive\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"derived\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DerivedStruct\\\\\\"}}]\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + } + + /// Returns the \\"anumber\\" from a MyFirstStruct struct; + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"readFirstNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"first\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}]\\")] + public virtual double ReadFirstNumber(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct first) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object[]{first}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"structLiteral\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals StructLiteral + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// These are some arguments you can pass to a method. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.Greetee\\")] + public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.IGreetee + { + /// The name of the greetee. + /// + /// Default: world + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Name + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// These are some arguments you can pass to a method. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: \\"jsii-calc.Greetee\\")] + internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IGreetee + { + private GreeteeProxy(ByRefValue reference): base(reference) + { + } + + /// The name of the greetee. + /// + /// Default: world + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Name + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: \\"jsii-calc.GreetingAugmenter\\")] + public class GreetingAugmenter : DeputyBase + { + /// + /// Stability: Experimental + /// + public GreetingAugmenter(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected GreetingAugmenter(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected GreetingAugmenter(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"betterGreeting\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"friendly\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}]\\")] + public virtual string BetterGreeting(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can return an anonymous interface implementation from an override without losing the interface declarations. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.IAnonymousImplementationProvider\\")] + public interface IAnonymousImplementationProvider + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\")] + Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass(); + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\")] + Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can return an anonymous interface implementation from an override without losing the interface declarations. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.IAnonymousImplementationProvider\\")] + internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider + { + private IAnonymousImplementationProviderProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: \\"jsii-calc.IAnonymouslyImplementMe\\")] + public interface IAnonymouslyImplementMe + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Value + { + get; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"verb\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string Verb(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: \\"jsii-calc.IAnonymouslyImplementMe\\")] + internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe + { + private IAnonymouslyImplementMeProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Value + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"verb\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string Verb() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: \\"jsii-calc.IAnotherPublicInterface\\")] + public interface IAnotherPublicInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string A + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: \\"jsii-calc.IAnotherPublicInterface\\")] + internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface + { + private IAnotherPublicInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string A + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: \\"jsii-calc.IBell\\")] + public interface IBell + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ring\\")] + void Ring(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: \\"jsii-calc.IBell\\")] + internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell + { + private IBellProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ring\\")] + public void Ring() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Takes the object parameter as an interface. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: \\"jsii-calc.IBellRinger\\")] + public interface IBellRinger + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"}}]\\")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Takes the object parameter as an interface. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: \\"jsii-calc.IBellRinger\\")] + internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBellRinger + { + private IBellRingerProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"}}]\\")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBell)}, new object[]{bell}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Properties for Calculator. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ICalculatorProps), fullyQualifiedName: \\"jsii-calc.CalculatorProps\\")] + public interface ICalculatorProps + { + /// The initial value of the calculator. + /// + /// NOTE: Any number works here, it's fine. + /// + /// Default: 0 + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? InitialValue + { + get + { + return null; + } + } + + /// The maximum value the calculator can store. + /// + /// Default: none + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? MaximumValue + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: \\"jsii-calc.ChildStruct982\\")] + public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Bar + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Takes the object parameter as a calss. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: \\"jsii-calc.IConcreteBellRinger\\")] + public interface IConcreteBellRinger + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}}]\\")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Takes the object parameter as a calss. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: \\"jsii-calc.IConcreteBellRinger\\")] + internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger + { + private IConcreteBellRingerProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}}]\\")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell)}, new object[]{bell}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: \\"jsii-calc.ConfusingToJacksonStruct\\")] + public interface IConfusingToJacksonStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + object? UnionProperty + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: \\"jsii-calc.IDeprecatedInterface\\")] + [System.Obsolete(\\"useless interface\\")] + public interface IDeprecatedInterface + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [System.Obsolete(\\"could be better\\")] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? MutableProperty + { + get + { + return null; + } + set + { + throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + } + } + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"method\\")] + [System.Obsolete(\\"services no purpose\\")] + void Method(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Deprecated + /// + [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: \\"jsii-calc.IDeprecatedInterface\\")] + [System.Obsolete(\\"useless interface\\")] + internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedInterface + { + private IDeprecatedInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [System.Obsolete(\\"could be better\\")] + public double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"method\\")] + [System.Obsolete(\\"services no purpose\\")] + public void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Deprecated + /// + [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: \\"jsii-calc.DeprecatedStruct\\")] + [System.Obsolete(\\"it just wraps a string\\")] + public interface IDeprecatedStruct + { + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [System.Obsolete(\\"well, yeah\\")] + string ReadonlyProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// A struct which derives from another struct. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: \\"jsii-calc.DerivedStruct\\")] + public interface IDerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + System.DateTime AnotherRequired + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool Bool + { + get; + } + + /// An example of a non primitive property. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + { + get; + } + + /// This is optional. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + System.Collections.Generic.IDictionary? AnotherOptional + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + object? OptionalAny + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string[]? OptionalArray + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + public interface IDiamondInheritanceBaseLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string BaseLevelProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string FirstMidLevelProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string SecondMidLevelProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string TopLevelProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + public interface IEraseUndefinedHashValuesOptions + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Option1 + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Option2 + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: \\"jsii-calc.IExperimentalInterface\\")] + public interface IExperimentalInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? MutableProperty + { + get + { + return null; + } + set + { + throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + } + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\")] + void Method(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: \\"jsii-calc.IExperimentalInterface\\")] + internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalInterface + { + private IExperimentalInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\")] + public void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: \\"jsii-calc.ExperimentalStruct\\")] + public interface IExperimentalStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string ReadonlyProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: \\"jsii-calc.ExtendsInternalInterface\\")] + public interface IExtendsInternalInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool Boom + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Prop + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: \\"jsii-calc.IExtendsPrivateInterface\\")] + public interface IExtendsPrivateInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"moreThings\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + string[] MoreThings + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Private + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: \\"jsii-calc.IExtendsPrivateInterface\\")] + internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsPrivateInterface + { + private IExtendsPrivateInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"moreThings\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public string[] MoreThings + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Private + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiInterface(nativeType: typeof(IExternalInterface), fullyQualifiedName: \\"jsii-calc.IExternalInterface\\")] + public interface IExternalInterface + { + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? MutableProperty + { + get + { + return null; + } + set + { + throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + } + } + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiMethod(name: \\"method\\")] + void Method(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiTypeProxy(nativeType: typeof(IExternalInterface), fullyQualifiedName: \\"jsii-calc.IExternalInterface\\")] + internal sealed class IExternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalInterface + { + private IExternalInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiMethod(name: \\"method\\")] + public void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiInterface(nativeType: typeof(IExternalStruct), fullyQualifiedName: \\"jsii-calc.ExternalStruct\\")] + public interface IExternalStruct + { + /// + /// Stability: Experimental + /// + /// External: true + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string ReadonlyProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Even friendlier classes can implement this interface. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IFriendlier), fullyQualifiedName: \\"jsii-calc.IFriendlier\\")] + public interface IFriendlier : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly + { + /// Say farewell. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string Farewell(); + /// Say goodbye. + /// A goodbye blessing. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string Goodbye(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Even friendlier classes can implement this interface. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IFriendlier), fullyQualifiedName: \\"jsii-calc.IFriendlier\\")] + internal sealed class IFriendlierProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier + { + private IFriendlierProxy(ByRefValue reference): base(reference) + { + } + + /// Say farewell. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string Farewell() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say goodbye. + /// A goodbye blessing. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string Goodbye() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say hello! + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [System.Obsolete()] + public string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: \\"jsii-calc.IFriendlyRandomGenerator\\")] + public interface IFriendlyRandomGenerator : Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly + { + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: \\"jsii-calc.IFriendlyRandomGenerator\\")] + internal sealed class IFriendlyRandomGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator + { + private IFriendlyRandomGeneratorProxy(ByRefValue reference): base(reference) + { + } + + /// Returns another random number. + /// A random number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public double Next() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say hello! + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [System.Obsolete()] + public string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// These are some arguments you can pass to a method. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: \\"jsii-calc.Greetee\\")] + public interface IGreetee + { + /// The name of the greetee. + /// + /// Default: world + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Name + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: \\"jsii-calc.ImplictBaseOfBase\\")] + public interface IImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + System.DateTime Goo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// awslabs/jsii#220 Abstract return type. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: \\"jsii-calc.IInterfaceImplementedByAbstractClass\\")] + public interface IInterfaceImplementedByAbstractClass + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string PropFromInterface + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// awslabs/jsii#220 Abstract return type. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: \\"jsii-calc.IInterfaceImplementedByAbstractClass\\")] + internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass + { + private IInterfaceImplementedByAbstractClassProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string PropFromInterface + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\")] + public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"otherValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string OtherValue + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\")] + internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceThatShouldNotBeADataType + { + private IInterfaceThatShouldNotBeADataTypeProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"otherValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string OtherValue + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Value + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"doThings\\")] + public void DoThings() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.IInterfaceWithInternal\\")] + public interface IInterfaceWithInternal + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"visible\\")] + void Visible(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.IInterfaceWithInternal\\")] + internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal + { + private IInterfaceWithInternalProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"visible\\")] + public void Visible() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: \\"jsii-calc.IInterfaceWithMethods\\")] + public interface IInterfaceWithMethods + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Value + { + get; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"doThings\\")] + void DoThings(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: \\"jsii-calc.IInterfaceWithMethods\\")] + internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods + { + private IInterfaceWithMethodsProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Value + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"doThings\\")] + public void DoThings() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\")] + public interface IInterfaceWithOptionalMethodArguments + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + void Hello(string arg1, double? arg2 = null); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\")] + internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments + { + private IInterfaceWithOptionalMethodArgumentsProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public void Hello(string arg1, double? arg2 = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object?[]{arg1, arg2}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.IInterfaceWithProperties\\")] + public interface IInterfaceWithProperties + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string ReadOnlyString + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string ReadWriteString + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: \\"jsii-calc.IInterfaceWithPropertiesExtension\\")] + public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: \\"jsii-calc.IInterfaceWithPropertiesExtension\\")] + internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension + { + private IInterfaceWithPropertiesExtensionProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Foo + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadOnlyString + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadWriteString + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.IInterfaceWithProperties\\")] + internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + { + private IInterfaceWithPropertiesProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadOnlyString + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadWriteString + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: \\"jsii-calc.IJSII417Derived\\")] + public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Property + { + get; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"bar\\")] + void Bar(); + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"baz\\")] + void Baz(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: \\"jsii-calc.IJSII417Derived\\")] + internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417Derived + { + private IJSII417DerivedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Property + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool HasRoot + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"bar\\")] + public void Bar() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"baz\\")] + public void Baz() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"foo\\")] + public void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.IJSII417PublicBaseOfBase\\")] + public interface IJSII417PublicBaseOfBase + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool HasRoot + { + get; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"foo\\")] + void Foo(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.IJSII417PublicBaseOfBase\\")] + internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase + { + private IJSII417PublicBaseOfBaseProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool HasRoot + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"foo\\")] + public void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: \\"jsii-calc.IJsii487External\\")] + public interface IJsii487External + { + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: \\"jsii-calc.IJsii487External2\\")] + public interface IJsii487External2 + { + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: \\"jsii-calc.IJsii487External2\\")] + internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2 + { + private IJsii487External2Proxy(ByRefValue reference): base(reference) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: \\"jsii-calc.IJsii487External\\")] + internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External + { + private IJsii487ExternalProxy(ByRefValue reference): base(reference) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: \\"jsii-calc.IJsii496\\")] + public interface IJsii496 + { + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: \\"jsii-calc.IJsii496\\")] + internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 + { + private IJsii496Proxy(ByRefValue reference): base(reference) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// jsii#298: show default values in sphinx documentation, and respect newlines. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + public interface ILoadBalancedFargateServiceProps + { + /// The container port of the application load balancer attached to your Fargate service. + /// + /// Corresponds to container port mapping. + /// + /// Default: 80 + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? ContainerPort + { + get + { + return null; + } + } + + /// The number of cpu units used by the task. + /// + /// Valid values, which determines your range of valid values for the memory parameter: + /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 256 + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Cpu + { + get + { + return null; + } + } + + /// The amount (in MiB) of memory used by the task. + /// + /// This field is required and you must use one of the following values, which determines your range of valid values + /// for the cpu parameter: + /// + /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + /// + /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + /// + /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + /// + /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + /// + /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 512 + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? MemoryMiB + { + get + { + return null; + } + } + + /// Determines whether the Application Load Balancer will be internet-facing. + /// + /// Default: true + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + bool? PublicLoadBalancer + { + get + { + return null; + } + } + + /// Determines whether your Fargate Service will be assigned a public IP address. + /// + /// Default: false + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + bool? PublicTasks + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: \\"jsii-calc.IMutableObjectLiteral\\")] + public interface IMutableObjectLiteral + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Value + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: \\"jsii-calc.IMutableObjectLiteral\\")] + internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral + { + private IMutableObjectLiteralProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Value + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: \\"jsii-calc.NestedStruct\\")] + public interface INestedStruct + { + /// When provided, must be > 0. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double NumberProp + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: \\"jsii-calc.INonInternalInterface\\")] + public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string B + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string C + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: \\"jsii-calc.INonInternalInterface\\")] + internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + { + private INonInternalInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string B + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string C + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string A + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + public interface INullShouldBeTreatedAsUndefinedData + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + object? ThisShouldBeUndefined + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Make sure that setters are properly called on objects with interfaces. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: \\"jsii-calc.IObjectWithProperty\\")] + public interface IObjectWithProperty + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Property + { + get; + set; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"wasSet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + bool WasSet(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Make sure that setters are properly called on objects with interfaces. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: \\"jsii-calc.IObjectWithProperty\\")] + internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty + { + private IObjectWithPropertyProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Property + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"wasSet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + public bool WasSet() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks that optional result from interface method code generates correctly. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: \\"jsii-calc.IOptionalMethod\\")] + public interface IOptionalMethod + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"optional\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string? Optional(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks that optional result from interface method code generates correctly. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: \\"jsii-calc.IOptionalMethod\\")] + internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalMethod + { + private IOptionalMethodProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"optional\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string? Optional() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: \\"jsii-calc.OptionalStruct\\")] + public interface IOptionalStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Field + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// https://github.com/aws/jsii/issues/982. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: \\"jsii-calc.ParentStruct982\\")] + public interface IParentStruct982 + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Foo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: \\"jsii-calc.IPrivatelyImplemented\\")] + public interface IPrivatelyImplemented + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool Success + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: \\"jsii-calc.IPrivatelyImplemented\\")] + internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented + { + private IPrivatelyImplementedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool Success + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: \\"jsii-calc.IPublicInterface\\")] + public interface IPublicInterface + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"bye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string Bye(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: \\"jsii-calc.IPublicInterface2\\")] + public interface IPublicInterface2 + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + string Ciao(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: \\"jsii-calc.IPublicInterface2\\")] + internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 + { + private IPublicInterface2Proxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string Ciao() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: \\"jsii-calc.IPublicInterface\\")] + internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface + { + private IPublicInterfaceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"bye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public string Bye() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Generates random numbers. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: \\"jsii-calc.IRandomNumberGenerator\\")] + public interface IRandomNumberGenerator + { + /// Returns another random number. + /// A random number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + double Next(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Generates random numbers. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: \\"jsii-calc.IRandomNumberGenerator\\")] + internal sealed class IRandomNumberGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator + { + private IRandomNumberGeneratorProxy(ByRefValue reference): base(reference) + { + } + + /// Returns another random number. + /// A random number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public double Next() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Returns a subclass of a known class which implements an interface. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: \\"jsii-calc.IReturnJsii976\\")] + public interface IReturnJsii976 + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Foo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Returns a subclass of a known class which implements an interface. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: \\"jsii-calc.IReturnJsii976\\")] + internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 + { + private IReturnJsii976Proxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: \\"jsii-calc.IReturnsNumber\\")] + public interface IReturnsNumber + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}\\")] + Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp + { + get; + } + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"obtainNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"}}\\")] + Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: \\"jsii-calc.IReturnsNumber\\")] + internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber + { + private IReturnsNumberProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"obtainNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"}}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + /// + /// This is cheating with the (current) declared types, but this is the \\"more + /// idiomatic\\" way for Pythonists. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: \\"jsii-calc.RootStruct\\")] + public interface IRootStruct + { + /// May not be empty. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string StringProp + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: \\"jsii-calc.SecondLevelStruct\\")] + public interface ISecondLevelStruct + { + /// It's long and required. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string DeeperRequiredProp + { + get; + } + + /// It's long, but you'll almost never pass it. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? DeeperOptionalProp + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ISmellyStruct), fullyQualifiedName: \\"jsii-calc.SmellyStruct\\")] + public interface ISmellyStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Property + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool YetAnoterOne + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: \\"jsii-calc.IStableInterface\\")] + public interface IStableInterface + { + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? MutableProperty + { + get + { + return null; + } + set + { + throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + } + } + [JsiiMethod(name: \\"method\\")] + void Method(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: \\"jsii-calc.IStableInterface\\")] + internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableInterface + { + private IStableInterfaceProxy(ByRefValue reference): base(reference) + { + } + + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + [JsiiMethod(name: \\"method\\")] + public void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: \\"jsii-calc.StableStruct\\")] + public interface IStableStruct + { + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string ReadonlyProperty + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can serialize and deserialize structs without silently ignoring optional fields. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: \\"jsii-calc.StructA\\")] + public interface IStructA + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string RequiredString + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + double? OptionalNumber + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? OptionalString + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: \\"jsii-calc.StructB\\")] + public interface IStructB + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string RequiredString + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + bool? OptionalBoolean + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + /// + /// See: https://github.com/aws/aws-cdk/issues/4302 + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: \\"jsii-calc.StructParameterType\\")] + public interface IStructParameterType + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Scope + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + bool? Props + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that a \\"pure\\" implementation of an interface works correctly. + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: \\"jsii-calc.IStructReturningDelegate\\")] + public interface IStructReturningDelegate + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"returnStruct\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct(); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that a \\"pure\\" implementation of an interface works correctly. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: \\"jsii-calc.IStructReturningDelegate\\")] + internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate + { + private IStructReturningDelegateProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"returnStruct\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.StructWithJavaReservedWords\\")] + public interface IStructWithJavaReservedWords + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Default + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Assert + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Result + { + get + { + return null; + } + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? That + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + public interface ISupportsNiceJavaBuilderProps + { + /// Some number, like 42. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Bar + { + get; + } + + /// An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + /// + /// But here we are, doing it like we didn't care. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Id + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: \\"jsii-calc.TopLevelStruct\\")] + public interface ITopLevelStruct + { + /// This is a required field. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Required + { + get; + } + + /// A union to really stress test our serialization. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\")] + object SecondLevel + { + get; + } + + /// You don't have to pass this. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Optional + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: \\"jsii-calc.UnionProperties\\")] + public interface IUnionProperties + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\")] + object Bar + { + get; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + object? Foo + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: \\"jsii-calc.ImplementInternalInterface\\")] + public class ImplementInternalInterface : DeputyBase + { + /// + /// Stability: Experimental + /// + public ImplementInternalInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementInternalInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementInternalInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Prop + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: \\"jsii-calc.Implementation\\")] + public class Implementation : DeputyBase + { + /// + /// Stability: Experimental + /// + public Implementation(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Implementation(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Implementation(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.ImplementsInterfaceWithInternal\\")] + public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal + { + /// + /// Stability: Experimental + /// + public ImplementsInterfaceWithInternal(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsInterfaceWithInternal(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsInterfaceWithInternal(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"visible\\", isOverride: true)] + public virtual void Visible() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\")] + public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal + { + /// + /// Stability: Experimental + /// + public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsInterfaceWithInternalSubclass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsInterfaceWithInternalSubclass(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: \\"jsii-calc.ImplementsPrivateInterface\\")] + public class ImplementsPrivateInterface : DeputyBase + { + /// + /// Stability: Experimental + /// + public ImplementsPrivateInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsPrivateInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ImplementsPrivateInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Private + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ImplictBaseOfBase\\")] + public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOverride: true)] + public System.DateTime Goo + { + get; + set; + } + + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Bar + { + get; + set; + } + + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: \\"jsii-calc.ImplictBaseOfBase\\")] + internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase + { + private ImplictBaseOfBaseProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + public System.DateTime Goo + { + get => GetInstanceProperty(); + } + + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Bar + { + get => GetInstanceProperty(); + } + + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: \\"jsii-calc.InbetweenClass\\")] + public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 + { + /// + /// Stability: Experimental + /// + public InbetweenClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InbetweenClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InbetweenClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Ciao() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that collections of interfaces or structs are correctly handled. + /// + /// See: https://github.com/aws/jsii/issues/1196 + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: \\"jsii-calc.InterfaceCollections\\")] + public class InterfaceCollections : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InterfaceCollections(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InterfaceCollections(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"listOfInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"listOfStructs\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"mapOfInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + public static System.Collections.Generic.IDictionary MapOfInterfaces() + { + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"mapOfStructs\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + public static System.Collections.Generic.IDictionary MapOfStructs() + { + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\")] + public class Foo : DeputyBase + { + /// + /// Stability: Experimental + /// + public Foo(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Foo(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Foo(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public virtual string? Bar + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + public double Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello + { + private HelloProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + public interface IHello + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Foo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + public double Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello + { + private HelloProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + public interface IHello + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + double Foo + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can return arrays of interfaces See aws/aws-cdk#2362. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: \\"jsii-calc.InterfacesMaker\\")] + public class InterfacesMaker : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InterfacesMaker(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InterfacesMaker(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` +Object { + Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Internal.DependencyResolution +{ + public sealed class Anchor + { + public Anchor() + { + new Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution.Anchor(); + new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); + new Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.DependencyResolution.Anchor(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks the \\"same instance\\" isomorphism is preserved within the constructor. + /// + /// Create a subclass of this, and assert that this.myself() actually returns + /// this from within the constructor. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: \\"jsii-calc.Isomorphism\\")] + public abstract class Isomorphism : DeputyBase + { + /// + /// Stability: Experimental + /// + protected Isomorphism(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Isomorphism(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Isomorphism(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"myself\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Isomorphism\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Isomorphism Myself() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks the \\"same instance\\" isomorphism is preserved within the constructor. + /// + /// Create a subclass of this, and assert that this.myself() actually returns + /// this from within the constructor. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: \\"jsii-calc.Isomorphism\\")] + internal sealed class IsomorphismProxy : Amazon.JSII.Tests.CalculatorNamespace.Isomorphism + { + private IsomorphismProxy(ByRefValue reference): base(reference) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: \\"jsii-calc.JSII417Derived\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"property\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase + { + /// + /// Stability: Experimental + /// + public JSII417Derived(string property): base(new DeputyProps(new object[]{property})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSII417Derived(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSII417Derived(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"bar\\")] + public virtual void Bar() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"baz\\")] + public virtual void Baz() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + protected virtual string Property + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.JSII417PublicBaseOfBase\\")] + public class JSII417PublicBaseOfBase : DeputyBase + { + /// + /// Stability: Experimental + /// + public JSII417PublicBaseOfBase(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSII417PublicBaseOfBase(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSII417PublicBaseOfBase(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"makeInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.JSII417PublicBaseOfBase\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"foo\\")] + public virtual void Foo() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool HasRoot + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralForInterface\\")] + public class JSObjectLiteralForInterface : DeputyBase + { + /// + /// Stability: Experimental + /// + public JSObjectLiteralForInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralForInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralForInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeFriendly\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly GiveMeFriendly() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeFriendlyGenerator\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IFriendlyRandomGenerator\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator GiveMeFriendlyGenerator() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralToNative\\")] + public class JSObjectLiteralToNative : DeputyBase + { + /// + /// Stability: Experimental + /// + public JSObjectLiteralToNative(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralToNative(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralToNative(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"returnLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.JSObjectLiteralToNativeClass\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralToNativeClass\\")] + public class JSObjectLiteralToNativeClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public JSObjectLiteralToNativeClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralToNativeClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JSObjectLiteralToNativeClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"propA\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string PropA + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"propB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double PropB + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: \\"jsii-calc.JavaReservedWords\\")] + public class JavaReservedWords : DeputyBase + { + /// + /// Stability: Experimental + /// + public JavaReservedWords(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JavaReservedWords(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JavaReservedWords(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"abstract\\")] + public virtual void Abstract() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"assert\\")] + public virtual void Assert() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"boolean\\")] + public virtual void Boolean() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"break\\")] + public virtual void Break() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"byte\\")] + public virtual void Byte() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"case\\")] + public virtual void Case() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"catch\\")] + public virtual void Catch() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"char\\")] + public virtual void Char() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"class\\")] + public virtual void Class() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"const\\")] + public virtual void Const() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"continue\\")] + public virtual void Continue() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"default\\")] + public virtual void Default() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"do\\")] + public virtual void Do() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"double\\")] + public virtual void Double() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"else\\")] + public virtual void Else() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"enum\\")] + public virtual void Enum() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"extends\\")] + public virtual void Extends() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"false\\")] + public virtual void False() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"final\\")] + public virtual void Final() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"finally\\")] + public virtual void Finally() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"float\\")] + public virtual void Float() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"for\\")] + public virtual void For() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"goto\\")] + public virtual void Goto() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"if\\")] + public virtual void If() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"implements\\")] + public virtual void Implements() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"import\\")] + public virtual void Import() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"instanceof\\")] + public virtual void Instanceof() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"int\\")] + public virtual void Int() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"interface\\")] + public virtual void Interface() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"long\\")] + public virtual void Long() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"native\\")] + public virtual void Native() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"new\\")] + public virtual void New() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"null\\")] + public virtual void Null() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"package\\")] + public virtual void Package() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"private\\")] + public virtual void Private() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"protected\\")] + public virtual void Protected() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"public\\")] + public virtual void Public() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"return\\")] + public virtual void Return() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"short\\")] + public virtual void Short() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"static\\")] + public virtual void Static() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"strictfp\\")] + public virtual void Strictfp() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"super\\")] + public virtual void Super() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"switch\\")] + public virtual void Switch() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"synchronized\\")] + public virtual void Synchronized() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"this\\")] + public virtual void This() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"throw\\")] + public virtual void Throw() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"throws\\")] + public virtual void Throws() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"transient\\")] + public virtual void Transient() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"true\\")] + public virtual void True() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"try\\")] + public virtual void Try() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"void\\")] + public virtual void Void() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"volatile\\")] + public virtual void Volatile() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"while\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string While + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: \\"jsii-calc.Jsii487Derived\\")] + public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External + { + /// + /// Stability: Experimental + /// + public Jsii487Derived(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Jsii487Derived(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Jsii487Derived(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: \\"jsii-calc.Jsii496Derived\\")] + public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 + { + /// + /// Stability: Experimental + /// + public Jsii496Derived(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Jsii496Derived(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Jsii496Derived(DeputyProps props): base(props) + { + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Host runtime version should be set via JSII_AGENT. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: \\"jsii-calc.JsiiAgent\\")] + public class JsiiAgent_ : DeputyBase + { + /// + /// Stability: Experimental + /// + public JsiiAgent_(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JsiiAgent_(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JsiiAgent_(DeputyProps props): base(props) + { + } + + /// Returns the value of the JSII_AGENT environment variable. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"jsiiAgent\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public static string? JsiiAgent + { + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_)); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Make sure structs are un-decorated on the way in. + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/aws-cdk/issues/5066 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: \\"jsii-calc.JsonFormatter\\")] + public class JsonFormatter : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JsonFormatter(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected JsonFormatter(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyArray() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyBooleanFalse\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyBooleanFalse() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyBooleanTrue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyBooleanTrue() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyDate\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyDate() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyEmptyString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyEmptyString() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyFunction\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyFunction() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyHash\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyHash() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyNull\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyNull() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyNumber() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyRef\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyRef() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyString() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyUndefined\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyUndefined() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"anyZero\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object AnyZero() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"stringify\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public static string? Stringify(object? @value = null) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// jsii#298: show default values in sphinx documentation, and respect newlines. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps + { + /// The container port of the application load balancer attached to your Fargate service. + /// + /// Corresponds to container port mapping. + /// + /// Default: 80 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + public double? ContainerPort + { + get; + set; + } + + /// The number of cpu units used by the task. + /// + /// Valid values, which determines your range of valid values for the memory parameter: + /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 256 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Cpu + { + get; + set; + } + + /// The amount (in MiB) of memory used by the task. + /// + /// This field is required and you must use one of the following values, which determines your range of valid values + /// for the cpu parameter: + /// + /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + /// + /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + /// + /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + /// + /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + /// + /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 512 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? MemoryMiB + { + get; + set; + } + + /// Determines whether the Application Load Balancer will be internet-facing. + /// + /// Default: true + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + public bool? PublicLoadBalancer + { + get; + set; + } + + /// Determines whether your Fargate Service will be assigned a public IP address. + /// + /// Default: false + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + public bool? PublicTasks + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// jsii#298: show default values in sphinx documentation, and respect newlines. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps + { + private LoadBalancedFargateServicePropsProxy(ByRefValue reference): base(reference) + { + } + + /// The container port of the application load balancer attached to your Fargate service. + /// + /// Corresponds to container port mapping. + /// + /// Default: 80 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? ContainerPort + { + get => GetInstanceProperty(); + } + + /// The number of cpu units used by the task. + /// + /// Valid values, which determines your range of valid values for the memory parameter: + /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 256 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Cpu + { + get => GetInstanceProperty(); + } + + /// The amount (in MiB) of memory used by the task. + /// + /// This field is required and you must use one of the following values, which determines your range of valid values + /// for the cpu parameter: + /// + /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + /// + /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + /// + /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + /// + /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + /// + /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + /// + /// This default is set in the underlying FargateTaskDefinition construct. + /// + /// Default: 512 + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? MemoryMiB + { + get => GetInstanceProperty(); + } + + /// Determines whether the Application Load Balancer will be internet-facing. + /// + /// Default: true + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + public bool? PublicLoadBalancer + { + get => GetInstanceProperty(); + } + + /// Determines whether your Fargate Service will be assigned a public IP address. + /// + /// Default: false + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + public bool? PublicTasks + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.MethodNamedProperty), fullyQualifiedName: \\"jsii-calc.MethodNamedProperty\\")] + public class MethodNamedProperty : DeputyBase + { + /// + /// Stability: Experimental + /// + public MethodNamedProperty(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MethodNamedProperty(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MethodNamedProperty(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"property\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string Property() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"elite\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Elite + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// The \\"*\\" binary operation. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Multiply), fullyQualifiedName: \\"jsii-calc.Multiply\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public class Multiply : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator + { + /// Creates a BinaryOperation. + /// Left-hand side operand. + /// Right-hand side operand. + /// + /// Stability: Experimental + /// + public Multiply(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Multiply(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Multiply(DeputyProps props): base(props) + { + } + + /// Say farewell. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Farewell() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say goodbye. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Goodbye() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Returns another random number. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isOverride: true)] + public virtual double Next() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// String representation of the value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// The value. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public override double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs 1`] = ` +Object { + Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + ///

jsii Calculator

+ /// + /// This library is used to demonstrate and test the features of JSII + /// + ///

How to use running sum API:

+ /// + /// First, create a calculator: + /// + /// + /// + /// Then call some operations: + /// + /// + /// + ///

Code Samples

+ /// + /// + ///
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public class NamespaceDoc + { + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// The negation operation (\\"-value\\"). + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Negate), fullyQualifiedName: \\"jsii-calc.Negate\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"operand\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public class Negate : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier + { + /// + /// Stability: Experimental + /// + public Negate(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ operand): base(new DeputyProps(new object[]{operand})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Negate(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Negate(DeputyProps props): base(props) + { + } + + /// Say farewell. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Farewell() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say goodbye. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Goodbye() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Say hello! + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public virtual string Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// String representation of the value. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// The value. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public override double Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.NestedStruct\\")] + public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.INestedStruct + { + /// When provided, must be > 0. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + public double NumberProp + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: \\"jsii-calc.NestedStruct\\")] + internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INestedStruct + { + private NestedStructProxy(ByRefValue reference): base(reference) + { + } + + /// When provided, must be > 0. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double NumberProp + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Test fixture to verify that jsii modules can use the node standard library. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: \\"jsii-calc.NodeStandardLibrary\\")] + public class NodeStandardLibrary : DeputyBase + { + /// + /// Stability: Experimental + /// + public NodeStandardLibrary(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NodeStandardLibrary(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NodeStandardLibrary(DeputyProps props): base(props) + { + } + + /// Uses node.js \\"crypto\\" module to calculate sha256 of a string. + /// \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"cryptoSha256\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string CryptoSha256() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Reads a local resource file (resource.txt) asynchronously. + /// \\"Hello, resource!\\" + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"fsReadFile\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isAsync: true)] + public virtual string FsReadFile() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Sync version of fsReadFile. + /// \\"Hello, resource! SYNC!\\" + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"fsReadFileSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string FsReadFileSync() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Returns the current os.platform() from the \\"os\\" node module. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"osPlatform\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string OsPlatform + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefined\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_param1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"optional\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public class NullShouldBeTreatedAsUndefined : DeputyBase + { + /// + /// Stability: Experimental + /// + public NullShouldBeTreatedAsUndefined(string param1, object? optional = null): base(new DeputyProps(new object?[]{param1, optional})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NullShouldBeTreatedAsUndefined(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NullShouldBeTreatedAsUndefined(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeUndefined\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public virtual void GiveMeUndefined(object? @value = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveMeUndefinedInsideAnObject\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"input\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\\\\\"}}]\\")] + public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData input) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"verifyPropertyIsUndefined\\")] + public virtual void VerifyPropertyIsUndefined() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"changeMeToUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public virtual string? ChangeMeToUndefined + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOverride: true)] + public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true, isOverride: true)] + public object? ThisShouldBeUndefined + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData + { + private NullShouldBeTreatedAsUndefinedDataProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + public object? ThisShouldBeUndefined + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This allows us to test that a reference can be stored for objects that implement interfaces. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: \\"jsii-calc.NumberGenerator\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"generator\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}}]\\")] + public class NumberGenerator : DeputyBase + { + /// + /// Stability: Experimental + /// + public NumberGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator generator): base(new DeputyProps(new object[]{generator})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NumberGenerator(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NumberGenerator(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"isSameGenerator\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"gen\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}}]\\")] + public virtual bool IsSameGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator gen) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator)}, new object[]{gen}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"nextTimes100\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double NextTimes100() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"generator\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator Generator + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verify that object references can be passed inside collections. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: \\"jsii-calc.ObjectRefsInCollections\\")] + public class ObjectRefsInCollections : DeputyBase + { + /// + /// Stability: Experimental + /// + public ObjectRefsInCollections(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ObjectRefsInCollections(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ObjectRefsInCollections(DeputyProps props): base(props) + { + } + + /// Returns the sum of all values. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"sumFromArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}]\\")] + public virtual double SumFromArray(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] values) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[])}, new object[]{values}); + } + + /// Returns the sum of all values in a map. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"sumFromMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + public virtual double SumFromMap(System.Collections.Generic.IDictionary values) + { + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{values}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: \\"jsii-calc.ObjectWithPropertyProvider\\")] + public class ObjectWithPropertyProvider : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ObjectWithPropertyProvider(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ObjectWithPropertyProvider(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"provide\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IObjectWithProperty\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Old class. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: \\"jsii-calc.Old\\")] + [System.Obsolete(\\"Use the new class\\")] + public class Old : DeputyBase + { + /// + /// Stability: Experimental + /// + public Old(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Old(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Old(DeputyProps props): base(props) + { + } + + /// Doo wop that thing. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"doAThing\\")] + [System.Obsolete()] + public virtual void DoAThing() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: \\"jsii-calc.OptionalArgumentInvoker\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\\\\\"}}]\\")] + public class OptionalArgumentInvoker : DeputyBase + { + /// + /// Stability: Experimental + /// + public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalArgumentInvoker(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalArgumentInvoker(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"invokeWithOptional\\")] + public virtual void InvokeWithOptional() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"invokeWithoutOptional\\")] + public virtual void InvokeWithoutOptional() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: \\"jsii-calc.OptionalConstructorArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + public class OptionalConstructorArgument : DeputyBase + { + /// + /// Stability: Experimental + /// + public OptionalConstructorArgument(double arg1, string arg2, System.DateTime? arg3 = null): base(new DeputyProps(new object?[]{arg1, arg2, arg3})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalConstructorArgument(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalConstructorArgument(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arg1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Arg1 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"arg2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Arg2 + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"arg3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOptional: true)] + public virtual System.DateTime? Arg3 + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.OptionalStruct\\")] + public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct + { + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Field + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: \\"jsii-calc.OptionalStructConsumer\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"optionalStruct\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.OptionalStruct\\\\\\"}}]\\")] + public class OptionalStructConsumer : DeputyBase + { + /// + /// Stability: Experimental + /// + public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalStructConsumer(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OptionalStructConsumer(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"parameterWasUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool ParameterWasUndefined + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"fieldValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public virtual string? FieldValue + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: \\"jsii-calc.OptionalStruct\\")] + internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct + { + private OptionalStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Field + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/jsii/issues/903 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: \\"jsii-calc.OverridableProtectedMember\\")] + public class OverridableProtectedMember : DeputyBase + { + /// + /// Stability: Experimental + /// + public OverridableProtectedMember(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OverridableProtectedMember(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OverridableProtectedMember(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + protected virtual string OverrideMe() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"switchModes\\")] + public virtual void SwitchModes() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"valueFromProtected\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string ValueFromProtected() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"overrideReadOnly\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + protected virtual string OverrideReadOnly + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"overrideReadWrite\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + protected virtual string OverrideReadWrite + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: \\"jsii-calc.OverrideReturnsObject\\")] + public class OverrideReturnsObject : DeputyBase + { + /// + /// Stability: Experimental + /// + public OverrideReturnsObject(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OverrideReturnsObject(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OverrideReturnsObject(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"test\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IReturnsNumber\\\\\\"}}]\\")] + public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// https://github.com/aws/jsii/issues/982. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.ParentStruct982\\")] + public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// https://github.com/aws/jsii/issues/982. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: \\"jsii-calc.ParentStruct982\\")] + internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + { + private ParentStruct982Proxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: \\"jsii-calc.PartiallyInitializedThisConsumer\\")] + public abstract class PartiallyInitializedThisConsumer : DeputyBase + { + /// + /// Stability: Experimental + /// + protected PartiallyInitializedThisConsumer(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PartiallyInitializedThisConsumer(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PartiallyInitializedThisConsumer(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"consumePartiallyInitializedThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConstructorPassesThisOut\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"dt\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"ev\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}]\\")] + public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev); + + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: \\"jsii-calc.PartiallyInitializedThisConsumer\\")] + internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer + { + private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"consumePartiallyInitializedThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConstructorPassesThisOut\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"dt\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"ev\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}]\\")] + public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: \\"jsii-calc.Polymorphism\\")] + public class Polymorphism : DeputyBase + { + /// + /// Stability: Experimental + /// + public Polymorphism(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Polymorphism(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Polymorphism(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"sayHello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"friendly\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}]\\")] + public virtual string SayHello(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// The power operation. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Power), fullyQualifiedName: \\"jsii-calc.Power\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The base of the power.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"base\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The number of times to multiply.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"pow\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public class Power : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation + { + /// Creates a Power operation. + /// The base of the power. + /// The number of times to multiply. + /// + /// Stability: Experimental + /// + public Power(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ @base, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ pow): base(new DeputyProps(new object[]{@base, pow})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Power(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Power(DeputyProps props): base(props) + { + } + + /// The base of the power. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"base\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Base + { + get => GetInstanceProperty(); + } + + /// The expression that this operation consists of. + /// + /// Must be implemented by derived classes. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression + { + get => GetInstanceProperty(); + } + + /// The number of times to multiply. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"pow\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Pow + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PropertyNamedProperty), fullyQualifiedName: \\"jsii-calc.PropertyNamedProperty\\")] + public class PropertyNamedProperty : DeputyBase + { + /// + /// Stability: Experimental + /// + public PropertyNamedProperty(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PropertyNamedProperty(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PropertyNamedProperty(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Property + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool YetAnoterOne + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: \\"jsii-calc.PublicClass\\")] + public class PublicClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public PublicClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PublicClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PublicClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\")] + public virtual void Hello() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: \\"jsii-calc.PythonReservedWords\\")] + public class PythonReservedWords : DeputyBase + { + /// + /// Stability: Experimental + /// + public PythonReservedWords(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PythonReservedWords(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected PythonReservedWords(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"and\\")] + public virtual void And() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"as\\")] + public virtual void As() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"assert\\")] + public virtual void Assert() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"async\\")] + public virtual void Async() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"await\\")] + public virtual void Await() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"break\\")] + public virtual void Break() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"class\\")] + public virtual void Class() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"continue\\")] + public virtual void Continue() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"def\\")] + public virtual void Def() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"del\\")] + public virtual void Del() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"elif\\")] + public virtual void Elif() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"else\\")] + public virtual void Else() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"except\\")] + public virtual void Except() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"finally\\")] + public virtual void Finally() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"for\\")] + public virtual void For() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"from\\")] + public virtual void From() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"global\\")] + public virtual void Global() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"if\\")] + public virtual void If() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"import\\")] + public virtual void Import() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"in\\")] + public virtual void In() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"is\\")] + public virtual void Is() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"lambda\\")] + public virtual void Lambda() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"nonlocal\\")] + public virtual void Nonlocal() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"not\\")] + public virtual void Not() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"or\\")] + public virtual void Or() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"pass\\")] + public virtual void Pass() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"raise\\")] + public virtual void Raise() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"return\\")] + public virtual void Return() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"try\\")] + public virtual void Try() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"while\\")] + public virtual void While() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"with\\")] + public virtual void With() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"yield\\")] + public virtual void Yield() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.ClassWithSelf\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public class ClassWithSelf : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithSelf(string self): base(new DeputyProps(new object[]{self})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithSelf(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithSelf(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual string Method(double self) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Self + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelfKwarg), fullyQualifiedName: \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PythonSelf.StructWithSelf\\\\\\"}}]\\")] + public class ClassWithSelfKwarg : DeputyBase + { + /// + /// Stability: Experimental + /// + public ClassWithSelfKwarg(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf props): base(new DeputyProps(new object[]{props})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithSelfKwarg(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ClassWithSelfKwarg(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PythonSelf.StructWithSelf\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf Props + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\")] + public interface IInterfaceWithSelf + { + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + string Method(double self); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\")] + internal sealed class IInterfaceWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IInterfaceWithSelf + { + private IInterfaceWithSelfProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public string Method(double self) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + public interface IStructWithSelf + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string Self + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + public class StructWithSelf : Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Self + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + internal sealed class StructWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf + { + private StructWithSelfProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Self + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// See awslabs/jsii#138. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: \\"jsii-calc.ReferenceEnumFromScopedPackage\\")] + public class ReferenceEnumFromScopedPackage : DeputyBase + { + /// + /// Stability: Experimental + /// + public ReferenceEnumFromScopedPackage(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ReferenceEnumFromScopedPackage(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ReferenceEnumFromScopedPackage(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"loadFoo\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? LoadFoo() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"saveFoo\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}}]\\")] + public virtual void SaveFoo(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}\\", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? Foo + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + /// an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`. + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/jsii/issues/320 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\")] + public class ReturnsPrivateImplementationOfInterface : DeputyBase + { + /// + /// Stability: Experimental + /// + public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ReturnsPrivateImplementationOfInterface(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected ReturnsPrivateImplementationOfInterface(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"privateImplementation\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPrivatelyImplemented\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + /// + /// This is cheating with the (current) declared types, but this is the \\"more + /// idiomatic\\" way for Pythonists. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.RootStruct\\")] + public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.IRootStruct + { + /// May not be empty. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string StringProp + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + /// + /// This is cheating with the (current) declared types, but this is the \\"more + /// idiomatic\\" way for Pythonists. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: \\"jsii-calc.RootStruct\\")] + internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRootStruct + { + private RootStructProxy(ByRefValue reference): base(reference) + { + } + + /// May not be empty. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string StringProp + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: \\"jsii-calc.RootStructValidator\\")] + public class RootStructValidator : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected RootStructValidator(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected RootStructValidator(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"validate\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.RootStruct\\\\\\"}}]\\")] + public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct @struct) + { + InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct)}, new object[]{@struct}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: \\"jsii-calc.RuntimeTypeChecking\\")] + public class RuntimeTypeChecking : DeputyBase + { + /// + /// Stability: Experimental + /// + public RuntimeTypeChecking(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected RuntimeTypeChecking(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected RuntimeTypeChecking(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"methodWithDefaultedArguments\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + public virtual void MethodWithDefaultedArguments(double? arg1 = null, string? arg2 = null, System.DateTime? arg3 = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"methodWithOptionalAnyArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public virtual void MethodWithOptionalAnyArgument(object? arg = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{arg}); + } + + /// Used to verify verification of number of method arguments. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"methodWithOptionalArguments\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + public virtual void MethodWithOptionalArguments(double arg1, string arg2, System.DateTime? arg3 = null) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.SecondLevelStruct\\")] + public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct + { + /// It's long and required. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string DeeperRequiredProp + { + get; + set; + } + + /// It's long, but you'll almost never pass it. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? DeeperOptionalProp + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: \\"jsii-calc.SecondLevelStruct\\")] + internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct + { + private SecondLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// It's long and required. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string DeeperRequiredProp + { + get => GetInstanceProperty(); + } + + /// It's long, but you'll almost never pass it. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? DeeperOptionalProp + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Test that a single instance can be returned under two different FQNs. + /// + /// JSII clients can instantiate 2 different strongly-typed wrappers for the same + /// object. Unfortunately, this will break object equality, but if we didn't do + /// this it would break runtime type checks in the JVM or CLR. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: \\"jsii-calc.SingleInstanceTwoTypes\\")] + public class SingleInstanceTwoTypes : DeputyBase + { + /// + /// Stability: Experimental + /// + public SingleInstanceTwoTypes(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingleInstanceTwoTypes(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingleInstanceTwoTypes(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"interface1\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.InbetweenClass\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"interface2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that singleton enums are handled correctly. + /// + /// https://github.com/aws/jsii/issues/231 + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: \\"jsii-calc.SingletonInt\\")] + public class SingletonInt : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingletonInt(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingletonInt(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"isSingletonInt\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual bool IsSingletonInt(double @value) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// A singleton integer. + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: \\"jsii-calc.SingletonIntEnum\\")] + public enum SingletonIntEnum + { + /// Elite! + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"SINGLETON_INT\\")] + SINGLETON_INT + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that singleton enums are handled correctly. + /// + /// https://github.com/aws/jsii/issues/231 + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: \\"jsii-calc.SingletonString\\")] + public class SingletonString : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingletonString(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SingletonString(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"isSingletonString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual bool IsSingletonString(string @value) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// A singleton string. + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: \\"jsii-calc.SingletonStringEnum\\")] + public enum SingletonStringEnum + { + /// 1337. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"SINGLETON_STRING\\")] + SINGLETON_STRING + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.SmellyStruct\\")] + public class SmellyStruct : Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Property + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + public bool YetAnoterOne + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ISmellyStruct), fullyQualifiedName: \\"jsii-calc.SmellyStruct\\")] + internal sealed class SmellyStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct + { + private SmellyStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Property + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool YetAnoterOne + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: \\"jsii-calc.SomeTypeJsii976\\")] + public class SomeTypeJsii976 : DeputyBase + { + /// + /// Stability: Experimental + /// + public SomeTypeJsii976(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SomeTypeJsii976(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SomeTypeJsii976(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"returnAnonymous\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public static object ReturnAnonymous() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"returnReturn\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IReturnJsii976\\\\\\"}}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: \\"jsii-calc.StableClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public class StableClass : DeputyBase + { + public StableClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StableClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StableClass(DeputyProps props): base(props) + { + } + + [JsiiMethod(name: \\"method\\")] + public virtual void Method() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadonlyProperty + { + get => GetInstanceProperty(); + } + + [JsiiOptional] + [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public virtual double? MutableProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: \\"jsii-calc.StableEnum\\")] + public enum StableEnum + { + [JsiiEnumMember(name: \\"OPTION_A\\")] + OPTION_A, + [JsiiEnumMember(name: \\"OPTION_B\\")] + OPTION_B + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + [JsiiByValue(fqn: \\"jsii-calc.StableStruct\\")] + public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.IStableStruct + { + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string ReadonlyProperty + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: \\"jsii-calc.StableStruct\\")] + internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableStruct + { + private StableStructProxy(ByRefValue reference): base(reference) + { + } + + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string ReadonlyProperty + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This is used to validate the ability to use \`this\` from within a static context. + /// + /// https://github.com/awslabs/aws-cdk/issues/2304 + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: \\"jsii-calc.StaticContext\\")] + public class StaticContext : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StaticContext(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StaticContext(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"canAccessStaticContext\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + public static bool CanAccessStaticContext() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"staticVariable\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public static bool StaticVariable + { + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: \\"jsii-calc.Statics\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public class Statics : DeputyBase + { + /// + /// Stability: Experimental + /// + public Statics(string @value): base(new DeputyProps(new object[]{@value})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Statics(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Statics(DeputyProps props): base(props) + { + } + + /// Jsdocs for static method. + /// The name of the person to say hello to. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"staticMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The name of the person to say hello to.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public static string StaticMethod(string name) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"justMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string JustMethod() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Constants may also use all-caps. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"BAR\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public static double BAR + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"ConstObj\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + + /// Jsdocs for static property. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"Foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public static string Foo + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + + /// Constants can also use camelCase. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"zooBar\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + public static System.Collections.Generic.IDictionary ZooBar + { + get; + } + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + + /// Jsdocs for static getter. + /// + /// Jsdocs for static setter. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"instance\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Statics\\\\\\"}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance + { + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"nonConstStatic\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public static double NonConstStatic + { + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string Value + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: \\"jsii-calc.StringEnum\\")] + public enum StringEnum + { + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"A\\")] + A, + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"B\\")] + B, + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"C\\")] + C + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: \\"jsii-calc.StripInternal\\")] + public class StripInternal : DeputyBase + { + /// + /// Stability: Experimental + /// + public StripInternal(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StripInternal(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StripInternal(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"youSeeMe\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string YouSeeMe + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// We can serialize and deserialize structs without silently ignoring optional fields. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.StructA\\")] + public class StructA : Amazon.JSII.Tests.CalculatorNamespace.IStructA + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string RequiredString + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + public double? OptionalNumber + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? OptionalString + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can serialize and deserialize structs without silently ignoring optional fields. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: \\"jsii-calc.StructA\\")] + internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructA + { + private StructAProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string RequiredString + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + public double? OptionalNumber + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? OptionalString + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.StructB\\")] + public class StructB : Amazon.JSII.Tests.CalculatorNamespace.IStructB + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string RequiredString + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + public bool? OptionalBoolean + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: \\"jsii-calc.StructB\\")] + internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructB + { + private StructBProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string RequiredString + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + public bool? OptionalBoolean + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + /// + /// See: https://github.com/aws/aws-cdk/issues/4302 + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.StructParameterType\\")] + public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Scope + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + public bool? Props + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + /// + /// See: https://github.com/aws/aws-cdk/issues/4302 + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: \\"jsii-calc.StructParameterType\\")] + internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType + { + private StructParameterTypeProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Scope + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + public bool? Props + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Just because we can. + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: \\"jsii-calc.StructPassing\\")] + public class StructPassing : DeputyBase + { + /// + /// Stability: Experimental + /// + public StructPassing(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StructPassing(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StructPassing(DeputyProps props): base(props) + { + } + + [JsiiMethod(name: \\"howManyVarArgsDidIPass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_positional\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"inputs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); + } + + [JsiiMethod(name: \\"roundTrip\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_positional\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"input\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"}}]\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: \\"jsii-calc.StructUnionConsumer\\")] + public class StructUnionConsumer : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StructUnionConsumer(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected StructUnionConsumer(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"isStructA\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}]}}}]\\")] + public static bool IsStructA(object @struct) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"isStructB\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}]}}}]\\")] + public static bool IsStructB(object @struct) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.StructWithJavaReservedWords\\")] + public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Default + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Assert + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Result + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? That + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.StructWithJavaReservedWords\\")] + internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords + { + private StructWithJavaReservedWordsProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Default + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Assert + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Result + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? That + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IMyClassReference), fullyQualifiedName: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + public interface IMyClassReference + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\")] + Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + public class MyClassReference : Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IMyClassReference), fullyQualifiedName: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + internal sealed class MyClassReferenceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference + { + private MyClassReferenceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(Awesomeness), fullyQualifiedName: \\"jsii-calc.submodule.child.Awesomeness\\")] + public enum Awesomeness + { + /// It was awesome! + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"AWESOME\\")] + AWESOME + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(Goodness), fullyQualifiedName: \\"jsii-calc.submodule.child.Goodness\\")] + public enum Goodness + { + /// It's pretty good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"PRETTY_GOOD\\")] + PRETTY_GOOD, + /// It's really good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"REALLY_GOOD\\")] + REALLY_GOOD, + /// It's amazingly good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"AMAZINGLY_GOOD\\")] + AMAZINGLY_GOOD + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IKwargsProps), fullyQualifiedName: \\"jsii-calc.submodule.child.KwargsProps\\")] + public interface IKwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [Amazon.JSII.Runtime.Deputy.JsiiOptional] + string? Extra + { + get + { + return null; + } + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(ISomeStruct), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeStruct\\")] + public interface ISomeStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructure), fullyQualifiedName: \\"jsii-calc.submodule.child.Structure\\")] + public interface IStructure + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + bool Bool + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass), fullyQualifiedName: \\"jsii-calc.submodule.child.InnerClass\\")] + public class InnerClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public InnerClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InnerClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected InnerClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"staticProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}\\")] + public static Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct StaticProp + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass)); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.submodule.child.KwargsProps\\")] + public class KwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps + { + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Extra + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IKwargsProps), fullyQualifiedName: \\"jsii-calc.submodule.child.KwargsProps\\")] + internal sealed class KwargsPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps + { + private KwargsPropsProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Extra + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// Checks that classes can self-reference during initialization. + /// + /// Stability: Experimental + /// + /// See: : https://github.com/aws/jsii/pull/1706 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.OuterClass), fullyQualifiedName: \\"jsii-calc.submodule.child.OuterClass\\")] + public class OuterClass : DeputyBase + { + /// + /// Stability: Experimental + /// + public OuterClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OuterClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected OuterClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"innerClass\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.InnerClass\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass InnerClass + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(SomeEnum), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeEnum\\")] + public enum SomeEnum + { + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: \\"SOME\\")] + SOME + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.submodule.child.SomeStruct\\")] + public class SomeStruct : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ISomeStruct), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeStruct\\")] + internal sealed class SomeStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct + { + private SomeStructProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.submodule.child.Structure\\")] + public class Structure : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + public bool Bool + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructure), fullyQualifiedName: \\"jsii-calc.submodule.child.Structure\\")] + internal sealed class StructureProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure + { + private StructureProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public bool Bool + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated +{ + /// Ensures imports are correctly registered for kwargs lifted properties from super-structs. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), fullyQualifiedName: \\"jsii-calc.submodule.isolated.Kwargs\\")] + public class Kwargs : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Kwargs(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Kwargs(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.KwargsProps\\\\\\"}}]\\")] + public static bool Method(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps? props = null) + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps)}, new object?[]{props}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: \\"jsii-calc.submodule.MyClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}}]\\")] + public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + /// + /// Stability: Experimental + /// + public MyClass(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct props): base(new DeputyProps(new object[]{props})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MyClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MyClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"awesomeness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Awesomeness\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Awesomeness Awesomeness + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string DefinedAt + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct Props + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"allTypes\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}\\", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypes? AllTypes + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(INamespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\")] + public interface INamespaced + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + string DefinedAt + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(INamespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\")] + internal sealed class INamespacedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + private INamespacedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string DefinedAt + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.Namespaced\\")] + public abstract class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Namespaced(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Namespaced(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string DefinedAt + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + public abstract Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.Namespaced\\")] + internal sealed class NamespacedProxy : Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced + { + private NamespacedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + public override Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// An operation that sums multiple values. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: \\"jsii-calc.Sum\\")] + public class Sum : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation + { + /// + /// Stability: Experimental + /// + public Sum(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Sum(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Sum(DeputyProps props): base(props) + { + } + + /// The expression that this operation consists of. + /// + /// Must be implemented by derived classes. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression + { + get => GetInstanceProperty(); + } + + /// The parts to sum. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"parts\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] Parts + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilder\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some identifier.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the default value of \`bar\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"defaultBar\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some props once can provide.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SupportsNiceJavaBuilderProps\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a variadic continuation.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rest\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps + { + /// some identifier. + /// the default value of \`bar\`. + /// some props once can provide. + /// a variadic continuation. + /// + /// Stability: Experimental + /// + public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SupportsNiceJavaBuilder(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SupportsNiceJavaBuilder(DeputyProps props): base(props) + { + } + + /// some identifier. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public override double Id + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"rest\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual string[] Rest + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps + { + /// Some number, like 42. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + public double Bar + { + get; + set; + } + + /// An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + /// + /// But here we are, doing it like we didn't care. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Id + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps + { + private SupportsNiceJavaBuilderPropsProxy(ByRefValue reference): base(reference) + { + } + + /// Some number, like 42. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public double Bar + { + get => GetInstanceProperty(); + } + + /// An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + /// + /// But here we are, doing it like we didn't care. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Id + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some identifier of your choice.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some properties.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SupportsNiceJavaBuilderProps\\\\\\"}}]\\")] + public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase + { + /// some identifier of your choice. + /// some properties. + /// + /// Stability: Experimental + /// + public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SupportsNiceJavaBuilderWithRequiredProps(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SupportsNiceJavaBuilderWithRequiredProps(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Bar + { + get => GetInstanceProperty(); + } + + /// some identifier of your choice. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double Id + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"propId\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public virtual string? PropId + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: \\"jsii-calc.SyncVirtualMethods\\")] + public class SyncVirtualMethods : DeputyBase + { + /// + /// Stability: Experimental + /// + public SyncVirtualMethods(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SyncVirtualMethods(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected SyncVirtualMethods(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callerIsAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + public virtual double CallerIsAsync() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callerIsMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double CallerIsMethod() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"modifyOtherProperty\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual void ModifyOtherProperty(string @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"modifyValueOfTheProperty\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual void ModifyValueOfTheProperty(string @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"readA\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public virtual double ReadA() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"retrieveOtherProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string RetrieveOtherProperty() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"retrieveReadOnlyProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string RetrieveReadOnlyProperty() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"retrieveValueOfTheProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string RetrieveValueOfTheProperty() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"virtualMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"n\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual double VirtualMethod(double n) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{n}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"writeA\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual void WriteA(double @value) + { + InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ReadonlyProperty + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double A + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"callerIsProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + public virtual double CallerIsProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"otherProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string OtherProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"theProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string TheProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"valueOfOtherProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public virtual string ValueOfOtherProperty + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: \\"jsii-calc.Thrower\\")] + public class Thrower : DeputyBase + { + /// + /// Stability: Experimental + /// + public Thrower(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Thrower(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Thrower(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"throwError\\")] + public virtual void ThrowError() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.TopLevelStruct\\")] + public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct + { + /// This is a required field. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + public string Required + { + get; + set; + } + + /// A union to really stress test our serialization. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\", isOverride: true)] + public object SecondLevel + { + get; + set; + } + + /// You don't have to pass this. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + public string? Optional + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: \\"jsii-calc.TopLevelStruct\\")] + internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct + { + private TopLevelStructProxy(ByRefValue reference): base(reference) + { + } + + /// This is a required field. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + public string Required + { + get => GetInstanceProperty(); + } + + /// A union to really stress test our serialization. + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\")] + public object SecondLevel + { + get => GetInstanceProperty(); + } + + /// You don't have to pass this. + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + public string? Optional + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Checks the current file permissions are cool (no funky UMASK down-scoping happened). + /// + /// Stability: Experimental + /// + /// See: https://github.com/aws/jsii/issues/1765 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: \\"jsii-calc.UmaskCheck\\")] + public class UmaskCheck : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UmaskCheck(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UmaskCheck(DeputyProps props): base(props) + { + } + + /// This should return 0o644 (-rw-r--r--). + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"mode\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + public static double Mode() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// An operation on a single operand. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: \\"jsii-calc.UnaryOperation\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"operand\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + public abstract class UnaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation + { + /// + /// Stability: Experimental + /// + protected UnaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ operand): base(new DeputyProps(new object[]{operand})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UnaryOperation(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UnaryOperation(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"operand\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Operand + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// An operation on a single operand. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: \\"jsii-calc.UnaryOperation\\")] + internal sealed class UnaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation + { + private UnaryOperationProxy(ByRefValue reference): base(reference) + { + } + + /// The value. + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [System.Obsolete()] + public override double Value + { + get => GetInstanceProperty(); + } + + /// String representation of the value. + /// + /// Stability: Deprecated + /// + [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [System.Obsolete()] + public override string ToString() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: \\"jsii-calc.UnionProperties\\")] + public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\", isOverride: true)] + public object Bar + { + get; + set; + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true, isOverride: true)] + public object? Foo + { + get; + set; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: \\"jsii-calc.UnionProperties\\")] + internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties + { + private UnionPropertiesProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\")] + public object Bar + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true)] + public object? Foo + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Ensures submodule-imported types from dependencies can be used correctly. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable), fullyQualifiedName: \\"jsii-calc.UpcasingReflectable\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + public class UpcasingReflectable : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable + { + /// + /// Stability: Experimental + /// + public UpcasingReflectable(System.Collections.Generic.IDictionary @delegate): base(new DeputyProps(new object[]{@delegate})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UpcasingReflectable(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UpcasingReflectable(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"reflector\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.Reflector\\\\\\"}\\")] + public static Amazon.JSII.Tests.CustomSubmoduleName.Reflector Reflector + { + get; + } + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable)); + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: \\"jsii-calc.UseBundledDependency\\")] + public class UseBundledDependency : DeputyBase + { + /// + /// Stability: Experimental + /// + public UseBundledDependency(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UseBundledDependency(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UseBundledDependency(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"value\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + public virtual object Value() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: \\"jsii-calc.UseCalcBase\\")] + public class UseCalcBase : DeputyBase + { + /// + /// Stability: Experimental + /// + public UseCalcBase(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UseCalcBase(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UseCalcBase(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base.Base\\\\\\"}}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base Hello() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.UsesInterfaceWithProperties\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithProperties\\\\\\"}}]\\")] + public class UsesInterfaceWithProperties : DeputyBase + { + /// + /// Stability: Experimental + /// + public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UsesInterfaceWithProperties(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected UsesInterfaceWithProperties(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"justRead\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + public virtual string JustRead() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"readStringAndNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ext\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithPropertiesExtension\\\\\\"}}]\\")] + public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"writeAndRead\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public virtual string WriteAndRead(string @value) + { + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"obj\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithProperties\\\\\\"}\\")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: \\"jsii-calc.VariadicInvoker\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"method\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.VariadicMethod\\\\\\"}}]\\")] + public class VariadicInvoker : DeputyBase + { + /// + /// Stability: Experimental + /// + public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object[]{method})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VariadicInvoker(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VariadicInvoker(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"asArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public virtual double[] AsArray(params double[] values) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double[])}, new object[]{values}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: \\"jsii-calc.VariadicMethod\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a prefix that will be use for all values returned by \`#asArray\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"prefix\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public class VariadicMethod : DeputyBase + { + /// a prefix that will be use for all values returned by \`#asArray\`. + /// + /// Stability: Experimental + /// + public VariadicMethod(params double[] prefix): base(new DeputyProps(new object[]{prefix})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VariadicMethod(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VariadicMethod(DeputyProps props): base(props) + { + } + + /// the first element of the array to be returned (after the \`prefix\` provided at construction time). + /// other elements to be included in the array. + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"asArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"first\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"other elements to be included in the array.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"others\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + public virtual double[] AsArray(double first, params double[] others) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double), typeof(double[])}, new object[]{first, others}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: \\"jsii-calc.VirtualMethodPlayground\\")] + public class VirtualMethodPlayground : DeputyBase + { + /// + /// Stability: Experimental + /// + public VirtualMethodPlayground(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VirtualMethodPlayground(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VirtualMethodPlayground(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMeAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"index\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + public virtual double OverrideMeAsync(double index) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMeSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"index\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual double OverrideMeSync(double index) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"parallelSumAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + public virtual double ParallelSumAsync(double count) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"serialSumAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + public virtual double SerialSumAsync(double count) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"sumSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + public virtual double SumSync(double count) + { + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This test is used to validate the runtimes can return correctly from a void callback. + /// + /// + /// Implement overrideMe (method does not have to do anything). + /// Invoke callMe + /// Verify that methodWasCalled is true. + /// + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: \\"jsii-calc.VoidCallback\\")] + public abstract class VoidCallback : DeputyBase + { + /// + /// Stability: Experimental + /// + protected VoidCallback(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VoidCallback(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected VoidCallback(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"callMe\\")] + public virtual void CallMe() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMe\\")] + protected abstract void OverrideMe(); + + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"methodWasCalled\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool MethodWasCalled + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// This test is used to validate the runtimes can return correctly from a void callback. + /// + /// + /// Implement overrideMe (method does not have to do anything). + /// Invoke callMe + /// Verify that methodWasCalled is true. + /// + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: \\"jsii-calc.VoidCallback\\")] + internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.VoidCallback + { + private VoidCallbackProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"overrideMe\\")] + protected override void OverrideMe() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Verifies that private property declarations in constructor arguments are hidden. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: \\"jsii-calc.WithPrivatePropertyInConstructor\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"privateField\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + public class WithPrivatePropertyInConstructor : DeputyBase + { + /// + /// Stability: Experimental + /// + public WithPrivatePropertyInConstructor(string? privateField = null): base(new DeputyProps(new object?[]{privateField})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected WithPrivatePropertyInConstructor(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected WithPrivatePropertyInConstructor(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + public virtual bool Success + { + get => GetInstanceProperty(); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly(\\"jsii-calc\\", \\"0.0.0\\", \\"jsii-calc-0.0.0.tgz\\")] +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz is a tarball`; + +exports[`Generated code for "jsii-calc": /java/pom.xml 1`] = ` +Object { + Symbol(file): " + + 4.0.0 + \${project.groupId}:\${project.artifactId} + A simple calcuator built on JSII. + https://github.com/aws/jsii + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + An OSI-approved license + + + + + Amazon Web Services + + author + + https://aws.amazon.com + + + Elad Ben-Israel + + maintainer + + https://github.com/eladb + + + Rico Huijbers + + maintainer + + https://github.com/rix0rrr + + + Romain Marcadier-Muller + + maintainer + + https://github.com/RomainMuller + + + + scm:git:https://github.com/aws/jsii.git + https://github.com/aws/jsii.git + + software.amazon.jsii.tests + calculator + 0.0.0 + jar + + UTF-8 + + + + software.amazon.jsii.tests + calculator-base + [0.0.0,0.0.1) + + + software.amazon.jsii.tests + calculator-base-of-base + [0.0.0,0.0.1) + + + software.amazon.jsii.tests + calculator-lib + [0.0.0.DEVPREVIEW,0.0.1.DEVPREVIEW) + + + software.amazon.jsii + jsii-runtime + [0.0.0,0.0.1) + + + org.jetbrains + annotations + [16.0.3,20.0.0) + + + + javax.annotation + javax.annotation-api + [1.3.2,1.4.0) + compile + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + true + + true + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + attach-javadocs + + jar + + + + + false + protected + + **/$Module.java + + -J-XX:+TieredCompilation + -J-XX:TieredStopAtLevel=1 + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-maven + + enforce + + + + + 3.6 + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + false + + + + + +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +import static java.util.Arrays.asList; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.IOException; +import java.io.Reader; +import java.io.UncheckedIOException; + +import java.nio.charset.StandardCharsets; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import software.amazon.jsii.JsiiModule; + +public final class $Module extends JsiiModule { + private static final Map MODULE_TYPES = load(); + + private static Map load() { + final Map result = new HashMap<>(); + final ClassLoader cl = $Module.class.getClassLoader(); + try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/$Module.txt\\"); + final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); + final BufferedReader br = new BufferedReader(rd)) { + br.lines() + .filter(line -> !line.trim().isEmpty()) + .forEach(line -> { + final String[] parts = line.split(\\"=\\", 2); + final String fqn = parts[0]; + final String className = parts[1]; + result.put(fqn, className); + }); + } + catch (final IOException exception) { + throw new UncheckedIOException(exception); + } + return result; + } + + private final Map> cache = new HashMap<>(); + + public $Module() { + super(\\"jsii-calc\\", \\"0.0.0\\", $Module.class, \\"jsii-calc@0.0.0.jsii.tgz\\"); + } + + @Override + public List> getDependencies() { + return asList(software.amazon.jsii.tests.calculator.base.$Module.class, software.amazon.jsii.tests.calculator.baseofbase.$Module.class, software.amazon.jsii.tests.calculator.lib.$Module.class); + } + + @Override + protected Class resolveClass(final String fqn) throws ClassNotFoundException { + if (!MODULE_TYPES.containsKey(fqn)) { + throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + } + String className = MODULE_TYPES.get(fqn); + if (!this.cache.containsKey(className)) { + this.cache.put(className, this.findClass(className)); + } + return this.cache.get(className); + } + + private Class findClass(final String binaryName) { + try { + return Class.forName(binaryName); + } + catch (final ClassNotFoundException exception) { + throw new RuntimeException(exception); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClass\\") +public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.AbstractClassBase implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { + + protected AbstractClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AbstractClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected AbstractClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param name This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull java.lang.String abstractMethod(final @org.jetbrains.annotations.NotNull java.lang.String name); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number nonAbstractMethod() { + return this.jsiiCall(\\"nonAbstractMethod\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { + return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClass { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { + return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { + return this.jsiiGet(\\"abstractProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + *

+ * @param name This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String abstractMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { + return this.jsiiCall(\\"abstractMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, \\"name is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClassBase\\") +public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject { + + protected AbstractClassBase(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AbstractClassBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected AbstractClassBase() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClassBase { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { + return this.jsiiGet(\\"abstractProperty\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClassReturner\\") +public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { + + protected AbstractClassReturner(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AbstractClassReturner(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AbstractClassReturner() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClass giveMeAbstract() { + return this.jsiiCall(\\"giveMeAbstract\\", software.amazon.jsii.tests.calculator.AbstractClass.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass giveMeInterface() { + return this.jsiiCall(\\"giveMeInterface\\", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClassBase getReturnAbstractFromProperty() { + return this.jsiiGet(\\"returnAbstractFromProperty\\", software.amazon.jsii.tests.calculator.AbstractClassBase.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Ensures abstract members implementations correctly register overrides in various languages. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractSuite\\") +public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { + + protected AbstractSuite(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AbstractSuite(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected AbstractSuite() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param str This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected abstract @org.jetbrains.annotations.NotNull java.lang.String someMethod(final @org.jetbrains.annotations.NotNull java.lang.String str); + + /** + * Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result. + *

+ * EXPERIMENTAL + *

+ * @param seed a \`string\`. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String workItAll(final @org.jetbrains.annotations.NotNull java.lang.String seed) { + return this.jsiiCall(\\"workItAll\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(seed, \\"seed is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected abstract @org.jetbrains.annotations.NotNull java.lang.String getProperty(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected abstract void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractSuite { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet(\\"property\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"property\\", java.util.Objects.requireNonNull(value, \\"property is required\\")); + } + + /** + * EXPERIMENTAL + *

+ * @param str This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + protected @org.jetbrains.annotations.NotNull java.lang.String someMethod(final @org.jetbrains.annotations.NotNull java.lang.String str) { + return this.jsiiCall(\\"someMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(str, \\"str is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Add.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * The \\"+\\" binary operation. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Add\\") +public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { + + protected Add(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Add(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a BinaryOperation. + *

+ * EXPERIMENTAL + *

+ * @param lhs Left-hand side operand. This parameter is required. + * @param rhs Right-hand side operand. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Add(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + } + + /** + * String representation of the value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + + /** + * The value. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This class includes property for all types supported by jsii. + *

+ * The setters will validate + * that the value set is of the expected type and throw otherwise. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllTypes\\") +public class AllTypes extends software.amazon.jsii.JsiiObject { + + protected AllTypes(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AllTypes(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AllTypes() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param inp This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void anyIn(final @org.jetbrains.annotations.NotNull java.lang.Object inp) { + this.jsiiCall(\\"anyIn\\", software.amazon.jsii.NativeType.VOID, new Object[] { inp }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object anyOut() { + return this.jsiiCall(\\"anyOut\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum value) { + return this.jsiiCall(\\"enumMethod\\", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getEnumPropertyValue() { + return this.jsiiGet(\\"enumPropertyValue\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getAnyArrayProperty() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"anyArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setAnyArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"anyArrayProperty\\", java.util.Objects.requireNonNull(value, \\"anyArrayProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map getAnyMapProperty() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"anyMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setAnyMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { + this.jsiiSet(\\"anyMapProperty\\", java.util.Objects.requireNonNull(value, \\"anyMapProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object getAnyProperty() { + return this.jsiiGet(\\"anyProperty\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setAnyProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { + this.jsiiSet(\\"anyProperty\\", java.util.Objects.requireNonNull(value, \\"anyProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getArrayProperty() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"arrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"arrayProperty\\", java.util.Objects.requireNonNull(value, \\"arrayProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getBooleanProperty() { + return this.jsiiGet(\\"booleanProperty\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setBooleanProperty(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { + this.jsiiSet(\\"booleanProperty\\", java.util.Objects.requireNonNull(value, \\"booleanProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.time.Instant getDateProperty() { + return this.jsiiGet(\\"dateProperty\\", java.time.Instant.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setDateProperty(final @org.jetbrains.annotations.NotNull java.time.Instant value) { + this.jsiiSet(\\"dateProperty\\", java.util.Objects.requireNonNull(value, \\"dateProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum getEnumProperty() { + return this.jsiiGet(\\"enumProperty\\", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum value) { + this.jsiiSet(\\"enumProperty\\", java.util.Objects.requireNonNull(value, \\"enumProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode getJsonProperty() { + return this.jsiiGet(\\"jsonProperty\\", com.fasterxml.jackson.databind.node.ObjectNode.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setJsonProperty(final @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode value) { + this.jsiiSet(\\"jsonProperty\\", java.util.Objects.requireNonNull(value, \\"jsonProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map getMapProperty() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"mapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Number.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { + this.jsiiSet(\\"mapProperty\\", java.util.Objects.requireNonNull(value, \\"mapProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getNumberProperty() { + return this.jsiiGet(\\"numberProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setNumberProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"numberProperty\\", java.util.Objects.requireNonNull(value, \\"numberProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getStringProperty() { + return this.jsiiGet(\\"stringProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setStringProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"stringProperty\\", java.util.Objects.requireNonNull(value, \\"stringProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getUnionArrayProperty() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"unionArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"unionArrayProperty\\", java.util.Objects.requireNonNull(value, \\"unionArrayProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map getUnionMapProperty() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"unionMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { + this.jsiiSet(\\"unionMapProperty\\", java.util.Objects.requireNonNull(value, \\"unionMapProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object getUnionProperty() { + return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Multiply value) { + this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number value) { + this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getUnknownArrayProperty() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"unknownArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnknownArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"unknownArrayProperty\\", java.util.Objects.requireNonNull(value, \\"unknownArrayProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map getUnknownMapProperty() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"unknownMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnknownMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { + this.jsiiSet(\\"unknownMapProperty\\", java.util.Objects.requireNonNull(value, \\"unknownMapProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object getUnknownProperty() { + return this.jsiiGet(\\"unknownProperty\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnknownProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { + this.jsiiSet(\\"unknownProperty\\", java.util.Objects.requireNonNull(value, \\"unknownProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum getOptionalEnumValue() { + return this.jsiiGet(\\"optionalEnumValue\\", software.amazon.jsii.tests.calculator.StringEnum.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum value) { + this.jsiiSet(\\"optionalEnumValue\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllTypesEnum\\") +public enum AllTypesEnum { + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + MY_ENUM_VALUE, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + YOUR_ENUM_VALUE, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + THIS_IS_GREAT, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllowedMethodNames\\") +public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { + + protected AllowedMethodNames(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AllowedMethodNames(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AllowedMethodNames() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param _p1 This parameter is required. + * @param _p2 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void getBar(final @org.jetbrains.annotations.NotNull java.lang.String _p1, final @org.jetbrains.annotations.NotNull java.lang.Number _p2) { + this.jsiiCall(\\"getBar\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_p1, \\"_p1 is required\\"), java.util.Objects.requireNonNull(_p2, \\"_p2 is required\\") }); + } + + /** + * getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + *

+ * EXPERIMENTAL + *

+ * @param withParam This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getFoo(final @org.jetbrains.annotations.NotNull java.lang.String withParam) { + return this.jsiiCall(\\"getFoo\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(withParam, \\"withParam is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param _x This parameter is required. + * @param _y This parameter is required. + * @param _z This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setBar(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y, final @org.jetbrains.annotations.NotNull java.lang.Boolean _z) { + this.jsiiCall(\\"setBar\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, \\"_x is required\\"), java.util.Objects.requireNonNull(_y, \\"_y is required\\"), java.util.Objects.requireNonNull(_z, \\"_z is required\\") }); + } + + /** + * setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + *

+ * EXPERIMENTAL + *

+ * @param _x This parameter is required. + * @param _y This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y) { + this.jsiiCall(\\"setFoo\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, \\"_x is required\\"), java.util.Objects.requireNonNull(_y, \\"_y is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AmbiguousParameters\\") +public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { + + protected AmbiguousParameters(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AmbiguousParameters(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param scope This parameter is required. + * @param props This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \\"scope is required\\"), java.util.Objects.requireNonNull(props, \\"props is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType getProps() { + return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.StructParameterType.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell getScope() { + return this.jsiiGet(\\"scope\\", software.amazon.jsii.tests.calculator.Bell.class); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + * @param scope This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create(final software.amazon.jsii.tests.calculator.Bell scope) { + return new Builder(scope); + } + + private final software.amazon.jsii.tests.calculator.Bell scope; + private final software.amazon.jsii.tests.calculator.StructParameterType.Builder props; + + private Builder(final software.amazon.jsii.tests.calculator.Bell scope) { + this.scope = scope; + this.props = new software.amazon.jsii.tests.calculator.StructParameterType.Builder(); + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param scope This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder scope(final java.lang.String scope) { + this.props.scope(scope); + return this; + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param props This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder props(final java.lang.Boolean props) { + this.props.props(props); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.AmbiguousParameters build() { + return new software.amazon.jsii.tests.calculator.AmbiguousParameters( + this.scope, + this.props.build() + ); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AnonymousImplementationProvider\\") +public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { + + protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AnonymousImplementationProvider() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { + return this.jsiiCall(\\"provideAsClass\\", software.amazon.jsii.tests.calculator.Implementation.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall(\\"provideAsInterface\\", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AsyncVirtualMethods\\") +public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { + + protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AsyncVirtualMethods() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number callMe() { + return this.jsiiAsyncCall(\\"callMe\\", java.lang.Number.class); + } + + /** + * Just calls \\"overrideMeToo\\". + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number callMe2() { + return this.jsiiAsyncCall(\\"callMe2\\", java.lang.Number.class); + } + + /** + * This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + *

+ * This is a \\"double promise\\" situation, which + * means that callbacks are not going to be available immediate, but only + * after an \\"immediates\\" cycle. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number callMeDoublePromise() { + return this.jsiiAsyncCall(\\"callMeDoublePromise\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number dontOverrideMe() { + return this.jsiiCall(\\"dontOverrideMe\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + *

+ * @param mult This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number overrideMe(final @org.jetbrains.annotations.NotNull java.lang.Number mult) { + return this.jsiiAsyncCall(\\"overrideMe\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(mult, \\"mult is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeToo() { + return this.jsiiAsyncCall(\\"overrideMeToo\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AugmentableClass\\") +public class AugmentableClass extends software.amazon.jsii.JsiiObject { + + protected AugmentableClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected AugmentableClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public AugmentableClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodOne() { + this.jsiiCall(\\"methodOne\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodTwo() { + this.jsiiCall(\\"methodTwo\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BaseJsii976\\") +public class BaseJsii976 extends software.amazon.jsii.JsiiObject { + + protected BaseJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected BaseJsii976(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public BaseJsii976() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Bell\\") +public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { + + protected Bell(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Bell(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Bell() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void ring() { + this.jsiiCall(\\"ring\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getRung() { + return this.jsiiGet(\\"rung\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setRung(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { + this.jsiiSet(\\"rung\\", java.util.Objects.requireNonNull(value, \\"rung is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Represents an operation with two operands. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BinaryOperation\\") +public abstract class BinaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation implements software.amazon.jsii.tests.calculator.lib.IFriendly { + + protected BinaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected BinaryOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a BinaryOperation. + *

+ * EXPERIMENTAL + *

+ * @param lhs Left-hand side operand. This parameter is required. + * @param rhs Right-hand side operand. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected BinaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + } + + /** + * Say hello! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + + /** + * Left-hand side operand. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getLhs() { + return this.jsiiGet(\\"lhs\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * Right-hand side operand. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getRhs() { + return this.jsiiGet(\\"rhs\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.BinaryOperation { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * The value. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * Say hello! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * A calculator which maintains a current value and allows adding operations. + *

+ * Here's how you use it: + *

+ *

+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * Calculator calculator = new Calculator();
+ * calculator.add(5);
+ * calculator.mul(3);
+ * System.out.println(calculator.expression.getValue());
+ * 
+ *

+ * I will repeat this example again, but in an @example tag. + *

+ * Example: + *

+ *

{@code
+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * Calculator calculator = new Calculator();
+ * calculator.add(5);
+ * calculator.mul(3);
+ * System.out.println(calculator.expression.getValue());}
+ *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Calculator\\") +public class Calculator extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { + + protected Calculator(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Calculator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a Calculator object. + *

+ * EXPERIMENTAL + *

+ * @param props Initialization properties. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Calculator(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.CalculatorProps props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { props }); + } + + /** + * Creates a Calculator object. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Calculator() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Adds a number to the current value. + *

+ * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void add(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiCall(\\"add\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * Multiplies the current value by a number. + *

+ * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void mul(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiCall(\\"mul\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * Negates the current value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void neg() { + this.jsiiCall(\\"neg\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * Raises the current value by a power. + *

+ * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void pow(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiCall(\\"pow\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * Returns teh value of the union property (if defined). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number readUnionValue() { + return this.jsiiCall(\\"readUnionValue\\", java.lang.Number.class); + } + + /** + * Returns the expression. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { + return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * A log of all operations. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getOperationsLog() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"operationsLog\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); + } + + /** + * A map of per operation name of all operations performed. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map> getOperationsMap() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"operationsMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))))); + } + + /** + * The current value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getCurr() { + return this.jsiiGet(\\"curr\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * The current value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setCurr(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value value) { + this.jsiiSet(\\"curr\\", java.util.Objects.requireNonNull(value, \\"curr is required\\")); + } + + /** + * The maximum value allows in this calculator. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Number getMaxValue() { + return this.jsiiGet(\\"maxValue\\", java.lang.Number.class); + } + + /** + * The maximum value allows in this calculator. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMaxValue(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"maxValue\\", value); + } + + /** + * Example of a property that accepts a union of types. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { + return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + } + + /** + * Example of a property that accepts a union of types. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Add value) { + this.jsiiSet(\\"unionProperty\\", value); + } + + /** + * Example of a property that accepts a union of types. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Multiply value) { + this.jsiiSet(\\"unionProperty\\", value); + } + + /** + * Example of a property that accepts a union of types. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Power value) { + this.jsiiSet(\\"unionProperty\\", value); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.Calculator}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create() { + return new Builder(); + } + + private software.amazon.jsii.tests.calculator.CalculatorProps.Builder props; + + private Builder() { + } + + /** + * The initial value of the calculator. + *

+ * NOTE: Any number works here, it's fine. + *

+ * Default: 0 + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param initialValue The initial value of the calculator. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder initialValue(final java.lang.Number initialValue) { + this.props().initialValue(initialValue); + return this; + } + + /** + * The maximum value the calculator can store. + *

+ * Default: none + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param maximumValue The maximum value the calculator can store. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder maximumValue(final java.lang.Number maximumValue) { + this.props().maximumValue(maximumValue); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.Calculator}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.Calculator build() { + return new software.amazon.jsii.tests.calculator.Calculator( + this.props != null ? this.props.build() : null + ); + } + + private software.amazon.jsii.tests.calculator.CalculatorProps.Builder props() { + if (this.props == null) { + this.props = new software.amazon.jsii.tests.calculator.CalculatorProps.Builder(); + } + return this.props; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Properties for Calculator. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.CalculatorProps\\") +@software.amazon.jsii.Jsii.Proxy(CalculatorProps.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { + + /** + * The initial value of the calculator. + *

+ * NOTE: Any number works here, it's fine. + *

+ * Default: 0 + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getInitialValue() { + return null; + } + + /** + * The maximum value the calculator can store. + *

+ * Default: none + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getMaximumValue() { + return null; + } + + /** + * @return a {@link Builder} of {@link CalculatorProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link CalculatorProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number initialValue; + private java.lang.Number maximumValue; + + /** + * Sets the value of {@link CalculatorProps#getInitialValue} + * @param initialValue The initial value of the calculator. + * NOTE: Any number works here, it's fine. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder initialValue(java.lang.Number initialValue) { + this.initialValue = initialValue; + return this; + } + + /** + * Sets the value of {@link CalculatorProps#getMaximumValue} + * @param maximumValue The maximum value the calculator can store. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder maximumValue(java.lang.Number maximumValue) { + this.maximumValue = maximumValue; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link CalculatorProps} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public CalculatorProps build() { + return new Jsii$Proxy(initialValue, maximumValue); + } + } + + /** + * An implementation for {@link CalculatorProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CalculatorProps { + private final java.lang.Number initialValue; + private final java.lang.Number maximumValue; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.initialValue = this.jsiiGet(\\"initialValue\\", java.lang.Number.class); + this.maximumValue = this.jsiiGet(\\"maximumValue\\", java.lang.Number.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number initialValue, final java.lang.Number maximumValue) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.initialValue = initialValue; + this.maximumValue = maximumValue; + } + + @Override + public java.lang.Number getInitialValue() { + return this.initialValue; + } + + @Override + public java.lang.Number getMaximumValue() { + return this.maximumValue; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getInitialValue() != null) { + data.set(\\"initialValue\\", om.valueToTree(this.getInitialValue())); + } + if (this.getMaximumValue() != null) { + data.set(\\"maximumValue\\", om.valueToTree(this.getMaximumValue())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.CalculatorProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + CalculatorProps.Jsii$Proxy that = (CalculatorProps.Jsii$Proxy) o; + + if (this.initialValue != null ? !this.initialValue.equals(that.initialValue) : that.initialValue != null) return false; + return this.maximumValue != null ? this.maximumValue.equals(that.maximumValue) : that.maximumValue == null; + } + + @Override + public int hashCode() { + int result = this.initialValue != null ? this.initialValue.hashCode() : 0; + result = 31 * result + (this.maximumValue != null ? this.maximumValue.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ChildStruct982\\") +@software.amazon.jsii.Jsii.Proxy(ChildStruct982.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.ParentStruct982 { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getBar(); + + /** + * @return a {@link Builder} of {@link ChildStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ChildStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number bar; + private java.lang.String foo; + + /** + * Sets the value of {@link ChildStruct982#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(java.lang.Number bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link ChildStruct982#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.String foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ChildStruct982} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ChildStruct982 build() { + return new Jsii$Proxy(bar, foo); + } + } + + /** + * An implementation for {@link ChildStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ChildStruct982 { + private final java.lang.Number bar; + private final java.lang.String foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bar = this.jsiiGet(\\"bar\\", java.lang.Number.class); + this.foo = this.jsiiGet(\\"foo\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number bar, final java.lang.String foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.lang.Number getBar() { + return this.bar; + } + + @Override + public java.lang.String getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"bar\\", om.valueToTree(this.getBar())); + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ChildStruct982\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ChildStruct982.Jsii$Proxy that = (ChildStruct982.Jsii$Proxy) o; + + if (!bar.equals(that.bar)) return false; + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.bar.hashCode(); + result = 31 * result + (this.foo.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassThatImplementsTheInternalInterface\\") +public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { + + protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassThatImplementsTheInternalInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getA() { + return this.jsiiGet(\\"a\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getB() { + return this.jsiiGet(\\"b\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getC() { + return this.jsiiGet(\\"c\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getD() { + return this.jsiiGet(\\"d\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setD(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"d\\", java.util.Objects.requireNonNull(value, \\"d is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassThatImplementsThePrivateInterface\\") +public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { + + protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassThatImplementsThePrivateInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getA() { + return this.jsiiGet(\\"a\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getB() { + return this.jsiiGet(\\"b\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getC() { + return this.jsiiGet(\\"c\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getE() { + return this.jsiiGet(\\"e\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setE(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"e\\", java.util.Objects.requireNonNull(value, \\"e is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithCollections\\") +public class ClassWithCollections extends software.amazon.jsii.JsiiObject { + + protected ClassWithCollections(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param map This parameter is required. + * @param array This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.Map map, final @org.jetbrains.annotations.NotNull java.util.List array) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(map, \\"map is required\\"), java.util.Objects.requireNonNull(array, \\"array is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List createAList() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"createAList\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map createAMap() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"createAMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List getStaticArray() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void setStaticArray(final @org.jetbrains.annotations.NotNull java.util.List value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticArray\\", java.util.Objects.requireNonNull(value, \\"staticArray is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map getStaticMap() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void setStaticMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticMap\\", java.util.Objects.requireNonNull(value, \\"staticMap is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getArray() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"array\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setArray(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"array\\", java.util.Objects.requireNonNull(value, \\"array is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.Map getMap() { + return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"map\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { + this.jsiiSet(\\"map\\", java.util.Objects.requireNonNull(value, \\"map is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This class has docs. + *

+ * The docs are great. They're a bunch of tags. + *

+ * Example: + *

+ *

{@code
+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * public void anExample() {
+ * }}
+ *

+ * @see https://aws.amazon.com/ + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithDocs\\") +public class ClassWithDocs extends software.amazon.jsii.JsiiObject { + + protected ClassWithDocs(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithDocs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithDocs() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithJavaReservedWords\\") +public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject { + + protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param int This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithJavaReservedWords(final @org.jetbrains.annotations.NotNull java.lang.String intValue) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(intValue, \\"intValue is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param assert This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String doImport(final @org.jetbrains.annotations.NotNull java.lang.String assertValue) { + return this.jsiiCall(\\"import\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(assertValue, \\"assertValue is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getIntValue() { + return this.jsiiGet(\\"int\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\") +public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii.JsiiObject { + + protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithMutableObjectLiteralProperty() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral getMutableObject() { + return this.jsiiGet(\\"mutableObject\\", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral value) { + this.jsiiSet(\\"mutableObject\\", java.util.Objects.requireNonNull(value, \\"mutableObject is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Class that implements interface properties automatically, but using a private constructor. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\") +public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { + + protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param readOnlyString This parameter is required. + * @param readWriteString This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, \\"create\\", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, \\"readOnlyString is required\\"), java.util.Objects.requireNonNull(readWriteString, \\"readWriteString is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { + return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { + return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This tries to confuse Jackson by having overloaded property setters. + *

+ * EXPERIMENTAL + *

+ * @see https://github.com/aws/aws-cdk/issues/4080 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConfusingToJackson\\") +public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { + + protected ConfusingToJackson(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ConfusingToJackson(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJackson makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, \\"makeInstance\\", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct makeStructInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, \\"makeStructInstance\\", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { + return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.IFriendly value) { + this.jsiiSet(\\"unionProperty\\", value); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setUnionProperty(final @org.jetbrains.annotations.Nullable java.util.List value) { + this.jsiiSet(\\"unionProperty\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConfusingToJacksonStruct\\") +@software.amazon.jsii.Jsii.Proxy(ConfusingToJacksonStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { + return null; + } + + /** + * @return a {@link Builder} of {@link ConfusingToJacksonStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ConfusingToJacksonStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Object unionProperty; + + /** + * Sets the value of {@link ConfusingToJacksonStruct#getUnionProperty} + * @param unionProperty the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder unionProperty(software.amazon.jsii.tests.calculator.lib.IFriendly unionProperty) { + this.unionProperty = unionProperty; + return this; + } + + /** + * Sets the value of {@link ConfusingToJacksonStruct#getUnionProperty} + * @param unionProperty the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder unionProperty(java.util.List unionProperty) { + this.unionProperty = unionProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ConfusingToJacksonStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ConfusingToJacksonStruct build() { + return new Jsii$Proxy(unionProperty); + } + } + + /** + * An implementation for {@link ConfusingToJacksonStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConfusingToJacksonStruct { + private final java.lang.Object unionProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.unionProperty = this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Object unionProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.unionProperty = unionProperty; + } + + @Override + public java.lang.Object getUnionProperty() { + return this.unionProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getUnionProperty() != null) { + data.set(\\"unionProperty\\", om.valueToTree(this.getUnionProperty())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ConfusingToJacksonStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ConfusingToJacksonStruct.Jsii$Proxy that = (ConfusingToJacksonStruct.Jsii$Proxy) o; + + return this.unionProperty != null ? this.unionProperty.equals(that.unionProperty) : that.unionProperty == null; + } + + @Override + public int hashCode() { + int result = this.unionProperty != null ? this.unionProperty.hashCode() : 0; + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConstructorPassesThisOut\\") +public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { + + protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param consumer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer consumer) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, \\"consumer is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Constructors\\") +public class Constructors extends software.amazon.jsii.JsiiObject { + + protected Constructors(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Constructors(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Constructors() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface hiddenInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenInterface\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenSubInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PublicClass makeClass() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeClass\\", software.amazon.jsii.tests.calculator.PublicClass.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface makeInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterface\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface2 makeInterface2() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterface2\\", software.amazon.jsii.tests.calculator.IPublicInterface2.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumePureInterface\\") +public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { + + protected ConsumePureInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ConsumePureInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param delegate This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IStructReturningDelegate delegate) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB workItBaby() { + return this.jsiiCall(\\"workItBaby\\", software.amazon.jsii.tests.calculator.StructB.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Test calling back to consumers that implement interfaces. + *

+ * Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + * the method on the argument that they're passed... + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumerCanRingBell\\") +public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { + + protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ConsumerCanRingBell() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * ...if the interface is implemented using an object literal. + *

+ * Returns whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByObjectLiteral\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * ...if the interface is implemented using a private class. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByPrivateClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * ...if the interface is implemented using a public class. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByPublicClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * If the parameter is a concrete class instead of an interface. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticWhenTypedAsClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * ...if the interface is implemented using an object literal. + *

+ * Returns whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return this.jsiiCall(\\"implementedByObjectLiteral\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * ...if the interface is implemented using a private class. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return this.jsiiCall(\\"implementedByPrivateClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * ...if the interface is implemented using a public class. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return this.jsiiCall(\\"implementedByPublicClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } + + /** + * If the parameter is a concrete class instead of an interface. + *

+ * Return whether the bell was rung. + *

+ * EXPERIMENTAL + *

+ * @param ringer This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { + return this.jsiiCall(\\"whenTypedAsClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\") +public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObject { + + protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ConsumersOfThisCrazyTypeSystem() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnotherPublicInterface obj) { + return this.jsiiCall(\\"consumeAnotherPublicInterface\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.INonInternalInterface obj) { + return this.jsiiCall(\\"consumeNonInternalInterface\\", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies proper type handling through dynamic overrides. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DataRenderer\\") +public class DataRenderer extends software.amazon.jsii.JsiiObject { + + protected DataRenderer(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DataRenderer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DataRenderer() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param data + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String render(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.MyFirstStruct data) { + return this.jsiiCall(\\"render\\", java.lang.String.class, new Object[] { data }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String render() { + return this.jsiiCall(\\"render\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + *

+ * @param data This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String renderArbitrary(final @org.jetbrains.annotations.NotNull java.util.Map data) { + return this.jsiiCall(\\"renderArbitrary\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(data, \\"data is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param map This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String renderMap(final @org.jetbrains.annotations.NotNull java.util.Map map) { + return this.jsiiCall(\\"renderMap\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(map, \\"map is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DefaultedConstructorArgument\\") +public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObject { + + protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + * @param arg2 + * @param arg3 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1, arg2, arg3 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + * @param arg2 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1, arg2 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1 }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DefaultedConstructorArgument() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { + return this.jsiiGet(\\"arg1\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.time.Instant getArg3() { + return this.jsiiGet(\\"arg3\\", java.time.Instant.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.String getArg2() { + return this.jsiiGet(\\"arg2\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * 1. + *

+ * call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + * 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Demonstrate982\\") +public class Demonstrate982 extends software.amazon.jsii.JsiiObject { + + protected Demonstrate982(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Demonstrate982(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Demonstrate982() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * It's dangerous to go alone! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ChildStruct982 takeThis() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, \\"takeThis\\", software.amazon.jsii.tests.calculator.ChildStruct982.class); + } + + /** + * It's dangerous to go alone! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ParentStruct982 takeThisToo() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, \\"takeThisToo\\", software.amazon.jsii.tests.calculator.ParentStruct982.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * @deprecated a pretty boring class + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedClass\\") +public class DeprecatedClass extends software.amazon.jsii.JsiiObject { + + protected DeprecatedClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DeprecatedClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * @deprecated this constructor is \\"just\\" okay + * @param readonlyString This parameter is required. + * @param mutableNumber + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + } + + /** + * @deprecated this constructor is \\"just\\" okay + * @param readonlyString This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + } + + /** + * @deprecated it was a bad idea + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * @deprecated this is not always \\"wazoo\\", be ready to be disappointed + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { + return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * @deprecated shouldn't have been mutable + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * @deprecated shouldn't have been mutable + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * @deprecated your deprecated selection of bad options + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedEnum\\") +public enum DeprecatedEnum { + /** + * @deprecated option A is not great + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + OPTION_A, + /** + * @deprecated option B is kinda bad, too + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + OPTION_B, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * @deprecated it just wraps a string + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedStruct\\") +@software.amazon.jsii.Jsii.Proxy(DeprecatedStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * @deprecated well, yeah + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); + + /** + * @return a {@link Builder} of {@link DeprecatedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DeprecatedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String readonlyProperty; + + /** + * Sets the value of {@link DeprecatedStruct#getReadonlyProperty} + * @param readonlyProperty the value to be set. This parameter is required. + * @return {@code this} + * @deprecated well, yeah + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder readonlyProperty(java.lang.String readonlyProperty) { + this.readonlyProperty = readonlyProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DeprecatedStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public DeprecatedStruct build() { + return new Jsii$Proxy(readonlyProperty); + } + } + + /** + * An implementation for {@link DeprecatedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DeprecatedStruct { + private final java.lang.String readonlyProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String readonlyProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + } + + @Override + public java.lang.String getReadonlyProperty() { + return this.readonlyProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DeprecatedStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DeprecatedStruct.Jsii$Proxy that = (DeprecatedStruct.Jsii$Proxy) o; + + return this.readonlyProperty.equals(that.readonlyProperty); + } + + @Override + public int hashCode() { + int result = this.readonlyProperty.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * A struct which derives from another struct. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedStruct\\") +@software.amazon.jsii.Jsii.Proxy(DerivedStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.MyFirstStruct { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.time.Instant getAnotherRequired(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getBool(); + + /** + * An example of a non primitive property. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive(); + + /** + * This is optional. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.util.Map getAnotherOptional() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Object getOptionalAny() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.util.List getOptionalArray() { + return null; + } + + /** + * @return a {@link Builder} of {@link DerivedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DerivedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.time.Instant anotherRequired; + private java.lang.Boolean bool; + private software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; + private java.util.Map anotherOptional; + private java.lang.Object optionalAny; + private java.util.List optionalArray; + private java.lang.Number anumber; + private java.lang.String astring; + private java.util.List firstOptional; + + /** + * Sets the value of {@link DerivedStruct#getAnotherRequired} + * @param anotherRequired the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder anotherRequired(java.time.Instant anotherRequired) { + this.anotherRequired = anotherRequired; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getBool} + * @param bool the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bool(java.lang.Boolean bool) { + this.bool = bool; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getNonPrimitive} + * @param nonPrimitive An example of a non primitive property. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder nonPrimitive(software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive) { + this.nonPrimitive = nonPrimitive; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getAnotherOptional} + * @param anotherOptional This is optional. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder anotherOptional(java.util.Map anotherOptional) { + this.anotherOptional = anotherOptional; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getOptionalAny} + * @param optionalAny the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalAny(java.lang.Object optionalAny) { + this.optionalAny = optionalAny; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getOptionalArray} + * @param optionalArray the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalArray(java.util.List optionalArray) { + this.optionalArray = optionalArray; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getAnumber} + * @param anumber An awesome number value. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder anumber(java.lang.Number anumber) { + this.anumber = anumber; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getAstring} + * @param astring A string value. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder astring(java.lang.String astring) { + this.astring = astring; + return this; + } + + /** + * Sets the value of {@link DerivedStruct#getFirstOptional} + * @param firstOptional the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public Builder firstOptional(java.util.List firstOptional) { + this.firstOptional = firstOptional; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DerivedStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public DerivedStruct build() { + return new Jsii$Proxy(anotherRequired, bool, nonPrimitive, anotherOptional, optionalAny, optionalArray, anumber, astring, firstOptional); + } + } + + /** + * An implementation for {@link DerivedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DerivedStruct { + private final java.time.Instant anotherRequired; + private final java.lang.Boolean bool; + private final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; + private final java.util.Map anotherOptional; + private final java.lang.Object optionalAny; + private final java.util.List optionalArray; + private final java.lang.Number anumber; + private final java.lang.String astring; + private final java.util.List firstOptional; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.anotherRequired = this.jsiiGet(\\"anotherRequired\\", java.time.Instant.class); + this.bool = this.jsiiGet(\\"bool\\", java.lang.Boolean.class); + this.nonPrimitive = this.jsiiGet(\\"nonPrimitive\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + this.anotherOptional = this.jsiiGet(\\"anotherOptional\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); + this.optionalAny = this.jsiiGet(\\"optionalAny\\", java.lang.Object.class); + this.optionalArray = this.jsiiGet(\\"optionalArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + this.anumber = this.jsiiGet(\\"anumber\\", java.lang.Number.class); + this.astring = this.jsiiGet(\\"astring\\", java.lang.String.class); + this.firstOptional = this.jsiiGet(\\"firstOptional\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, \\"anotherRequired is required\\"); + this.bool = java.util.Objects.requireNonNull(bool, \\"bool is required\\"); + this.nonPrimitive = java.util.Objects.requireNonNull(nonPrimitive, \\"nonPrimitive is required\\"); + this.anotherOptional = anotherOptional; + this.optionalAny = optionalAny; + this.optionalArray = optionalArray; + this.anumber = java.util.Objects.requireNonNull(anumber, \\"anumber is required\\"); + this.astring = java.util.Objects.requireNonNull(astring, \\"astring is required\\"); + this.firstOptional = firstOptional; + } + + @Override + public java.time.Instant getAnotherRequired() { + return this.anotherRequired; + } + + @Override + public java.lang.Boolean getBool() { + return this.bool; + } + + @Override + public software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive() { + return this.nonPrimitive; + } + + @Override + public java.util.Map getAnotherOptional() { + return this.anotherOptional; + } + + @Override + public java.lang.Object getOptionalAny() { + return this.optionalAny; + } + + @Override + public java.util.List getOptionalArray() { + return this.optionalArray; + } + + @Override + public java.lang.Number getAnumber() { + return this.anumber; + } + + @Override + public java.lang.String getAstring() { + return this.astring; + } + + @Override + public java.util.List getFirstOptional() { + return this.firstOptional; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"anotherRequired\\", om.valueToTree(this.getAnotherRequired())); + data.set(\\"bool\\", om.valueToTree(this.getBool())); + data.set(\\"nonPrimitive\\", om.valueToTree(this.getNonPrimitive())); + if (this.getAnotherOptional() != null) { + data.set(\\"anotherOptional\\", om.valueToTree(this.getAnotherOptional())); + } + if (this.getOptionalAny() != null) { + data.set(\\"optionalAny\\", om.valueToTree(this.getOptionalAny())); + } + if (this.getOptionalArray() != null) { + data.set(\\"optionalArray\\", om.valueToTree(this.getOptionalArray())); + } + data.set(\\"anumber\\", om.valueToTree(this.getAnumber())); + data.set(\\"astring\\", om.valueToTree(this.getAstring())); + if (this.getFirstOptional() != null) { + data.set(\\"firstOptional\\", om.valueToTree(this.getFirstOptional())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DerivedStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DerivedStruct.Jsii$Proxy that = (DerivedStruct.Jsii$Proxy) o; + + if (!anotherRequired.equals(that.anotherRequired)) return false; + if (!bool.equals(that.bool)) return false; + if (!nonPrimitive.equals(that.nonPrimitive)) return false; + if (this.anotherOptional != null ? !this.anotherOptional.equals(that.anotherOptional) : that.anotherOptional != null) return false; + if (this.optionalAny != null ? !this.optionalAny.equals(that.optionalAny) : that.optionalAny != null) return false; + if (this.optionalArray != null ? !this.optionalArray.equals(that.optionalArray) : that.optionalArray != null) return false; + if (!anumber.equals(that.anumber)) return false; + if (!astring.equals(that.astring)) return false; + return this.firstOptional != null ? this.firstOptional.equals(that.firstOptional) : that.firstOptional == null; + } + + @Override + public int hashCode() { + int result = this.anotherRequired.hashCode(); + result = 31 * result + (this.bool.hashCode()); + result = 31 * result + (this.nonPrimitive.hashCode()); + result = 31 * result + (this.anotherOptional != null ? this.anotherOptional.hashCode() : 0); + result = 31 * result + (this.optionalAny != null ? this.optionalAny.hashCode() : 0); + result = 31 * result + (this.optionalArray != null ? this.optionalArray.hashCode() : 0); + result = 31 * result + (this.anumber.hashCode()); + result = 31 * result + (this.astring.hashCode()); + result = 31 * result + (this.firstOptional != null ? this.firstOptional.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceBaseLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getBaseLevelProperty(); + + /** + * @return a {@link Builder} of {@link DiamondInheritanceBaseLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DiamondInheritanceBaseLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String baseLevelProperty; + + /** + * Sets the value of {@link DiamondInheritanceBaseLevelStruct#getBaseLevelProperty} + * @param baseLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder baseLevelProperty(java.lang.String baseLevelProperty) { + this.baseLevelProperty = baseLevelProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DiamondInheritanceBaseLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public DiamondInheritanceBaseLevelStruct build() { + return new Jsii$Proxy(baseLevelProperty); + } + } + + /** + * An implementation for {@link DiamondInheritanceBaseLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceBaseLevelStruct { + private final java.lang.String baseLevelProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String baseLevelProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + } + + @Override + public java.lang.String getBaseLevelProperty() { + return this.baseLevelProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DiamondInheritanceBaseLevelStruct.Jsii$Proxy that = (DiamondInheritanceBaseLevelStruct.Jsii$Proxy) o; + + return this.baseLevelProperty.equals(that.baseLevelProperty); + } + + @Override + public int hashCode() { + int result = this.baseLevelProperty.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getFirstMidLevelProperty(); + + /** + * @return a {@link Builder} of {@link DiamondInheritanceFirstMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DiamondInheritanceFirstMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String firstMidLevelProperty; + private java.lang.String baseLevelProperty; + + /** + * Sets the value of {@link DiamondInheritanceFirstMidLevelStruct#getFirstMidLevelProperty} + * @param firstMidLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder firstMidLevelProperty(java.lang.String firstMidLevelProperty) { + this.firstMidLevelProperty = firstMidLevelProperty; + return this; + } + + /** + * Sets the value of {@link DiamondInheritanceFirstMidLevelStruct#getBaseLevelProperty} + * @param baseLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder baseLevelProperty(java.lang.String baseLevelProperty) { + this.baseLevelProperty = baseLevelProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DiamondInheritanceFirstMidLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public DiamondInheritanceFirstMidLevelStruct build() { + return new Jsii$Proxy(firstMidLevelProperty, baseLevelProperty); + } + } + + /** + * An implementation for {@link DiamondInheritanceFirstMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceFirstMidLevelStruct { + private final java.lang.String firstMidLevelProperty; + private final java.lang.String baseLevelProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.firstMidLevelProperty = this.jsiiGet(\\"firstMidLevelProperty\\", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, \\"firstMidLevelProperty is required\\"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + } + + @Override + public java.lang.String getFirstMidLevelProperty() { + return this.firstMidLevelProperty; + } + + @Override + public java.lang.String getBaseLevelProperty() { + return this.baseLevelProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"firstMidLevelProperty\\", om.valueToTree(this.getFirstMidLevelProperty())); + data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy that = (DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy) o; + + if (!firstMidLevelProperty.equals(that.firstMidLevelProperty)) return false; + return this.baseLevelProperty.equals(that.baseLevelProperty); + } + + @Override + public int hashCode() { + int result = this.firstMidLevelProperty.hashCode(); + result = 31 * result + (this.baseLevelProperty.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getSecondMidLevelProperty(); + + /** + * @return a {@link Builder} of {@link DiamondInheritanceSecondMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DiamondInheritanceSecondMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String secondMidLevelProperty; + private java.lang.String baseLevelProperty; + + /** + * Sets the value of {@link DiamondInheritanceSecondMidLevelStruct#getSecondMidLevelProperty} + * @param secondMidLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder secondMidLevelProperty(java.lang.String secondMidLevelProperty) { + this.secondMidLevelProperty = secondMidLevelProperty; + return this; + } + + /** + * Sets the value of {@link DiamondInheritanceSecondMidLevelStruct#getBaseLevelProperty} + * @param baseLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder baseLevelProperty(java.lang.String baseLevelProperty) { + this.baseLevelProperty = baseLevelProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DiamondInheritanceSecondMidLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public DiamondInheritanceSecondMidLevelStruct build() { + return new Jsii$Proxy(secondMidLevelProperty, baseLevelProperty); + } + } + + /** + * An implementation for {@link DiamondInheritanceSecondMidLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceSecondMidLevelStruct { + private final java.lang.String secondMidLevelProperty; + private final java.lang.String baseLevelProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.secondMidLevelProperty = this.jsiiGet(\\"secondMidLevelProperty\\", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String secondMidLevelProperty, final java.lang.String baseLevelProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, \\"secondMidLevelProperty is required\\"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + } + + @Override + public java.lang.String getSecondMidLevelProperty() { + return this.secondMidLevelProperty; + } + + @Override + public java.lang.String getBaseLevelProperty() { + return this.baseLevelProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"secondMidLevelProperty\\", om.valueToTree(this.getSecondMidLevelProperty())); + data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy that = (DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy) o; + + if (!secondMidLevelProperty.equals(that.secondMidLevelProperty)) return false; + return this.baseLevelProperty.equals(that.baseLevelProperty); + } + + @Override + public int hashCode() { + int result = this.secondMidLevelProperty.hashCode(); + result = 31 * result + (this.baseLevelProperty.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceTopLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceTopLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getTopLevelProperty(); + + /** + * @return a {@link Builder} of {@link DiamondInheritanceTopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link DiamondInheritanceTopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String topLevelProperty; + private java.lang.String firstMidLevelProperty; + private java.lang.String baseLevelProperty; + private java.lang.String secondMidLevelProperty; + + /** + * Sets the value of {@link DiamondInheritanceTopLevelStruct#getTopLevelProperty} + * @param topLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder topLevelProperty(java.lang.String topLevelProperty) { + this.topLevelProperty = topLevelProperty; + return this; + } + + /** + * Sets the value of {@link DiamondInheritanceTopLevelStruct#getFirstMidLevelProperty} + * @param firstMidLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder firstMidLevelProperty(java.lang.String firstMidLevelProperty) { + this.firstMidLevelProperty = firstMidLevelProperty; + return this; + } + + /** + * Sets the value of {@link DiamondInheritanceTopLevelStruct#getBaseLevelProperty} + * @param baseLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder baseLevelProperty(java.lang.String baseLevelProperty) { + this.baseLevelProperty = baseLevelProperty; + return this; + } + + /** + * Sets the value of {@link DiamondInheritanceTopLevelStruct#getSecondMidLevelProperty} + * @param secondMidLevelProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder secondMidLevelProperty(java.lang.String secondMidLevelProperty) { + this.secondMidLevelProperty = secondMidLevelProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link DiamondInheritanceTopLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public DiamondInheritanceTopLevelStruct build() { + return new Jsii$Proxy(topLevelProperty, firstMidLevelProperty, baseLevelProperty, secondMidLevelProperty); + } + } + + /** + * An implementation for {@link DiamondInheritanceTopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceTopLevelStruct { + private final java.lang.String topLevelProperty; + private final java.lang.String firstMidLevelProperty; + private final java.lang.String baseLevelProperty; + private final java.lang.String secondMidLevelProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.topLevelProperty = this.jsiiGet(\\"topLevelProperty\\", java.lang.String.class); + this.firstMidLevelProperty = this.jsiiGet(\\"firstMidLevelProperty\\", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + this.secondMidLevelProperty = this.jsiiGet(\\"secondMidLevelProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String topLevelProperty, final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty, final java.lang.String secondMidLevelProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.topLevelProperty = java.util.Objects.requireNonNull(topLevelProperty, \\"topLevelProperty is required\\"); + this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, \\"firstMidLevelProperty is required\\"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, \\"secondMidLevelProperty is required\\"); + } + + @Override + public java.lang.String getTopLevelProperty() { + return this.topLevelProperty; + } + + @Override + public java.lang.String getFirstMidLevelProperty() { + return this.firstMidLevelProperty; + } + + @Override + public java.lang.String getBaseLevelProperty() { + return this.baseLevelProperty; + } + + @Override + public java.lang.String getSecondMidLevelProperty() { + return this.secondMidLevelProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"topLevelProperty\\", om.valueToTree(this.getTopLevelProperty())); + data.set(\\"firstMidLevelProperty\\", om.valueToTree(this.getFirstMidLevelProperty())); + data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + data.set(\\"secondMidLevelProperty\\", om.valueToTree(this.getSecondMidLevelProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceTopLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + DiamondInheritanceTopLevelStruct.Jsii$Proxy that = (DiamondInheritanceTopLevelStruct.Jsii$Proxy) o; + + if (!topLevelProperty.equals(that.topLevelProperty)) return false; + if (!firstMidLevelProperty.equals(that.firstMidLevelProperty)) return false; + if (!baseLevelProperty.equals(that.baseLevelProperty)) return false; + return this.secondMidLevelProperty.equals(that.secondMidLevelProperty); + } + + @Override + public int hashCode() { + int result = this.topLevelProperty.hashCode(); + result = 31 * result + (this.firstMidLevelProperty.hashCode()); + result = 31 * result + (this.baseLevelProperty.hashCode()); + result = 31 * result + (this.secondMidLevelProperty.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that null/undefined can be returned for optional collections. + *

+ * This source of collections is disappointing - it'll always give you nothing :( + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DisappointingCollectionSource\\") +public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObject { + + protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + static { + MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, \\"maybeList\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); + MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, \\"maybeMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); + } + + /** + * Some List of strings, maybe? + *

+ * (Nah, just a billion dollars mistake!) + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static java.util.List MAYBE_LIST; + + /** + * Some Map of strings to numbers, maybe? + *

+ * (Nah, just a billion dollars mistake!) + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static java.util.Map MAYBE_MAP; +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoNotOverridePrivates\\") +public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { + + protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DoNotOverridePrivates() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param newValue This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void changePrivatePropertyValue(final @org.jetbrains.annotations.NotNull java.lang.String newValue) { + this.jsiiCall(\\"changePrivatePropertyValue\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(newValue, \\"newValue is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String privateMethodValue() { + return this.jsiiCall(\\"privateMethodValue\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String privatePropertyValue() { + return this.jsiiCall(\\"privatePropertyValue\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * jsii#284: do not recognize \\"any\\" as an optional argument. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoNotRecognizeAnyAsOptional\\") +public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject { + + protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DoNotRecognizeAnyAsOptional() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param _requiredAny This parameter is required. + * @param _optionalAny + * @param _optionalString + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny, final @org.jetbrains.annotations.Nullable java.lang.String _optionalString) { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny, _optionalString }); + } + + /** + * EXPERIMENTAL + *

+ * @param _requiredAny This parameter is required. + * @param _optionalAny + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny) { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny }); + } + + /** + * EXPERIMENTAL + *

+ * @param _requiredAny This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny) { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Here's the first line of the TSDoc comment. + *

+ * This is the meat of the TSDoc comment. It may contain + * multiple lines and multiple paragraphs. + *

+ * Multiple paragraphs are separated by an empty line. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DocumentedClass\\") +public class DocumentedClass extends software.amazon.jsii.JsiiObject { + + protected DocumentedClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DocumentedClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DocumentedClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Greet the indicated person. + *

+ * This will print out a friendly greeting intended for + * the indicated person. + *

+ * @return A number that everyone knows very well + * @param greetee The person to be greeted. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Greetee greetee) { + return this.jsiiCall(\\"greet\\", java.lang.Number.class, new Object[] { greetee }); + } + + /** + * Greet the indicated person. + *

+ * This will print out a friendly greeting intended for + * the indicated person. + *

+ * @return A number that everyone knows very well + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public @org.jetbrains.annotations.NotNull java.lang.Number greet() { + return this.jsiiCall(\\"greet\\", java.lang.Number.class); + } + + /** + * Say ¡Hola! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void hola() { + this.jsiiCall(\\"hola\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\") +public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii.JsiiObject { + + protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DontComplainAboutVariadicAfterOptional() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param optional + * @param things This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String optionalAndVariadic(final @org.jetbrains.annotations.Nullable java.lang.String optional, final @org.jetbrains.annotations.NotNull java.lang.String... things) { + return this.jsiiCall(\\"optionalAndVariadic\\", java.lang.String.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { optional }), java.util.Arrays.stream(things)).toArray(Object[]::new)); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoubleTrouble\\") +public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { + + protected DoubleTrouble(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected DoubleTrouble(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public DoubleTrouble() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Say hello! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + + /** + * Returns another random number. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Number next() { + return this.jsiiCall(\\"next\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EnumDispenser\\") +public class EnumDispenser extends software.amazon.jsii.JsiiObject { + + protected EnumDispenser(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected EnumDispenser(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum randomIntegerLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, \\"randomIntegerLikeEnum\\", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum randomStringLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, \\"randomStringLikeEnum\\", software.amazon.jsii.tests.calculator.StringEnum.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EraseUndefinedHashValues\\") +public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { + + protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public EraseUndefinedHashValues() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Returns \`true\` if \`key\` is defined in \`opts\`. + *

+ * Used to check that undefined/null hash values + * are being erased when sending values from native code to JS. + *

+ * EXPERIMENTAL + *

+ * @param opts This parameter is required. + * @param key This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"doesKeyExist\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, \\"opts is required\\"), java.util.Objects.requireNonNull(key, \\"key is required\\") }); + } + + /** + * We expect \\"prop1\\" to be erased. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map prop1IsNull() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"prop1IsNull\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } + + /** + * We expect \\"prop2\\" to be erased. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map prop2IsUndefined() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"prop2IsUndefined\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EraseUndefinedHashValuesOptions\\") +@software.amazon.jsii.Jsii.Proxy(EraseUndefinedHashValuesOptions.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getOption1() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getOption2() { + return null; + } + + /** + * @return a {@link Builder} of {@link EraseUndefinedHashValuesOptions} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link EraseUndefinedHashValuesOptions} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String option1; + private java.lang.String option2; + + /** + * Sets the value of {@link EraseUndefinedHashValuesOptions#getOption1} + * @param option1 the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder option1(java.lang.String option1) { + this.option1 = option1; + return this; + } + + /** + * Sets the value of {@link EraseUndefinedHashValuesOptions#getOption2} + * @param option2 the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder option2(java.lang.String option2) { + this.option2 = option2; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link EraseUndefinedHashValuesOptions} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public EraseUndefinedHashValuesOptions build() { + return new Jsii$Proxy(option1, option2); + } + } + + /** + * An implementation for {@link EraseUndefinedHashValuesOptions} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EraseUndefinedHashValuesOptions { + private final java.lang.String option1; + private final java.lang.String option2; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.option1 = this.jsiiGet(\\"option1\\", java.lang.String.class); + this.option2 = this.jsiiGet(\\"option2\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String option1, final java.lang.String option2) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.option1 = option1; + this.option2 = option2; + } + + @Override + public java.lang.String getOption1() { + return this.option1; + } + + @Override + public java.lang.String getOption2() { + return this.option2; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getOption1() != null) { + data.set(\\"option1\\", om.valueToTree(this.getOption1())); + } + if (this.getOption2() != null) { + data.set(\\"option2\\", om.valueToTree(this.getOption2())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.EraseUndefinedHashValuesOptions\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + EraseUndefinedHashValuesOptions.Jsii$Proxy that = (EraseUndefinedHashValuesOptions.Jsii$Proxy) o; + + if (this.option1 != null ? !this.option1.equals(that.option1) : that.option1 != null) return false; + return this.option2 != null ? this.option2.equals(that.option2) : that.option2 == null; + } + + @Override + public int hashCode() { + int result = this.option1 != null ? this.option1.hashCode() : 0; + result = 31 * result + (this.option2 != null ? this.option2.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalClass\\") +public class ExperimentalClass extends software.amazon.jsii.JsiiObject { + + protected ExperimentalClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ExperimentalClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param readonlyString This parameter is required. + * @param mutableNumber + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + } + + /** + * EXPERIMENTAL + *

+ * @param readonlyString This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { + return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalEnum\\") +public enum ExperimentalEnum { + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + OPTION_A, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + OPTION_B, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalStruct\\") +@software.amazon.jsii.Jsii.Proxy(ExperimentalStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); + + /** + * @return a {@link Builder} of {@link ExperimentalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ExperimentalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String readonlyProperty; + + /** + * Sets the value of {@link ExperimentalStruct#getReadonlyProperty} + * @param readonlyProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder readonlyProperty(java.lang.String readonlyProperty) { + this.readonlyProperty = readonlyProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ExperimentalStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ExperimentalStruct build() { + return new Jsii$Proxy(readonlyProperty); + } + } + + /** + * An implementation for {@link ExperimentalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExperimentalStruct { + private final java.lang.String readonlyProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String readonlyProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + } + + @Override + public java.lang.String getReadonlyProperty() { + return this.readonlyProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExperimentalStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ExperimentalStruct.Jsii$Proxy that = (ExperimentalStruct.Jsii$Proxy) o; + + return this.readonlyProperty.equals(that.readonlyProperty); + } + + @Override + public int hashCode() { + int result = this.readonlyProperty.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExportedBaseClass\\") +public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { + + protected ExportedBaseClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ExportedBaseClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param success This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ExportedBaseClass(final @org.jetbrains.annotations.NotNull java.lang.Boolean success) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(success, \\"success is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { + return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExtendsInternalInterface\\") +@software.amazon.jsii.Jsii.Proxy(ExtendsInternalInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getBoom(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getProp(); + + /** + * @return a {@link Builder} of {@link ExtendsInternalInterface} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ExtendsInternalInterface} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Boolean boom; + private java.lang.String prop; + + /** + * Sets the value of {@link ExtendsInternalInterface#getBoom} + * @param boom the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder boom(java.lang.Boolean boom) { + this.boom = boom; + return this; + } + + /** + * Sets the value of {@link ExtendsInternalInterface#getProp} + * @param prop the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder prop(java.lang.String prop) { + this.prop = prop; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ExtendsInternalInterface} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ExtendsInternalInterface build() { + return new Jsii$Proxy(boom, prop); + } + } + + /** + * An implementation for {@link ExtendsInternalInterface} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExtendsInternalInterface { + private final java.lang.Boolean boom; + private final java.lang.String prop; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.boom = this.jsiiGet(\\"boom\\", java.lang.Boolean.class); + this.prop = this.jsiiGet(\\"prop\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Boolean boom, final java.lang.String prop) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.boom = java.util.Objects.requireNonNull(boom, \\"boom is required\\"); + this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + } + + @Override + public java.lang.Boolean getBoom() { + return this.boom; + } + + @Override + public java.lang.String getProp() { + return this.prop; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"boom\\", om.valueToTree(this.getBoom())); + data.set(\\"prop\\", om.valueToTree(this.getProp())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExtendsInternalInterface\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ExtendsInternalInterface.Jsii$Proxy that = (ExtendsInternalInterface.Jsii$Proxy) o; + + if (!boom.equals(that.boom)) return false; + return this.prop.equals(that.prop); + } + + @Override + public int hashCode() { + int result = this.boom.hashCode(); + result = 31 * result + (this.prop.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalClass\\") +public class ExternalClass extends software.amazon.jsii.JsiiObject { + + protected ExternalClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ExternalClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param readonlyString This parameter is required. + * @param mutableNumber + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + } + + /** + * EXPERIMENTAL + *

+ * @param readonlyString This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { + return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalEnum\\") +public enum ExternalEnum { + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + OPTION_A, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + OPTION_B, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalStruct\\") +@software.amazon.jsii.Jsii.Proxy(ExternalStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); + + /** + * @return a {@link Builder} of {@link ExternalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ExternalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String readonlyProperty; + + /** + * Sets the value of {@link ExternalStruct#getReadonlyProperty} + * @param readonlyProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder readonlyProperty(java.lang.String readonlyProperty) { + this.readonlyProperty = readonlyProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ExternalStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ExternalStruct build() { + return new Jsii$Proxy(readonlyProperty); + } + } + + /** + * An implementation for {@link ExternalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExternalStruct { + private final java.lang.String readonlyProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String readonlyProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + } + + @Override + public java.lang.String getReadonlyProperty() { + return this.readonlyProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExternalStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ExternalStruct.Jsii$Proxy that = (ExternalStruct.Jsii$Proxy) o; + + return this.readonlyProperty.equals(that.readonlyProperty); + } + + @Override + public int hashCode() { + int result = this.readonlyProperty.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.GiveMeStructs\\") +public class GiveMeStructs extends software.amazon.jsii.JsiiObject { + + protected GiveMeStructs(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected GiveMeStructs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public GiveMeStructs() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + *

+ * EXPERIMENTAL + *

+ * @param derived This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { + return this.jsiiCall(\\"derivedToFirst\\", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, \\"derived is required\\") }); + } + + /** + * Returns the boolean from a DerivedStruct struct. + *

+ * EXPERIMENTAL + *

+ * @param derived This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { + return this.jsiiCall(\\"readDerivedNonPrimitive\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, \\"derived is required\\") }); + } + + /** + * Returns the \\"anumber\\" from a MyFirstStruct struct; + *

+ * EXPERIMENTAL + *

+ * @param first This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number readFirstNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct first) { + return this.jsiiCall(\\"readFirstNumber\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(first, \\"first is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals getStructLiteral() { + return this.jsiiGet(\\"structLiteral\\", software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * These are some arguments you can pass to a method. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Greetee\\") +@software.amazon.jsii.Jsii.Proxy(Greetee.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface Greetee extends software.amazon.jsii.JsiiSerializable { + + /** + * The name of the greetee. + *

+ * Default: world + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getName() { + return null; + } + + /** + * @return a {@link Builder} of {@link Greetee} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Greetee} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String name; + + /** + * Sets the value of {@link Greetee#getName} + * @param name The name of the greetee. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder name(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Greetee} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public Greetee build() { + return new Jsii$Proxy(name); + } + } + + /** + * An implementation for {@link Greetee} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Greetee { + private final java.lang.String name; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.name = this.jsiiGet(\\"name\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String name) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.name = name; + } + + @Override + public java.lang.String getName() { + return this.name; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getName() != null) { + data.set(\\"name\\", om.valueToTree(this.getName())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.Greetee\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Greetee.Jsii$Proxy that = (Greetee.Jsii$Proxy) o; + + return this.name != null ? this.name.equals(that.name) : that.name == null; + } + + @Override + public int hashCode() { + int result = this.name != null ? this.name.hashCode() : 0; + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.GreetingAugmenter\\") +public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { + + protected GreetingAugmenter(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected GreetingAugmenter(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public GreetingAugmenter() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param friendly This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String betterGreeting(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { + return this.jsiiCall(\\"betterGreeting\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, \\"friendly is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * We can return an anonymous interface implementation from an override without losing the interface declarations. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnonymousImplementationProvider\\") +@software.amazon.jsii.Jsii.Proxy(IAnonymousImplementationProvider.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IAnonymousImplementationProvider extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { + return this.jsiiCall(\\"provideAsClass\\", software.amazon.jsii.tests.calculator.Implementation.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall(\\"provideAsInterface\\", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnonymouslyImplementMe\\") +@software.amazon.jsii.Jsii.Proxy(IAnonymouslyImplementMe.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getValue(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String verb(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String verb() { + return this.jsiiCall(\\"verb\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnotherPublicInterface\\") +@software.amazon.jsii.Jsii.Proxy(IAnotherPublicInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getA(); + + /** + * EXPERIMENTAL + */ + void setA(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnotherPublicInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getA() { + return this.jsiiGet(\\"a\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IBell\\") +@software.amazon.jsii.Jsii.Proxy(IBell.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IBell extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void ring(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void ring() { + this.jsiiCall(\\"ring\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Takes the object parameter as an interface. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IBellRinger\\") +@software.amazon.jsii.Jsii.Proxy(IBellRinger.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + *

+ * @param bell This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBellRinger { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + *

+ * @param bell This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell) { + this.jsiiCall(\\"yourTurn\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, \\"bell is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Takes the object parameter as a calss. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IConcreteBellRinger\\") +@software.amazon.jsii.Jsii.Proxy(IConcreteBellRinger.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + *

+ * @param bell This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IConcreteBellRinger { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + *

+ * @param bell This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell) { + this.jsiiCall(\\"yourTurn\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, \\"bell is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * @deprecated useless interface + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IDeprecatedInterface\\") +@software.amazon.jsii.Jsii.Proxy(IDeprecatedInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * @deprecated could be better + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return null; + } + + /** + * @deprecated could be better + */ + @software.amazon.jsii.Optional + default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + } + + /** + * @deprecated services no purpose + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + void method(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IDeprecatedInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * @deprecated could be better + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * @deprecated could be better + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } + + /** + * @deprecated services no purpose + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExperimentalInterface\\") +@software.amazon.jsii.Jsii.Proxy(IExperimentalInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IExperimentalInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Optional + default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void method(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExperimentalInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExtendsPrivateInterface\\") +@software.amazon.jsii.Jsii.Proxy(IExtendsPrivateInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.util.List getMoreThings(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue(); + + /** + * EXPERIMENTAL + */ + void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExtendsPrivateInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getMoreThings() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"moreThings\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { + return this.jsiiGet(\\"private\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"private\\", java.util.Objects.requireNonNull(value, \\"private is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExternalInterface\\") +@software.amazon.jsii.Jsii.Proxy(IExternalInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IExternalInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Optional + default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void method(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExternalInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Even friendlier classes can implement this interface. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IFriendlier\\") +@software.amazon.jsii.Jsii.Proxy(IFriendlier.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.IFriendly { + + /** + * Say farewell. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String farewell(); + + /** + * Say goodbye. + *

+ * EXPERIMENTAL + *

+ * @return A goodbye blessing. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String goodbye(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlier { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * Say farewell. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String farewell() { + return this.jsiiCall(\\"farewell\\", java.lang.String.class); + } + + /** + * Say goodbye. + *

+ * EXPERIMENTAL + *

+ * @return A goodbye blessing. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { + return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + } + + /** + * Say hello! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IFriendlyRandomGenerator\\") +@software.amazon.jsii.Jsii.Proxy(IFriendlyRandomGenerator.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IFriendlyRandomGenerator extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IRandomNumberGenerator, software.amazon.jsii.tests.calculator.lib.IFriendly { + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * Returns another random number. + *

+ * EXPERIMENTAL + *

+ * @return A random number. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Number next() { + return this.jsiiCall(\\"next\\", java.lang.Number.class); + } + + /** + * Say hello! + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * awslabs/jsii#220 Abstract return type. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceImplementedByAbstractClass\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceImplementedByAbstractClass.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceImplementedByAbstractClass extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { + return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceThatShouldNotBeADataType.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithMethods { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getOtherValue(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getOtherValue() { + return this.jsiiGet(\\"otherValue\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getValue() { + return this.jsiiGet(\\"value\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void doThings() { + this.jsiiCall(\\"doThings\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithInternal\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithInternal.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void visible(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void visible() { + this.jsiiCall(\\"visible\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithMethods\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithMethods.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getValue(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void doThings(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithMethods { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getValue() { + return this.jsiiGet(\\"value\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void doThings() { + this.jsiiCall(\\"doThings\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithOptionalMethodArguments.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithOptionalMethodArguments extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.Nullable java.lang.Number arg2); + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.Nullable java.lang.Number arg2) { + this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), arg2 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1) { + this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithProperties\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithProperties.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString(); + + /** + * EXPERIMENTAL + */ + void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { + return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { + return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithPropertiesExtension\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithPropertiesExtension.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithProperties { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); + + /** + * EXPERIMENTAL + */ + void setFoo(final @org.jetbrains.annotations.NotNull java.lang.Number value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { + return this.jsiiGet(\\"foo\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"foo\\", java.util.Objects.requireNonNull(value, \\"foo is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { + return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { + return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJSII417Derived\\") +@software.amazon.jsii.Jsii.Proxy(IJSII417Derived.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getProperty(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void bar(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void baz(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417Derived { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet(\\"property\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { + return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void bar() { + this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void baz() { + this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJSII417PublicBaseOfBase\\") +@software.amazon.jsii.Jsii.Proxy(IJSII417PublicBaseOfBase.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + void foo(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { + return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii487External\\") +@software.amazon.jsii.Jsii.Proxy(IJsii487External.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IJsii487External extends software.amazon.jsii.JsiiSerializable { + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii487External2\\") +@software.amazon.jsii.Jsii.Proxy(IJsii487External2.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable { + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2 { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii496\\") +@software.amazon.jsii.Jsii.Proxy(IJsii496.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IMutableObjectLiteral\\") +@software.amazon.jsii.Jsii.Proxy(IMutableObjectLiteral.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getValue(); + + /** + * EXPERIMENTAL + */ + void setValue(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IMutableObjectLiteral { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getValue() { + return this.jsiiGet(\\"value\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"value\\", java.util.Objects.requireNonNull(value, \\"value is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.INonInternalInterface\\") +@software.amazon.jsii.Jsii.Proxy(INonInternalInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IAnotherPublicInterface { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getB(); + + /** + * EXPERIMENTAL + */ + void setB(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getC(); + + /** + * EXPERIMENTAL + */ + void setC(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getB() { + return this.jsiiGet(\\"b\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getC() { + return this.jsiiGet(\\"c\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getA() { + return this.jsiiGet(\\"a\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Make sure that setters are properly called on objects with interfaces. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IObjectWithProperty\\") +@software.amazon.jsii.Jsii.Proxy(IObjectWithProperty.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getProperty(); + + /** + * EXPERIMENTAL + */ + void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean wasSet(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IObjectWithProperty { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet(\\"property\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"property\\", java.util.Objects.requireNonNull(value, \\"property is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Boolean wasSet() { + return this.jsiiCall(\\"wasSet\\", java.lang.Boolean.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Checks that optional result from interface method code generates correctly. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IOptionalMethod\\") +@software.amazon.jsii.Jsii.Proxy(IOptionalMethod.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.Nullable java.lang.String optional(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IOptionalMethod { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.Nullable java.lang.String optional() { + return this.jsiiCall(\\"optional\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPrivatelyImplemented\\") +@software.amazon.jsii.Jsii.Proxy(IPrivatelyImplemented.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPrivatelyImplemented { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { + return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPublicInterface\\") +@software.amazon.jsii.Jsii.Proxy(IPublicInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String bye(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String bye() { + return this.jsiiCall(\\"bye\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPublicInterface2\\") +@software.amazon.jsii.Jsii.Proxy(IPublicInterface2.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String ciao(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface2 { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String ciao() { + return this.jsiiCall(\\"ciao\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Generates random numbers. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IRandomNumberGenerator\\") +@software.amazon.jsii.Jsii.Proxy(IRandomNumberGenerator.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IRandomNumberGenerator extends software.amazon.jsii.JsiiSerializable { + + /** + * Returns another random number. + *

+ * EXPERIMENTAL + *

+ * @return A random number. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number next(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IRandomNumberGenerator { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * Returns another random number. + *

+ * EXPERIMENTAL + *

+ * @return A random number. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Number next() { + return this.jsiiCall(\\"next\\", java.lang.Number.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Returns a subclass of a known class which implements an interface. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IReturnJsii976\\") +@software.amazon.jsii.Jsii.Proxy(IReturnJsii976.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnJsii976 { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { + return this.jsiiGet(\\"foo\\", java.lang.Number.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IReturnsNumber\\") +@software.amazon.jsii.Jsii.Proxy(IReturnsNumber.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number getNumberProp(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IDoublable obtainNumber(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnsNumber { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number getNumberProp() { + return this.jsiiGet(\\"numberProp\\", software.amazon.jsii.tests.calculator.lib.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IDoublable obtainNumber() { + return this.jsiiCall(\\"obtainNumber\\", software.amazon.jsii.tests.calculator.lib.IDoublable.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IStableInterface\\") +@software.amazon.jsii.Jsii.Proxy(IStableInterface.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +public interface IStableInterface extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return null; + } + + /** + */ + @software.amazon.jsii.Optional + default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + void method(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStableInterface { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @Override + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that a \\"pure\\" implementation of an interface works correctly. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IStructReturningDelegate\\") +@software.amazon.jsii.Jsii.Proxy(IStructReturningDelegate.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStructReturningDelegate { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct() { + return this.jsiiCall(\\"returnStruct\\", software.amazon.jsii.tests.calculator.StructB.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementInternalInterface\\") +public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject { + + protected ImplementInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ImplementInternalInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ImplementInternalInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getProp() { + return this.jsiiGet(\\"prop\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"prop\\", java.util.Objects.requireNonNull(value, \\"prop is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Implementation\\") +public class Implementation extends software.amazon.jsii.JsiiObject { + + protected Implementation(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Implementation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Implementation() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsInterfaceWithInternal\\") +public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { + + protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ImplementsInterfaceWithInternal() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public void visible() { + this.jsiiCall(\\"visible\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\") +public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal { + + protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ImplementsInterfaceWithInternalSubclass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsPrivateInterface\\") +public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject { + + protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ImplementsPrivateInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { + return this.jsiiGet(\\"private\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"private\\", java.util.Objects.requireNonNull(value, \\"private is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplictBaseOfBase\\") +@software.amazon.jsii.Jsii.Proxy(ImplictBaseOfBase.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.BaseProps { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.time.Instant getGoo(); + + /** + * @return a {@link Builder} of {@link ImplictBaseOfBase} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ImplictBaseOfBase} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.time.Instant goo; + private java.lang.String bar; + private software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Sets the value of {@link ImplictBaseOfBase#getGoo} + * @param goo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder goo(java.time.Instant goo) { + this.goo = goo; + return this; + } + + /** + * Sets the value of {@link ImplictBaseOfBase#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + public Builder bar(java.lang.String bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link ImplictBaseOfBase#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ImplictBaseOfBase} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ImplictBaseOfBase build() { + return new Jsii$Proxy(goo, bar, foo); + } + } + + /** + * An implementation for {@link ImplictBaseOfBase} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ImplictBaseOfBase { + private final java.time.Instant goo; + private final java.lang.String bar; + private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.goo = this.jsiiGet(\\"goo\\", java.time.Instant.class); + this.bar = this.jsiiGet(\\"bar\\", java.lang.String.class); + this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.time.Instant goo, final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.goo = java.util.Objects.requireNonNull(goo, \\"goo is required\\"); + this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.time.Instant getGoo() { + return this.goo; + } + + @Override + public java.lang.String getBar() { + return this.bar; + } + + @Override + public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"goo\\", om.valueToTree(this.getGoo())); + data.set(\\"bar\\", om.valueToTree(this.getBar())); + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ImplictBaseOfBase\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ImplictBaseOfBase.Jsii$Proxy that = (ImplictBaseOfBase.Jsii$Proxy) o; + + if (!goo.equals(that.goo)) return false; + if (!bar.equals(that.bar)) return false; + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.goo.hashCode(); + result = 31 * result + (this.bar.hashCode()); + result = 31 * result + (this.foo.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InbetweenClass\\") +public class InbetweenClass extends software.amazon.jsii.tests.calculator.PublicClass implements software.amazon.jsii.tests.calculator.IPublicInterface2 { + + protected InbetweenClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected InbetweenClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public InbetweenClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String ciao() { + return this.jsiiCall(\\"ciao\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that collections of interfaces or structs are correctly handled. + *

+ * See: https://github.com/aws/jsii/issues/1196 + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceCollections\\") +public class InterfaceCollections extends software.amazon.jsii.JsiiObject { + + protected InterfaceCollections(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected InterfaceCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"listOfInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"listOfStructs\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"mapOfInterfaces\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"mapOfStructs\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * We can return arrays of interfaces See aws/aws-cdk#2362. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfacesMaker\\") +public class InterfacesMaker extends software.amazon.jsii.JsiiObject { + + protected InterfacesMaker(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected InterfacesMaker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param count This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces(final @org.jetbrains.annotations.NotNull java.lang.Number count) { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, \\"makeInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") })); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Checks the \\"same instance\\" isomorphism is preserved within the constructor. + *

+ * Create a subclass of this, and assert that this.myself() actually returns + * this from within the constructor. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Isomorphism\\") +public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { + + protected Isomorphism(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Isomorphism(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected Isomorphism() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Isomorphism myself() { + return this.jsiiCall(\\"myself\\", software.amazon.jsii.tests.calculator.Isomorphism.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.Isomorphism { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSII417Derived\\") +public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase { + + protected JSII417Derived(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JSII417Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param property This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JSII417Derived(final @org.jetbrains.annotations.NotNull java.lang.String property) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(property, \\"property is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void bar() { + this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void baz() { + this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet(\\"property\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSII417PublicBaseOfBase\\") +public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { + + protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JSII417PublicBaseOfBase() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, \\"makeInstance\\", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void foo() { + this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { + return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralForInterface\\") +public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject { + + protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JSObjectLiteralForInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly giveMeFriendly() { + return this.jsiiCall(\\"giveMeFriendly\\", software.amazon.jsii.tests.calculator.lib.IFriendly.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator giveMeFriendlyGenerator() { + return this.jsiiCall(\\"giveMeFriendlyGenerator\\", software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralToNative\\") +public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { + + protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JSObjectLiteralToNative() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass returnLiteral() { + return this.jsiiCall(\\"returnLiteral\\", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralToNativeClass\\") +public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObject { + + protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JSObjectLiteralToNativeClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getPropA() { + return this.jsiiGet(\\"propA\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setPropA(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"propA\\", java.util.Objects.requireNonNull(value, \\"propA is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getPropB() { + return this.jsiiGet(\\"propB\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setPropB(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"propB\\", java.util.Objects.requireNonNull(value, \\"propB is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JavaReservedWords\\") +public class JavaReservedWords extends software.amazon.jsii.JsiiObject { + + protected JavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JavaReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JavaReservedWords() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doAbstract() { + this.jsiiCall(\\"abstract\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doAssert() { + this.jsiiCall(\\"assert\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doBoolean() { + this.jsiiCall(\\"boolean\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doBreak() { + this.jsiiCall(\\"break\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doByte() { + this.jsiiCall(\\"byte\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doCase() { + this.jsiiCall(\\"case\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doCatch() { + this.jsiiCall(\\"catch\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doChar() { + this.jsiiCall(\\"char\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doClass() { + this.jsiiCall(\\"class\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doConst() { + this.jsiiCall(\\"const\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doContinue() { + this.jsiiCall(\\"continue\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doDefault() { + this.jsiiCall(\\"default\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doDo() { + this.jsiiCall(\\"do\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doDouble() { + this.jsiiCall(\\"double\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doElse() { + this.jsiiCall(\\"else\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doEnum() { + this.jsiiCall(\\"enum\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doExtends() { + this.jsiiCall(\\"extends\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFalse() { + this.jsiiCall(\\"false\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFinal() { + this.jsiiCall(\\"final\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFinally() { + this.jsiiCall(\\"finally\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFloat() { + this.jsiiCall(\\"float\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFor() { + this.jsiiCall(\\"for\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doGoto() { + this.jsiiCall(\\"goto\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doIf() { + this.jsiiCall(\\"if\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doImplements() { + this.jsiiCall(\\"implements\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doImport() { + this.jsiiCall(\\"import\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doInstanceof() { + this.jsiiCall(\\"instanceof\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doInt() { + this.jsiiCall(\\"int\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doInterface() { + this.jsiiCall(\\"interface\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doLong() { + this.jsiiCall(\\"long\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doNative() { + this.jsiiCall(\\"native\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doNew() { + this.jsiiCall(\\"new\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doNull() { + this.jsiiCall(\\"null\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doPackage() { + this.jsiiCall(\\"package\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doPrivate() { + this.jsiiCall(\\"private\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doProtected() { + this.jsiiCall(\\"protected\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doPublic() { + this.jsiiCall(\\"public\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doReturn() { + this.jsiiCall(\\"return\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doShort() { + this.jsiiCall(\\"short\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doStatic() { + this.jsiiCall(\\"static\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doStrictfp() { + this.jsiiCall(\\"strictfp\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doSuper() { + this.jsiiCall(\\"super\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doSwitch() { + this.jsiiCall(\\"switch\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doSynchronized() { + this.jsiiCall(\\"synchronized\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doThis() { + this.jsiiCall(\\"this\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doThrow() { + this.jsiiCall(\\"throw\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doThrows() { + this.jsiiCall(\\"throws\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doTransient() { + this.jsiiCall(\\"transient\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doTrue() { + this.jsiiCall(\\"true\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doTry() { + this.jsiiCall(\\"try\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doVoid() { + this.jsiiCall(\\"void\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doVolatile() { + this.jsiiCall(\\"volatile\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getWhileValue() { + return this.jsiiGet(\\"while\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setWhileValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"while\\", java.util.Objects.requireNonNull(value, \\"while is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Jsii487Derived\\") +public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2, software.amazon.jsii.tests.calculator.IJsii487External { + + protected Jsii487Derived(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Jsii487Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Jsii487Derived() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Jsii496Derived\\") +public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { + + protected Jsii496Derived(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Jsii496Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Jsii496Derived() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Host runtime version should be set via JSII_AGENT. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JsiiAgent\\") +public class JsiiAgent extends software.amazon.jsii.JsiiObject { + + protected JsiiAgent(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JsiiAgent(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public JsiiAgent() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Returns the value of the JSII_AGENT environment variable. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.Nullable java.lang.String getJsiiAgent() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, \\"jsiiAgent\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Make sure structs are un-decorated on the way in. + *

+ * EXPERIMENTAL + *

+ * @see https://github.com/aws/aws-cdk/issues/5066 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JsonFormatter\\") +public class JsonFormatter extends software.amazon.jsii.JsiiObject { + + protected JsonFormatter(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyArray() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyArray\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanFalse() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyBooleanFalse\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanTrue() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyBooleanTrue\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyDate() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyDate\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyEmptyString() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyEmptyString\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyFunction() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyFunction\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyHash() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyHash\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyNull() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyNull\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyNumber() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyNumber\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyRef() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyRef\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyString() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyString\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyUndefined() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyUndefined\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object anyZero() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyZero\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + *

+ * @param value + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.Nullable java.lang.String stringify(final @org.jetbrains.annotations.Nullable java.lang.Object value) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"stringify\\", java.lang.String.class, new Object[] { value }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.Nullable java.lang.String stringify() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"stringify\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * jsii#298: show default values in sphinx documentation, and respect newlines. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.LoadBalancedFargateServiceProps\\") +@software.amazon.jsii.Jsii.Proxy(LoadBalancedFargateServiceProps.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable { + + /** + * The container port of the application load balancer attached to your Fargate service. + *

+ * Corresponds to container port mapping. + *

+ * Default: 80 + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getContainerPort() { + return null; + } + + /** + * The number of cpu units used by the task. + *

+ * Valid values, which determines your range of valid values for the memory parameter: + * 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + * 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + * 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + * 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + * 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + *

+ * This default is set in the underlying FargateTaskDefinition construct. + *

+ * Default: 256 + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getCpu() { + return null; + } + + /** + * The amount (in MiB) of memory used by the task. + *

+ * This field is required and you must use one of the following values, which determines your range of valid values + * for the cpu parameter: + *

+ * 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + *

+ * 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + *

+ * 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + *

+ * Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + *

+ * Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + *

+ * This default is set in the underlying FargateTaskDefinition construct. + *

+ * Default: 512 + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getMemoryMiB() { + return null; + } + + /** + * Determines whether the Application Load Balancer will be internet-facing. + *

+ * Default: true + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Boolean getPublicLoadBalancer() { + return null; + } + + /** + * Determines whether your Fargate Service will be assigned a public IP address. + *

+ * Default: false + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Boolean getPublicTasks() { + return null; + } + + /** + * @return a {@link Builder} of {@link LoadBalancedFargateServiceProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link LoadBalancedFargateServiceProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number containerPort; + private java.lang.String cpu; + private java.lang.String memoryMiB; + private java.lang.Boolean publicLoadBalancer; + private java.lang.Boolean publicTasks; + + /** + * Sets the value of {@link LoadBalancedFargateServiceProps#getContainerPort} + * @param containerPort The container port of the application load balancer attached to your Fargate service. + * Corresponds to container port mapping. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder containerPort(java.lang.Number containerPort) { + this.containerPort = containerPort; + return this; + } + + /** + * Sets the value of {@link LoadBalancedFargateServiceProps#getCpu} + * @param cpu The number of cpu units used by the task. + * Valid values, which determines your range of valid values for the memory parameter: + * 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + * 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + * 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + * 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + * 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + *

+ * This default is set in the underlying FargateTaskDefinition construct. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder cpu(java.lang.String cpu) { + this.cpu = cpu; + return this; + } + + /** + * Sets the value of {@link LoadBalancedFargateServiceProps#getMemoryMiB} + * @param memoryMiB The amount (in MiB) of memory used by the task. + * This field is required and you must use one of the following values, which determines your range of valid values + * for the cpu parameter: + *

+ * 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + *

+ * 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + *

+ * 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + *

+ * Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + *

+ * Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + *

+ * This default is set in the underlying FargateTaskDefinition construct. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder memoryMiB(java.lang.String memoryMiB) { + this.memoryMiB = memoryMiB; + return this; + } + + /** + * Sets the value of {@link LoadBalancedFargateServiceProps#getPublicLoadBalancer} + * @param publicLoadBalancer Determines whether the Application Load Balancer will be internet-facing. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder publicLoadBalancer(java.lang.Boolean publicLoadBalancer) { + this.publicLoadBalancer = publicLoadBalancer; + return this; + } + + /** + * Sets the value of {@link LoadBalancedFargateServiceProps#getPublicTasks} + * @param publicTasks Determines whether your Fargate Service will be assigned a public IP address. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder publicTasks(java.lang.Boolean publicTasks) { + this.publicTasks = publicTasks; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link LoadBalancedFargateServiceProps} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public LoadBalancedFargateServiceProps build() { + return new Jsii$Proxy(containerPort, cpu, memoryMiB, publicLoadBalancer, publicTasks); + } + } + + /** + * An implementation for {@link LoadBalancedFargateServiceProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LoadBalancedFargateServiceProps { + private final java.lang.Number containerPort; + private final java.lang.String cpu; + private final java.lang.String memoryMiB; + private final java.lang.Boolean publicLoadBalancer; + private final java.lang.Boolean publicTasks; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.containerPort = this.jsiiGet(\\"containerPort\\", java.lang.Number.class); + this.cpu = this.jsiiGet(\\"cpu\\", java.lang.String.class); + this.memoryMiB = this.jsiiGet(\\"memoryMiB\\", java.lang.String.class); + this.publicLoadBalancer = this.jsiiGet(\\"publicLoadBalancer\\", java.lang.Boolean.class); + this.publicTasks = this.jsiiGet(\\"publicTasks\\", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number containerPort, final java.lang.String cpu, final java.lang.String memoryMiB, final java.lang.Boolean publicLoadBalancer, final java.lang.Boolean publicTasks) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.containerPort = containerPort; + this.cpu = cpu; + this.memoryMiB = memoryMiB; + this.publicLoadBalancer = publicLoadBalancer; + this.publicTasks = publicTasks; + } + + @Override + public java.lang.Number getContainerPort() { + return this.containerPort; + } + + @Override + public java.lang.String getCpu() { + return this.cpu; + } + + @Override + public java.lang.String getMemoryMiB() { + return this.memoryMiB; + } + + @Override + public java.lang.Boolean getPublicLoadBalancer() { + return this.publicLoadBalancer; + } + + @Override + public java.lang.Boolean getPublicTasks() { + return this.publicTasks; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getContainerPort() != null) { + data.set(\\"containerPort\\", om.valueToTree(this.getContainerPort())); + } + if (this.getCpu() != null) { + data.set(\\"cpu\\", om.valueToTree(this.getCpu())); + } + if (this.getMemoryMiB() != null) { + data.set(\\"memoryMiB\\", om.valueToTree(this.getMemoryMiB())); + } + if (this.getPublicLoadBalancer() != null) { + data.set(\\"publicLoadBalancer\\", om.valueToTree(this.getPublicLoadBalancer())); + } + if (this.getPublicTasks() != null) { + data.set(\\"publicTasks\\", om.valueToTree(this.getPublicTasks())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.LoadBalancedFargateServiceProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + LoadBalancedFargateServiceProps.Jsii$Proxy that = (LoadBalancedFargateServiceProps.Jsii$Proxy) o; + + if (this.containerPort != null ? !this.containerPort.equals(that.containerPort) : that.containerPort != null) return false; + if (this.cpu != null ? !this.cpu.equals(that.cpu) : that.cpu != null) return false; + if (this.memoryMiB != null ? !this.memoryMiB.equals(that.memoryMiB) : that.memoryMiB != null) return false; + if (this.publicLoadBalancer != null ? !this.publicLoadBalancer.equals(that.publicLoadBalancer) : that.publicLoadBalancer != null) return false; + return this.publicTasks != null ? this.publicTasks.equals(that.publicTasks) : that.publicTasks == null; + } + + @Override + public int hashCode() { + int result = this.containerPort != null ? this.containerPort.hashCode() : 0; + result = 31 * result + (this.cpu != null ? this.cpu.hashCode() : 0); + result = 31 * result + (this.memoryMiB != null ? this.memoryMiB.hashCode() : 0); + result = 31 * result + (this.publicLoadBalancer != null ? this.publicLoadBalancer.hashCode() : 0); + result = 31 * result + (this.publicTasks != null ? this.publicTasks.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.MethodNamedProperty\\") +public class MethodNamedProperty extends software.amazon.jsii.JsiiObject { + + protected MethodNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected MethodNamedProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public MethodNamedProperty() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String property() { + return this.jsiiCall(\\"property\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getElite() { + return this.jsiiGet(\\"elite\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * The \\"*\\" binary operation. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Multiply\\") +public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier, software.amazon.jsii.tests.calculator.IRandomNumberGenerator { + + protected Multiply(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Multiply(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a BinaryOperation. + *

+ * EXPERIMENTAL + *

+ * @param lhs Left-hand side operand. This parameter is required. + * @param rhs Right-hand side operand. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Multiply(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + } + + /** + * Say farewell. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String farewell() { + return this.jsiiCall(\\"farewell\\", java.lang.String.class); + } + + /** + * Say goodbye. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { + return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + } + + /** + * Returns another random number. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Number next() { + return this.jsiiCall(\\"next\\", java.lang.Number.class); + } + + /** + * String representation of the value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + + /** + * The value. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * The negation operation (\\"-value\\"). + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Negate\\") +public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier { + + protected Negate(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Negate(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param operand This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Negate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, \\"operand is required\\") }); + } + + /** + * Say farewell. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String farewell() { + return this.jsiiCall(\\"farewell\\", java.lang.String.class); + } + + /** + * Say goodbye. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { + return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + } + + /** + * Say hello! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String hello() { + return this.jsiiCall(\\"hello\\", java.lang.String.class); + } + + /** + * String representation of the value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + + /** + * The value. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NestedStruct\\") +@software.amazon.jsii.Jsii.Proxy(NestedStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * When provided, must be > 0. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getNumberProp(); + + /** + * @return a {@link Builder} of {@link NestedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link NestedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number numberProp; + + /** + * Sets the value of {@link NestedStruct#getNumberProp} + * @param numberProp When provided, must be > 0. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder numberProp(java.lang.Number numberProp) { + this.numberProp = numberProp; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link NestedStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public NestedStruct build() { + return new Jsii$Proxy(numberProp); + } + } + + /** + * An implementation for {@link NestedStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NestedStruct { + private final java.lang.Number numberProp; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.numberProp = this.jsiiGet(\\"numberProp\\", java.lang.Number.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number numberProp) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.numberProp = java.util.Objects.requireNonNull(numberProp, \\"numberProp is required\\"); + } + + @Override + public java.lang.Number getNumberProp() { + return this.numberProp; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"numberProp\\", om.valueToTree(this.getNumberProp())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.NestedStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + NestedStruct.Jsii$Proxy that = (NestedStruct.Jsii$Proxy) o; + + return this.numberProp.equals(that.numberProp); + } + + @Override + public int hashCode() { + int result = this.numberProp.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Test fixture to verify that jsii modules can use the node standard library. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NodeStandardLibrary\\") +public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { + + protected NodeStandardLibrary(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NodeStandardLibrary(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public NodeStandardLibrary() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Uses node.js \\"crypto\\" module to calculate sha256 of a string. + *

+ * EXPERIMENTAL + *

+ * @return \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String cryptoSha256() { + return this.jsiiCall(\\"cryptoSha256\\", java.lang.String.class); + } + + /** + * Reads a local resource file (resource.txt) asynchronously. + *

+ * EXPERIMENTAL + *

+ * @return \\"Hello, resource!\\" + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String fsReadFile() { + return this.jsiiAsyncCall(\\"fsReadFile\\", java.lang.String.class); + } + + /** + * Sync version of fsReadFile. + *

+ * EXPERIMENTAL + *

+ * @return \\"Hello, resource! SYNC!\\" + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String fsReadFileSync() { + return this.jsiiCall(\\"fsReadFileSync\\", java.lang.String.class); + } + + /** + * Returns the current os.platform() from the \\"os\\" node module. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getOsPlatform() { + return this.jsiiGet(\\"osPlatform\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NullShouldBeTreatedAsUndefined\\") +public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObject { + + protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param _param1 This parameter is required. + * @param optional + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1, final @org.jetbrains.annotations.Nullable java.lang.Object optional) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, \\"_param1 is required\\"), optional }); + } + + /** + * EXPERIMENTAL + *

+ * @param _param1 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, \\"_param1 is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param value + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void giveMeUndefined(final @org.jetbrains.annotations.Nullable java.lang.Object value) { + this.jsiiCall(\\"giveMeUndefined\\", software.amazon.jsii.NativeType.VOID, new Object[] { value }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void giveMeUndefined() { + this.jsiiCall(\\"giveMeUndefined\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + *

+ * @param input This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData input) { + this.jsiiCall(\\"giveMeUndefinedInsideAnObject\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, \\"input is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void verifyPropertyIsUndefined() { + this.jsiiCall(\\"verifyPropertyIsUndefined\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.String getChangeMeToUndefined() { + return this.jsiiGet(\\"changeMeToUndefined\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setChangeMeToUndefined(final @org.jetbrains.annotations.Nullable java.lang.String value) { + this.jsiiSet(\\"changeMeToUndefined\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\") +@software.amazon.jsii.Jsii.Proxy(NullShouldBeTreatedAsUndefinedData.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.util.List getArrayWithThreeElementsAndUndefinedAsSecondArgument(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Object getThisShouldBeUndefined() { + return null; + } + + /** + * @return a {@link Builder} of {@link NullShouldBeTreatedAsUndefinedData} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link NullShouldBeTreatedAsUndefinedData} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument; + private java.lang.Object thisShouldBeUndefined; + + /** + * Sets the value of {@link NullShouldBeTreatedAsUndefinedData#getArrayWithThreeElementsAndUndefinedAsSecondArgument} + * @param arrayWithThreeElementsAndUndefinedAsSecondArgument the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder arrayWithThreeElementsAndUndefinedAsSecondArgument(java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument) { + this.arrayWithThreeElementsAndUndefinedAsSecondArgument = arrayWithThreeElementsAndUndefinedAsSecondArgument; + return this; + } + + /** + * Sets the value of {@link NullShouldBeTreatedAsUndefinedData#getThisShouldBeUndefined} + * @param thisShouldBeUndefined the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder thisShouldBeUndefined(java.lang.Object thisShouldBeUndefined) { + this.thisShouldBeUndefined = thisShouldBeUndefined; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link NullShouldBeTreatedAsUndefinedData} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public NullShouldBeTreatedAsUndefinedData build() { + return new Jsii$Proxy(arrayWithThreeElementsAndUndefinedAsSecondArgument, thisShouldBeUndefined); + } + } + + /** + * An implementation for {@link NullShouldBeTreatedAsUndefinedData} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NullShouldBeTreatedAsUndefinedData { + private final java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument; + private final java.lang.Object thisShouldBeUndefined; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.arrayWithThreeElementsAndUndefinedAsSecondArgument = this.jsiiGet(\\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))); + this.thisShouldBeUndefined = this.jsiiGet(\\"thisShouldBeUndefined\\", java.lang.Object.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument, final java.lang.Object thisShouldBeUndefined) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.arrayWithThreeElementsAndUndefinedAsSecondArgument = java.util.Objects.requireNonNull(arrayWithThreeElementsAndUndefinedAsSecondArgument, \\"arrayWithThreeElementsAndUndefinedAsSecondArgument is required\\"); + this.thisShouldBeUndefined = thisShouldBeUndefined; + } + + @Override + public java.util.List getArrayWithThreeElementsAndUndefinedAsSecondArgument() { + return this.arrayWithThreeElementsAndUndefinedAsSecondArgument; + } + + @Override + public java.lang.Object getThisShouldBeUndefined() { + return this.thisShouldBeUndefined; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", om.valueToTree(this.getArrayWithThreeElementsAndUndefinedAsSecondArgument())); + if (this.getThisShouldBeUndefined() != null) { + data.set(\\"thisShouldBeUndefined\\", om.valueToTree(this.getThisShouldBeUndefined())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + NullShouldBeTreatedAsUndefinedData.Jsii$Proxy that = (NullShouldBeTreatedAsUndefinedData.Jsii$Proxy) o; + + if (!arrayWithThreeElementsAndUndefinedAsSecondArgument.equals(that.arrayWithThreeElementsAndUndefinedAsSecondArgument)) return false; + return this.thisShouldBeUndefined != null ? this.thisShouldBeUndefined.equals(that.thisShouldBeUndefined) : that.thisShouldBeUndefined == null; + } + + @Override + public int hashCode() { + int result = this.arrayWithThreeElementsAndUndefinedAsSecondArgument.hashCode(); + result = 31 * result + (this.thisShouldBeUndefined != null ? this.thisShouldBeUndefined.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This allows us to test that a reference can be stored for objects that implement interfaces. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NumberGenerator\\") +public class NumberGenerator extends software.amazon.jsii.JsiiObject { + + protected NumberGenerator(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NumberGenerator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param generator This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public NumberGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator generator) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(generator, \\"generator is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param gen This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean isSameGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator gen) { + return this.jsiiCall(\\"isSameGenerator\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(gen, \\"gen is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number nextTimes100() { + return this.jsiiCall(\\"nextTimes100\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator getGenerator() { + return this.jsiiGet(\\"generator\\", software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator value) { + this.jsiiSet(\\"generator\\", java.util.Objects.requireNonNull(value, \\"generator is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verify that object references can be passed inside collections. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ObjectRefsInCollections\\") +public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { + + protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ObjectRefsInCollections() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Returns the sum of all values. + *

+ * EXPERIMENTAL + *

+ * @param values This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number sumFromArray(final @org.jetbrains.annotations.NotNull java.util.List values) { + return this.jsiiCall(\\"sumFromArray\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, \\"values is required\\") }); + } + + /** + * Returns the sum of all values in a map. + *

+ * EXPERIMENTAL + *

+ * @param values This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number sumFromMap(final @org.jetbrains.annotations.NotNull java.util.Map values) { + return this.jsiiCall(\\"sumFromMap\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, \\"values is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ObjectWithPropertyProvider\\") +public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject { + + protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IObjectWithProperty provide() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, \\"provide\\", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Old.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Old class. + *

+ * @deprecated Use the new class + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Old\\") +public class Old extends software.amazon.jsii.JsiiObject { + + protected Old(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Old(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Old() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * Doo wop that thing. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public void doAThing() { + this.jsiiCall(\\"doAThing\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalArgumentInvoker\\") +public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { + + protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param delegate This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments delegate) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void invokeWithOptional() { + this.jsiiCall(\\"invokeWithOptional\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void invokeWithoutOptional() { + this.jsiiCall(\\"invokeWithoutOptional\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalConstructorArgument\\") +public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject { + + protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 This parameter is required. + * @param arg3 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\"), arg3 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { + return this.jsiiGet(\\"arg1\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getArg2() { + return this.jsiiGet(\\"arg2\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.time.Instant getArg3() { + return this.jsiiGet(\\"arg3\\", java.time.Instant.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalStruct\\") +@software.amazon.jsii.Jsii.Proxy(OptionalStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getField() { + return null; + } + + /** + * @return a {@link Builder} of {@link OptionalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link OptionalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String field; + + /** + * Sets the value of {@link OptionalStruct#getField} + * @param field the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder field(java.lang.String field) { + this.field = field; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link OptionalStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public OptionalStruct build() { + return new Jsii$Proxy(field); + } + } + + /** + * An implementation for {@link OptionalStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements OptionalStruct { + private final java.lang.String field; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.field = this.jsiiGet(\\"field\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String field) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.field = field; + } + + @Override + public java.lang.String getField() { + return this.field; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getField() != null) { + data.set(\\"field\\", om.valueToTree(this.getField())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.OptionalStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + OptionalStruct.Jsii$Proxy that = (OptionalStruct.Jsii$Proxy) o; + + return this.field != null ? this.field.equals(that.field) : that.field == null; + } + + @Override + public int hashCode() { + int result = this.field != null ? this.field.hashCode() : 0; + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalStructConsumer\\") +public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { + + protected OptionalStructConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OptionalStructConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param optionalStruct + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.OptionalStruct optionalStruct) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { optionalStruct }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OptionalStructConsumer() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getParameterWasUndefined() { + return this.jsiiGet(\\"parameterWasUndefined\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.String getFieldValue() { + return this.jsiiGet(\\"fieldValue\\", java.lang.String.class); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create() { + return new Builder(); + } + + private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct; + + private Builder() { + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param field This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder field(final java.lang.String field) { + this.optionalStruct().field(field); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.OptionalStructConsumer build() { + return new software.amazon.jsii.tests.calculator.OptionalStructConsumer( + this.optionalStruct != null ? this.optionalStruct.build() : null + ); + } + + private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct() { + if (this.optionalStruct == null) { + this.optionalStruct = new software.amazon.jsii.tests.calculator.OptionalStruct.Builder(); + } + return this.optionalStruct; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + *

+ * @see https://github.com/aws/jsii/issues/903 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OverridableProtectedMember\\") +public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject { + + protected OverridableProtectedMember(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OverridableProtectedMember(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OverridableProtectedMember() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected @org.jetbrains.annotations.NotNull java.lang.String overrideMe() { + return this.jsiiCall(\\"overrideMe\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void switchModes() { + this.jsiiCall(\\"switchModes\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String valueFromProtected() { + return this.jsiiCall(\\"valueFromProtected\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadOnly() { + return this.jsiiGet(\\"overrideReadOnly\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadWrite() { + return this.jsiiGet(\\"overrideReadWrite\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected void setOverrideReadWrite(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"overrideReadWrite\\", java.util.Objects.requireNonNull(value, \\"overrideReadWrite is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OverrideReturnsObject\\") +public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { + + protected OverrideReturnsObject(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OverrideReturnsObject(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OverrideReturnsObject() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnsNumber obj) { + return this.jsiiCall(\\"test\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * https://github.com/aws/jsii/issues/982. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ParentStruct982\\") +@software.amazon.jsii.Jsii.Proxy(ParentStruct982.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getFoo(); + + /** + * @return a {@link Builder} of {@link ParentStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link ParentStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String foo; + + /** + * Sets the value of {@link ParentStruct982#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.String foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link ParentStruct982} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public ParentStruct982 build() { + return new Jsii$Proxy(foo); + } + } + + /** + * An implementation for {@link ParentStruct982} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ParentStruct982 { + private final java.lang.String foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.foo = this.jsiiGet(\\"foo\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.lang.String getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ParentStruct982\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ParentStruct982.Jsii$Proxy that = (ParentStruct982.Jsii$Proxy) o; + + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.foo.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PartiallyInitializedThisConsumer\\") +public abstract class PartiallyInitializedThisConsumer extends software.amazon.jsii.JsiiObject { + + protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected PartiallyInitializedThisConsumer() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + * @param dt This parameter is required. + * @param ev This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + * @param dt This parameter is required. + * @param ev This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev) { + return this.jsiiCall(\\"consumePartiallyInitializedThis\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\"), java.util.Objects.requireNonNull(dt, \\"dt is required\\"), java.util.Objects.requireNonNull(ev, \\"ev is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Polymorphism\\") +public class Polymorphism extends software.amazon.jsii.JsiiObject { + + protected Polymorphism(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Polymorphism(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Polymorphism() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param friendly This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String sayHello(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { + return this.jsiiCall(\\"sayHello\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, \\"friendly is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Power.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * The power operation. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Power\\") +public class Power extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { + + protected Power(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Power(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * Creates a Power operation. + *

+ * EXPERIMENTAL + *

+ * @param base The base of the power. This parameter is required. + * @param pow The number of times to multiply. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Power(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value base, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value pow) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(base, \\"base is required\\"), java.util.Objects.requireNonNull(pow, \\"pow is required\\") }); + } + + /** + * The base of the power. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getBase() { + return this.jsiiGet(\\"base\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * The expression that this operation consists of. + *

+ * Must be implemented by derived classes. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { + return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * The number of times to multiply. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getPow() { + return this.jsiiGet(\\"pow\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PropertyNamedProperty\\") +public class PropertyNamedProperty extends software.amazon.jsii.JsiiObject { + + protected PropertyNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected PropertyNamedProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public PropertyNamedProperty() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet(\\"property\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getYetAnoterOne() { + return this.jsiiGet(\\"yetAnoterOne\\", java.lang.Boolean.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PublicClass\\") +public class PublicClass extends software.amazon.jsii.JsiiObject { + + protected PublicClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected PublicClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public PublicClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void hello() { + this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonReservedWords\\") +public class PythonReservedWords extends software.amazon.jsii.JsiiObject { + + protected PythonReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected PythonReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public PythonReservedWords() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void and() { + this.jsiiCall(\\"and\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void as() { + this.jsiiCall(\\"as\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doAssert() { + this.jsiiCall(\\"assert\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void async() { + this.jsiiCall(\\"async\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void await() { + this.jsiiCall(\\"await\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doBreak() { + this.jsiiCall(\\"break\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doClass() { + this.jsiiCall(\\"class\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doContinue() { + this.jsiiCall(\\"continue\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void def() { + this.jsiiCall(\\"def\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void del() { + this.jsiiCall(\\"del\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void elif() { + this.jsiiCall(\\"elif\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doElse() { + this.jsiiCall(\\"else\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void except() { + this.jsiiCall(\\"except\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFinally() { + this.jsiiCall(\\"finally\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doFor() { + this.jsiiCall(\\"for\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void from() { + this.jsiiCall(\\"from\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void global() { + this.jsiiCall(\\"global\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doIf() { + this.jsiiCall(\\"if\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doImport() { + this.jsiiCall(\\"import\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void in() { + this.jsiiCall(\\"in\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void is() { + this.jsiiCall(\\"is\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void lambda() { + this.jsiiCall(\\"lambda\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void nonlocal() { + this.jsiiCall(\\"nonlocal\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void not() { + this.jsiiCall(\\"not\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void or() { + this.jsiiCall(\\"or\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void pass() { + this.jsiiCall(\\"pass\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void raise() { + this.jsiiCall(\\"raise\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doReturn() { + this.jsiiCall(\\"return\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doTry() { + this.jsiiCall(\\"try\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void doWhile() { + this.jsiiCall(\\"while\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void with() { + this.jsiiCall(\\"with\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void yield() { + this.jsiiCall(\\"yield\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * See awslabs/jsii#138. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ReferenceEnumFromScopedPackage\\") +public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObject { + + protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ReferenceEnumFromScopedPackage() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule loadFoo() { + return this.jsiiCall(\\"loadFoo\\", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void saveFoo(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { + this.jsiiCall(\\"saveFoo\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule getFoo() { + return this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setFoo(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { + this.jsiiSet(\\"foo\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + *

+ * EXPERIMENTAL + *

+ * @return an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`. + * @see https://github.com/aws/jsii/issues/320 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\") +public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsii.JsiiObject { + + protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ReturnsPrivateImplementationOfInterface() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPrivatelyImplemented getPrivateImplementation() { + return this.jsiiGet(\\"privateImplementation\\", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + *

+ * This is cheating with the (current) declared types, but this is the \\"more + * idiomatic\\" way for Pythonists. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RootStruct\\") +@software.amazon.jsii.Jsii.Proxy(RootStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface RootStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * May not be empty. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getStringProp(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { + return null; + } + + /** + * @return a {@link Builder} of {@link RootStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link RootStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String stringProp; + private software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; + + /** + * Sets the value of {@link RootStruct#getStringProp} + * @param stringProp May not be empty. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder stringProp(java.lang.String stringProp) { + this.stringProp = stringProp; + return this; + } + + /** + * Sets the value of {@link RootStruct#getNestedStruct} + * @param nestedStruct the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder nestedStruct(software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { + this.nestedStruct = nestedStruct; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link RootStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public RootStruct build() { + return new Jsii$Proxy(stringProp, nestedStruct); + } + } + + /** + * An implementation for {@link RootStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootStruct { + private final java.lang.String stringProp; + private final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.stringProp = this.jsiiGet(\\"stringProp\\", java.lang.String.class); + this.nestedStruct = this.jsiiGet(\\"nestedStruct\\", software.amazon.jsii.tests.calculator.NestedStruct.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.stringProp = java.util.Objects.requireNonNull(stringProp, \\"stringProp is required\\"); + this.nestedStruct = nestedStruct; + } + + @Override + public java.lang.String getStringProp() { + return this.stringProp; + } + + @Override + public software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { + return this.nestedStruct; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"stringProp\\", om.valueToTree(this.getStringProp())); + if (this.getNestedStruct() != null) { + data.set(\\"nestedStruct\\", om.valueToTree(this.getNestedStruct())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.RootStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + RootStruct.Jsii$Proxy that = (RootStruct.Jsii$Proxy) o; + + if (!stringProp.equals(that.stringProp)) return false; + return this.nestedStruct != null ? this.nestedStruct.equals(that.nestedStruct) : that.nestedStruct == null; + } + + @Override + public int hashCode() { + int result = this.stringProp.hashCode(); + result = 31 * result + (this.nestedStruct != null ? this.nestedStruct.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RootStructValidator\\") +public class RootStructValidator extends software.amazon.jsii.JsiiObject { + + protected RootStructValidator(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected RootStructValidator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param struct This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.RootStruct struct) { + software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, \\"validate\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RuntimeTypeChecking\\") +public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { + + protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public RuntimeTypeChecking() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + * @param arg2 + * @param arg3 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { + this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2, arg3 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + * @param arg2 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2) { + this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2 }); + } + + /** + * EXPERIMENTAL + *

+ * @param arg1 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1) { + this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1 }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithDefaultedArguments() { + this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + *

+ * @param arg + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithOptionalAnyArgument(final @org.jetbrains.annotations.Nullable java.lang.Object arg) { + this.jsiiCall(\\"methodWithOptionalAnyArgument\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithOptionalAnyArgument() { + this.jsiiCall(\\"methodWithOptionalAnyArgument\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * Used to verify verification of number of method arguments. + *

+ * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 This parameter is required. + * @param arg3 + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { + this.jsiiCall(\\"methodWithOptionalArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\"), arg3 }); + } + + /** + * Used to verify verification of number of method arguments. + *

+ * EXPERIMENTAL + *

+ * @param arg1 This parameter is required. + * @param arg2 This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { + this.jsiiCall(\\"methodWithOptionalArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SecondLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(SecondLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * It's long and required. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getDeeperRequiredProp(); + + /** + * It's long, but you'll almost never pass it. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getDeeperOptionalProp() { + return null; + } + + /** + * @return a {@link Builder} of {@link SecondLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link SecondLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String deeperRequiredProp; + private java.lang.String deeperOptionalProp; + + /** + * Sets the value of {@link SecondLevelStruct#getDeeperRequiredProp} + * @param deeperRequiredProp It's long and required. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder deeperRequiredProp(java.lang.String deeperRequiredProp) { + this.deeperRequiredProp = deeperRequiredProp; + return this; + } + + /** + * Sets the value of {@link SecondLevelStruct#getDeeperOptionalProp} + * @param deeperOptionalProp It's long, but you'll almost never pass it. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder deeperOptionalProp(java.lang.String deeperOptionalProp) { + this.deeperOptionalProp = deeperOptionalProp; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link SecondLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public SecondLevelStruct build() { + return new Jsii$Proxy(deeperRequiredProp, deeperOptionalProp); + } + } + + /** + * An implementation for {@link SecondLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SecondLevelStruct { + private final java.lang.String deeperRequiredProp; + private final java.lang.String deeperOptionalProp; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.deeperRequiredProp = this.jsiiGet(\\"deeperRequiredProp\\", java.lang.String.class); + this.deeperOptionalProp = this.jsiiGet(\\"deeperOptionalProp\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String deeperRequiredProp, final java.lang.String deeperOptionalProp) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.deeperRequiredProp = java.util.Objects.requireNonNull(deeperRequiredProp, \\"deeperRequiredProp is required\\"); + this.deeperOptionalProp = deeperOptionalProp; + } + + @Override + public java.lang.String getDeeperRequiredProp() { + return this.deeperRequiredProp; + } + + @Override + public java.lang.String getDeeperOptionalProp() { + return this.deeperOptionalProp; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"deeperRequiredProp\\", om.valueToTree(this.getDeeperRequiredProp())); + if (this.getDeeperOptionalProp() != null) { + data.set(\\"deeperOptionalProp\\", om.valueToTree(this.getDeeperOptionalProp())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SecondLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + SecondLevelStruct.Jsii$Proxy that = (SecondLevelStruct.Jsii$Proxy) o; + + if (!deeperRequiredProp.equals(that.deeperRequiredProp)) return false; + return this.deeperOptionalProp != null ? this.deeperOptionalProp.equals(that.deeperOptionalProp) : that.deeperOptionalProp == null; + } + + @Override + public int hashCode() { + int result = this.deeperRequiredProp.hashCode(); + result = 31 * result + (this.deeperOptionalProp != null ? this.deeperOptionalProp.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Test that a single instance can be returned under two different FQNs. + *

+ * JSII clients can instantiate 2 different strongly-typed wrappers for the same + * object. Unfortunately, this will break object equality, but if we didn't do + * this it would break runtime type checks in the JVM or CLR. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingleInstanceTwoTypes\\") +public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { + + protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public SingleInstanceTwoTypes() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.InbetweenClass interface1() { + return this.jsiiCall(\\"interface1\\", software.amazon.jsii.tests.calculator.InbetweenClass.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface interface2() { + return this.jsiiCall(\\"interface2\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that singleton enums are handled correctly. + *

+ * https://github.com/aws/jsii/issues/231 + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonInt\\") +public class SingletonInt extends software.amazon.jsii.JsiiObject { + + protected SingletonInt(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SingletonInt(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonInt(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + return this.jsiiCall(\\"isSingletonInt\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * A singleton integer. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonIntEnum\\") +public enum SingletonIntEnum { + /** + * Elite! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + SINGLETON_INT, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that singleton enums are handled correctly. + *

+ * https://github.com/aws/jsii/issues/231 + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonString\\") +public class SingletonString extends software.amazon.jsii.JsiiObject { + + protected SingletonString(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SingletonString(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonString(final @org.jetbrains.annotations.NotNull java.lang.String value) { + return this.jsiiCall(\\"isSingletonString\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * A singleton string. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonStringEnum\\") +public enum SingletonStringEnum { + /** + * 1337. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + SINGLETON_STRING, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SmellyStruct\\") +@software.amazon.jsii.Jsii.Proxy(SmellyStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getProperty(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getYetAnoterOne(); + + /** + * @return a {@link Builder} of {@link SmellyStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link SmellyStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String property; + private java.lang.Boolean yetAnoterOne; + + /** + * Sets the value of {@link SmellyStruct#getProperty} + * @param property the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder property(java.lang.String property) { + this.property = property; + return this; + } + + /** + * Sets the value of {@link SmellyStruct#getYetAnoterOne} + * @param yetAnoterOne the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder yetAnoterOne(java.lang.Boolean yetAnoterOne) { + this.yetAnoterOne = yetAnoterOne; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link SmellyStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public SmellyStruct build() { + return new Jsii$Proxy(property, yetAnoterOne); + } + } + + /** + * An implementation for {@link SmellyStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SmellyStruct { + private final java.lang.String property; + private final java.lang.Boolean yetAnoterOne; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.property = this.jsiiGet(\\"property\\", java.lang.String.class); + this.yetAnoterOne = this.jsiiGet(\\"yetAnoterOne\\", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String property, final java.lang.Boolean yetAnoterOne) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.property = java.util.Objects.requireNonNull(property, \\"property is required\\"); + this.yetAnoterOne = java.util.Objects.requireNonNull(yetAnoterOne, \\"yetAnoterOne is required\\"); + } + + @Override + public java.lang.String getProperty() { + return this.property; + } + + @Override + public java.lang.Boolean getYetAnoterOne() { + return this.yetAnoterOne; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"property\\", om.valueToTree(this.getProperty())); + data.set(\\"yetAnoterOne\\", om.valueToTree(this.getYetAnoterOne())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SmellyStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + SmellyStruct.Jsii$Proxy that = (SmellyStruct.Jsii$Proxy) o; + + if (!property.equals(that.property)) return false; + return this.yetAnoterOne.equals(that.yetAnoterOne); + } + + @Override + public int hashCode() { + int result = this.property.hashCode(); + result = 31 * result + (this.yetAnoterOne.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SomeTypeJsii976\\") +public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { + + protected SomeTypeJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SomeTypeJsii976(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public SomeTypeJsii976() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Object returnAnonymous() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, \\"returnAnonymous\\", java.lang.Object.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnJsii976 returnReturn() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, \\"returnReturn\\", software.amazon.jsii.tests.calculator.IReturnJsii976.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableClass\\") +public class StableClass extends software.amazon.jsii.JsiiObject { + + protected StableClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected StableClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * @param readonlyString This parameter is required. + * @param mutableNumber + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + } + + /** + * @param readonlyString This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public void method() { + this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { + return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { + return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { + this.jsiiSet(\\"mutableProperty\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableEnum\\") +public enum StableEnum { + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + OPTION_A, + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + OPTION_B, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableStruct\\") +@software.amazon.jsii.Jsii.Proxy(StableStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +public interface StableStruct extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); + + /** + * @return a {@link Builder} of {@link StableStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StableStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String readonlyProperty; + + /** + * Sets the value of {@link StableStruct#getReadonlyProperty} + * @param readonlyProperty the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public Builder readonlyProperty(java.lang.String readonlyProperty) { + this.readonlyProperty = readonlyProperty; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StableStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @Override + public StableStruct build() { + return new Jsii$Proxy(readonlyProperty); + } + } + + /** + * An implementation for {@link StableStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StableStruct { + private final java.lang.String readonlyProperty; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String readonlyProperty) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + } + + @Override + public java.lang.String getReadonlyProperty() { + return this.readonlyProperty; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StableStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StableStruct.Jsii$Proxy that = (StableStruct.Jsii$Proxy) o; + + return this.readonlyProperty.equals(that.readonlyProperty); + } + + @Override + public int hashCode() { + int result = this.readonlyProperty.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This is used to validate the ability to use \`this\` from within a static context. + *

+ * https://github.com/awslabs/aws-cdk/issues/2304 + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StaticContext\\") +public class StaticContext extends software.amazon.jsii.JsiiObject { + + protected StaticContext(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean canAccessStaticContext() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, \\"canAccessStaticContext\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean getStaticVariable() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, \\"staticVariable\\", java.lang.Boolean.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void setStaticVariable(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, \\"staticVariable\\", java.util.Objects.requireNonNull(value, \\"staticVariable is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Statics\\") +public class Statics extends software.amazon.jsii.JsiiObject { + + protected Statics(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Statics(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + static { + BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"BAR\\", java.lang.Number.class); + CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"ConstObj\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"Foo\\", java.lang.String.class); + ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"zooBar\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * Jsdocs for static method. + *

+ * EXPERIMENTAL + *

+ * @param name The name of the person to say hello to. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.String staticMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, \\"staticMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, \\"name is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String justMethod() { + return this.jsiiCall(\\"justMethod\\", java.lang.String.class); + } + + /** + * Constants may also use all-caps. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static java.lang.Number BAR; + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static software.amazon.jsii.tests.calculator.DoubleTrouble CONST_OBJ; + + /** + * Jsdocs for static property. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static java.lang.String FOO; + + /** + * Constants can also use camelCase. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static java.util.Map ZOO_BAR; + + /** + * Jsdocs for static getter. + *

+ * Jsdocs for static setter. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics getInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"instance\\", software.amazon.jsii.tests.calculator.Statics.class); + } + + /** + * Jsdocs for static getter. + *

+ * Jsdocs for static setter. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, \\"instance\\", java.util.Objects.requireNonNull(value, \\"instance is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Number getNonConstStatic() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"nonConstStatic\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static void setNonConstStatic(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, \\"nonConstStatic\\", java.util.Objects.requireNonNull(value, \\"nonConstStatic is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getValue() { + return this.jsiiGet(\\"value\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StringEnum\\") +public enum StringEnum { + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + A, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + B, + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + C, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StripInternal\\") +public class StripInternal extends software.amazon.jsii.JsiiObject { + + protected StripInternal(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected StripInternal(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public StripInternal() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getYouSeeMe() { + return this.jsiiGet(\\"youSeeMe\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setYouSeeMe(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"youSeeMe\\", java.util.Objects.requireNonNull(value, \\"youSeeMe is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * We can serialize and deserialize structs without silently ignoring optional fields. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructA\\") +@software.amazon.jsii.Jsii.Proxy(StructA.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface StructA extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getRequiredString(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Number getOptionalNumber() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getOptionalString() { + return null; + } + + /** + * @return a {@link Builder} of {@link StructA} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructA} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String requiredString; + private java.lang.Number optionalNumber; + private java.lang.String optionalString; + + /** + * Sets the value of {@link StructA#getRequiredString} + * @param requiredString the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder requiredString(java.lang.String requiredString) { + this.requiredString = requiredString; + return this; + } + + /** + * Sets the value of {@link StructA#getOptionalNumber} + * @param optionalNumber the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalNumber(java.lang.Number optionalNumber) { + this.optionalNumber = optionalNumber; + return this; + } + + /** + * Sets the value of {@link StructA#getOptionalString} + * @param optionalString the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalString(java.lang.String optionalString) { + this.optionalString = optionalString; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructA} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public StructA build() { + return new Jsii$Proxy(requiredString, optionalNumber, optionalString); + } + } + + /** + * An implementation for {@link StructA} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructA { + private final java.lang.String requiredString; + private final java.lang.Number optionalNumber; + private final java.lang.String optionalString; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.requiredString = this.jsiiGet(\\"requiredString\\", java.lang.String.class); + this.optionalNumber = this.jsiiGet(\\"optionalNumber\\", java.lang.Number.class); + this.optionalString = this.jsiiGet(\\"optionalString\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Number optionalNumber, final java.lang.String optionalString) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.requiredString = java.util.Objects.requireNonNull(requiredString, \\"requiredString is required\\"); + this.optionalNumber = optionalNumber; + this.optionalString = optionalString; + } + + @Override + public java.lang.String getRequiredString() { + return this.requiredString; + } + + @Override + public java.lang.Number getOptionalNumber() { + return this.optionalNumber; + } + + @Override + public java.lang.String getOptionalString() { + return this.optionalString; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"requiredString\\", om.valueToTree(this.getRequiredString())); + if (this.getOptionalNumber() != null) { + data.set(\\"optionalNumber\\", om.valueToTree(this.getOptionalNumber())); + } + if (this.getOptionalString() != null) { + data.set(\\"optionalString\\", om.valueToTree(this.getOptionalString())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructA\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructA.Jsii$Proxy that = (StructA.Jsii$Proxy) o; + + if (!requiredString.equals(that.requiredString)) return false; + if (this.optionalNumber != null ? !this.optionalNumber.equals(that.optionalNumber) : that.optionalNumber != null) return false; + return this.optionalString != null ? this.optionalString.equals(that.optionalString) : that.optionalString == null; + } + + @Override + public int hashCode() { + int result = this.requiredString.hashCode(); + result = 31 * result + (this.optionalNumber != null ? this.optionalNumber.hashCode() : 0); + result = 31 * result + (this.optionalString != null ? this.optionalString.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructB\\") +@software.amazon.jsii.Jsii.Proxy(StructB.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface StructB extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getRequiredString(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Boolean getOptionalBoolean() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { + return null; + } + + /** + * @return a {@link Builder} of {@link StructB} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructB} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String requiredString; + private java.lang.Boolean optionalBoolean; + private software.amazon.jsii.tests.calculator.StructA optionalStructA; + + /** + * Sets the value of {@link StructB#getRequiredString} + * @param requiredString the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder requiredString(java.lang.String requiredString) { + this.requiredString = requiredString; + return this; + } + + /** + * Sets the value of {@link StructB#getOptionalBoolean} + * @param optionalBoolean the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalBoolean(java.lang.Boolean optionalBoolean) { + this.optionalBoolean = optionalBoolean; + return this; + } + + /** + * Sets the value of {@link StructB#getOptionalStructA} + * @param optionalStructA the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optionalStructA(software.amazon.jsii.tests.calculator.StructA optionalStructA) { + this.optionalStructA = optionalStructA; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructB} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public StructB build() { + return new Jsii$Proxy(requiredString, optionalBoolean, optionalStructA); + } + } + + /** + * An implementation for {@link StructB} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructB { + private final java.lang.String requiredString; + private final java.lang.Boolean optionalBoolean; + private final software.amazon.jsii.tests.calculator.StructA optionalStructA; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.requiredString = this.jsiiGet(\\"requiredString\\", java.lang.String.class); + this.optionalBoolean = this.jsiiGet(\\"optionalBoolean\\", java.lang.Boolean.class); + this.optionalStructA = this.jsiiGet(\\"optionalStructA\\", software.amazon.jsii.tests.calculator.StructA.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.StructA optionalStructA) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.requiredString = java.util.Objects.requireNonNull(requiredString, \\"requiredString is required\\"); + this.optionalBoolean = optionalBoolean; + this.optionalStructA = optionalStructA; + } + + @Override + public java.lang.String getRequiredString() { + return this.requiredString; + } + + @Override + public java.lang.Boolean getOptionalBoolean() { + return this.optionalBoolean; + } + + @Override + public software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { + return this.optionalStructA; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"requiredString\\", om.valueToTree(this.getRequiredString())); + if (this.getOptionalBoolean() != null) { + data.set(\\"optionalBoolean\\", om.valueToTree(this.getOptionalBoolean())); + } + if (this.getOptionalStructA() != null) { + data.set(\\"optionalStructA\\", om.valueToTree(this.getOptionalStructA())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructB\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructB.Jsii$Proxy that = (StructB.Jsii$Proxy) o; + + if (!requiredString.equals(that.requiredString)) return false; + if (this.optionalBoolean != null ? !this.optionalBoolean.equals(that.optionalBoolean) : that.optionalBoolean != null) return false; + return this.optionalStructA != null ? this.optionalStructA.equals(that.optionalStructA) : that.optionalStructA == null; + } + + @Override + public int hashCode() { + int result = this.requiredString.hashCode(); + result = 31 * result + (this.optionalBoolean != null ? this.optionalBoolean.hashCode() : 0); + result = 31 * result + (this.optionalStructA != null ? this.optionalStructA.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + *

+ * See: https://github.com/aws/aws-cdk/issues/4302 + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructParameterType\\") +@software.amazon.jsii.Jsii.Proxy(StructParameterType.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface StructParameterType extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getScope(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Boolean getProps() { + return null; + } + + /** + * @return a {@link Builder} of {@link StructParameterType} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructParameterType} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String scope; + private java.lang.Boolean props; + + /** + * Sets the value of {@link StructParameterType#getScope} + * @param scope the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder scope(java.lang.String scope) { + this.scope = scope; + return this; + } + + /** + * Sets the value of {@link StructParameterType#getProps} + * @param props the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder props(java.lang.Boolean props) { + this.props = props; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructParameterType} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public StructParameterType build() { + return new Jsii$Proxy(scope, props); + } + } + + /** + * An implementation for {@link StructParameterType} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructParameterType { + private final java.lang.String scope; + private final java.lang.Boolean props; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.scope = this.jsiiGet(\\"scope\\", java.lang.String.class); + this.props = this.jsiiGet(\\"props\\", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String scope, final java.lang.Boolean props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.scope = java.util.Objects.requireNonNull(scope, \\"scope is required\\"); + this.props = props; + } + + @Override + public java.lang.String getScope() { + return this.scope; + } + + @Override + public java.lang.Boolean getProps() { + return this.props; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"scope\\", om.valueToTree(this.getScope())); + if (this.getProps() != null) { + data.set(\\"props\\", om.valueToTree(this.getProps())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructParameterType\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructParameterType.Jsii$Proxy that = (StructParameterType.Jsii$Proxy) o; + + if (!scope.equals(that.scope)) return false; + return this.props != null ? this.props.equals(that.props) : that.props == null; + } + + @Override + public int hashCode() { + int result = this.scope.hashCode(); + result = 31 * result + (this.props != null ? this.props.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Just because we can. + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructPassing\\") +public class StructPassing extends software.amazon.jsii.JsiiObject { + + protected StructPassing(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected StructPassing(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public StructPassing() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * @param _positional This parameter is required. + * @param inputs This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct... inputs) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, \\"howManyVarArgsDidIPass\\", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, \\"_positional is required\\") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); + } + + /** + * @param _positional This parameter is required. + * @param input This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct input) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, \\"roundTrip\\", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, \\"_positional is required\\"), java.util.Objects.requireNonNull(input, \\"input is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructUnionConsumer\\") +public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { + + protected StructUnionConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param struct This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructA(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, \\"isStructA\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param struct This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructB(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, \\"isStructB\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructWithJavaReservedWords\\") +@software.amazon.jsii.Jsii.Proxy(StructWithJavaReservedWords.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getDefaultValue(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getAssertValue() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getResult() { + return null; + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getThat() { + return null; + } + + /** + * @return a {@link Builder} of {@link StructWithJavaReservedWords} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructWithJavaReservedWords} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String defaultValue; + private java.lang.String assertValue; + private java.lang.String result; + private java.lang.String that; + + /** + * Sets the value of {@link StructWithJavaReservedWords#getDefaultValue} + * @param defaultValue the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder defaultValue(java.lang.String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Sets the value of {@link StructWithJavaReservedWords#getAssertValue} + * @param assertValue the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder assertValue(java.lang.String assertValue) { + this.assertValue = assertValue; + return this; + } + + /** + * Sets the value of {@link StructWithJavaReservedWords#getResult} + * @param result the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder result(java.lang.String result) { + this.result = result; + return this; + } + + /** + * Sets the value of {@link StructWithJavaReservedWords#getThat} + * @param that the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder that(java.lang.String that) { + this.that = that; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructWithJavaReservedWords} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public StructWithJavaReservedWords build() { + return new Jsii$Proxy(defaultValue, assertValue, result, that); + } + } + + /** + * An implementation for {@link StructWithJavaReservedWords} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithJavaReservedWords { + private final java.lang.String defaultValue; + private final java.lang.String assertValue; + private final java.lang.String result; + private final java.lang.String that; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.defaultValue = this.jsiiGet(\\"default\\", java.lang.String.class); + this.assertValue = this.jsiiGet(\\"assert\\", java.lang.String.class); + this.result = this.jsiiGet(\\"result\\", java.lang.String.class); + this.that = this.jsiiGet(\\"that\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String defaultValue, final java.lang.String assertValue, final java.lang.String result, final java.lang.String that) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.defaultValue = java.util.Objects.requireNonNull(defaultValue, \\"defaultValue is required\\"); + this.assertValue = assertValue; + this.result = result; + this.that = that; + } + + @Override + public java.lang.String getDefaultValue() { + return this.defaultValue; + } + + @Override + public java.lang.String getAssertValue() { + return this.assertValue; + } + + @Override + public java.lang.String getResult() { + return this.result; + } + + @Override + public java.lang.String getThat() { + return this.that; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"default\\", om.valueToTree(this.getDefaultValue())); + if (this.getAssertValue() != null) { + data.set(\\"assert\\", om.valueToTree(this.getAssertValue())); + } + if (this.getResult() != null) { + data.set(\\"result\\", om.valueToTree(this.getResult())); + } + if (this.getThat() != null) { + data.set(\\"that\\", om.valueToTree(this.getThat())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructWithJavaReservedWords\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructWithJavaReservedWords.Jsii$Proxy that = (StructWithJavaReservedWords.Jsii$Proxy) o; + + if (!defaultValue.equals(that.defaultValue)) return false; + if (this.assertValue != null ? !this.assertValue.equals(that.assertValue) : that.assertValue != null) return false; + if (this.result != null ? !this.result.equals(that.result) : that.result != null) return false; + return this.that != null ? this.that.equals(that.that) : that.that == null; + } + + @Override + public int hashCode() { + int result = this.defaultValue.hashCode(); + result = 31 * result + (this.assertValue != null ? this.assertValue.hashCode() : 0); + result = 31 * result + (this.result != null ? this.result.hashCode() : 0); + result = 31 * result + (this.that != null ? this.that.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * An operation that sums multiple values. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Sum\\") +public class Sum extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { + + protected Sum(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Sum(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Sum() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * The expression that this operation consists of. + *

+ * Must be implemented by derived classes. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { + return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * The parts to sum. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getParts() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"parts\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); + } + + /** + * The parts to sum. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setParts(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"parts\\", java.util.Objects.requireNonNull(value, \\"parts is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilder\\") +public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps { + + protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param id some identifier. This parameter is required. + * @param defaultBar the default value of \`bar\`. + * @param props some props once can provide. + * @param rest a variadic continuation. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, \\"id is required\\"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); + } + + /** + * some identifier. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getId() { + return this.jsiiGet(\\"id\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getRest() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"rest\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + * @param id some identifier. This parameter is required. + * @param defaultBar the default value of \`bar\`. + * @param rest a variadic continuation. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { + return new Builder(id, defaultBar, rest); + } + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + * @param id some identifier. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create(final java.lang.Number id) { + return new Builder(id, null, null); + } + + private final java.lang.Number id; + private final java.lang.Number defaultBar; + private final java.lang.String[] rest; + private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; + + private Builder(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { + this.id = id; + this.defaultBar = defaultBar; + this.rest = rest; + } + + /** + * Some number, like 42. + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param bar Some number, like 42. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(final java.lang.Number bar) { + this.props().bar(bar); + return this; + } + + /** + * An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + *

+ * But here we are, doing it like we didn't care. + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param id An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder id(final java.lang.String id) { + this.props().id(id); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder build() { + return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder( + this.id, + this.defaultBar, + this.props != null ? this.props.build() : null, + this.rest + ); + } + + private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props() { + if (this.props == null) { + this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); + } + return this.props; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilderProps\\") +@software.amazon.jsii.Jsii.Proxy(SupportsNiceJavaBuilderProps.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiSerializable { + + /** + * Some number, like 42. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getBar(); + + /** + * An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + *

+ * But here we are, doing it like we didn't care. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getId() { + return null; + } + + /** + * @return a {@link Builder} of {@link SupportsNiceJavaBuilderProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link SupportsNiceJavaBuilderProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number bar; + private java.lang.String id; + + /** + * Sets the value of {@link SupportsNiceJavaBuilderProps#getBar} + * @param bar Some number, like 42. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(java.lang.Number bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link SupportsNiceJavaBuilderProps#getId} + * @param id An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + * But here we are, doing it like we didn't care. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder id(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link SupportsNiceJavaBuilderProps} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public SupportsNiceJavaBuilderProps build() { + return new Jsii$Proxy(bar, id); + } + } + + /** + * An implementation for {@link SupportsNiceJavaBuilderProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SupportsNiceJavaBuilderProps { + private final java.lang.Number bar; + private final java.lang.String id; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bar = this.jsiiGet(\\"bar\\", java.lang.Number.class); + this.id = this.jsiiGet(\\"id\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number bar, final java.lang.String id) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.id = id; + } + + @Override + public java.lang.Number getBar() { + return this.bar; + } + + @Override + public java.lang.String getId() { + return this.id; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"bar\\", om.valueToTree(this.getBar())); + if (this.getId() != null) { + data.set(\\"id\\", om.valueToTree(this.getId())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SupportsNiceJavaBuilderProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + SupportsNiceJavaBuilderProps.Jsii$Proxy that = (SupportsNiceJavaBuilderProps.Jsii$Proxy) o; + + if (!bar.equals(that.bar)) return false; + return this.id != null ? this.id.equals(that.id) : that.id == null; + } + + @Override + public int hashCode() { + int result = this.bar.hashCode(); + result = 31 * result + (this.id != null ? this.id.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\") +public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.jsii.JsiiObject { + + protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param id some identifier of your choice. This parameter is required. + * @param props some properties. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, \\"id is required\\"), java.util.Objects.requireNonNull(props, \\"props is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getBar() { + return this.jsiiGet(\\"bar\\", java.lang.Number.class); + } + + /** + * some identifier of your choice. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getId() { + return this.jsiiGet(\\"id\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.String getPropId() { + return this.jsiiGet(\\"propId\\", java.lang.String.class); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + * @param id some identifier of your choice. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create(final java.lang.Number id) { + return new Builder(id); + } + + private final java.lang.Number id; + private final software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; + + private Builder(final java.lang.Number id) { + this.id = id; + this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); + } + + /** + * Some number, like 42. + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param bar Some number, like 42. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(final java.lang.Number bar) { + this.props.bar(bar); + return this; + } + + /** + * An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + *

+ * But here we are, doing it like we didn't care. + *

+ * EXPERIMENTAL + *

+ * @return {@code this} + * @param id An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder id(final java.lang.String id) { + this.props.id(id); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps build() { + return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps( + this.id, + this.props.build() + ); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SyncVirtualMethods\\") +public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { + + protected SyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected SyncVirtualMethods(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public SyncVirtualMethods() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number callerIsAsync() { + return this.jsiiAsyncCall(\\"callerIsAsync\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number callerIsMethod() { + return this.jsiiCall(\\"callerIsMethod\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void modifyOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiCall(\\"modifyOtherProperty\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void modifyValueOfTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiCall(\\"modifyValueOfTheProperty\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number readA() { + return this.jsiiCall(\\"readA\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String retrieveOtherProperty() { + return this.jsiiCall(\\"retrieveOtherProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String retrieveReadOnlyProperty() { + return this.jsiiCall(\\"retrieveReadOnlyProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String retrieveValueOfTheProperty() { + return this.jsiiCall(\\"retrieveValueOfTheProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + *

+ * @param n This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number virtualMethod(final @org.jetbrains.annotations.NotNull java.lang.Number n) { + return this.jsiiCall(\\"virtualMethod\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(n, \\"n is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void writeA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiCall(\\"writeA\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { + return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getA() { + return this.jsiiGet(\\"a\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getCallerIsProperty() { + return this.jsiiGet(\\"callerIsProperty\\", java.lang.Number.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setCallerIsProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { + this.jsiiSet(\\"callerIsProperty\\", java.util.Objects.requireNonNull(value, \\"callerIsProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getOtherProperty() { + return this.jsiiGet(\\"otherProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"otherProperty\\", java.util.Objects.requireNonNull(value, \\"otherProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getTheProperty() { + return this.jsiiGet(\\"theProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"theProperty\\", java.util.Objects.requireNonNull(value, \\"theProperty is required\\")); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getValueOfOtherProperty() { + return this.jsiiGet(\\"valueOfOtherProperty\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setValueOfOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"valueOfOtherProperty\\", java.util.Objects.requireNonNull(value, \\"valueOfOtherProperty is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Thrower\\") +public class Thrower extends software.amazon.jsii.JsiiObject { + + protected Thrower(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Thrower(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Thrower() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void throwError() { + this.jsiiCall(\\"throwError\\", software.amazon.jsii.NativeType.VOID); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.TopLevelStruct\\") +@software.amazon.jsii.Jsii.Proxy(TopLevelStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * This is a required field. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getRequired(); + + /** + * A union to really stress test our serialization. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Object getSecondLevel(); + + /** + * You don't have to pass this. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getOptional() { + return null; + } + + /** + * @return a {@link Builder} of {@link TopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link TopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String required; + private java.lang.Object secondLevel; + private java.lang.String optional; + + /** + * Sets the value of {@link TopLevelStruct#getRequired} + * @param required This is a required field. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder required(java.lang.String required) { + this.required = required; + return this; + } + + /** + * Sets the value of {@link TopLevelStruct#getSecondLevel} + * @param secondLevel A union to really stress test our serialization. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder secondLevel(java.lang.Number secondLevel) { + this.secondLevel = secondLevel; + return this; + } + + /** + * Sets the value of {@link TopLevelStruct#getSecondLevel} + * @param secondLevel A union to really stress test our serialization. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder secondLevel(software.amazon.jsii.tests.calculator.SecondLevelStruct secondLevel) { + this.secondLevel = secondLevel; + return this; + } + + /** + * Sets the value of {@link TopLevelStruct#getOptional} + * @param optional You don't have to pass this. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder optional(java.lang.String optional) { + this.optional = optional; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link TopLevelStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public TopLevelStruct build() { + return new Jsii$Proxy(required, secondLevel, optional); + } + } + + /** + * An implementation for {@link TopLevelStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TopLevelStruct { + private final java.lang.String required; + private final java.lang.Object secondLevel; + private final java.lang.String optional; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.required = this.jsiiGet(\\"required\\", java.lang.String.class); + this.secondLevel = this.jsiiGet(\\"secondLevel\\", java.lang.Object.class); + this.optional = this.jsiiGet(\\"optional\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String required, final java.lang.Object secondLevel, final java.lang.String optional) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.required = java.util.Objects.requireNonNull(required, \\"required is required\\"); + this.secondLevel = java.util.Objects.requireNonNull(secondLevel, \\"secondLevel is required\\"); + this.optional = optional; + } + + @Override + public java.lang.String getRequired() { + return this.required; + } + + @Override + public java.lang.Object getSecondLevel() { + return this.secondLevel; + } + + @Override + public java.lang.String getOptional() { + return this.optional; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"required\\", om.valueToTree(this.getRequired())); + data.set(\\"secondLevel\\", om.valueToTree(this.getSecondLevel())); + if (this.getOptional() != null) { + data.set(\\"optional\\", om.valueToTree(this.getOptional())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.TopLevelStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + TopLevelStruct.Jsii$Proxy that = (TopLevelStruct.Jsii$Proxy) o; + + if (!required.equals(that.required)) return false; + if (!secondLevel.equals(that.secondLevel)) return false; + return this.optional != null ? this.optional.equals(that.optional) : that.optional == null; + } + + @Override + public int hashCode() { + int result = this.required.hashCode(); + result = 31 * result + (this.secondLevel.hashCode()); + result = 31 * result + (this.optional != null ? this.optional.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Checks the current file permissions are cool (no funky UMASK down-scoping happened). + *

+ * EXPERIMENTAL + *

+ * @see https://github.com/aws/jsii/issues/1765 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UmaskCheck\\") +public class UmaskCheck extends software.amazon.jsii.JsiiObject { + + protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * This should return 0o644 (-rw-r--r--). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, \\"mode\\", java.lang.Number.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * An operation on a single operand. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UnaryOperation\\") +public abstract class UnaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation { + + protected UnaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UnaryOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param operand This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected UnaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, \\"operand is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getOperand() { + return this.jsiiGet(\\"operand\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.UnaryOperation { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * The value. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UnionProperties\\") +@software.amazon.jsii.Jsii.Proxy(UnionProperties.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Object getBar(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.Object getFoo() { + return null; + } + + /** + * @return a {@link Builder} of {@link UnionProperties} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link UnionProperties} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Object bar; + private java.lang.Object foo; + + /** + * Sets the value of {@link UnionProperties#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(java.lang.String bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link UnionProperties#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(java.lang.Number bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link UnionProperties#getBar} + * @param bar the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bar(software.amazon.jsii.tests.calculator.AllTypes bar) { + this.bar = bar; + return this; + } + + /** + * Sets the value of {@link UnionProperties#getFoo} + * @param foo the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.String foo) { + this.foo = foo; + return this; + } + + /** + * Sets the value of {@link UnionProperties#getFoo} + * @param foo the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.Number foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link UnionProperties} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public UnionProperties build() { + return new Jsii$Proxy(bar, foo); + } + } + + /** + * An implementation for {@link UnionProperties} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements UnionProperties { + private final java.lang.Object bar; + private final java.lang.Object foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bar = this.jsiiGet(\\"bar\\", java.lang.Object.class); + this.foo = this.jsiiGet(\\"foo\\", java.lang.Object.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Object bar, final java.lang.Object foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.foo = foo; + } + + @Override + public java.lang.Object getBar() { + return this.bar; + } + + @Override + public java.lang.Object getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"bar\\", om.valueToTree(this.getBar())); + if (this.getFoo() != null) { + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + } + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.UnionProperties\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + UnionProperties.Jsii$Proxy that = (UnionProperties.Jsii$Proxy) o; + + if (!bar.equals(that.bar)) return false; + return this.foo != null ? this.foo.equals(that.foo) : that.foo == null; + } + + @Override + public int hashCode() { + int result = this.bar.hashCode(); + result = 31 * result + (this.foo != null ? this.foo.hashCode() : 0); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Ensures submodule-imported types from dependencies can be used correctly. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UpcasingReflectable\\") +public class UpcasingReflectable extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable { + + protected UpcasingReflectable(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UpcasingReflectable(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + static { + REFLECTOR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.UpcasingReflectable.class, \\"reflector\\", software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector.class); + } + + /** + * EXPERIMENTAL + *

+ * @param delegate This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public UpcasingReflectable(final @org.jetbrains.annotations.NotNull java.util.Map delegate) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector REFLECTOR; + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getEntries() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"entries\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UseBundledDependency\\") +public class UseBundledDependency extends software.amazon.jsii.JsiiObject { + + protected UseBundledDependency(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UseBundledDependency(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public UseBundledDependency() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Object value() { + return this.jsiiCall(\\"value\\", java.lang.Object.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UseCalcBase\\") +public class UseCalcBase extends software.amazon.jsii.JsiiObject { + + protected UseCalcBase(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UseCalcBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public UseCalcBase() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.base.Base hello() { + return this.jsiiCall(\\"hello\\", software.amazon.jsii.tests.calculator.base.Base.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UsesInterfaceWithProperties\\") +public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject { + + protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param obj This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties obj) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String justRead() { + return this.jsiiCall(\\"justRead\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + *

+ * @param ext This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension ext) { + return this.jsiiCall(\\"readStringAndNumber\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, \\"ext is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param value This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String writeAndRead(final @org.jetbrains.annotations.NotNull java.lang.String value) { + return this.jsiiCall(\\"writeAndRead\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties getObj() { + return this.jsiiGet(\\"obj\\", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VariadicInvoker\\") +public class VariadicInvoker extends software.amazon.jsii.JsiiObject { + + protected VariadicInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected VariadicInvoker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param method This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.VariadicMethod method) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, \\"method is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param values This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number... values) { + return java.util.Collections.unmodifiableList(this.jsiiCall(\\"asArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.Arrays.stream(values).toArray(Object[]::new))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VariadicMethod\\") +public class VariadicMethod extends software.amazon.jsii.JsiiObject { + + protected VariadicMethod(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected VariadicMethod(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param prefix a prefix that will be use for all values returned by \`#asArray\`. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public VariadicMethod(final @org.jetbrains.annotations.NotNull java.lang.Number... prefix) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.Arrays.stream(prefix).toArray(Object[]::new)); + } + + /** + * EXPERIMENTAL + *

+ * @param first the first element of the array to be returned (after the \`prefix\` provided at construction time). This parameter is required. + * @param others other elements to be included in the array. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number first, final @org.jetbrains.annotations.NotNull java.lang.Number... others) { + return java.util.Collections.unmodifiableList(this.jsiiCall(\\"asArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(first, \\"first is required\\") }), java.util.Arrays.stream(others)).toArray(Object[]::new))); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VirtualMethodPlayground\\") +public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { + + protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public VirtualMethodPlayground() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + *

+ * @param index This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeAsync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { + return this.jsiiAsyncCall(\\"overrideMeAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, \\"index is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param index This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeSync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { + return this.jsiiCall(\\"overrideMeSync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, \\"index is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param count This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number parallelSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { + return this.jsiiAsyncCall(\\"parallelSumAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param count This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number serialSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { + return this.jsiiAsyncCall(\\"serialSumAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param count This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number sumSync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { + return this.jsiiCall(\\"sumSync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * This test is used to validate the runtimes can return correctly from a void callback. + *

+ *

    + *
  • Implement overrideMe (method does not have to do anything).
  • + *
  • Invoke callMe
  • + *
  • Verify that methodWasCalled is true.
  • + *
+ *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VoidCallback\\") +public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { + + protected VoidCallback(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected VoidCallback(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected VoidCallback() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void callMe() { + this.jsiiCall(\\"callMe\\", software.amazon.jsii.NativeType.VOID); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected abstract void overrideMe(); + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getMethodWasCalled() { + return this.jsiiGet(\\"methodWasCalled\\", java.lang.Boolean.class); + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.VoidCallback { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + protected void overrideMe() { + this.jsiiCall(\\"overrideMe\\", software.amazon.jsii.NativeType.VOID); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * Verifies that private property declarations in constructor arguments are hidden. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.WithPrivatePropertyInConstructor\\") +public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiObject { + + protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param privateField + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public WithPrivatePropertyInConstructor(final @org.jetbrains.annotations.Nullable java.lang.String privateField) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { privateField }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public WithPrivatePropertyInConstructor() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { + return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.composition; + +/** + * Abstract operation composed from an expression of other operations. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.composition.CompositeOperation\\") +public abstract class CompositeOperation extends software.amazon.jsii.tests.calculator.lib.Operation { + + protected CompositeOperation(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected CompositeOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + protected CompositeOperation() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * String representation of the value. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + + /** + * The expression that this operation consists of. + *

+ * Must be implemented by derived classes. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression(); + + /** + * The value. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * A set of postfixes to include in a decorated .toString(). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getDecorationPostfixes() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"decorationPostfixes\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * A set of postfixes to include in a decorated .toString(). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setDecorationPostfixes(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"decorationPostfixes\\", java.util.Objects.requireNonNull(value, \\"decorationPostfixes is required\\")); + } + + /** + * A set of prefixes to include in a decorated .toString(). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.util.List getDecorationPrefixes() { + return java.util.Collections.unmodifiableList(this.jsiiGet(\\"decorationPrefixes\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + } + + /** + * A set of prefixes to include in a decorated .toString(). + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setDecorationPrefixes(final @org.jetbrains.annotations.NotNull java.util.List value) { + this.jsiiSet(\\"decorationPrefixes\\", java.util.Objects.requireNonNull(value, \\"decorationPrefixes is required\\")); + } + + /** + * The .toString() style. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle getStringStyle() { + return this.jsiiGet(\\"stringStyle\\", software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class); + } + + /** + * The .toString() style. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setStringStyle(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle value) { + this.jsiiSet(\\"stringStyle\\", java.util.Objects.requireNonNull(value, \\"stringStyle is required\\")); + } + /** + * Style of .toString() output for CompositeOperation. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\") + public enum CompositionStringStyle { + /** + * Normal string expression. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + NORMAL, + /** + * Decorated string expression. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + DECORATED, + } + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * The expression that this operation consists of. + *

+ * Must be implemented by derived classes. + *

+ * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { + return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + } + + /** + * The value. + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { + return this.jsiiGet(\\"value\\", java.lang.Number.class); + } + + /** + * String representation of the value. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @Override + public @org.jetbrains.annotations.NotNull java.lang.String toString() { + return this.jsiiCall(\\"toString\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedClassHasNoProperties.Base\\") +public class Base extends software.amazon.jsii.JsiiObject { + + protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Base(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Base() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getProp() { + return this.jsiiGet(\\"prop\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { + this.jsiiSet(\\"prop\\", java.util.Objects.requireNonNull(value, \\"prop is required\\")); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedClassHasNoProperties.Derived\\") +public class Derived extends software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base { + + protected Derived(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Derived() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\") +public class Foo extends software.amazon.jsii.JsiiObject { + + protected Foo(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Foo(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Foo() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable java.lang.String getBar() { + return this.jsiiGet(\\"bar\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setBar(final @org.jetbrains.annotations.Nullable java.lang.String value) { + this.jsiiSet(\\"bar\\", value); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\") +@software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface Hello extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); + + /** + * @return a {@link Builder} of {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number foo; + + /** + * Sets the value of {@link Hello#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.Number foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Hello} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public Hello build() { + return new Jsii$Proxy(foo); + } + } + + /** + * An implementation for {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Hello { + private final java.lang.Number foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.foo = this.jsiiGet(\\"foo\\", java.lang.Number.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.lang.Number getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Hello.Jsii$Proxy that = (Hello.Jsii$Proxy) o; + + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.foo.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\") +@software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface Hello extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); + + /** + * @return a {@link Builder} of {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number foo; + + /** + * Sets the value of {@link Hello#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder foo(java.lang.Number foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Hello} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public Hello build() { + return new Jsii$Proxy(foo); + } + } + + /** + * An implementation for {@link Hello} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Hello { + private final java.lang.Number foo; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.foo = this.jsiiGet(\\"foo\\", java.lang.Number.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Number foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + } + + @Override + public java.lang.Number getFoo() { + return this.foo; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"foo\\", om.valueToTree(this.getFoo())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Hello.Jsii$Proxy that = (Hello.Jsii$Proxy) o; + + return this.foo.equals(that.foo); + } + + @Override + public int hashCode() { + int result = this.foo.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java 1`] = ` +Object { + Symbol(file): "/** + *

jsii Calculator

+ *

+ * This library is used to demonstrate and test the features of JSII + *

+ *

How to use running sum API:

+ *

+ * First, create a calculator: + *

+ *

+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * Calculator calculator = new Calculator();
+ * 
+ *

+ * Then call some operations: + *

+ *

+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * calculator.add(10);
+ * 
+ *

+ *

Code Samples

+ *

+ *

+ * // Example automatically generated. See https://github.com/aws/jsii/issues/826
+ * /* This is totes a magic comment in here, just you wait! *{@literal /}
+ * String foo = \\"bar\\";
+ * 
+ */ +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +package software.amazon.jsii.tests.calculator; +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.ClassWithSelf\\") +public class ClassWithSelf extends software.amazon.jsii.JsiiObject { + + protected ClassWithSelf(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithSelf(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param self This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithSelf(final @org.jetbrains.annotations.NotNull java.lang.String self) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + } + + /** + * EXPERIMENTAL + *

+ * @param self This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { + return this.jsiiCall(\\"method\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getSelf() { + return this.jsiiGet(\\"self\\", java.lang.String.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\") +public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { + + protected ClassWithSelfKwarg(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected ClassWithSelfKwarg(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param props This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public ClassWithSelfKwarg(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, \\"props is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf getProps() { + return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.python_self.StructWithSelf.class); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create() { + return new Builder(); + } + + private final software.amazon.jsii.tests.calculator.python_self.StructWithSelf.Builder props; + + private Builder() { + this.props = new software.amazon.jsii.tests.calculator.python_self.StructWithSelf.Builder(); + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param self This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder self(final java.lang.String self) { + this.props.self(self); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg build() { + return new software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg( + this.props.build() + ); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\") +@software.amazon.jsii.Jsii.Proxy(IInterfaceWithSelf.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface IInterfaceWithSelf extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + *

+ * @param self This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.python_self.IInterfaceWithSelf { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + *

+ * @param self This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { + return this.jsiiCall(\\"method\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.StructWithSelf\\") +@software.amazon.jsii.Jsii.Proxy(StructWithSelf.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getSelf(); + + /** + * @return a {@link Builder} of {@link StructWithSelf} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link StructWithSelf} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String self; + + /** + * Sets the value of {@link StructWithSelf#getSelf} + * @param self the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder self(java.lang.String self) { + this.self = self; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link StructWithSelf} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public StructWithSelf build() { + return new Jsii$Proxy(self); + } + } + + /** + * An implementation for {@link StructWithSelf} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithSelf { + private final java.lang.String self; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.self = this.jsiiGet(\\"self\\", java.lang.String.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String self) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.self = java.util.Objects.requireNonNull(self, \\"self is required\\"); + } + + @Override + public java.lang.String getSelf() { + return this.self; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"self\\", om.valueToTree(this.getSelf())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.PythonSelf.StructWithSelf\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + StructWithSelf.Jsii$Proxy that = (StructWithSelf.Jsii$Proxy) o; + + return this.self.equals(that.self); + } + + @Override + public int hashCode() { + int result = this.self.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.MyClass\\") +public class MyClass extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + + protected MyClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected MyClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param props This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public MyClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct props) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, \\"props is required\\") }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Awesomeness getAwesomeness() { + return this.jsiiGet(\\"awesomeness\\", software.amazon.jsii.tests.calculator.submodule.child.Awesomeness.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { + return this.jsiiGet(\\"goodness\\", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct getProps() { + return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes getAllTypes() { + return this.jsiiGet(\\"allTypes\\", software.amazon.jsii.tests.calculator.AllTypes.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) { + this.jsiiSet(\\"allTypes\\", value); + } + + /** + * A fluent builder for {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + /** + * EXPERIMENTAL + *

+ * @return a new instance of {@link Builder}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static Builder create() { + return new Builder(); + } + + private final software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder props; + + private Builder() { + this.props = new software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder(); + } + + /** + * EXPERIMENTAL + *

+ * @return {@code this} + * @param prop This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder prop(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + this.props.prop(prop); + return this; + } + + /** + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public software.amazon.jsii.tests.calculator.submodule.MyClass build() { + return new software.amazon.jsii.tests.calculator.submodule.MyClass( + this.props.build() + ); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.back_references; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.back_references.MyClassReference\\") +@software.amazon.jsii.Jsii.Proxy(MyClassReference.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface MyClassReference extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.MyClass getReference(); + + /** + * @return a {@link Builder} of {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private software.amazon.jsii.tests.calculator.submodule.MyClass reference; + + /** + * Sets the value of {@link MyClassReference#getReference} + * @param reference the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder reference(software.amazon.jsii.tests.calculator.submodule.MyClass reference) { + this.reference = reference; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link MyClassReference} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public MyClassReference build() { + return new Jsii$Proxy(reference); + } + } + + /** + * An implementation for {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MyClassReference { + private final software.amazon.jsii.tests.calculator.submodule.MyClass reference; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.reference = this.jsiiGet(\\"reference\\", software.amazon.jsii.tests.calculator.submodule.MyClass.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.MyClass reference) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.reference = java.util.Objects.requireNonNull(reference, \\"reference is required\\"); + } + + @Override + public software.amazon.jsii.tests.calculator.submodule.MyClass getReference() { + return this.reference; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"reference\\", om.valueToTree(this.getReference())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.back_references.MyClassReference\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + MyClassReference.Jsii$Proxy that = (MyClassReference.Jsii$Proxy) o; + + return this.reference.equals(that.reference); + } + + @Override + public int hashCode() { + int result = this.reference.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Awesomeness\\") +public enum Awesomeness { + /** + * It was awesome! + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + AWESOME, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Goodness\\") +public enum Goodness { + /** + * It's pretty good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + PRETTY_GOOD, + /** + * It's really good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + REALLY_GOOD, + /** + * It's amazingly good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + AMAZINGLY_GOOD, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.InnerClass\\") +public class InnerClass extends software.amazon.jsii.JsiiObject { + + protected InnerClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected InnerClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + static { + STATIC_PROP = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class, \\"staticProp\\", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public InnerClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public final static software.amazon.jsii.tests.calculator.submodule.child.SomeStruct STATIC_PROP; +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.KwargsProps\\") +@software.amazon.jsii.Jsii.Proxy(KwargsProps.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.submodule.child.SomeStruct { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + default @org.jetbrains.annotations.Nullable java.lang.String getExtra() { + return null; + } + + /** + * @return a {@link Builder} of {@link KwargsProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link KwargsProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.String extra; + private software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; + + /** + * Sets the value of {@link KwargsProps#getExtra} + * @param extra the value to be set. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder extra(java.lang.String extra) { + this.extra = extra; + return this; + } + + /** + * Sets the value of {@link KwargsProps#getProp} + * @param prop the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder prop(software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + this.prop = prop; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link KwargsProps} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public KwargsProps build() { + return new Jsii$Proxy(extra, prop); + } + } + + /** + * An implementation for {@link KwargsProps} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements KwargsProps { + private final java.lang.String extra; + private final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.extra = this.jsiiGet(\\"extra\\", java.lang.String.class); + this.prop = this.jsiiGet(\\"prop\\", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.String extra, final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.extra = extra; + this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + } + + @Override + public java.lang.String getExtra() { + return this.extra; + } + + @Override + public software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp() { + return this.prop; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + if (this.getExtra() != null) { + data.set(\\"extra\\", om.valueToTree(this.getExtra())); + } + data.set(\\"prop\\", om.valueToTree(this.getProp())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.KwargsProps\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + KwargsProps.Jsii$Proxy that = (KwargsProps.Jsii$Proxy) o; + + if (this.extra != null ? !this.extra.equals(that.extra) : that.extra != null) return false; + return this.prop.equals(that.prop); + } + + @Override + public int hashCode() { + int result = this.extra != null ? this.extra.hashCode() : 0; + result = 31 * result + (this.prop.hashCode()); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * Checks that classes can self-reference during initialization. + *

+ * EXPERIMENTAL + *

+ * @see : https://github.com/aws/jsii/pull/1706 + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.OuterClass\\") +public class OuterClass extends software.amazon.jsii.JsiiObject { + + protected OuterClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected OuterClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public OuterClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.InnerClass getInnerClass() { + return this.jsiiGet(\\"innerClass\\", software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.SomeEnum\\") +public enum SomeEnum { + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + SOME, +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.SomeStruct\\") +@software.amazon.jsii.Jsii.Proxy(SomeStruct.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp(); + + /** + * @return a {@link Builder} of {@link SomeStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link SomeStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; + + /** + * Sets the value of {@link SomeStruct#getProp} + * @param prop the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder prop(software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + this.prop = prop; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link SomeStruct} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public SomeStruct build() { + return new Jsii$Proxy(prop); + } + } + + /** + * An implementation for {@link SomeStruct} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SomeStruct { + private final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.prop = this.jsiiGet(\\"prop\\", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + } + + @Override + public software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp() { + return this.prop; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"prop\\", om.valueToTree(this.getProp())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.SomeStruct\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + SomeStruct.Jsii$Proxy that = (SomeStruct.Jsii$Proxy) o; + + return this.prop.equals(that.prop); + } + + @Override + public int hashCode() { + int result = this.prop.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Structure\\") +@software.amazon.jsii.Jsii.Proxy(Structure.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface Structure extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getBool(); + + /** + * @return a {@link Builder} of {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Boolean bool; + + /** + * Sets the value of {@link Structure#getBool} + * @param bool the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bool(java.lang.Boolean bool) { + this.bool = bool; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Structure} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public Structure build() { + return new Jsii$Proxy(bool); + } + } + + /** + * An implementation for {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Structure { + private final java.lang.Boolean bool; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bool = this.jsiiGet(\\"bool\\", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Boolean bool) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bool = java.util.Objects.requireNonNull(bool, \\"bool is required\\"); + } + + @Override + public java.lang.Boolean getBool() { + return this.bool; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set(\\"bool\\", om.valueToTree(this.getBool())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.Structure\\")); + struct.set(\\"data\\", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set(\\"$jsii.struct\\", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Structure.Jsii$Proxy that = (Structure.Jsii$Proxy) o; + + return this.bool.equals(that.bool); + } + + @Override + public int hashCode() { + int result = this.bool.hashCode(); + return result; + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.isolated; + +/** + * Ensures imports are correctly registered for kwargs lifted properties from super-structs. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.isolated.Kwargs\\") +public class Kwargs extends software.amazon.jsii.JsiiObject { + + protected Kwargs(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Kwargs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + *

+ * @param props + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean method(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.submodule.child.KwargsProps props) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, \\"method\\", java.lang.Boolean.class, new Object[] { props }); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Boolean method() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, \\"method\\", java.lang.Boolean.class); + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.nested_submodule; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.nested_submodule.Namespaced\\") +public abstract class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + + protected Namespaced(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Namespaced(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { + return this.jsiiGet(\\"goodness\\", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\") +@software.amazon.jsii.Jsii.Proxy(INamespaced.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface INamespaced extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + } + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt 1`] = ` +Object { + Symbol(file): "jsii-calc.AbstractClass=software.amazon.jsii.tests.calculator.AbstractClass +jsii-calc.AbstractClassBase=software.amazon.jsii.tests.calculator.AbstractClassBase +jsii-calc.AbstractClassReturner=software.amazon.jsii.tests.calculator.AbstractClassReturner +jsii-calc.AbstractSuite=software.amazon.jsii.tests.calculator.AbstractSuite +jsii-calc.Add=software.amazon.jsii.tests.calculator.Add +jsii-calc.AllTypes=software.amazon.jsii.tests.calculator.AllTypes +jsii-calc.AllTypesEnum=software.amazon.jsii.tests.calculator.AllTypesEnum +jsii-calc.AllowedMethodNames=software.amazon.jsii.tests.calculator.AllowedMethodNames +jsii-calc.AmbiguousParameters=software.amazon.jsii.tests.calculator.AmbiguousParameters +jsii-calc.AnonymousImplementationProvider=software.amazon.jsii.tests.calculator.AnonymousImplementationProvider +jsii-calc.AsyncVirtualMethods=software.amazon.jsii.tests.calculator.AsyncVirtualMethods +jsii-calc.AugmentableClass=software.amazon.jsii.tests.calculator.AugmentableClass +jsii-calc.BaseJsii976=software.amazon.jsii.tests.calculator.BaseJsii976 +jsii-calc.Bell=software.amazon.jsii.tests.calculator.Bell +jsii-calc.BinaryOperation=software.amazon.jsii.tests.calculator.BinaryOperation +jsii-calc.Calculator=software.amazon.jsii.tests.calculator.Calculator +jsii-calc.CalculatorProps=software.amazon.jsii.tests.calculator.CalculatorProps +jsii-calc.ChildStruct982=software.amazon.jsii.tests.calculator.ChildStruct982 +jsii-calc.ClassThatImplementsTheInternalInterface=software.amazon.jsii.tests.calculator.ClassThatImplementsTheInternalInterface +jsii-calc.ClassThatImplementsThePrivateInterface=software.amazon.jsii.tests.calculator.ClassThatImplementsThePrivateInterface +jsii-calc.ClassWithCollections=software.amazon.jsii.tests.calculator.ClassWithCollections +jsii-calc.ClassWithDocs=software.amazon.jsii.tests.calculator.ClassWithDocs +jsii-calc.ClassWithJavaReservedWords=software.amazon.jsii.tests.calculator.ClassWithJavaReservedWords +jsii-calc.ClassWithMutableObjectLiteralProperty=software.amazon.jsii.tests.calculator.ClassWithMutableObjectLiteralProperty +jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties=software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties +jsii-calc.ConfusingToJackson=software.amazon.jsii.tests.calculator.ConfusingToJackson +jsii-calc.ConfusingToJacksonStruct=software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct +jsii-calc.ConstructorPassesThisOut=software.amazon.jsii.tests.calculator.ConstructorPassesThisOut +jsii-calc.Constructors=software.amazon.jsii.tests.calculator.Constructors +jsii-calc.ConsumePureInterface=software.amazon.jsii.tests.calculator.ConsumePureInterface +jsii-calc.ConsumerCanRingBell=software.amazon.jsii.tests.calculator.ConsumerCanRingBell +jsii-calc.ConsumersOfThisCrazyTypeSystem=software.amazon.jsii.tests.calculator.ConsumersOfThisCrazyTypeSystem +jsii-calc.DataRenderer=software.amazon.jsii.tests.calculator.DataRenderer +jsii-calc.DefaultedConstructorArgument=software.amazon.jsii.tests.calculator.DefaultedConstructorArgument +jsii-calc.Demonstrate982=software.amazon.jsii.tests.calculator.Demonstrate982 +jsii-calc.DeprecatedClass=software.amazon.jsii.tests.calculator.DeprecatedClass +jsii-calc.DeprecatedEnum=software.amazon.jsii.tests.calculator.DeprecatedEnum +jsii-calc.DeprecatedStruct=software.amazon.jsii.tests.calculator.DeprecatedStruct +jsii-calc.DerivedClassHasNoProperties.Base=software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base +jsii-calc.DerivedClassHasNoProperties.Derived=software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Derived +jsii-calc.DerivedStruct=software.amazon.jsii.tests.calculator.DerivedStruct +jsii-calc.DiamondInheritanceBaseLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct +jsii-calc.DiamondInheritanceFirstMidLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct +jsii-calc.DiamondInheritanceSecondMidLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct +jsii-calc.DiamondInheritanceTopLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceTopLevelStruct +jsii-calc.DisappointingCollectionSource=software.amazon.jsii.tests.calculator.DisappointingCollectionSource +jsii-calc.DoNotOverridePrivates=software.amazon.jsii.tests.calculator.DoNotOverridePrivates +jsii-calc.DoNotRecognizeAnyAsOptional=software.amazon.jsii.tests.calculator.DoNotRecognizeAnyAsOptional +jsii-calc.DocumentedClass=software.amazon.jsii.tests.calculator.DocumentedClass +jsii-calc.DontComplainAboutVariadicAfterOptional=software.amazon.jsii.tests.calculator.DontComplainAboutVariadicAfterOptional +jsii-calc.DoubleTrouble=software.amazon.jsii.tests.calculator.DoubleTrouble +jsii-calc.EnumDispenser=software.amazon.jsii.tests.calculator.EnumDispenser +jsii-calc.EraseUndefinedHashValues=software.amazon.jsii.tests.calculator.EraseUndefinedHashValues +jsii-calc.EraseUndefinedHashValuesOptions=software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions +jsii-calc.ExperimentalClass=software.amazon.jsii.tests.calculator.ExperimentalClass +jsii-calc.ExperimentalEnum=software.amazon.jsii.tests.calculator.ExperimentalEnum +jsii-calc.ExperimentalStruct=software.amazon.jsii.tests.calculator.ExperimentalStruct +jsii-calc.ExportedBaseClass=software.amazon.jsii.tests.calculator.ExportedBaseClass +jsii-calc.ExtendsInternalInterface=software.amazon.jsii.tests.calculator.ExtendsInternalInterface +jsii-calc.ExternalClass=software.amazon.jsii.tests.calculator.ExternalClass +jsii-calc.ExternalEnum=software.amazon.jsii.tests.calculator.ExternalEnum +jsii-calc.ExternalStruct=software.amazon.jsii.tests.calculator.ExternalStruct +jsii-calc.GiveMeStructs=software.amazon.jsii.tests.calculator.GiveMeStructs +jsii-calc.Greetee=software.amazon.jsii.tests.calculator.Greetee +jsii-calc.GreetingAugmenter=software.amazon.jsii.tests.calculator.GreetingAugmenter +jsii-calc.IAnonymousImplementationProvider=software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider +jsii-calc.IAnonymouslyImplementMe=software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe +jsii-calc.IAnotherPublicInterface=software.amazon.jsii.tests.calculator.IAnotherPublicInterface +jsii-calc.IBell=software.amazon.jsii.tests.calculator.IBell +jsii-calc.IBellRinger=software.amazon.jsii.tests.calculator.IBellRinger +jsii-calc.IConcreteBellRinger=software.amazon.jsii.tests.calculator.IConcreteBellRinger +jsii-calc.IDeprecatedInterface=software.amazon.jsii.tests.calculator.IDeprecatedInterface +jsii-calc.IExperimentalInterface=software.amazon.jsii.tests.calculator.IExperimentalInterface +jsii-calc.IExtendsPrivateInterface=software.amazon.jsii.tests.calculator.IExtendsPrivateInterface +jsii-calc.IExternalInterface=software.amazon.jsii.tests.calculator.IExternalInterface +jsii-calc.IFriendlier=software.amazon.jsii.tests.calculator.IFriendlier +jsii-calc.IFriendlyRandomGenerator=software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator +jsii-calc.IInterfaceImplementedByAbstractClass=software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass +jsii-calc.IInterfaceThatShouldNotBeADataType=software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType +jsii-calc.IInterfaceWithInternal=software.amazon.jsii.tests.calculator.IInterfaceWithInternal +jsii-calc.IInterfaceWithMethods=software.amazon.jsii.tests.calculator.IInterfaceWithMethods +jsii-calc.IInterfaceWithOptionalMethodArguments=software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments +jsii-calc.IInterfaceWithProperties=software.amazon.jsii.tests.calculator.IInterfaceWithProperties +jsii-calc.IInterfaceWithPropertiesExtension=software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension +jsii-calc.IJSII417Derived=software.amazon.jsii.tests.calculator.IJSII417Derived +jsii-calc.IJSII417PublicBaseOfBase=software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase +jsii-calc.IJsii487External=software.amazon.jsii.tests.calculator.IJsii487External +jsii-calc.IJsii487External2=software.amazon.jsii.tests.calculator.IJsii487External2 +jsii-calc.IJsii496=software.amazon.jsii.tests.calculator.IJsii496 +jsii-calc.IMutableObjectLiteral=software.amazon.jsii.tests.calculator.IMutableObjectLiteral +jsii-calc.INonInternalInterface=software.amazon.jsii.tests.calculator.INonInternalInterface +jsii-calc.IObjectWithProperty=software.amazon.jsii.tests.calculator.IObjectWithProperty +jsii-calc.IOptionalMethod=software.amazon.jsii.tests.calculator.IOptionalMethod +jsii-calc.IPrivatelyImplemented=software.amazon.jsii.tests.calculator.IPrivatelyImplemented +jsii-calc.IPublicInterface=software.amazon.jsii.tests.calculator.IPublicInterface +jsii-calc.IPublicInterface2=software.amazon.jsii.tests.calculator.IPublicInterface2 +jsii-calc.IRandomNumberGenerator=software.amazon.jsii.tests.calculator.IRandomNumberGenerator +jsii-calc.IReturnJsii976=software.amazon.jsii.tests.calculator.IReturnJsii976 +jsii-calc.IReturnsNumber=software.amazon.jsii.tests.calculator.IReturnsNumber +jsii-calc.IStableInterface=software.amazon.jsii.tests.calculator.IStableInterface +jsii-calc.IStructReturningDelegate=software.amazon.jsii.tests.calculator.IStructReturningDelegate +jsii-calc.ImplementInternalInterface=software.amazon.jsii.tests.calculator.ImplementInternalInterface +jsii-calc.Implementation=software.amazon.jsii.tests.calculator.Implementation +jsii-calc.ImplementsInterfaceWithInternal=software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal +jsii-calc.ImplementsInterfaceWithInternalSubclass=software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternalSubclass +jsii-calc.ImplementsPrivateInterface=software.amazon.jsii.tests.calculator.ImplementsPrivateInterface +jsii-calc.ImplictBaseOfBase=software.amazon.jsii.tests.calculator.ImplictBaseOfBase +jsii-calc.InbetweenClass=software.amazon.jsii.tests.calculator.InbetweenClass +jsii-calc.InterfaceCollections=software.amazon.jsii.tests.calculator.InterfaceCollections +jsii-calc.InterfaceInNamespaceIncludesClasses.Foo=software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Foo +jsii-calc.InterfaceInNamespaceIncludesClasses.Hello=software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Hello +jsii-calc.InterfaceInNamespaceOnlyInterface.Hello=software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface.Hello +jsii-calc.InterfacesMaker=software.amazon.jsii.tests.calculator.InterfacesMaker +jsii-calc.Isomorphism=software.amazon.jsii.tests.calculator.Isomorphism +jsii-calc.JSII417Derived=software.amazon.jsii.tests.calculator.JSII417Derived +jsii-calc.JSII417PublicBaseOfBase=software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase +jsii-calc.JSObjectLiteralForInterface=software.amazon.jsii.tests.calculator.JSObjectLiteralForInterface +jsii-calc.JSObjectLiteralToNative=software.amazon.jsii.tests.calculator.JSObjectLiteralToNative +jsii-calc.JSObjectLiteralToNativeClass=software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass +jsii-calc.JavaReservedWords=software.amazon.jsii.tests.calculator.JavaReservedWords +jsii-calc.Jsii487Derived=software.amazon.jsii.tests.calculator.Jsii487Derived +jsii-calc.Jsii496Derived=software.amazon.jsii.tests.calculator.Jsii496Derived +jsii-calc.JsiiAgent=software.amazon.jsii.tests.calculator.JsiiAgent +jsii-calc.JsonFormatter=software.amazon.jsii.tests.calculator.JsonFormatter +jsii-calc.LoadBalancedFargateServiceProps=software.amazon.jsii.tests.calculator.LoadBalancedFargateServiceProps +jsii-calc.MethodNamedProperty=software.amazon.jsii.tests.calculator.MethodNamedProperty +jsii-calc.Multiply=software.amazon.jsii.tests.calculator.Multiply +jsii-calc.Negate=software.amazon.jsii.tests.calculator.Negate +jsii-calc.NestedStruct=software.amazon.jsii.tests.calculator.NestedStruct +jsii-calc.NodeStandardLibrary=software.amazon.jsii.tests.calculator.NodeStandardLibrary +jsii-calc.NullShouldBeTreatedAsUndefined=software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefined +jsii-calc.NullShouldBeTreatedAsUndefinedData=software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData +jsii-calc.NumberGenerator=software.amazon.jsii.tests.calculator.NumberGenerator +jsii-calc.ObjectRefsInCollections=software.amazon.jsii.tests.calculator.ObjectRefsInCollections +jsii-calc.ObjectWithPropertyProvider=software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider +jsii-calc.Old=software.amazon.jsii.tests.calculator.Old +jsii-calc.OptionalArgumentInvoker=software.amazon.jsii.tests.calculator.OptionalArgumentInvoker +jsii-calc.OptionalConstructorArgument=software.amazon.jsii.tests.calculator.OptionalConstructorArgument +jsii-calc.OptionalStruct=software.amazon.jsii.tests.calculator.OptionalStruct +jsii-calc.OptionalStructConsumer=software.amazon.jsii.tests.calculator.OptionalStructConsumer +jsii-calc.OverridableProtectedMember=software.amazon.jsii.tests.calculator.OverridableProtectedMember +jsii-calc.OverrideReturnsObject=software.amazon.jsii.tests.calculator.OverrideReturnsObject +jsii-calc.ParentStruct982=software.amazon.jsii.tests.calculator.ParentStruct982 +jsii-calc.PartiallyInitializedThisConsumer=software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer +jsii-calc.Polymorphism=software.amazon.jsii.tests.calculator.Polymorphism +jsii-calc.Power=software.amazon.jsii.tests.calculator.Power +jsii-calc.PropertyNamedProperty=software.amazon.jsii.tests.calculator.PropertyNamedProperty +jsii-calc.PublicClass=software.amazon.jsii.tests.calculator.PublicClass +jsii-calc.PythonReservedWords=software.amazon.jsii.tests.calculator.PythonReservedWords +jsii-calc.PythonSelf.ClassWithSelf=software.amazon.jsii.tests.calculator.python_self.ClassWithSelf +jsii-calc.PythonSelf.ClassWithSelfKwarg=software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg +jsii-calc.PythonSelf.IInterfaceWithSelf=software.amazon.jsii.tests.calculator.python_self.IInterfaceWithSelf +jsii-calc.PythonSelf.StructWithSelf=software.amazon.jsii.tests.calculator.python_self.StructWithSelf +jsii-calc.ReferenceEnumFromScopedPackage=software.amazon.jsii.tests.calculator.ReferenceEnumFromScopedPackage +jsii-calc.ReturnsPrivateImplementationOfInterface=software.amazon.jsii.tests.calculator.ReturnsPrivateImplementationOfInterface +jsii-calc.RootStruct=software.amazon.jsii.tests.calculator.RootStruct +jsii-calc.RootStructValidator=software.amazon.jsii.tests.calculator.RootStructValidator +jsii-calc.RuntimeTypeChecking=software.amazon.jsii.tests.calculator.RuntimeTypeChecking +jsii-calc.SecondLevelStruct=software.amazon.jsii.tests.calculator.SecondLevelStruct +jsii-calc.SingleInstanceTwoTypes=software.amazon.jsii.tests.calculator.SingleInstanceTwoTypes +jsii-calc.SingletonInt=software.amazon.jsii.tests.calculator.SingletonInt +jsii-calc.SingletonIntEnum=software.amazon.jsii.tests.calculator.SingletonIntEnum +jsii-calc.SingletonString=software.amazon.jsii.tests.calculator.SingletonString +jsii-calc.SingletonStringEnum=software.amazon.jsii.tests.calculator.SingletonStringEnum +jsii-calc.SmellyStruct=software.amazon.jsii.tests.calculator.SmellyStruct +jsii-calc.SomeTypeJsii976=software.amazon.jsii.tests.calculator.SomeTypeJsii976 +jsii-calc.StableClass=software.amazon.jsii.tests.calculator.StableClass +jsii-calc.StableEnum=software.amazon.jsii.tests.calculator.StableEnum +jsii-calc.StableStruct=software.amazon.jsii.tests.calculator.StableStruct +jsii-calc.StaticContext=software.amazon.jsii.tests.calculator.StaticContext +jsii-calc.Statics=software.amazon.jsii.tests.calculator.Statics +jsii-calc.StringEnum=software.amazon.jsii.tests.calculator.StringEnum +jsii-calc.StripInternal=software.amazon.jsii.tests.calculator.StripInternal +jsii-calc.StructA=software.amazon.jsii.tests.calculator.StructA +jsii-calc.StructB=software.amazon.jsii.tests.calculator.StructB +jsii-calc.StructParameterType=software.amazon.jsii.tests.calculator.StructParameterType +jsii-calc.StructPassing=software.amazon.jsii.tests.calculator.StructPassing +jsii-calc.StructUnionConsumer=software.amazon.jsii.tests.calculator.StructUnionConsumer +jsii-calc.StructWithJavaReservedWords=software.amazon.jsii.tests.calculator.StructWithJavaReservedWords +jsii-calc.Sum=software.amazon.jsii.tests.calculator.Sum +jsii-calc.SupportsNiceJavaBuilder=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder +jsii-calc.SupportsNiceJavaBuilderProps=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps +jsii-calc.SupportsNiceJavaBuilderWithRequiredProps=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps +jsii-calc.SyncVirtualMethods=software.amazon.jsii.tests.calculator.SyncVirtualMethods +jsii-calc.Thrower=software.amazon.jsii.tests.calculator.Thrower +jsii-calc.TopLevelStruct=software.amazon.jsii.tests.calculator.TopLevelStruct +jsii-calc.UmaskCheck=software.amazon.jsii.tests.calculator.UmaskCheck +jsii-calc.UnaryOperation=software.amazon.jsii.tests.calculator.UnaryOperation +jsii-calc.UnionProperties=software.amazon.jsii.tests.calculator.UnionProperties +jsii-calc.UpcasingReflectable=software.amazon.jsii.tests.calculator.UpcasingReflectable +jsii-calc.UseBundledDependency=software.amazon.jsii.tests.calculator.UseBundledDependency +jsii-calc.UseCalcBase=software.amazon.jsii.tests.calculator.UseCalcBase +jsii-calc.UsesInterfaceWithProperties=software.amazon.jsii.tests.calculator.UsesInterfaceWithProperties +jsii-calc.VariadicInvoker=software.amazon.jsii.tests.calculator.VariadicInvoker +jsii-calc.VariadicMethod=software.amazon.jsii.tests.calculator.VariadicMethod +jsii-calc.VirtualMethodPlayground=software.amazon.jsii.tests.calculator.VirtualMethodPlayground +jsii-calc.VoidCallback=software.amazon.jsii.tests.calculator.VoidCallback +jsii-calc.WithPrivatePropertyInConstructor=software.amazon.jsii.tests.calculator.WithPrivatePropertyInConstructor +jsii-calc.composition.CompositeOperation=software.amazon.jsii.tests.calculator.composition.CompositeOperation +jsii-calc.composition.CompositeOperation.CompositionStringStyle=software.amazon.jsii.tests.calculator.composition.CompositeOperation$CompositionStringStyle +jsii-calc.submodule.MyClass=software.amazon.jsii.tests.calculator.submodule.MyClass +jsii-calc.submodule.back_references.MyClassReference=software.amazon.jsii.tests.calculator.submodule.back_references.MyClassReference +jsii-calc.submodule.child.Awesomeness=software.amazon.jsii.tests.calculator.submodule.child.Awesomeness +jsii-calc.submodule.child.Goodness=software.amazon.jsii.tests.calculator.submodule.child.Goodness +jsii-calc.submodule.child.InnerClass=software.amazon.jsii.tests.calculator.submodule.child.InnerClass +jsii-calc.submodule.child.KwargsProps=software.amazon.jsii.tests.calculator.submodule.child.KwargsProps +jsii-calc.submodule.child.OuterClass=software.amazon.jsii.tests.calculator.submodule.child.OuterClass +jsii-calc.submodule.child.SomeEnum=software.amazon.jsii.tests.calculator.submodule.child.SomeEnum +jsii-calc.submodule.child.SomeStruct=software.amazon.jsii.tests.calculator.submodule.child.SomeStruct +jsii-calc.submodule.child.Structure=software.amazon.jsii.tests.calculator.submodule.child.Structure +jsii-calc.submodule.isolated.Kwargs=software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs +jsii-calc.submodule.nested_submodule.Namespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced +jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced +", +} +`; + +exports[`Generated code for "jsii-calc": /java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "jsii-calc": /js/jsii-calc@0.0.0.jsii.tgz 1`] = `js/jsii-calc@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "jsii-calc": /python/MANIFEST.in 1`] = ` +Object { + Symbol(file): "include pyproject.toml +", +} +`; + +exports[`Generated code for "jsii-calc": /python/README.md 1`] = ` +Object { + Symbol(file): "# jsii Calculator + +This library is used to demonstrate and test the features of JSII + +## How to use running sum API: + +First, create a calculator: + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +calculator = calc.Calculator() +\`\`\` + +Then call some operations: + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +calculator.add(10) +\`\`\` + +## Code Samples + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +# This is totes a magic comment in here, just you wait! +foo = \\"bar\\" +\`\`\` +", +} +`; + +exports[`Generated code for "jsii-calc": /python/pyproject.toml 1`] = ` +Object { + Symbol(file): "[build-system] +requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] +build-backend = \\"setuptools.build_meta\\" +", +} +`; + +exports[`Generated code for "jsii-calc": /python/setup.py 1`] = ` +Object { + Symbol(file): "import json +import setuptools + +kwargs = json.loads( + \\"\\"\\" +{ + \\"name\\": \\"jsii-calc\\", + \\"version\\": \\"0.0.0\\", + \\"description\\": \\"A simple calcuator built on JSII.\\", + \\"license\\": \\"Apache-2.0\\", + \\"url\\": \\"https://github.com/aws/jsii\\", + \\"long_description_content_type\\": \\"text/markdown\\", + \\"author\\": \\"Amazon Web Services\\", + \\"project_urls\\": { + \\"Source\\": \\"https://github.com/aws/jsii.git\\" + }, + \\"package_dir\\": { + \\"\\": \\"src\\" + }, + \\"packages\\": [ + \\"jsii_calc\\", + \\"jsii_calc._jsii\\", + \\"jsii_calc.composition\\", + \\"jsii_calc.derived_class_has_no_properties\\", + \\"jsii_calc.interface_in_namespace_includes_classes\\", + \\"jsii_calc.interface_in_namespace_only_interface\\", + \\"jsii_calc.python_self\\", + \\"jsii_calc.submodule\\", + \\"jsii_calc.submodule.back_references\\", + \\"jsii_calc.submodule.child\\", + \\"jsii_calc.submodule.isolated\\", + \\"jsii_calc.submodule.nested_submodule\\", + \\"jsii_calc.submodule.nested_submodule.deeply_nested\\" + ], + \\"package_data\\": { + \\"jsii_calc._jsii\\": [ + \\"jsii-calc@0.0.0.jsii.tgz\\" + ], + \\"jsii_calc\\": [ + \\"py.typed\\" + ] + }, + \\"python_requires\\": \\">=3.6\\", + \\"install_requires\\": [ + \\"jsii>=0.0.0, <0.0.1\\", + \\"publication>=0.0.3\\", + \\"scope.jsii-calc-base>=0.0.0, <0.0.1\\", + \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\", + \\"scope.jsii-calc-lib>=0.0.0, <0.0.1\\" + ], + \\"classifiers\\": [ + \\"Intended Audience :: Developers\\", + \\"Operating System :: OS Independent\\", + \\"Programming Language :: JavaScript\\", + \\"Programming Language :: Python :: 3 :: Only\\", + \\"Programming Language :: Python :: 3.6\\", + \\"Programming Language :: Python :: 3.7\\", + \\"Programming Language :: Python :: 3.8\\", + \\"Typing :: Typed\\", + \\"Development Status :: 4 - Beta\\", + \\"License :: OSI Approved\\" + ] +} +\\"\\"\\" +) + +with open(\\"README.md\\") as fp: + kwargs[\\"long_description\\"] = fp.read() + + +setuptools.setup(**kwargs) +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/__init__.py 1`] = ` +Object { + Symbol(file): "\\"\\"\\" +# jsii Calculator + +This library is used to demonstrate and test the features of JSII + +## How to use running sum API: + +First, create a calculator: + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +calculator = calc.Calculator() +\`\`\` + +Then call some operations: + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +calculator.add(10) +\`\`\` + +## Code Samples + +\`\`\`python +# Example automatically generated. See https://github.com/aws/jsii/issues/826 +# This is totes a magic comment in here, just you wait! +foo = \\"bar\\" +\`\`\` +\\"\\"\\" +import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ._jsii import * + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib +import scope.jsii_calc_lib.custom_submodule_name +from .composition import CompositeOperation as _CompositeOperation_1c4d123b + + +class AbstractClassBase( + metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.AbstractClassBase\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassBaseProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AbstractClassBase, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"abstractProperty\\") + @abc.abstractmethod + def abstract_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _AbstractClassBaseProxy(AbstractClassBase): + @builtins.property + @jsii.member(jsii_name=\\"abstractProperty\\") + def abstract_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"abstractProperty\\") + + +class AbstractClassReturner( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AbstractClassReturner\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AbstractClassReturner, self, []) + + @jsii.member(jsii_name=\\"giveMeAbstract\\") + def give_me_abstract(self) -> \\"AbstractClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveMeAbstract\\", []) + + @jsii.member(jsii_name=\\"giveMeInterface\\") + def give_me_interface(self) -> \\"IInterfaceImplementedByAbstractClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveMeInterface\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"returnAbstractFromProperty\\") + def return_abstract_from_property(self) -> \\"AbstractClassBase\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"returnAbstractFromProperty\\") + + +class AbstractSuite( + metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.AbstractSuite\\" +): + \\"\\"\\"Ensures abstract members implementations correctly register overrides in various languages. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractSuiteProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AbstractSuite, self, []) + + @jsii.member(jsii_name=\\"someMethod\\") + @abc.abstractmethod + def _some_method(self, str: str) -> str: + \\"\\"\\" + :param str: - + + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"workItAll\\") + def work_it_all(self, seed: str) -> str: + \\"\\"\\"Sets \`\`seed\`\` to \`\`this.property\`\`, then calls \`\`someMethod\`\` with \`\`this.property\`\` and returns the result. + + :param seed: a \`\`string\`\`. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"workItAll\\", [seed]) + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + @abc.abstractmethod + def _property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @_property.setter + @abc.abstractmethod + def _property(self, value: str) -> None: + ... + + +class _AbstractSuiteProxy(AbstractSuite): + @jsii.member(jsii_name=\\"someMethod\\") + def _some_method(self, str: str) -> str: + \\"\\"\\" + :param str: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"someMethod\\", [str]) + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def _property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"property\\") + + @_property.setter + def _property(self, value: str) -> None: + jsii.set(self, \\"property\\", value) + + +class AllTypes(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllTypes\\"): + \\"\\"\\"This class includes property for all types supported by jsii. + + The setters will validate + that the value set is of the expected type and throw otherwise. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AllTypes, self, []) + + @jsii.member(jsii_name=\\"anyIn\\") + def any_in(self, inp: typing.Any) -> None: + \\"\\"\\" + :param inp: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"anyIn\\", [inp]) + + @jsii.member(jsii_name=\\"anyOut\\") + def any_out(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"anyOut\\", []) + + @jsii.member(jsii_name=\\"enumMethod\\") + def enum_method(self, value: \\"StringEnum\\") -> \\"StringEnum\\": + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"enumMethod\\", [value]) + + @builtins.property + @jsii.member(jsii_name=\\"enumPropertyValue\\") + def enum_property_value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"enumPropertyValue\\") + + @builtins.property + @jsii.member(jsii_name=\\"anyArrayProperty\\") + def any_array_property(self) -> typing.List[typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"anyArrayProperty\\") + + @any_array_property.setter + def any_array_property(self, value: typing.List[typing.Any]) -> None: + jsii.set(self, \\"anyArrayProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"anyMapProperty\\") + def any_map_property(self) -> typing.Mapping[str, typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"anyMapProperty\\") + + @any_map_property.setter + def any_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: + jsii.set(self, \\"anyMapProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"anyProperty\\") + def any_property(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"anyProperty\\") + + @any_property.setter + def any_property(self, value: typing.Any) -> None: + jsii.set(self, \\"anyProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"arrayProperty\\") + def array_property(self) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arrayProperty\\") + + @array_property.setter + def array_property(self, value: typing.List[str]) -> None: + jsii.set(self, \\"arrayProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"booleanProperty\\") + def boolean_property(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"booleanProperty\\") + + @boolean_property.setter + def boolean_property(self, value: bool) -> None: + jsii.set(self, \\"booleanProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"dateProperty\\") + def date_property(self) -> datetime.datetime: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"dateProperty\\") + + @date_property.setter + def date_property(self, value: datetime.datetime) -> None: + jsii.set(self, \\"dateProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"enumProperty\\") + def enum_property(self) -> \\"AllTypesEnum\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"enumProperty\\") + + @enum_property.setter + def enum_property(self, value: \\"AllTypesEnum\\") -> None: + jsii.set(self, \\"enumProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"jsonProperty\\") + def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"jsonProperty\\") + + @json_property.setter + def json_property(self, value: typing.Mapping[typing.Any, typing.Any]) -> None: + jsii.set(self, \\"jsonProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"mapProperty\\") + def map_property(self) -> typing.Mapping[str, scope.jsii_calc_lib.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"mapProperty\\") + + @map_property.setter + def map_property( + self, value: typing.Mapping[str, scope.jsii_calc_lib.Number] + ) -> None: + jsii.set(self, \\"mapProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"numberProperty\\") + def number_property(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"numberProperty\\") + + @number_property.setter + def number_property(self, value: jsii.Number) -> None: + jsii.set(self, \\"numberProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"stringProperty\\") + def string_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"stringProperty\\") + + @string_property.setter + def string_property(self, value: str) -> None: + jsii.set(self, \\"stringProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unionArrayProperty\\") + def union_array_property( + self, + ) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unionArrayProperty\\") + + @union_array_property.setter + def union_array_property( + self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]] + ) -> None: + jsii.set(self, \\"unionArrayProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unionMapProperty\\") + def union_map_property( + self, + ) -> typing.Mapping[ + str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] + ]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unionMapProperty\\") + + @union_map_property.setter + def union_map_property( + self, + value: typing.Mapping[ + str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] + ], + ) -> None: + jsii.set(self, \\"unionMapProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unionProperty\\") + def union_property( + self, + ) -> typing.Union[str, jsii.Number, \\"Multiply\\", scope.jsii_calc_lib.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unionProperty\\") + + @union_property.setter + def union_property( + self, + value: typing.Union[str, jsii.Number, \\"Multiply\\", scope.jsii_calc_lib.Number], + ) -> None: + jsii.set(self, \\"unionProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unknownArrayProperty\\") + def unknown_array_property(self) -> typing.List[typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unknownArrayProperty\\") + + @unknown_array_property.setter + def unknown_array_property(self, value: typing.List[typing.Any]) -> None: + jsii.set(self, \\"unknownArrayProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unknownMapProperty\\") + def unknown_map_property(self) -> typing.Mapping[str, typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unknownMapProperty\\") + + @unknown_map_property.setter + def unknown_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: + jsii.set(self, \\"unknownMapProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unknownProperty\\") + def unknown_property(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unknownProperty\\") + + @unknown_property.setter + def unknown_property(self, value: typing.Any) -> None: + jsii.set(self, \\"unknownProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"optionalEnumValue\\") + def optional_enum_value(self) -> typing.Optional[\\"StringEnum\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"optionalEnumValue\\") + + @optional_enum_value.setter + def optional_enum_value(self, value: typing.Optional[\\"StringEnum\\"]) -> None: + jsii.set(self, \\"optionalEnumValue\\", value) + + +@jsii.enum(jsii_type=\\"jsii-calc.AllTypesEnum\\") +class AllTypesEnum(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + MY_ENUM_VALUE = \\"MY_ENUM_VALUE\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + YOUR_ENUM_VALUE = \\"YOUR_ENUM_VALUE\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + THIS_IS_GREAT = \\"THIS_IS_GREAT\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + +class AllowedMethodNames( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllowedMethodNames\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AllowedMethodNames, self, []) + + @jsii.member(jsii_name=\\"getBar\\") + def get_bar(self, _p1: str, _p2: jsii.Number) -> None: + \\"\\"\\" + :param _p1: - + :param _p2: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"getBar\\", [_p1, _p2]) + + @jsii.member(jsii_name=\\"getFoo\\") + def get_foo(self, with_param: str) -> str: + \\"\\"\\"getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + + :param with_param: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"getFoo\\", [with_param]) + + @jsii.member(jsii_name=\\"setBar\\") + def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: + \\"\\"\\" + :param _x: - + :param _y: - + :param _z: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"setBar\\", [_x, _y, _z]) + + @jsii.member(jsii_name=\\"setFoo\\") + def set_foo(self, _x: str, _y: jsii.Number) -> None: + \\"\\"\\"setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + + :param _x: - + :param _y: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"setFoo\\", [_x, _y]) + + +class AmbiguousParameters( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AmbiguousParameters\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, scope_: \\"Bell\\", *, scope: str, props: typing.Optional[bool] = None + ) -> None: + \\"\\"\\" + :param scope_: - + :param scope: + :param props: + + stability + :stability: experimental + \\"\\"\\" + props_ = StructParameterType(scope=scope, props=props) + + jsii.create(AmbiguousParameters, self, [scope_, props_]) + + @builtins.property + @jsii.member(jsii_name=\\"props\\") + def props(self) -> \\"StructParameterType\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"props\\") + + @builtins.property + @jsii.member(jsii_name=\\"scope\\") + def scope(self) -> \\"Bell\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"scope\\") + + +class AsyncVirtualMethods( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AsyncVirtualMethods\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AsyncVirtualMethods, self, []) + + @jsii.member(jsii_name=\\"callMe\\") + def call_me(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"callMe\\", []) + + @jsii.member(jsii_name=\\"callMe2\\") + def call_me2(self) -> jsii.Number: + \\"\\"\\"Just calls \\"overrideMeToo\\". + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"callMe2\\", []) + + @jsii.member(jsii_name=\\"callMeDoublePromise\\") + def call_me_double_promise(self) -> jsii.Number: + \\"\\"\\"This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + + This is a \\"double promise\\" situation, which + means that callbacks are not going to be available immediate, but only + after an \\"immediates\\" cycle. + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"callMeDoublePromise\\", []) + + @jsii.member(jsii_name=\\"dontOverrideMe\\") + def dont_override_me(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"dontOverrideMe\\", []) + + @jsii.member(jsii_name=\\"overrideMe\\") + def override_me(self, mult: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param mult: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"overrideMe\\", [mult]) + + @jsii.member(jsii_name=\\"overrideMeToo\\") + def override_me_too(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"overrideMeToo\\", []) + + +class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AugmentableClass\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AugmentableClass, self, []) + + @jsii.member(jsii_name=\\"methodOne\\") + def method_one(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"methodOne\\", []) + + @jsii.member(jsii_name=\\"methodTwo\\") + def method_two(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"methodTwo\\", []) + + +class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.BaseJsii976\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(BaseJsii976, self, []) + + +@jsii.implements(scope.jsii_calc_lib.IFriendly) +class BinaryOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.BinaryOperation\\", +): + \\"\\"\\"Represents an operation with two operands. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _BinaryOperationProxy + + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: + \\"\\"\\"Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(BinaryOperation, self, [lhs, rhs]) + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> str: + \\"\\"\\"Say hello! + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"lhs\\") + def lhs(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"Left-hand side operand. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"lhs\\") + + @builtins.property + @jsii.member(jsii_name=\\"rhs\\") + def rhs(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"Right-hand side operand. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"rhs\\") + + +class _BinaryOperationProxy( + BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): + pass + + +class Calculator( + _CompositeOperation_1c4d123b, + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.Calculator\\", +): + \\"\\"\\"A calculator which maintains a current value and allows adding operations. + + Here's how you use it:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + + I will repeat this example again, but in an @example tag. + + stability + :stability: experimental + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + \\"\\"\\" + + def __init__( + self, + *, + initial_value: typing.Optional[jsii.Number] = None, + maximum_value: typing.Optional[jsii.Number] = None, + ) -> None: + \\"\\"\\"Creates a Calculator object. + + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none + + stability + :stability: experimental + \\"\\"\\" + props = CalculatorProps( + initial_value=initial_value, maximum_value=maximum_value + ) + + jsii.create(Calculator, self, [props]) + + @jsii.member(jsii_name=\\"add\\") + def add(self, value: jsii.Number) -> None: + \\"\\"\\"Adds a number to the current value. + + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"add\\", [value]) + + @jsii.member(jsii_name=\\"mul\\") + def mul(self, value: jsii.Number) -> None: + \\"\\"\\"Multiplies the current value by a number. + + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"mul\\", [value]) + + @jsii.member(jsii_name=\\"neg\\") + def neg(self) -> None: + \\"\\"\\"Negates the current value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"neg\\", []) + + @jsii.member(jsii_name=\\"pow\\") + def pow(self, value: jsii.Number) -> None: + \\"\\"\\"Raises the current value by a power. + + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"pow\\", [value]) + + @jsii.member(jsii_name=\\"readUnionValue\\") + def read_union_value(self) -> jsii.Number: + \\"\\"\\"Returns teh value of the union property (if defined). + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"readUnionValue\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"expression\\") + def expression(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"Returns the expression. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"expression\\") + + @builtins.property + @jsii.member(jsii_name=\\"operationsLog\\") + def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: + \\"\\"\\"A log of all operations. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"operationsLog\\") + + @builtins.property + @jsii.member(jsii_name=\\"operationsMap\\") + def operations_map( + self, + ) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]: + \\"\\"\\"A map of per operation name of all operations performed. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"operationsMap\\") + + @builtins.property + @jsii.member(jsii_name=\\"curr\\") + def curr(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The current value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"curr\\") + + @curr.setter + def curr(self, value: scope.jsii_calc_lib.Value) -> None: + jsii.set(self, \\"curr\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"maxValue\\") + def max_value(self) -> typing.Optional[jsii.Number]: + \\"\\"\\"The maximum value allows in this calculator. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"maxValue\\") + + @max_value.setter + def max_value(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"maxValue\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"unionProperty\\") + def union_property( + self, + ) -> typing.Optional[typing.Union[\\"Add\\", \\"Multiply\\", \\"Power\\"]]: + \\"\\"\\"Example of a property that accepts a union of types. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unionProperty\\") + + @union_property.setter + def union_property( + self, value: typing.Optional[typing.Union[\\"Add\\", \\"Multiply\\", \\"Power\\"]] + ) -> None: + jsii.set(self, \\"unionProperty\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.CalculatorProps\\", + jsii_struct_bases=[], + name_mapping={\\"initial_value\\": \\"initialValue\\", \\"maximum_value\\": \\"maximumValue\\"}, +) +class CalculatorProps: + def __init__( + self, + *, + initial_value: typing.Optional[jsii.Number] = None, + maximum_value: typing.Optional[jsii.Number] = None, + ) -> None: + \\"\\"\\"Properties for Calculator. + + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if initial_value is not None: + self._values[\\"initial_value\\"] = initial_value + if maximum_value is not None: + self._values[\\"maximum_value\\"] = maximum_value + + @builtins.property + def initial_value(self) -> typing.Optional[jsii.Number]: + \\"\\"\\"The initial value of the calculator. + + NOTE: Any number works here, it's fine. + + default + :default: 0 + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"initial_value\\") + + @builtins.property + def maximum_value(self) -> typing.Optional[jsii.Number]: + \\"\\"\\"The maximum value the calculator can store. + + default + :default: none + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"maximum_value\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"CalculatorProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class ClassWithCollections( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithCollections\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, map: typing.Mapping[str, str], array: typing.List[str]) -> None: + \\"\\"\\" + :param map: - + :param array: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassWithCollections, self, [map, array]) + + @jsii.member(jsii_name=\\"createAList\\") + @builtins.classmethod + def create_a_list(cls) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"createAList\\", []) + + @jsii.member(jsii_name=\\"createAMap\\") + @builtins.classmethod + def create_a_map(cls) -> typing.Mapping[str, str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"createAMap\\", []) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"staticArray\\") + def static_array(cls) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"staticArray\\") + + @static_array.setter + def static_array(cls, value: typing.List[str]) -> None: + jsii.sset(cls, \\"staticArray\\", value) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"staticMap\\") + def static_map(cls) -> typing.Mapping[str, str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"staticMap\\") + + @static_map.setter + def static_map(cls, value: typing.Mapping[str, str]) -> None: + jsii.sset(cls, \\"staticMap\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"array\\") + def array(self) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"array\\") + + @array.setter + def array(self, value: typing.List[str]) -> None: + jsii.set(self, \\"array\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"map\\") + def map(self) -> typing.Mapping[str, str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"map\\") + + @map.setter + def map(self, value: typing.Mapping[str, str]) -> None: + jsii.set(self, \\"map\\", value) + + +class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithDocs\\"): + \\"\\"\\"This class has docs. + + The docs are great. They're a bunch of tags. + + see + :see: https://aws.amazon.com/ + customAttribute: + :customAttribute:: hasAValue + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + def an_example(): + pass + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassWithDocs, self, []) + + +class ClassWithJavaReservedWords( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithJavaReservedWords\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, int: str) -> None: + \\"\\"\\" + :param int: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassWithJavaReservedWords, self, [int]) + + @jsii.member(jsii_name=\\"import\\") + def import_(self, assert_: str) -> str: + \\"\\"\\" + :param assert_: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"import\\", [assert_]) + + @builtins.property + @jsii.member(jsii_name=\\"int\\") + def int(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"int\\") + + +class ClassWithMutableObjectLiteralProperty( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithMutableObjectLiteralProperty\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassWithMutableObjectLiteralProperty, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"mutableObject\\") + def mutable_object(self) -> \\"IMutableObjectLiteral\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"mutableObject\\") + + @mutable_object.setter + def mutable_object(self, value: \\"IMutableObjectLiteral\\") -> None: + jsii.set(self, \\"mutableObject\\", value) + + +class ConfusingToJackson( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConfusingToJackson\\" +): + \\"\\"\\"This tries to confuse Jackson by having overloaded property setters. + + see + :see: https://github.com/aws/aws-cdk/issues/4080 + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"makeInstance\\") + @builtins.classmethod + def make_instance(cls) -> \\"ConfusingToJackson\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInstance\\", []) + + @jsii.member(jsii_name=\\"makeStructInstance\\") + @builtins.classmethod + def make_struct_instance(cls) -> \\"ConfusingToJacksonStruct\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeStructInstance\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"unionProperty\\") + def union_property( + self, + ) -> typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]], + ] + ]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"unionProperty\\") + + @union_property.setter + def union_property( + self, + value: typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[ + typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"] + ], + ] + ], + ) -> None: + jsii.set(self, \\"unionProperty\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ConfusingToJacksonStruct\\", + jsii_struct_bases=[], + name_mapping={\\"union_property\\": \\"unionProperty\\"}, +) +class ConfusingToJacksonStruct: + def __init__( + self, + *, + union_property: typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[ + typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"] + ], + ] + ] = None, + ) -> None: + \\"\\"\\" + :param union_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if union_property is not None: + self._values[\\"union_property\\"] = union_property + + @builtins.property + def union_property( + self, + ) -> typing.Optional[ + typing.Union[ + scope.jsii_calc_lib.IFriendly, + typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]], + ] + ]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"union_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ConfusingToJacksonStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class ConstructorPassesThisOut( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConstructorPassesThisOut\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, consumer: \\"PartiallyInitializedThisConsumer\\") -> None: + \\"\\"\\" + :param consumer: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ConstructorPassesThisOut, self, [consumer]) + + +class Constructors(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Constructors\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Constructors, self, []) + + @jsii.member(jsii_name=\\"hiddenInterface\\") + @builtins.classmethod + def hidden_interface(cls) -> \\"IPublicInterface\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"hiddenInterface\\", []) + + @jsii.member(jsii_name=\\"hiddenInterfaces\\") + @builtins.classmethod + def hidden_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"hiddenInterfaces\\", []) + + @jsii.member(jsii_name=\\"hiddenSubInterfaces\\") + @builtins.classmethod + def hidden_sub_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"hiddenSubInterfaces\\", []) + + @jsii.member(jsii_name=\\"makeClass\\") + @builtins.classmethod + def make_class(cls) -> \\"PublicClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeClass\\", []) + + @jsii.member(jsii_name=\\"makeInterface\\") + @builtins.classmethod + def make_interface(cls) -> \\"IPublicInterface\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInterface\\", []) + + @jsii.member(jsii_name=\\"makeInterface2\\") + @builtins.classmethod + def make_interface2(cls) -> \\"IPublicInterface2\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInterface2\\", []) + + @jsii.member(jsii_name=\\"makeInterfaces\\") + @builtins.classmethod + def make_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInterfaces\\", []) + + +class ConsumePureInterface( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumePureInterface\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, delegate: \\"IStructReturningDelegate\\") -> None: + \\"\\"\\" + :param delegate: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ConsumePureInterface, self, [delegate]) + + @jsii.member(jsii_name=\\"workItBaby\\") + def work_it_baby(self) -> \\"StructB\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"workItBaby\\", []) + + +class ConsumerCanRingBell( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumerCanRingBell\\" +): + \\"\\"\\"Test calling back to consumers that implement interfaces. + + Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + the method on the argument that they're passed... + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ConsumerCanRingBell, self, []) + + @jsii.member(jsii_name=\\"staticImplementedByObjectLiteral\\") + @builtins.classmethod + def static_implemented_by_object_literal(cls, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"staticImplementedByObjectLiteral\\", [ringer]) + + @jsii.member(jsii_name=\\"staticImplementedByPrivateClass\\") + @builtins.classmethod + def static_implemented_by_private_class(cls, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"staticImplementedByPrivateClass\\", [ringer]) + + @jsii.member(jsii_name=\\"staticImplementedByPublicClass\\") + @builtins.classmethod + def static_implemented_by_public_class(cls, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"staticImplementedByPublicClass\\", [ringer]) + + @jsii.member(jsii_name=\\"staticWhenTypedAsClass\\") + @builtins.classmethod + def static_when_typed_as_class(cls, ringer: \\"IConcreteBellRinger\\") -> bool: + \\"\\"\\"If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"staticWhenTypedAsClass\\", [ringer]) + + @jsii.member(jsii_name=\\"implementedByObjectLiteral\\") + def implemented_by_object_literal(self, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"implementedByObjectLiteral\\", [ringer]) + + @jsii.member(jsii_name=\\"implementedByPrivateClass\\") + def implemented_by_private_class(self, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"implementedByPrivateClass\\", [ringer]) + + @jsii.member(jsii_name=\\"implementedByPublicClass\\") + def implemented_by_public_class(self, ringer: \\"IBellRinger\\") -> bool: + \\"\\"\\"...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"implementedByPublicClass\\", [ringer]) + + @jsii.member(jsii_name=\\"whenTypedAsClass\\") + def when_typed_as_class(self, ringer: \\"IConcreteBellRinger\\") -> bool: + \\"\\"\\"If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"whenTypedAsClass\\", [ringer]) + + +class ConsumersOfThisCrazyTypeSystem( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) + + @jsii.member(jsii_name=\\"consumeAnotherPublicInterface\\") + def consume_another_public_interface(self, obj: \\"IAnotherPublicInterface\\") -> str: + \\"\\"\\" + :param obj: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"consumeAnotherPublicInterface\\", [obj]) + + @jsii.member(jsii_name=\\"consumeNonInternalInterface\\") + def consume_non_internal_interface( + self, obj: \\"INonInternalInterface\\" + ) -> typing.Any: + \\"\\"\\" + :param obj: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"consumeNonInternalInterface\\", [obj]) + + +class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DataRenderer\\"): + \\"\\"\\"Verifies proper type handling through dynamic overrides. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DataRenderer, self, []) + + @jsii.member(jsii_name=\\"render\\") + def render( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> str: + \\"\\"\\" + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + \\"\\"\\" + data = scope.jsii_calc_lib.MyFirstStruct( + anumber=anumber, astring=astring, first_optional=first_optional + ) + + return jsii.invoke(self, \\"render\\", [data]) + + @jsii.member(jsii_name=\\"renderArbitrary\\") + def render_arbitrary(self, data: typing.Mapping[str, typing.Any]) -> str: + \\"\\"\\" + :param data: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"renderArbitrary\\", [data]) + + @jsii.member(jsii_name=\\"renderMap\\") + def render_map(self, map: typing.Mapping[str, typing.Any]) -> str: + \\"\\"\\" + :param map: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"renderMap\\", [map]) + + +class DefaultedConstructorArgument( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DefaultedConstructorArgument\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, + arg1: typing.Optional[jsii.Number] = None, + arg2: typing.Optional[str] = None, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: + \\"\\"\\" + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name=\\"arg1\\") + def arg1(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg1\\") + + @builtins.property + @jsii.member(jsii_name=\\"arg3\\") + def arg3(self) -> datetime.datetime: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg3\\") + + @builtins.property + @jsii.member(jsii_name=\\"arg2\\") + def arg2(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg2\\") + + +class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Demonstrate982\\"): + \\"\\"\\"1. + + call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Demonstrate982, self, []) + + @jsii.member(jsii_name=\\"takeThis\\") + @builtins.classmethod + def take_this(cls) -> \\"ChildStruct982\\": + \\"\\"\\"It's dangerous to go alone! + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"takeThis\\", []) + + @jsii.member(jsii_name=\\"takeThisToo\\") + @builtins.classmethod + def take_this_too(cls) -> \\"ParentStruct982\\": + \\"\\"\\"It's dangerous to go alone! + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"takeThisToo\\", []) + + +class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DeprecatedClass\\"): + \\"\\"\\" + deprecated + :deprecated: a pretty boring class + + stability + :stability: deprecated + \\"\\"\\" + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: + \\"\\"\\" + :param readonly_string: - + :param mutable_number: - + + deprecated + :deprecated: this constructor is \\"just\\" okay + + stability + :stability: deprecated + \\"\\"\\" + jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + deprecated + :deprecated: it was a bad idea + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"readonlyProperty\\") + def readonly_property(self) -> str: + \\"\\"\\" + deprecated + :deprecated: this is not always \\"wazoo\\", be ready to be disappointed + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"readonlyProperty\\") + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + deprecated + :deprecated: shouldn't have been mutable + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + +@jsii.enum(jsii_type=\\"jsii-calc.DeprecatedEnum\\") +class DeprecatedEnum(enum.Enum): + \\"\\"\\" + deprecated + :deprecated: your deprecated selection of bad options + + stability + :stability: deprecated + \\"\\"\\" + + OPTION_A = \\"OPTION_A\\" + \\"\\"\\" + deprecated + :deprecated: option A is not great + + stability + :stability: deprecated + \\"\\"\\" + OPTION_B = \\"OPTION_B\\" + \\"\\"\\" + deprecated + :deprecated: option B is kinda bad, too + + stability + :stability: deprecated + \\"\\"\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DeprecatedStruct\\", + jsii_struct_bases=[], + name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, +) +class DeprecatedStruct: + def __init__(self, *, readonly_property: str) -> None: + \\"\\"\\" + :param readonly_property: + + deprecated + :deprecated: it just wraps a string + + stability + :stability: deprecated + \\"\\"\\" + self._values = { + \\"readonly_property\\": readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + \\"\\"\\" + deprecated + :deprecated: well, yeah + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"readonly_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DeprecatedStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DerivedStruct\\", + jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], + name_mapping={ + \\"anumber\\": \\"anumber\\", + \\"astring\\": \\"astring\\", + \\"first_optional\\": \\"firstOptional\\", + \\"another_required\\": \\"anotherRequired\\", + \\"bool\\": \\"bool\\", + \\"non_primitive\\": \\"nonPrimitive\\", + \\"another_optional\\": \\"anotherOptional\\", + \\"optional_any\\": \\"optionalAny\\", + \\"optional_array\\": \\"optionalArray\\", + }, +) +class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): + def __init__( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + another_required: datetime.datetime, + bool: bool, + non_primitive: \\"DoubleTrouble\\", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + ) -> None: + \\"\\"\\"A struct which derives from another struct. + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"anumber\\": anumber, + \\"astring\\": astring, + \\"another_required\\": another_required, + \\"bool\\": bool, + \\"non_primitive\\": non_primitive, + } + if first_optional is not None: + self._values[\\"first_optional\\"] = first_optional + if another_optional is not None: + self._values[\\"another_optional\\"] = another_optional + if optional_any is not None: + self._values[\\"optional_any\\"] = optional_any + if optional_array is not None: + self._values[\\"optional_array\\"] = optional_array + + @builtins.property + def anumber(self) -> jsii.Number: + \\"\\"\\"An awesome number value. + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"anumber\\") + + @builtins.property + def astring(self) -> str: + \\"\\"\\"A string value. + + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"astring\\") + + @builtins.property + def first_optional(self) -> typing.Optional[typing.List[str]]: + \\"\\"\\" + stability + :stability: deprecated + \\"\\"\\" + return self._values.get(\\"first_optional\\") + + @builtins.property + def another_required(self) -> datetime.datetime: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"another_required\\") + + @builtins.property + def bool(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"bool\\") + + @builtins.property + def non_primitive(self) -> \\"DoubleTrouble\\": + \\"\\"\\"An example of a non primitive property. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"non_primitive\\") + + @builtins.property + def another_optional( + self, + ) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]: + \\"\\"\\"This is optional. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"another_optional\\") + + @builtins.property + def optional_any(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_any\\") + + @builtins.property + def optional_array(self) -> typing.Optional[typing.List[str]]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_array\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DerivedStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DiamondInheritanceBaseLevelStruct\\", + jsii_struct_bases=[], + name_mapping={\\"base_level_property\\": \\"baseLevelProperty\\"}, +) +class DiamondInheritanceBaseLevelStruct: + def __init__(self, *, base_level_property: str) -> None: + \\"\\"\\" + :param base_level_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"base_level_property\\": base_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"base_level_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DiamondInheritanceBaseLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", + jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], + name_mapping={ + \\"base_level_property\\": \\"baseLevelProperty\\", + \\"first_mid_level_property\\": \\"firstMidLevelProperty\\", + }, +) +class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__( + self, *, base_level_property: str, first_mid_level_property: str + ) -> None: + \\"\\"\\" + :param base_level_property: + :param first_mid_level_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"base_level_property\\": base_level_property, + \\"first_mid_level_property\\": first_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"base_level_property\\") + + @builtins.property + def first_mid_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"first_mid_level_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DiamondInheritanceFirstMidLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\", + jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], + name_mapping={ + \\"base_level_property\\": \\"baseLevelProperty\\", + \\"second_mid_level_property\\": \\"secondMidLevelProperty\\", + }, +) +class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__( + self, *, base_level_property: str, second_mid_level_property: str + ) -> None: + \\"\\"\\" + :param base_level_property: + :param second_mid_level_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"base_level_property\\": base_level_property, + \\"second_mid_level_property\\": second_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"base_level_property\\") + + @builtins.property + def second_mid_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"second_mid_level_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DiamondInheritanceSecondMidLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.DiamondInheritanceTopLevelStruct\\", + jsii_struct_bases=[ + DiamondInheritanceFirstMidLevelStruct, + DiamondInheritanceSecondMidLevelStruct, + ], + name_mapping={ + \\"base_level_property\\": \\"baseLevelProperty\\", + \\"first_mid_level_property\\": \\"firstMidLevelProperty\\", + \\"second_mid_level_property\\": \\"secondMidLevelProperty\\", + \\"top_level_property\\": \\"topLevelProperty\\", + }, +) +class DiamondInheritanceTopLevelStruct( + DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct +): + def __init__( + self, + *, + base_level_property: str, + first_mid_level_property: str, + second_mid_level_property: str, + top_level_property: str, + ) -> None: + \\"\\"\\" + :param base_level_property: + :param first_mid_level_property: + :param second_mid_level_property: + :param top_level_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"base_level_property\\": base_level_property, + \\"first_mid_level_property\\": first_mid_level_property, + \\"second_mid_level_property\\": second_mid_level_property, + \\"top_level_property\\": top_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"base_level_property\\") + + @builtins.property + def first_mid_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"first_mid_level_property\\") + + @builtins.property + def second_mid_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"second_mid_level_property\\") + + @builtins.property + def top_level_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"top_level_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"DiamondInheritanceTopLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class DisappointingCollectionSource( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DisappointingCollectionSource\\" +): + \\"\\"\\"Verifies that null/undefined can be returned for optional collections. + + This source of collections is disappointing - it'll always give you nothing :( + + stability + :stability: experimental + \\"\\"\\" + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"maybeList\\") + def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: + \\"\\"\\"Some List of strings, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"maybeList\\") + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"maybeMap\\") + def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str, jsii.Number]]: + \\"\\"\\"Some Map of strings to numbers, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"maybeMap\\") + + +class DoNotOverridePrivates( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoNotOverridePrivates\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DoNotOverridePrivates, self, []) + + @jsii.member(jsii_name=\\"changePrivatePropertyValue\\") + def change_private_property_value(self, new_value: str) -> None: + \\"\\"\\" + :param new_value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"changePrivatePropertyValue\\", [new_value]) + + @jsii.member(jsii_name=\\"privateMethodValue\\") + def private_method_value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"privateMethodValue\\", []) + + @jsii.member(jsii_name=\\"privatePropertyValue\\") + def private_property_value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"privatePropertyValue\\", []) + + +class DoNotRecognizeAnyAsOptional( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoNotRecognizeAnyAsOptional\\" +): + \\"\\"\\"jsii#284: do not recognize \\"any\\" as an optional argument. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DoNotRecognizeAnyAsOptional, self, []) + + @jsii.member(jsii_name=\\"method\\") + def method( + self, + _required_any: typing.Any, + _optional_any: typing.Any = None, + _optional_string: typing.Optional[str] = None, + ) -> None: + \\"\\"\\" + :param _required_any: - + :param _optional_any: - + :param _optional_string: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke( + self, \\"method\\", [_required_any, _optional_any, _optional_string] + ) + + +class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DocumentedClass\\"): + \\"\\"\\"Here's the first line of the TSDoc comment. + + This is the meat of the TSDoc comment. It may contain + multiple lines and multiple paragraphs. + + Multiple paragraphs are separated by an empty line. + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DocumentedClass, self, []) + + @jsii.member(jsii_name=\\"greet\\") + def greet(self, *, name: typing.Optional[str] = None) -> jsii.Number: + \\"\\"\\"Greet the indicated person. + + This will print out a friendly greeting intended for + the indicated person. + + :param name: The name of the greetee. Default: world + + return + :return: A number that everyone knows very well + \\"\\"\\" + greetee = Greetee(name=name) + + return jsii.invoke(self, \\"greet\\", [greetee]) + + @jsii.member(jsii_name=\\"hola\\") + def hola(self) -> None: + \\"\\"\\"Say ¡Hola! + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hola\\", []) + + +class DontComplainAboutVariadicAfterOptional( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.DontComplainAboutVariadicAfterOptional\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DontComplainAboutVariadicAfterOptional, self, []) + + @jsii.member(jsii_name=\\"optionalAndVariadic\\") + def optional_and_variadic( + self, optional: typing.Optional[str] = None, *things: str + ) -> str: + \\"\\"\\" + :param optional: - + :param things: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"optionalAndVariadic\\", [optional, *things]) + + +class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.EnumDispenser\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"randomIntegerLikeEnum\\") + @builtins.classmethod + def random_integer_like_enum(cls) -> \\"AllTypesEnum\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"randomIntegerLikeEnum\\", []) + + @jsii.member(jsii_name=\\"randomStringLikeEnum\\") + @builtins.classmethod + def random_string_like_enum(cls) -> \\"StringEnum\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"randomStringLikeEnum\\", []) + + +class EraseUndefinedHashValues( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.EraseUndefinedHashValues\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(EraseUndefinedHashValues, self, []) + + @jsii.member(jsii_name=\\"doesKeyExist\\") + @builtins.classmethod + def does_key_exist(cls, opts: \\"EraseUndefinedHashValuesOptions\\", key: str) -> bool: + \\"\\"\\"Returns \`\`true\`\` if \`\`key\`\` is defined in \`\`opts\`\`. + + Used to check that undefined/null hash values + are being erased when sending values from native code to JS. + + :param opts: - + :param key: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"doesKeyExist\\", [opts, key]) + + @jsii.member(jsii_name=\\"prop1IsNull\\") + @builtins.classmethod + def prop1_is_null(cls) -> typing.Mapping[str, typing.Any]: + \\"\\"\\"We expect \\"prop1\\" to be erased. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"prop1IsNull\\", []) + + @jsii.member(jsii_name=\\"prop2IsUndefined\\") + @builtins.classmethod + def prop2_is_undefined(cls) -> typing.Mapping[str, typing.Any]: + \\"\\"\\"We expect \\"prop2\\" to be erased. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"prop2IsUndefined\\", []) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.EraseUndefinedHashValuesOptions\\", + jsii_struct_bases=[], + name_mapping={\\"option1\\": \\"option1\\", \\"option2\\": \\"option2\\"}, +) +class EraseUndefinedHashValuesOptions: + def __init__( + self, + *, + option1: typing.Optional[str] = None, + option2: typing.Optional[str] = None, + ) -> None: + \\"\\"\\" + :param option1: + :param option2: + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if option1 is not None: + self._values[\\"option1\\"] = option1 + if option2 is not None: + self._values[\\"option2\\"] = option2 + + @builtins.property + def option1(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"option1\\") + + @builtins.property + def option2(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"option2\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"EraseUndefinedHashValuesOptions(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class ExperimentalClass( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExperimentalClass\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: + \\"\\"\\" + :param readonly_string: - + :param mutable_number: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"readonlyProperty\\") + def readonly_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readonlyProperty\\") + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + +@jsii.enum(jsii_type=\\"jsii-calc.ExperimentalEnum\\") +class ExperimentalEnum(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + OPTION_A = \\"OPTION_A\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + OPTION_B = \\"OPTION_B\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ExperimentalStruct\\", + jsii_struct_bases=[], + name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, +) +class ExperimentalStruct: + def __init__(self, *, readonly_property: str) -> None: + \\"\\"\\" + :param readonly_property: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"readonly_property\\": readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"readonly_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ExperimentalStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class ExportedBaseClass( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExportedBaseClass\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, success: bool) -> None: + \\"\\"\\" + :param success: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ExportedBaseClass, self, [success]) + + @builtins.property + @jsii.member(jsii_name=\\"success\\") + def success(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"success\\") + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ExtendsInternalInterface\\", + jsii_struct_bases=[], + name_mapping={\\"boom\\": \\"boom\\", \\"prop\\": \\"prop\\"}, +) +class ExtendsInternalInterface: + def __init__(self, *, boom: bool, prop: str) -> None: + \\"\\"\\" + :param boom: + :param prop: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"boom\\": boom, + \\"prop\\": prop, + } + + @builtins.property + def boom(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"boom\\") + + @builtins.property + def prop(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"prop\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ExtendsInternalInterface(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExternalClass\\"): + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: + \\"\\"\\" + :param readonly_string: - + :param mutable_number: - + + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + jsii.create(ExternalClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"readonlyProperty\\") + def readonly_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return jsii.get(self, \\"readonlyProperty\\") + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + +@jsii.enum(jsii_type=\\"jsii-calc.ExternalEnum\\") +class ExternalEnum(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + + OPTION_A = \\"OPTION_A\\" + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + OPTION_B = \\"OPTION_B\\" + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ExternalStruct\\", + jsii_struct_bases=[], + name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, +) +class ExternalStruct: + def __init__(self, *, readonly_property: str) -> None: + \\"\\"\\" + :param readonly_property: + + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + self._values = { + \\"readonly_property\\": readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return self._values.get(\\"readonly_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ExternalStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStructs\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(GiveMeStructs, self, []) + + @jsii.member(jsii_name=\\"derivedToFirst\\") + def derived_to_first( + self, + *, + another_required: datetime.datetime, + bool: bool, + non_primitive: \\"DoubleTrouble\\", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> scope.jsii_calc_lib.MyFirstStruct: + \\"\\"\\"Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + \\"\\"\\" + derived = DerivedStruct( + another_required=another_required, + bool=bool, + non_primitive=non_primitive, + another_optional=another_optional, + optional_any=optional_any, + optional_array=optional_array, + anumber=anumber, + astring=astring, + first_optional=first_optional, + ) + + return jsii.invoke(self, \\"derivedToFirst\\", [derived]) + + @jsii.member(jsii_name=\\"readDerivedNonPrimitive\\") + def read_derived_non_primitive( + self, + *, + another_required: datetime.datetime, + bool: bool, + non_primitive: \\"DoubleTrouble\\", + another_optional: typing.Optional[ + typing.Mapping[str, scope.jsii_calc_lib.Value] + ] = None, + optional_any: typing.Any = None, + optional_array: typing.Optional[typing.List[str]] = None, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> \\"DoubleTrouble\\": + \\"\\"\\"Returns the boolean from a DerivedStruct struct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + \\"\\"\\" + derived = DerivedStruct( + another_required=another_required, + bool=bool, + non_primitive=non_primitive, + another_optional=another_optional, + optional_any=optional_any, + optional_array=optional_array, + anumber=anumber, + astring=astring, + first_optional=first_optional, + ) + + return jsii.invoke(self, \\"readDerivedNonPrimitive\\", [derived]) + + @jsii.member(jsii_name=\\"readFirstNumber\\") + def read_first_number( + self, + *, + anumber: jsii.Number, + astring: str, + first_optional: typing.Optional[typing.List[str]] = None, + ) -> jsii.Number: + \\"\\"\\"Returns the \\"anumber\\" from a MyFirstStruct struct; + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + \\"\\"\\" + first = scope.jsii_calc_lib.MyFirstStruct( + anumber=anumber, astring=astring, first_optional=first_optional + ) + + return jsii.invoke(self, \\"readFirstNumber\\", [first]) + + @builtins.property + @jsii.member(jsii_name=\\"structLiteral\\") + def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"structLiteral\\") + + +@jsii.data_type( + jsii_type=\\"jsii-calc.Greetee\\", jsii_struct_bases=[], name_mapping={\\"name\\": \\"name\\"} +) +class Greetee: + def __init__(self, *, name: typing.Optional[str] = None) -> None: + \\"\\"\\"These are some arguments you can pass to a method. + + :param name: The name of the greetee. Default: world + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if name is not None: + self._values[\\"name\\"] = name + + @builtins.property + def name(self) -> typing.Optional[str]: + \\"\\"\\"The name of the greetee. + + default + :default: world + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"name\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"Greetee(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class GreetingAugmenter( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GreetingAugmenter\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(GreetingAugmenter, self, []) + + @jsii.member(jsii_name=\\"betterGreeting\\") + def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + \\"\\"\\" + :param friendly: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"betterGreeting\\", [friendly]) + + +@jsii.interface(jsii_type=\\"jsii-calc.IAnonymousImplementationProvider\\") +class IAnonymousImplementationProvider(jsii.compat.Protocol): + \\"\\"\\"We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymousImplementationProviderProxy + + @jsii.member(jsii_name=\\"provideAsClass\\") + def provide_as_class(self) -> \\"Implementation\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"provideAsInterface\\") + def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IAnonymousImplementationProviderProxy: + \\"\\"\\"We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IAnonymousImplementationProvider\\" + + @jsii.member(jsii_name=\\"provideAsClass\\") + def provide_as_class(self) -> \\"Implementation\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"provideAsClass\\", []) + + @jsii.member(jsii_name=\\"provideAsInterface\\") + def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"provideAsInterface\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IAnonymouslyImplementMe\\") +class IAnonymouslyImplementMe(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymouslyImplementMeProxy + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"verb\\") + def verb(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IAnonymouslyImplementMeProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IAnonymouslyImplementMe\\" + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + @jsii.member(jsii_name=\\"verb\\") + def verb(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"verb\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IAnotherPublicInterface\\") +class IAnotherPublicInterface(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnotherPublicInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"a\\") + def a(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @a.setter + def a(self, value: str) -> None: + ... + + +class _IAnotherPublicInterfaceProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IAnotherPublicInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"a\\") + def a(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"a\\") + + @a.setter + def a(self, value: str) -> None: + jsii.set(self, \\"a\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IBell\\") +class IBell(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellProxy + + @jsii.member(jsii_name=\\"ring\\") + def ring(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IBellProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IBell\\" + + @jsii.member(jsii_name=\\"ring\\") + def ring(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"ring\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IBellRinger\\") +class IBellRinger(jsii.compat.Protocol): + \\"\\"\\"Takes the object parameter as an interface. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellRingerProxy + + @jsii.member(jsii_name=\\"yourTurn\\") + def your_turn(self, bell: \\"IBell\\") -> None: + \\"\\"\\" + :param bell: - + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IBellRingerProxy: + \\"\\"\\"Takes the object parameter as an interface. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IBellRinger\\" + + @jsii.member(jsii_name=\\"yourTurn\\") + def your_turn(self, bell: \\"IBell\\") -> None: + \\"\\"\\" + :param bell: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"yourTurn\\", [bell]) + + +@jsii.interface(jsii_type=\\"jsii-calc.IConcreteBellRinger\\") +class IConcreteBellRinger(jsii.compat.Protocol): + \\"\\"\\"Takes the object parameter as a calss. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IConcreteBellRingerProxy + + @jsii.member(jsii_name=\\"yourTurn\\") + def your_turn(self, bell: \\"Bell\\") -> None: + \\"\\"\\" + :param bell: - + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IConcreteBellRingerProxy: + \\"\\"\\"Takes the object parameter as a calss. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IConcreteBellRinger\\" + + @jsii.member(jsii_name=\\"yourTurn\\") + def your_turn(self, bell: \\"Bell\\") -> None: + \\"\\"\\" + :param bell: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"yourTurn\\", [bell]) + + +@jsii.interface(jsii_type=\\"jsii-calc.IDeprecatedInterface\\") +class IDeprecatedInterface(jsii.compat.Protocol): + \\"\\"\\" + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IDeprecatedInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + deprecated + :deprecated: could be better + + stability + :stability: deprecated + \\"\\"\\" + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + ... + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + \\"\\"\\" + ... + + +class _IDeprecatedInterfaceProxy: + \\"\\"\\" + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IDeprecatedInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + deprecated + :deprecated: could be better + + stability + :stability: deprecated + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IExperimentalInterface\\") +class IExperimentalInterface(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExperimentalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + ... + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IExperimentalInterfaceProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IExperimentalInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IExtendsPrivateInterface\\") +class IExtendsPrivateInterface(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExtendsPrivateInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"moreThings\\") + def more_things(self) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @builtins.property + @jsii.member(jsii_name=\\"private\\") + def private(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @private.setter + def private(self, value: str) -> None: + ... + + +class _IExtendsPrivateInterfaceProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IExtendsPrivateInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"moreThings\\") + def more_things(self) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"moreThings\\") + + @builtins.property + @jsii.member(jsii_name=\\"private\\") + def private(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"private\\") + + @private.setter + def private(self, value: str) -> None: + jsii.set(self, \\"private\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IExternalInterface\\") +class IExternalInterface(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExternalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + ... + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + ... + + +class _IExternalInterfaceProxy: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IExternalInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + \\"\\"\\" + stability + :stability: experimental + external: + :external:: true + \\"\\"\\" + return jsii.invoke(self, \\"method\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IFriendlier\\") +class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + \\"\\"\\"Even friendlier classes can implement this interface. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlierProxy + + @jsii.member(jsii_name=\\"farewell\\") + def farewell(self) -> str: + \\"\\"\\"Say farewell. + + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"goodbye\\") + def goodbye(self) -> str: + \\"\\"\\"Say goodbye. + + return + :return: A goodbye blessing. + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + \\"\\"\\"Even friendlier classes can implement this interface. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IFriendlier\\" + + @jsii.member(jsii_name=\\"farewell\\") + def farewell(self) -> str: + \\"\\"\\"Say farewell. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"farewell\\", []) + + @jsii.member(jsii_name=\\"goodbye\\") + def goodbye(self) -> str: + \\"\\"\\"Say goodbye. + + return + :return: A goodbye blessing. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"goodbye\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceImplementedByAbstractClass\\") +class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): + \\"\\"\\"awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceImplementedByAbstractClassProxy + + @builtins.property + @jsii.member(jsii_name=\\"propFromInterface\\") + def prop_from_interface(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceImplementedByAbstractClassProxy: + \\"\\"\\"awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + + @builtins.property + @jsii.member(jsii_name=\\"propFromInterface\\") + def prop_from_interface(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"propFromInterface\\") + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithInternal\\") +class IInterfaceWithInternal(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithInternalProxy + + @jsii.member(jsii_name=\\"visible\\") + def visible(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceWithInternalProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceWithInternal\\" + + @jsii.member(jsii_name=\\"visible\\") + def visible(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"visible\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithMethods\\") +class IInterfaceWithMethods(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithMethodsProxy + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"doThings\\") + def do_things(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceWithMethodsProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceWithMethods\\" + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + @jsii.member(jsii_name=\\"doThings\\") + def do_things(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"doThings\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\") +class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): + \\"\\"\\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithOptionalMethodArgumentsProxy + + @jsii.member(jsii_name=\\"hello\\") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: + \\"\\"\\" + :param arg1: - + :param arg2: - + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceWithOptionalMethodArgumentsProxy: + \\"\\"\\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\" + + @jsii.member(jsii_name=\\"hello\\") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: + \\"\\"\\" + :param arg1: - + :param arg2: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", [arg1, arg2]) + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithProperties\\") +class IInterfaceWithProperties(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesProxy + + @builtins.property + @jsii.member(jsii_name=\\"readOnlyString\\") + def read_only_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @builtins.property + @jsii.member(jsii_name=\\"readWriteString\\") + def read_write_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @read_write_string.setter + def read_write_string(self, value: str) -> None: + ... + + +class _IInterfaceWithPropertiesProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceWithProperties\\" + + @builtins.property + @jsii.member(jsii_name=\\"readOnlyString\\") + def read_only_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readOnlyString\\") + + @builtins.property + @jsii.member(jsii_name=\\"readWriteString\\") + def read_write_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readWriteString\\") + + @read_write_string.setter + def read_write_string(self, value: str) -> None: + jsii.set(self, \\"readWriteString\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithPropertiesExtension\\") +class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesExtensionProxy + + @builtins.property + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @foo.setter + def foo(self, value: jsii.Number) -> None: + ... + + +class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceWithPropertiesExtension\\" + + @builtins.property + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"foo\\") + + @foo.setter + def foo(self, value: jsii.Number) -> None: + jsii.set(self, \\"foo\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IJSII417PublicBaseOfBase\\") +class IJSII417PublicBaseOfBase(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417PublicBaseOfBaseProxy + + @builtins.property + @jsii.member(jsii_name=\\"hasRoot\\") + def has_root(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IJSII417PublicBaseOfBaseProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IJSII417PublicBaseOfBase\\" + + @builtins.property + @jsii.member(jsii_name=\\"hasRoot\\") + def has_root(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"hasRoot\\") + + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"foo\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IJsii487External\\") +class IJsii487External(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487ExternalProxy + + pass + + +class _IJsii487ExternalProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IJsii487External\\" + pass + + +@jsii.interface(jsii_type=\\"jsii-calc.IJsii487External2\\") +class IJsii487External2(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487External2Proxy + + pass + + +class _IJsii487External2Proxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IJsii487External2\\" + pass + + +@jsii.interface(jsii_type=\\"jsii-calc.IJsii496\\") +class IJsii496(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii496Proxy + + pass + + +class _IJsii496Proxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IJsii496\\" + pass + + +@jsii.interface(jsii_type=\\"jsii-calc.IMutableObjectLiteral\\") +class IMutableObjectLiteral(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IMutableObjectLiteralProxy + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @value.setter + def value(self, value: str) -> None: + ... + + +class _IMutableObjectLiteralProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IMutableObjectLiteral\\" + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + @value.setter + def value(self, value: str) -> None: + jsii.set(self, \\"value\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.INonInternalInterface\\") +class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INonInternalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"b\\") + def b(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @b.setter + def b(self, value: str) -> None: + ... + + @builtins.property + @jsii.member(jsii_name=\\"c\\") + def c(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @c.setter + def c(self, value: str) -> None: + ... + + +class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.INonInternalInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"b\\") + def b(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"b\\") + + @b.setter + def b(self, value: str) -> None: + jsii.set(self, \\"b\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"c\\") + def c(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"c\\") + + @c.setter + def c(self, value: str) -> None: + jsii.set(self, \\"c\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IObjectWithProperty\\") +class IObjectWithProperty(jsii.compat.Protocol): + \\"\\"\\"Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IObjectWithPropertyProxy + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @property.setter + def property(self, value: str) -> None: + ... + + @jsii.member(jsii_name=\\"wasSet\\") + def was_set(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IObjectWithPropertyProxy: + \\"\\"\\"Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IObjectWithProperty\\" + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"property\\") + + @property.setter + def property(self, value: str) -> None: + jsii.set(self, \\"property\\", value) + + @jsii.member(jsii_name=\\"wasSet\\") + def was_set(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"wasSet\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IOptionalMethod\\") +class IOptionalMethod(jsii.compat.Protocol): + \\"\\"\\"Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IOptionalMethodProxy + + @jsii.member(jsii_name=\\"optional\\") + def optional(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IOptionalMethodProxy: + \\"\\"\\"Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IOptionalMethod\\" + + @jsii.member(jsii_name=\\"optional\\") + def optional(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"optional\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IPrivatelyImplemented\\") +class IPrivatelyImplemented(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPrivatelyImplementedProxy + + @builtins.property + @jsii.member(jsii_name=\\"success\\") + def success(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IPrivatelyImplementedProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IPrivatelyImplemented\\" + + @builtins.property + @jsii.member(jsii_name=\\"success\\") + def success(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"success\\") + + +@jsii.interface(jsii_type=\\"jsii-calc.IPublicInterface\\") +class IPublicInterface(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterfaceProxy + + @jsii.member(jsii_name=\\"bye\\") + def bye(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IPublicInterfaceProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IPublicInterface\\" + + @jsii.member(jsii_name=\\"bye\\") + def bye(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"bye\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IPublicInterface2\\") +class IPublicInterface2(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterface2Proxy + + @jsii.member(jsii_name=\\"ciao\\") + def ciao(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IPublicInterface2Proxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IPublicInterface2\\" + + @jsii.member(jsii_name=\\"ciao\\") + def ciao(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"ciao\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IRandomNumberGenerator\\") +class IRandomNumberGenerator(jsii.compat.Protocol): + \\"\\"\\"Generates random numbers. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IRandomNumberGeneratorProxy + + @jsii.member(jsii_name=\\"next\\") + def next(self) -> jsii.Number: + \\"\\"\\"Returns another random number. + + return + :return: A random number. + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IRandomNumberGeneratorProxy: + \\"\\"\\"Generates random numbers. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IRandomNumberGenerator\\" + + @jsii.member(jsii_name=\\"next\\") + def next(self) -> jsii.Number: + \\"\\"\\"Returns another random number. + + return + :return: A random number. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"next\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IReturnJsii976\\") +class IReturnJsii976(jsii.compat.Protocol): + \\"\\"\\"Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnJsii976Proxy + + @builtins.property + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IReturnJsii976Proxy: + \\"\\"\\"Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IReturnJsii976\\" + + @builtins.property + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"foo\\") + + +@jsii.interface(jsii_type=\\"jsii-calc.IReturnsNumber\\") +class IReturnsNumber(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnsNumberProxy + + @builtins.property + @jsii.member(jsii_name=\\"numberProp\\") + def number_prop(self) -> scope.jsii_calc_lib.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"obtainNumber\\") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IReturnsNumberProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IReturnsNumber\\" + + @builtins.property + @jsii.member(jsii_name=\\"numberProp\\") + def number_prop(self) -> scope.jsii_calc_lib.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"numberProp\\") + + @jsii.member(jsii_name=\\"obtainNumber\\") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"obtainNumber\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IStableInterface\\") +class IStableInterface(jsii.compat.Protocol): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStableInterfaceProxy + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + ... + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + ... + + +class _IStableInterfaceProxy: + __jsii_type__ = \\"jsii-calc.IStableInterface\\" + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + return jsii.invoke(self, \\"method\\", []) + + +@jsii.interface(jsii_type=\\"jsii-calc.IStructReturningDelegate\\") +class IStructReturningDelegate(jsii.compat.Protocol): + \\"\\"\\"Verifies that a \\"pure\\" implementation of an interface works correctly. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStructReturningDelegateProxy + + @jsii.member(jsii_name=\\"returnStruct\\") + def return_struct(self) -> \\"StructB\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IStructReturningDelegateProxy: + \\"\\"\\"Verifies that a \\"pure\\" implementation of an interface works correctly. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IStructReturningDelegate\\" + + @jsii.member(jsii_name=\\"returnStruct\\") + def return_struct(self) -> \\"StructB\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"returnStruct\\", []) + + +class ImplementInternalInterface( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementInternalInterface\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ImplementInternalInterface, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"prop\\") + def prop(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"prop\\") + + @prop.setter + def prop(self, value: str) -> None: + jsii.set(self, \\"prop\\", value) + + +class Implementation(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Implementation\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Implementation, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +@jsii.implements(IInterfaceWithInternal) +class ImplementsInterfaceWithInternal( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementsInterfaceWithInternal\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ImplementsInterfaceWithInternal, self, []) + + @jsii.member(jsii_name=\\"visible\\") + def visible(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"visible\\", []) + + +class ImplementsInterfaceWithInternalSubclass( + ImplementsInterfaceWithInternal, + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) + + +class ImplementsPrivateInterface( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementsPrivateInterface\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ImplementsPrivateInterface, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"private\\") + def private(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"private\\") + + @private.setter + def private(self, value: str) -> None: + jsii.set(self, \\"private\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ImplictBaseOfBase\\", + jsii_struct_bases=[scope.jsii_calc_base.BaseProps], + name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\", \\"goo\\": \\"goo\\"}, +) +class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): + def __init__( + self, + *, + foo: scope.jsii_calc_base_of_base.Very, + bar: str, + goo: datetime.datetime, + ) -> None: + \\"\\"\\" + :param foo: - + :param bar: - + :param goo: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"foo\\": foo, + \\"bar\\": bar, + \\"goo\\": goo, + } + + @builtins.property + def foo(self) -> scope.jsii_calc_base_of_base.Very: + return self._values.get(\\"foo\\") + + @builtins.property + def bar(self) -> str: + return self._values.get(\\"bar\\") + + @builtins.property + def goo(self) -> datetime.datetime: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"goo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ImplictBaseOfBase(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class InterfaceCollections( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InterfaceCollections\\" +): + \\"\\"\\"Verifies that collections of interfaces or structs are correctly handled. + + See: https://github.com/aws/jsii/issues/1196 + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"listOfInterfaces\\") + @builtins.classmethod + def list_of_interfaces(cls) -> typing.List[\\"IBell\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"listOfInterfaces\\", []) + + @jsii.member(jsii_name=\\"listOfStructs\\") + @builtins.classmethod + def list_of_structs(cls) -> typing.List[\\"StructA\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"listOfStructs\\", []) + + @jsii.member(jsii_name=\\"mapOfInterfaces\\") + @builtins.classmethod + def map_of_interfaces(cls) -> typing.Mapping[str, \\"IBell\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"mapOfInterfaces\\", []) + + @jsii.member(jsii_name=\\"mapOfStructs\\") + @builtins.classmethod + def map_of_structs(cls) -> typing.Mapping[str, \\"StructA\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"mapOfStructs\\", []) + + +class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InterfacesMaker\\"): + \\"\\"\\"We can return arrays of interfaces See aws/aws-cdk#2362. + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"makeInterfaces\\") + @builtins.classmethod + def make_interfaces( + cls, count: jsii.Number + ) -> typing.List[scope.jsii_calc_lib.IDoublable]: + \\"\\"\\" + :param count: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInterfaces\\", [count]) + + +class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.Isomorphism\\"): + \\"\\"\\"Checks the \\"same instance\\" isomorphism is preserved within the constructor. + + Create a subclass of this, and assert that \`\`this.myself()\`\` actually returns + \`\`this\`\` from within the constructor. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IsomorphismProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Isomorphism, self, []) + + @jsii.member(jsii_name=\\"myself\\") + def myself(self) -> \\"Isomorphism\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"myself\\", []) + + +class _IsomorphismProxy(Isomorphism): + pass + + +class JSII417PublicBaseOfBase( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSII417PublicBaseOfBase\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JSII417PublicBaseOfBase, self, []) + + @jsii.member(jsii_name=\\"makeInstance\\") + @builtins.classmethod + def make_instance(cls) -> \\"JSII417PublicBaseOfBase\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"makeInstance\\", []) + + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"foo\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"hasRoot\\") + def has_root(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"hasRoot\\") + + +class JSObjectLiteralForInterface( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralForInterface\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JSObjectLiteralForInterface, self, []) + + @jsii.member(jsii_name=\\"giveMeFriendly\\") + def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveMeFriendly\\", []) + + @jsii.member(jsii_name=\\"giveMeFriendlyGenerator\\") + def give_me_friendly_generator(self) -> \\"IFriendlyRandomGenerator\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveMeFriendlyGenerator\\", []) + + +class JSObjectLiteralToNative( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralToNative\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JSObjectLiteralToNative, self, []) + + @jsii.member(jsii_name=\\"returnLiteral\\") + def return_literal(self) -> \\"JSObjectLiteralToNativeClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"returnLiteral\\", []) + + +class JSObjectLiteralToNativeClass( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralToNativeClass\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JSObjectLiteralToNativeClass, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"propA\\") + def prop_a(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"propA\\") + + @prop_a.setter + def prop_a(self, value: str) -> None: + jsii.set(self, \\"propA\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"propB\\") + def prop_b(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"propB\\") + + @prop_b.setter + def prop_b(self, value: jsii.Number) -> None: + jsii.set(self, \\"propB\\", value) + + +class JavaReservedWords( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JavaReservedWords\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JavaReservedWords, self, []) + + @jsii.member(jsii_name=\\"abstract\\") + def abstract(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"abstract\\", []) + + @jsii.member(jsii_name=\\"assert\\") + def assert_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"assert\\", []) + + @jsii.member(jsii_name=\\"boolean\\") + def boolean(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"boolean\\", []) + + @jsii.member(jsii_name=\\"break\\") + def break_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"break\\", []) + + @jsii.member(jsii_name=\\"byte\\") + def byte(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"byte\\", []) + + @jsii.member(jsii_name=\\"case\\") + def case(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"case\\", []) + + @jsii.member(jsii_name=\\"catch\\") + def catch(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"catch\\", []) + + @jsii.member(jsii_name=\\"char\\") + def char(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"char\\", []) + + @jsii.member(jsii_name=\\"class\\") + def class_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"class\\", []) + + @jsii.member(jsii_name=\\"const\\") + def const(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"const\\", []) + + @jsii.member(jsii_name=\\"continue\\") + def continue_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"continue\\", []) + + @jsii.member(jsii_name=\\"default\\") + def default(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"default\\", []) + + @jsii.member(jsii_name=\\"do\\") + def do(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"do\\", []) + + @jsii.member(jsii_name=\\"double\\") + def double(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"double\\", []) + + @jsii.member(jsii_name=\\"else\\") + def else_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"else\\", []) + + @jsii.member(jsii_name=\\"enum\\") + def enum(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"enum\\", []) + + @jsii.member(jsii_name=\\"extends\\") + def extends(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"extends\\", []) + + @jsii.member(jsii_name=\\"false\\") + def false(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"false\\", []) + + @jsii.member(jsii_name=\\"final\\") + def final(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"final\\", []) + + @jsii.member(jsii_name=\\"finally\\") + def finally_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"finally\\", []) + + @jsii.member(jsii_name=\\"float\\") + def float(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"float\\", []) + + @jsii.member(jsii_name=\\"for\\") + def for_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"for\\", []) + + @jsii.member(jsii_name=\\"goto\\") + def goto(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"goto\\", []) + + @jsii.member(jsii_name=\\"if\\") + def if_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"if\\", []) + + @jsii.member(jsii_name=\\"implements\\") + def implements(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"implements\\", []) + + @jsii.member(jsii_name=\\"import\\") + def import_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"import\\", []) + + @jsii.member(jsii_name=\\"instanceof\\") + def instanceof(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"instanceof\\", []) + + @jsii.member(jsii_name=\\"int\\") + def int(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"int\\", []) + + @jsii.member(jsii_name=\\"interface\\") + def interface(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"interface\\", []) + + @jsii.member(jsii_name=\\"long\\") + def long(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"long\\", []) + + @jsii.member(jsii_name=\\"native\\") + def native(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"native\\", []) + + @jsii.member(jsii_name=\\"new\\") + def new(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"new\\", []) + + @jsii.member(jsii_name=\\"null\\") + def null(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"null\\", []) + + @jsii.member(jsii_name=\\"package\\") + def package(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"package\\", []) + + @jsii.member(jsii_name=\\"private\\") + def private(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"private\\", []) + + @jsii.member(jsii_name=\\"protected\\") + def protected(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"protected\\", []) + + @jsii.member(jsii_name=\\"public\\") + def public(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"public\\", []) + + @jsii.member(jsii_name=\\"return\\") + def return_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"return\\", []) + + @jsii.member(jsii_name=\\"short\\") + def short(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"short\\", []) + + @jsii.member(jsii_name=\\"static\\") + def static(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"static\\", []) + + @jsii.member(jsii_name=\\"strictfp\\") + def strictfp(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"strictfp\\", []) + + @jsii.member(jsii_name=\\"super\\") + def super(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"super\\", []) + + @jsii.member(jsii_name=\\"switch\\") + def switch(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"switch\\", []) + + @jsii.member(jsii_name=\\"synchronized\\") + def synchronized(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"synchronized\\", []) + + @jsii.member(jsii_name=\\"this\\") + def this(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"this\\", []) + + @jsii.member(jsii_name=\\"throw\\") + def throw(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"throw\\", []) + + @jsii.member(jsii_name=\\"throws\\") + def throws(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"throws\\", []) + + @jsii.member(jsii_name=\\"transient\\") + def transient(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"transient\\", []) + + @jsii.member(jsii_name=\\"true\\") + def true(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"true\\", []) + + @jsii.member(jsii_name=\\"try\\") + def try_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"try\\", []) + + @jsii.member(jsii_name=\\"void\\") + def void(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"void\\", []) + + @jsii.member(jsii_name=\\"volatile\\") + def volatile(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"volatile\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"while\\") + def while_(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"while\\") + + @while_.setter + def while_(self, value: str) -> None: + jsii.set(self, \\"while\\", value) + + +@jsii.implements(IJsii487External2, IJsii487External) +class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Jsii487Derived\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Jsii487Derived, self, []) + + +@jsii.implements(IJsii496) +class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Jsii496Derived\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Jsii496Derived, self, []) + + +class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JsiiAgent\\"): + \\"\\"\\"Host runtime version should be set via JSII_AGENT. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(JsiiAgent, self, []) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"jsiiAgent\\") + def jsii_agent(cls) -> typing.Optional[str]: + \\"\\"\\"Returns the value of the JSII_AGENT environment variable. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"jsiiAgent\\") + + +class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JsonFormatter\\"): + \\"\\"\\"Make sure structs are un-decorated on the way in. + + see + :see: https://github.com/aws/aws-cdk/issues/5066 + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"anyArray\\") + @builtins.classmethod + def any_array(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyArray\\", []) + + @jsii.member(jsii_name=\\"anyBooleanFalse\\") + @builtins.classmethod + def any_boolean_false(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyBooleanFalse\\", []) + + @jsii.member(jsii_name=\\"anyBooleanTrue\\") + @builtins.classmethod + def any_boolean_true(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyBooleanTrue\\", []) + + @jsii.member(jsii_name=\\"anyDate\\") + @builtins.classmethod + def any_date(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyDate\\", []) + + @jsii.member(jsii_name=\\"anyEmptyString\\") + @builtins.classmethod + def any_empty_string(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyEmptyString\\", []) + + @jsii.member(jsii_name=\\"anyFunction\\") + @builtins.classmethod + def any_function(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyFunction\\", []) + + @jsii.member(jsii_name=\\"anyHash\\") + @builtins.classmethod + def any_hash(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyHash\\", []) + + @jsii.member(jsii_name=\\"anyNull\\") + @builtins.classmethod + def any_null(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyNull\\", []) + + @jsii.member(jsii_name=\\"anyNumber\\") + @builtins.classmethod + def any_number(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyNumber\\", []) + + @jsii.member(jsii_name=\\"anyRef\\") + @builtins.classmethod + def any_ref(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyRef\\", []) + + @jsii.member(jsii_name=\\"anyString\\") + @builtins.classmethod + def any_string(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyString\\", []) + + @jsii.member(jsii_name=\\"anyUndefined\\") + @builtins.classmethod + def any_undefined(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyUndefined\\", []) + + @jsii.member(jsii_name=\\"anyZero\\") + @builtins.classmethod + def any_zero(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"anyZero\\", []) + + @jsii.member(jsii_name=\\"stringify\\") + @builtins.classmethod + def stringify(cls, value: typing.Any = None) -> typing.Optional[str]: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"stringify\\", [value]) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.LoadBalancedFargateServiceProps\\", + jsii_struct_bases=[], + name_mapping={ + \\"container_port\\": \\"containerPort\\", + \\"cpu\\": \\"cpu\\", + \\"memory_mib\\": \\"memoryMiB\\", + \\"public_load_balancer\\": \\"publicLoadBalancer\\", + \\"public_tasks\\": \\"publicTasks\\", + }, +) +class LoadBalancedFargateServiceProps: + def __init__( + self, + *, + container_port: typing.Optional[jsii.Number] = None, + cpu: typing.Optional[str] = None, + memory_mib: typing.Optional[str] = None, + public_load_balancer: typing.Optional[bool] = None, + public_tasks: typing.Optional[bool] = None, + ) -> None: + \\"\\"\\"jsii#298: show default values in sphinx documentation, and respect newlines. + + :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 + :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 + :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 + :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true + :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if container_port is not None: + self._values[\\"container_port\\"] = container_port + if cpu is not None: + self._values[\\"cpu\\"] = cpu + if memory_mib is not None: + self._values[\\"memory_mib\\"] = memory_mib + if public_load_balancer is not None: + self._values[\\"public_load_balancer\\"] = public_load_balancer + if public_tasks is not None: + self._values[\\"public_tasks\\"] = public_tasks + + @builtins.property + def container_port(self) -> typing.Optional[jsii.Number]: + \\"\\"\\"The container port of the application load balancer attached to your Fargate service. + + Corresponds to container port mapping. + + default + :default: 80 + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"container_port\\") + + @builtins.property + def cpu(self) -> typing.Optional[str]: + \\"\\"\\"The number of cpu units used by the task. + + Valid values, which determines your range of valid values for the memory parameter: + 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 256 + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"cpu\\") + + @builtins.property + def memory_mib(self) -> typing.Optional[str]: + \\"\\"\\"The amount (in MiB) of memory used by the task. + + This field is required and you must use one of the following values, which determines your range of valid values + for the cpu parameter: + + 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + + 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + + 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + + Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + + Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 512 + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"memory_mib\\") + + @builtins.property + def public_load_balancer(self) -> typing.Optional[bool]: + \\"\\"\\"Determines whether the Application Load Balancer will be internet-facing. + + default + :default: true + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"public_load_balancer\\") + + @builtins.property + def public_tasks(self) -> typing.Optional[bool]: + \\"\\"\\"Determines whether your Fargate Service will be assigned a public IP address. + + default + :default: false + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"public_tasks\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"LoadBalancedFargateServiceProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class MethodNamedProperty( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.MethodNamedProperty\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(MethodNamedProperty, self, []) + + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"property\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"elite\\") + def elite(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"elite\\") + + +@jsii.implements(IFriendlier, IRandomNumberGenerator) +class Multiply( + BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Multiply\\" +): + \\"\\"\\"The \\"*\\" binary operation. + + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: + \\"\\"\\"Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(Multiply, self, [lhs, rhs]) + + @jsii.member(jsii_name=\\"farewell\\") + def farewell(self) -> str: + \\"\\"\\"Say farewell. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"farewell\\", []) + + @jsii.member(jsii_name=\\"goodbye\\") + def goodbye(self) -> str: + \\"\\"\\"Say goodbye. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"goodbye\\", []) + + @jsii.member(jsii_name=\\"next\\") + def next(self) -> jsii.Number: + \\"\\"\\"Returns another random number. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"next\\", []) + + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +@jsii.data_type( + jsii_type=\\"jsii-calc.NestedStruct\\", + jsii_struct_bases=[], + name_mapping={\\"number_prop\\": \\"numberProp\\"}, +) +class NestedStruct: + def __init__(self, *, number_prop: jsii.Number) -> None: + \\"\\"\\" + :param number_prop: When provided, must be > 0. + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"number_prop\\": number_prop, + } + + @builtins.property + def number_prop(self) -> jsii.Number: + \\"\\"\\"When provided, must be > 0. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"number_prop\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"NestedStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class NodeStandardLibrary( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NodeStandardLibrary\\" +): + \\"\\"\\"Test fixture to verify that jsii modules can use the node standard library. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(NodeStandardLibrary, self, []) + + @jsii.member(jsii_name=\\"cryptoSha256\\") + def crypto_sha256(self) -> str: + \\"\\"\\"Uses node.js \\"crypto\\" module to calculate sha256 of a string. + + return + :return: \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"cryptoSha256\\", []) + + @jsii.member(jsii_name=\\"fsReadFile\\") + def fs_read_file(self) -> str: + \\"\\"\\"Reads a local resource file (resource.txt) asynchronously. + + return + :return: \\"Hello, resource!\\" + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"fsReadFile\\", []) + + @jsii.member(jsii_name=\\"fsReadFileSync\\") + def fs_read_file_sync(self) -> str: + \\"\\"\\"Sync version of fsReadFile. + + return + :return: \\"Hello, resource! SYNC!\\" + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"fsReadFileSync\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"osPlatform\\") + def os_platform(self) -> str: + \\"\\"\\"Returns the current os.platform() from the \\"os\\" node module. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"osPlatform\\") + + +class NullShouldBeTreatedAsUndefined( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NullShouldBeTreatedAsUndefined\\" +): + \\"\\"\\"jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, _param1: str, optional: typing.Any = None) -> None: + \\"\\"\\" + :param _param1: - + :param optional: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) + + @jsii.member(jsii_name=\\"giveMeUndefined\\") + def give_me_undefined(self, value: typing.Any = None) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveMeUndefined\\", [value]) + + @jsii.member(jsii_name=\\"giveMeUndefinedInsideAnObject\\") + def give_me_undefined_inside_an_object( + self, + *, + array_with_three_elements_and_undefined_as_second_argument: typing.List[ + typing.Any + ], + this_should_be_undefined: typing.Any = None, + ) -> None: + \\"\\"\\" + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + \\"\\"\\" + input = NullShouldBeTreatedAsUndefinedData( + array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, + this_should_be_undefined=this_should_be_undefined, + ) + + return jsii.invoke(self, \\"giveMeUndefinedInsideAnObject\\", [input]) + + @jsii.member(jsii_name=\\"verifyPropertyIsUndefined\\") + def verify_property_is_undefined(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"verifyPropertyIsUndefined\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"changeMeToUndefined\\") + def change_me_to_undefined(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"changeMeToUndefined\\") + + @change_me_to_undefined.setter + def change_me_to_undefined(self, value: typing.Optional[str]) -> None: + jsii.set(self, \\"changeMeToUndefined\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\", + jsii_struct_bases=[], + name_mapping={ + \\"array_with_three_elements_and_undefined_as_second_argument\\": \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", + \\"this_should_be_undefined\\": \\"thisShouldBeUndefined\\", + }, +) +class NullShouldBeTreatedAsUndefinedData: + def __init__( + self, + *, + array_with_three_elements_and_undefined_as_second_argument: typing.List[ + typing.Any + ], + this_should_be_undefined: typing.Any = None, + ) -> None: + \\"\\"\\" + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"array_with_three_elements_and_undefined_as_second_argument\\": array_with_three_elements_and_undefined_as_second_argument, + } + if this_should_be_undefined is not None: + self._values[\\"this_should_be_undefined\\"] = this_should_be_undefined + + @builtins.property + def array_with_three_elements_and_undefined_as_second_argument( + self, + ) -> typing.List[typing.Any]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get( + \\"array_with_three_elements_and_undefined_as_second_argument\\" + ) + + @builtins.property + def this_should_be_undefined(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"this_should_be_undefined\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"NullShouldBeTreatedAsUndefinedData(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NumberGenerator\\"): + \\"\\"\\"This allows us to test that a reference can be stored for objects that implement interfaces. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, generator: \\"IRandomNumberGenerator\\") -> None: + \\"\\"\\" + :param generator: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(NumberGenerator, self, [generator]) + + @jsii.member(jsii_name=\\"isSameGenerator\\") + def is_same_generator(self, gen: \\"IRandomNumberGenerator\\") -> bool: + \\"\\"\\" + :param gen: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"isSameGenerator\\", [gen]) + + @jsii.member(jsii_name=\\"nextTimes100\\") + def next_times100(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"nextTimes100\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"generator\\") + def generator(self) -> \\"IRandomNumberGenerator\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"generator\\") + + @generator.setter + def generator(self, value: \\"IRandomNumberGenerator\\") -> None: + jsii.set(self, \\"generator\\", value) + + +class ObjectRefsInCollections( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ObjectRefsInCollections\\" +): + \\"\\"\\"Verify that object references can be passed inside collections. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ObjectRefsInCollections, self, []) + + @jsii.member(jsii_name=\\"sumFromArray\\") + def sum_from_array( + self, values: typing.List[scope.jsii_calc_lib.Value] + ) -> jsii.Number: + \\"\\"\\"Returns the sum of all values. + + :param values: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"sumFromArray\\", [values]) + + @jsii.member(jsii_name=\\"sumFromMap\\") + def sum_from_map( + self, values: typing.Mapping[str, scope.jsii_calc_lib.Value] + ) -> jsii.Number: + \\"\\"\\"Returns the sum of all values in a map. + + :param values: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"sumFromMap\\", [values]) + + +class ObjectWithPropertyProvider( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ObjectWithPropertyProvider\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"provide\\") + @builtins.classmethod + def provide(cls) -> \\"IObjectWithProperty\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"provide\\", []) + + +class Old(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Old\\"): + \\"\\"\\"Old class. + + deprecated + :deprecated: Use the new class + + stability + :stability: deprecated + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Old, self, []) + + @jsii.member(jsii_name=\\"doAThing\\") + def do_a_thing(self) -> None: + \\"\\"\\"Doo wop that thing. + + stability + :stability: deprecated + \\"\\"\\" + return jsii.invoke(self, \\"doAThing\\", []) + + +class OptionalArgumentInvoker( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalArgumentInvoker\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, delegate: \\"IInterfaceWithOptionalMethodArguments\\") -> None: + \\"\\"\\" + :param delegate: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(OptionalArgumentInvoker, self, [delegate]) + + @jsii.member(jsii_name=\\"invokeWithOptional\\") + def invoke_with_optional(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"invokeWithOptional\\", []) + + @jsii.member(jsii_name=\\"invokeWithoutOptional\\") + def invoke_without_optional(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"invokeWithoutOptional\\", []) + + +class OptionalConstructorArgument( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalConstructorArgument\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, + arg1: jsii.Number, + arg2: str, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: + \\"\\"\\" + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name=\\"arg1\\") + def arg1(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg1\\") + + @builtins.property + @jsii.member(jsii_name=\\"arg2\\") + def arg2(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg2\\") + + @builtins.property + @jsii.member(jsii_name=\\"arg3\\") + def arg3(self) -> typing.Optional[datetime.datetime]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"arg3\\") + + +@jsii.data_type( + jsii_type=\\"jsii-calc.OptionalStruct\\", + jsii_struct_bases=[], + name_mapping={\\"field\\": \\"field\\"}, +) +class OptionalStruct: + def __init__(self, *, field: typing.Optional[str] = None) -> None: + \\"\\"\\" + :param field: + + stability + :stability: experimental + \\"\\"\\" + self._values = {} + if field is not None: + self._values[\\"field\\"] = field + + @builtins.property + def field(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"field\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"OptionalStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class OptionalStructConsumer( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalStructConsumer\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, *, field: typing.Optional[str] = None) -> None: + \\"\\"\\" + :param field: + + stability + :stability: experimental + \\"\\"\\" + optional_struct = OptionalStruct(field=field) + + jsii.create(OptionalStructConsumer, self, [optional_struct]) + + @builtins.property + @jsii.member(jsii_name=\\"parameterWasUndefined\\") + def parameter_was_undefined(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"parameterWasUndefined\\") + + @builtins.property + @jsii.member(jsii_name=\\"fieldValue\\") + def field_value(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"fieldValue\\") + + +class OverridableProtectedMember( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OverridableProtectedMember\\" +): + \\"\\"\\" + see + :see: https://github.com/aws/jsii/issues/903 + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(OverridableProtectedMember, self, []) + + @jsii.member(jsii_name=\\"overrideMe\\") + def _override_me(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"overrideMe\\", []) + + @jsii.member(jsii_name=\\"switchModes\\") + def switch_modes(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"switchModes\\", []) + + @jsii.member(jsii_name=\\"valueFromProtected\\") + def value_from_protected(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"valueFromProtected\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"overrideReadOnly\\") + def _override_read_only(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"overrideReadOnly\\") + + @builtins.property + @jsii.member(jsii_name=\\"overrideReadWrite\\") + def _override_read_write(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"overrideReadWrite\\") + + @_override_read_write.setter + def _override_read_write(self, value: str) -> None: + jsii.set(self, \\"overrideReadWrite\\", value) + + +class OverrideReturnsObject( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OverrideReturnsObject\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(OverrideReturnsObject, self, []) + + @jsii.member(jsii_name=\\"test\\") + def test(self, obj: \\"IReturnsNumber\\") -> jsii.Number: + \\"\\"\\" + :param obj: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"test\\", [obj]) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ParentStruct982\\", + jsii_struct_bases=[], + name_mapping={\\"foo\\": \\"foo\\"}, +) +class ParentStruct982: + def __init__(self, *, foo: str) -> None: + \\"\\"\\"https://github.com/aws/jsii/issues/982. + + :param foo: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"foo\\": foo, + } + + @builtins.property + def foo(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"foo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ParentStruct982(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class PartiallyInitializedThisConsumer( + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.PartiallyInitializedThisConsumer\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _PartiallyInitializedThisConsumerProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(PartiallyInitializedThisConsumer, self, []) + + @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") + @abc.abstractmethod + def consume_partially_initialized_this( + self, obj: \\"ConstructorPassesThisOut\\", dt: datetime.datetime, ev: \\"AllTypesEnum\\" + ) -> str: + \\"\\"\\" + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): + @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") + def consume_partially_initialized_this( + self, obj: \\"ConstructorPassesThisOut\\", dt: datetime.datetime, ev: \\"AllTypesEnum\\" + ) -> str: + \\"\\"\\" + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"consumePartiallyInitializedThis\\", [obj, dt, ev]) + + +class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Polymorphism\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Polymorphism, self, []) + + @jsii.member(jsii_name=\\"sayHello\\") + def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + \\"\\"\\" + :param friendly: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"sayHello\\", [friendly]) + + +class Power( + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Power\\" +): + \\"\\"\\"The power operation. + + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value + ) -> None: + \\"\\"\\"Creates a Power operation. + + :param base: The base of the power. + :param pow: The number of times to multiply. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(Power, self, [base, pow]) + + @builtins.property + @jsii.member(jsii_name=\\"base\\") + def base(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The base of the power. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"base\\") + + @builtins.property + @jsii.member(jsii_name=\\"expression\\") + def expression(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"expression\\") + + @builtins.property + @jsii.member(jsii_name=\\"pow\\") + def pow(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The number of times to multiply. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"pow\\") + + +class PropertyNamedProperty( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PropertyNamedProperty\\" +): + \\"\\"\\"Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(PropertyNamedProperty, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"property\\") + + @builtins.property + @jsii.member(jsii_name=\\"yetAnoterOne\\") + def yet_anoter_one(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"yetAnoterOne\\") + + +class PublicClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PublicClass\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(PublicClass, self, []) + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + +class PythonReservedWords( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonReservedWords\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(PythonReservedWords, self, []) + + @jsii.member(jsii_name=\\"and\\") + def and_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"and\\", []) + + @jsii.member(jsii_name=\\"as\\") + def as_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"as\\", []) + + @jsii.member(jsii_name=\\"assert\\") + def assert_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"assert\\", []) + + @jsii.member(jsii_name=\\"async\\") + def async_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"async\\", []) + + @jsii.member(jsii_name=\\"await\\") + def await_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"await\\", []) + + @jsii.member(jsii_name=\\"break\\") + def break_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"break\\", []) + + @jsii.member(jsii_name=\\"class\\") + def class_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"class\\", []) + + @jsii.member(jsii_name=\\"continue\\") + def continue_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"continue\\", []) + + @jsii.member(jsii_name=\\"def\\") + def def_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"def\\", []) + + @jsii.member(jsii_name=\\"del\\") + def del_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"del\\", []) + + @jsii.member(jsii_name=\\"elif\\") + def elif_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"elif\\", []) + + @jsii.member(jsii_name=\\"else\\") + def else_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"else\\", []) + + @jsii.member(jsii_name=\\"except\\") + def except_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"except\\", []) + + @jsii.member(jsii_name=\\"finally\\") + def finally_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"finally\\", []) + + @jsii.member(jsii_name=\\"for\\") + def for_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"for\\", []) + + @jsii.member(jsii_name=\\"from\\") + def from_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"from\\", []) + + @jsii.member(jsii_name=\\"global\\") + def global_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"global\\", []) + + @jsii.member(jsii_name=\\"if\\") + def if_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"if\\", []) + + @jsii.member(jsii_name=\\"import\\") + def import_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"import\\", []) + + @jsii.member(jsii_name=\\"in\\") + def in_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"in\\", []) + + @jsii.member(jsii_name=\\"is\\") + def is_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"is\\", []) + + @jsii.member(jsii_name=\\"lambda\\") + def lambda_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"lambda\\", []) + + @jsii.member(jsii_name=\\"nonlocal\\") + def nonlocal_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"nonlocal\\", []) + + @jsii.member(jsii_name=\\"not\\") + def not_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"not\\", []) + + @jsii.member(jsii_name=\\"or\\") + def or_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"or\\", []) + + @jsii.member(jsii_name=\\"pass\\") + def pass_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"pass\\", []) + + @jsii.member(jsii_name=\\"raise\\") + def raise_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"raise\\", []) + + @jsii.member(jsii_name=\\"return\\") + def return_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"return\\", []) + + @jsii.member(jsii_name=\\"try\\") + def try_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"try\\", []) + + @jsii.member(jsii_name=\\"while\\") + def while_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"while\\", []) + + @jsii.member(jsii_name=\\"with\\") + def with_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"with\\", []) + + @jsii.member(jsii_name=\\"yield\\") + def yield_(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"yield\\", []) + + +class ReferenceEnumFromScopedPackage( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ReferenceEnumFromScopedPackage\\" +): + \\"\\"\\"See awslabs/jsii#138. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ReferenceEnumFromScopedPackage, self, []) + + @jsii.member(jsii_name=\\"loadFoo\\") + def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"loadFoo\\", []) + + @jsii.member(jsii_name=\\"saveFoo\\") + def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"saveFoo\\", [value]) + + @builtins.property + @jsii.member(jsii_name=\\"foo\\") + def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"foo\\") + + @foo.setter + def foo( + self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule] + ) -> None: + jsii.set(self, \\"foo\\", value) + + +class ReturnsPrivateImplementationOfInterface( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ReturnsPrivateImplementationOfInterface\\", +): + \\"\\"\\"Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + + return + :return: an instance of an un-exported class that extends \`\`ExportedBaseClass\`\`, declared as \`\`IPrivatelyImplemented\`\`. + + see + :see: https://github.com/aws/jsii/issues/320 + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ReturnsPrivateImplementationOfInterface, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"privateImplementation\\") + def private_implementation(self) -> \\"IPrivatelyImplemented\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"privateImplementation\\") + + +@jsii.data_type( + jsii_type=\\"jsii-calc.RootStruct\\", + jsii_struct_bases=[], + name_mapping={\\"string_prop\\": \\"stringProp\\", \\"nested_struct\\": \\"nestedStruct\\"}, +) +class RootStruct: + def __init__( + self, *, string_prop: str, nested_struct: typing.Optional[\\"NestedStruct\\"] = None + ) -> None: + \\"\\"\\"This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + + This is cheating with the (current) declared types, but this is the \\"more + idiomatic\\" way for Pythonists. + + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + \\"\\"\\" + if isinstance(nested_struct, dict): + nested_struct = NestedStruct(**nested_struct) + self._values = { + \\"string_prop\\": string_prop, + } + if nested_struct is not None: + self._values[\\"nested_struct\\"] = nested_struct + + @builtins.property + def string_prop(self) -> str: + \\"\\"\\"May not be empty. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"string_prop\\") + + @builtins.property + def nested_struct(self) -> typing.Optional[\\"NestedStruct\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"nested_struct\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"RootStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class RootStructValidator( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.RootStructValidator\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"validate\\") + @builtins.classmethod + def validate( + cls, *, string_prop: str, nested_struct: typing.Optional[\\"NestedStruct\\"] = None + ) -> None: + \\"\\"\\" + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + \\"\\"\\" + struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) + + return jsii.sinvoke(cls, \\"validate\\", [struct]) + + +class RuntimeTypeChecking( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.RuntimeTypeChecking\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(RuntimeTypeChecking, self, []) + + @jsii.member(jsii_name=\\"methodWithDefaultedArguments\\") + def method_with_defaulted_arguments( + self, + arg1: typing.Optional[jsii.Number] = None, + arg2: typing.Optional[str] = None, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: + \\"\\"\\" + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"methodWithDefaultedArguments\\", [arg1, arg2, arg3]) + + @jsii.member(jsii_name=\\"methodWithOptionalAnyArgument\\") + def method_with_optional_any_argument(self, arg: typing.Any = None) -> None: + \\"\\"\\" + :param arg: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"methodWithOptionalAnyArgument\\", [arg]) + + @jsii.member(jsii_name=\\"methodWithOptionalArguments\\") + def method_with_optional_arguments( + self, + arg1: jsii.Number, + arg2: str, + arg3: typing.Optional[datetime.datetime] = None, + ) -> None: + \\"\\"\\"Used to verify verification of number of method arguments. + + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"methodWithOptionalArguments\\", [arg1, arg2, arg3]) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.SecondLevelStruct\\", + jsii_struct_bases=[], + name_mapping={ + \\"deeper_required_prop\\": \\"deeperRequiredProp\\", + \\"deeper_optional_prop\\": \\"deeperOptionalProp\\", + }, +) +class SecondLevelStruct: + def __init__( + self, + *, + deeper_required_prop: str, + deeper_optional_prop: typing.Optional[str] = None, + ) -> None: + \\"\\"\\" + :param deeper_required_prop: It's long and required. + :param deeper_optional_prop: It's long, but you'll almost never pass it. + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"deeper_required_prop\\": deeper_required_prop, + } + if deeper_optional_prop is not None: + self._values[\\"deeper_optional_prop\\"] = deeper_optional_prop + + @builtins.property + def deeper_required_prop(self) -> str: + \\"\\"\\"It's long and required. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"deeper_required_prop\\") + + @builtins.property + def deeper_optional_prop(self) -> typing.Optional[str]: + \\"\\"\\"It's long, but you'll almost never pass it. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"deeper_optional_prop\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"SecondLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class SingleInstanceTwoTypes( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingleInstanceTwoTypes\\" +): + \\"\\"\\"Test that a single instance can be returned under two different FQNs. + + JSII clients can instantiate 2 different strongly-typed wrappers for the same + object. Unfortunately, this will break object equality, but if we didn't do + this it would break runtime type checks in the JVM or CLR. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(SingleInstanceTwoTypes, self, []) + + @jsii.member(jsii_name=\\"interface1\\") + def interface1(self) -> \\"InbetweenClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"interface1\\", []) + + @jsii.member(jsii_name=\\"interface2\\") + def interface2(self) -> \\"IPublicInterface\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"interface2\\", []) + + +class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingletonInt\\"): + \\"\\"\\"Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"isSingletonInt\\") + def is_singleton_int(self, value: jsii.Number) -> bool: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"isSingletonInt\\", [value]) + + +@jsii.enum(jsii_type=\\"jsii-calc.SingletonIntEnum\\") +class SingletonIntEnum(enum.Enum): + \\"\\"\\"A singleton integer. + + stability + :stability: experimental + \\"\\"\\" + + SINGLETON_INT = \\"SINGLETON_INT\\" + \\"\\"\\"Elite! + + stability + :stability: experimental + \\"\\"\\" + + +class SingletonString(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingletonString\\"): + \\"\\"\\"Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"isSingletonString\\") + def is_singleton_string(self, value: str) -> bool: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"isSingletonString\\", [value]) + + +@jsii.enum(jsii_type=\\"jsii-calc.SingletonStringEnum\\") +class SingletonStringEnum(enum.Enum): + \\"\\"\\"A singleton string. + + stability + :stability: experimental + \\"\\"\\" + + SINGLETON_STRING = \\"SINGLETON_STRING\\" + \\"\\"\\"1337. + + stability + :stability: experimental + \\"\\"\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.SmellyStruct\\", + jsii_struct_bases=[], + name_mapping={\\"property\\": \\"property\\", \\"yet_anoter_one\\": \\"yetAnoterOne\\"}, +) +class SmellyStruct: + def __init__(self, *, property: str, yet_anoter_one: bool) -> None: + \\"\\"\\" + :param property: + :param yet_anoter_one: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"property\\": property, + \\"yet_anoter_one\\": yet_anoter_one, + } + + @builtins.property + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"property\\") + + @builtins.property + def yet_anoter_one(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"yet_anoter_one\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"SmellyStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SomeTypeJsii976\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(SomeTypeJsii976, self, []) + + @jsii.member(jsii_name=\\"returnAnonymous\\") + @builtins.classmethod + def return_anonymous(cls) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"returnAnonymous\\", []) + + @jsii.member(jsii_name=\\"returnReturn\\") + @builtins.classmethod + def return_return(cls) -> \\"IReturnJsii976\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"returnReturn\\", []) + + +class StableClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StableClass\\"): + def __init__( + self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None + ) -> None: + \\"\\"\\" + :param readonly_string: - + :param mutable_number: - + \\"\\"\\" + jsii.create(StableClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name=\\"method\\") + def method(self) -> None: + return jsii.invoke(self, \\"method\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"readonlyProperty\\") + def readonly_property(self) -> str: + return jsii.get(self, \\"readonlyProperty\\") + + @builtins.property + @jsii.member(jsii_name=\\"mutableProperty\\") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, \\"mutableProperty\\") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: + jsii.set(self, \\"mutableProperty\\", value) + + +@jsii.enum(jsii_type=\\"jsii-calc.StableEnum\\") +class StableEnum(enum.Enum): + OPTION_A = \\"OPTION_A\\" + OPTION_B = \\"OPTION_B\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.StableStruct\\", + jsii_struct_bases=[], + name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, +) +class StableStruct: + def __init__(self, *, readonly_property: str) -> None: + \\"\\"\\" + :param readonly_property: + \\"\\"\\" + self._values = { + \\"readonly_property\\": readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + return self._values.get(\\"readonly_property\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StableStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class StaticContext(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StaticContext\\"): + \\"\\"\\"This is used to validate the ability to use \`\`this\`\` from within a static context. + + https://github.com/awslabs/aws-cdk/issues/2304 + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"canAccessStaticContext\\") + @builtins.classmethod + def can_access_static_context(cls) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"canAccessStaticContext\\", []) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"staticVariable\\") + def static_variable(cls) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"staticVariable\\") + + @static_variable.setter + def static_variable(cls, value: bool) -> None: + jsii.sset(cls, \\"staticVariable\\", value) + + +class Statics(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Statics\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, value: str) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(Statics, self, [value]) + + @jsii.member(jsii_name=\\"staticMethod\\") + @builtins.classmethod + def static_method(cls, name: str) -> str: + \\"\\"\\"Jsdocs for static method. + + :param name: The name of the person to say hello to. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"staticMethod\\", [name]) + + @jsii.member(jsii_name=\\"justMethod\\") + def just_method(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"justMethod\\", []) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"BAR\\") + def BAR(cls) -> jsii.Number: + \\"\\"\\"Constants may also use all-caps. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"BAR\\") + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"ConstObj\\") + def CONST_OBJ(cls) -> \\"DoubleTrouble\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"ConstObj\\") + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"Foo\\") + def FOO(cls) -> str: + \\"\\"\\"Jsdocs for static property. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"Foo\\") + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"zooBar\\") + def ZOO_BAR(cls) -> typing.Mapping[str, str]: + \\"\\"\\"Constants can also use camelCase. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"zooBar\\") + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"instance\\") + def instance(cls) -> \\"Statics\\": + \\"\\"\\"Jsdocs for static getter. + + Jsdocs for static setter. + + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"instance\\") + + @instance.setter + def instance(cls, value: \\"Statics\\") -> None: + jsii.sset(cls, \\"instance\\", value) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"nonConstStatic\\") + def non_const_static(cls) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"nonConstStatic\\") + + @non_const_static.setter + def non_const_static(cls, value: jsii.Number) -> None: + jsii.sset(cls, \\"nonConstStatic\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +@jsii.enum(jsii_type=\\"jsii-calc.StringEnum\\") +class StringEnum(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + A = \\"A\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + B = \\"B\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + C = \\"C\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + +class StripInternal(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StripInternal\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(StripInternal, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"youSeeMe\\") + def you_see_me(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"youSeeMe\\") + + @you_see_me.setter + def you_see_me(self, value: str) -> None: + jsii.set(self, \\"youSeeMe\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.StructA\\", + jsii_struct_bases=[], + name_mapping={ + \\"required_string\\": \\"requiredString\\", + \\"optional_number\\": \\"optionalNumber\\", + \\"optional_string\\": \\"optionalString\\", + }, +) +class StructA: + def __init__( + self, + *, + required_string: str, + optional_number: typing.Optional[jsii.Number] = None, + optional_string: typing.Optional[str] = None, + ) -> None: + \\"\\"\\"We can serialize and deserialize structs without silently ignoring optional fields. + + :param required_string: + :param optional_number: + :param optional_string: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"required_string\\": required_string, + } + if optional_number is not None: + self._values[\\"optional_number\\"] = optional_number + if optional_string is not None: + self._values[\\"optional_string\\"] = optional_string + + @builtins.property + def required_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"required_string\\") + + @builtins.property + def optional_number(self) -> typing.Optional[jsii.Number]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_number\\") + + @builtins.property + def optional_string(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_string\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructA(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.StructB\\", + jsii_struct_bases=[], + name_mapping={ + \\"required_string\\": \\"requiredString\\", + \\"optional_boolean\\": \\"optionalBoolean\\", + \\"optional_struct_a\\": \\"optionalStructA\\", + }, +) +class StructB: + def __init__( + self, + *, + required_string: str, + optional_boolean: typing.Optional[bool] = None, + optional_struct_a: typing.Optional[\\"StructA\\"] = None, + ) -> None: + \\"\\"\\"This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + + :param required_string: + :param optional_boolean: + :param optional_struct_a: + + stability + :stability: experimental + \\"\\"\\" + if isinstance(optional_struct_a, dict): + optional_struct_a = StructA(**optional_struct_a) + self._values = { + \\"required_string\\": required_string, + } + if optional_boolean is not None: + self._values[\\"optional_boolean\\"] = optional_boolean + if optional_struct_a is not None: + self._values[\\"optional_struct_a\\"] = optional_struct_a + + @builtins.property + def required_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"required_string\\") + + @builtins.property + def optional_boolean(self) -> typing.Optional[bool]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_boolean\\") + + @builtins.property + def optional_struct_a(self) -> typing.Optional[\\"StructA\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional_struct_a\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructB(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.StructParameterType\\", + jsii_struct_bases=[], + name_mapping={\\"scope\\": \\"scope\\", \\"props\\": \\"props\\"}, +) +class StructParameterType: + def __init__(self, *, scope: str, props: typing.Optional[bool] = None) -> None: + \\"\\"\\"Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + + See: https://github.com/aws/aws-cdk/issues/4302 + + :param scope: + :param props: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"scope\\": scope, + } + if props is not None: + self._values[\\"props\\"] = props + + @builtins.property + def scope(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"scope\\") + + @builtins.property + def props(self) -> typing.Optional[bool]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"props\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructParameterType(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class StructPassing(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StructPassing\\"): + \\"\\"\\"Just because we can.\\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(StructPassing, self, []) + + @jsii.member(jsii_name=\\"howManyVarArgsDidIPass\\") + @builtins.classmethod + def how_many_var_args_did_i_pass( + cls, _positional: jsii.Number, *inputs: \\"TopLevelStruct\\" + ) -> jsii.Number: + \\"\\"\\" + :param _positional: - + :param inputs: - + \\"\\"\\" + return jsii.sinvoke(cls, \\"howManyVarArgsDidIPass\\", [_positional, *inputs]) + + @jsii.member(jsii_name=\\"roundTrip\\") + @builtins.classmethod + def round_trip( + cls, + _positional: jsii.Number, + *, + required: str, + second_level: typing.Union[jsii.Number, \\"SecondLevelStruct\\"], + optional: typing.Optional[str] = None, + ) -> \\"TopLevelStruct\\": + \\"\\"\\" + :param _positional: - + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + \\"\\"\\" + input = TopLevelStruct( + required=required, second_level=second_level, optional=optional + ) + + return jsii.sinvoke(cls, \\"roundTrip\\", [_positional, input]) + + +class StructUnionConsumer( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StructUnionConsumer\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"isStructA\\") + @builtins.classmethod + def is_struct_a(cls, struct: typing.Union[\\"StructA\\", \\"StructB\\"]) -> bool: + \\"\\"\\" + :param struct: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"isStructA\\", [struct]) + + @jsii.member(jsii_name=\\"isStructB\\") + @builtins.classmethod + def is_struct_b(cls, struct: typing.Union[\\"StructA\\", \\"StructB\\"]) -> bool: + \\"\\"\\" + :param struct: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"isStructB\\", [struct]) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.StructWithJavaReservedWords\\", + jsii_struct_bases=[], + name_mapping={ + \\"default\\": \\"default\\", + \\"assert_\\": \\"assert\\", + \\"result\\": \\"result\\", + \\"that\\": \\"that\\", + }, +) +class StructWithJavaReservedWords: + def __init__( + self, + *, + default: str, + assert_: typing.Optional[str] = None, + result: typing.Optional[str] = None, + that: typing.Optional[str] = None, + ) -> None: + \\"\\"\\" + :param default: + :param assert_: + :param result: + :param that: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"default\\": default, + } + if assert_ is not None: + self._values[\\"assert_\\"] = assert_ + if result is not None: + self._values[\\"result\\"] = result + if that is not None: + self._values[\\"that\\"] = that + + @builtins.property + def default(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"default\\") + + @builtins.property + def assert_(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"assert_\\") + + @builtins.property + def result(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"result\\") + + @builtins.property + def that(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"that\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructWithJavaReservedWords(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class Sum( + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Sum\\" +): + \\"\\"\\"An operation that sums multiple values. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Sum, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"expression\\") + def expression(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"expression\\") + + @builtins.property + @jsii.member(jsii_name=\\"parts\\") + def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: + \\"\\"\\"The parts to sum. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"parts\\") + + @parts.setter + def parts(self, value: typing.List[scope.jsii_calc_lib.Value]) -> None: + jsii.set(self, \\"parts\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.SupportsNiceJavaBuilderProps\\", + jsii_struct_bases=[], + name_mapping={\\"bar\\": \\"bar\\", \\"id\\": \\"id\\"}, +) +class SupportsNiceJavaBuilderProps: + def __init__(self, *, bar: jsii.Number, id: typing.Optional[str] = None) -> None: + \\"\\"\\" + :param bar: Some number, like 42. + :param id: An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. But here we are, doing it like we didn't care. + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"bar\\": bar, + } + if id is not None: + self._values[\\"id\\"] = id + + @builtins.property + def bar(self) -> jsii.Number: + \\"\\"\\"Some number, like 42. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"bar\\") + + @builtins.property + def id(self) -> typing.Optional[str]: + \\"\\"\\"An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. + + But here we are, doing it like we didn't care. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"id\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"SupportsNiceJavaBuilderProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class SupportsNiceJavaBuilderWithRequiredProps( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", +): + \\"\\"\\"We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str] = None + ) -> None: + \\"\\"\\" + :param id_: some identifier of your choice. + :param bar: Some number, like 42. + :param id: An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. But here we are, doing it like we didn't care. + + stability + :stability: experimental + \\"\\"\\" + props = SupportsNiceJavaBuilderProps(bar=bar, id=id) + + jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) + + @builtins.property + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"bar\\") + + @builtins.property + @jsii.member(jsii_name=\\"id\\") + def id(self) -> jsii.Number: + \\"\\"\\"some identifier of your choice. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"id\\") + + @builtins.property + @jsii.member(jsii_name=\\"propId\\") + def prop_id(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"propId\\") + + +class SyncVirtualMethods( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SyncVirtualMethods\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(SyncVirtualMethods, self, []) + + @jsii.member(jsii_name=\\"callerIsAsync\\") + def caller_is_async(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"callerIsAsync\\", []) + + @jsii.member(jsii_name=\\"callerIsMethod\\") + def caller_is_method(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"callerIsMethod\\", []) + + @jsii.member(jsii_name=\\"modifyOtherProperty\\") + def modify_other_property(self, value: str) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"modifyOtherProperty\\", [value]) + + @jsii.member(jsii_name=\\"modifyValueOfTheProperty\\") + def modify_value_of_the_property(self, value: str) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"modifyValueOfTheProperty\\", [value]) + + @jsii.member(jsii_name=\\"readA\\") + def read_a(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"readA\\", []) + + @jsii.member(jsii_name=\\"retrieveOtherProperty\\") + def retrieve_other_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"retrieveOtherProperty\\", []) + + @jsii.member(jsii_name=\\"retrieveReadOnlyProperty\\") + def retrieve_read_only_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"retrieveReadOnlyProperty\\", []) + + @jsii.member(jsii_name=\\"retrieveValueOfTheProperty\\") + def retrieve_value_of_the_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"retrieveValueOfTheProperty\\", []) + + @jsii.member(jsii_name=\\"virtualMethod\\") + def virtual_method(self, n: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param n: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"virtualMethod\\", [n]) + + @jsii.member(jsii_name=\\"writeA\\") + def write_a(self, value: jsii.Number) -> None: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"writeA\\", [value]) + + @builtins.property + @jsii.member(jsii_name=\\"readonlyProperty\\") + def readonly_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readonlyProperty\\") + + @builtins.property + @jsii.member(jsii_name=\\"a\\") + def a(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"a\\") + + @a.setter + def a(self, value: jsii.Number) -> None: + jsii.set(self, \\"a\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"callerIsProperty\\") + def caller_is_property(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"callerIsProperty\\") + + @caller_is_property.setter + def caller_is_property(self, value: jsii.Number) -> None: + jsii.set(self, \\"callerIsProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"otherProperty\\") + def other_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"otherProperty\\") + + @other_property.setter + def other_property(self, value: str) -> None: + jsii.set(self, \\"otherProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"theProperty\\") + def the_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"theProperty\\") + + @the_property.setter + def the_property(self, value: str) -> None: + jsii.set(self, \\"theProperty\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"valueOfOtherProperty\\") + def value_of_other_property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"valueOfOtherProperty\\") + + @value_of_other_property.setter + def value_of_other_property(self, value: str) -> None: + jsii.set(self, \\"valueOfOtherProperty\\", value) + + +class Thrower(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Thrower\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Thrower, self, []) + + @jsii.member(jsii_name=\\"throwError\\") + def throw_error(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"throwError\\", []) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.TopLevelStruct\\", + jsii_struct_bases=[], + name_mapping={ + \\"required\\": \\"required\\", + \\"second_level\\": \\"secondLevel\\", + \\"optional\\": \\"optional\\", + }, +) +class TopLevelStruct: + def __init__( + self, + *, + required: str, + second_level: typing.Union[jsii.Number, \\"SecondLevelStruct\\"], + optional: typing.Optional[str] = None, + ) -> None: + \\"\\"\\" + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"required\\": required, + \\"second_level\\": second_level, + } + if optional is not None: + self._values[\\"optional\\"] = optional + + @builtins.property + def required(self) -> str: + \\"\\"\\"This is a required field. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"required\\") + + @builtins.property + def second_level(self) -> typing.Union[jsii.Number, \\"SecondLevelStruct\\"]: + \\"\\"\\"A union to really stress test our serialization. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"second_level\\") + + @builtins.property + def optional(self) -> typing.Optional[str]: + \\"\\"\\"You don't have to pass this. + + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"optional\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"TopLevelStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UmaskCheck\\"): + \\"\\"\\"Checks the current file permissions are cool (no funky UMASK down-scoping happened). + + see + :see: https://github.com/aws/jsii/issues/1765 + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"mode\\") + @builtins.classmethod + def mode(cls) -> jsii.Number: + \\"\\"\\"This should return 0o644 (-rw-r--r--). + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"mode\\", []) + + +class UnaryOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.UnaryOperation\\", +): + \\"\\"\\"An operation on a single operand. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _UnaryOperationProxy + + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + \\"\\"\\" + :param operand: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(UnaryOperation, self, [operand]) + + @builtins.property + @jsii.member(jsii_name=\\"operand\\") + def operand(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"operand\\") + + +class _UnaryOperationProxy( + UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): + pass + + +@jsii.data_type( + jsii_type=\\"jsii-calc.UnionProperties\\", + jsii_struct_bases=[], + name_mapping={\\"bar\\": \\"bar\\", \\"foo\\": \\"foo\\"}, +) +class UnionProperties: + def __init__( + self, + *, + bar: typing.Union[str, jsii.Number, \\"AllTypes\\"], + foo: typing.Optional[typing.Union[str, jsii.Number]] = None, + ) -> None: + \\"\\"\\" + :param bar: + :param foo: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"bar\\": bar, + } + if foo is not None: + self._values[\\"foo\\"] = foo + + @builtins.property + def bar(self) -> typing.Union[str, jsii.Number, \\"AllTypes\\"]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"bar\\") + + @builtins.property + def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"foo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"UnionProperties(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.implements(scope.jsii_calc_lib.custom_submodule_name.IReflectable) +class UpcasingReflectable( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UpcasingReflectable\\" +): + \\"\\"\\"Ensures submodule-imported types from dependencies can be used correctly. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, delegate: typing.Mapping[str, typing.Any]) -> None: + \\"\\"\\" + :param delegate: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(UpcasingReflectable, self, [delegate]) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"reflector\\") + def REFLECTOR(cls) -> scope.jsii_calc_lib.custom_submodule_name.Reflector: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"reflector\\") + + @builtins.property + @jsii.member(jsii_name=\\"entries\\") + def entries( + self, + ) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"entries\\") + + +class UseBundledDependency( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UseBundledDependency\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(UseBundledDependency, self, []) + + @jsii.member(jsii_name=\\"value\\") + def value(self) -> typing.Any: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"value\\", []) + + +class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UseCalcBase\\"): + \\"\\"\\"Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(UseCalcBase, self, []) + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> scope.jsii_calc_base.Base: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + +class UsesInterfaceWithProperties( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UsesInterfaceWithProperties\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, obj: \\"IInterfaceWithProperties\\") -> None: + \\"\\"\\" + :param obj: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(UsesInterfaceWithProperties, self, [obj]) + + @jsii.member(jsii_name=\\"justRead\\") + def just_read(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"justRead\\", []) + + @jsii.member(jsii_name=\\"readStringAndNumber\\") + def read_string_and_number(self, ext: \\"IInterfaceWithPropertiesExtension\\") -> str: + \\"\\"\\" + :param ext: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"readStringAndNumber\\", [ext]) + + @jsii.member(jsii_name=\\"writeAndRead\\") + def write_and_read(self, value: str) -> str: + \\"\\"\\" + :param value: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"writeAndRead\\", [value]) + + @builtins.property + @jsii.member(jsii_name=\\"obj\\") + def obj(self) -> \\"IInterfaceWithProperties\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"obj\\") + + +class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VariadicInvoker\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, method: \\"VariadicMethod\\") -> None: + \\"\\"\\" + :param method: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(VariadicInvoker, self, [method]) + + @jsii.member(jsii_name=\\"asArray\\") + def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: + \\"\\"\\" + :param values: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"asArray\\", [*values]) + + +class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VariadicMethod\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, *prefix: jsii.Number) -> None: + \\"\\"\\" + :param prefix: a prefix that will be use for all values returned by \`\`#asArray\`\`. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(VariadicMethod, self, [*prefix]) + + @jsii.member(jsii_name=\\"asArray\\") + def as_array( + self, first: jsii.Number, *others: jsii.Number + ) -> typing.List[jsii.Number]: + \\"\\"\\" + :param first: the first element of the array to be returned (after the \`\`prefix\`\` provided at construction time). + :param others: other elements to be included in the array. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"asArray\\", [first, *others]) + + +class VirtualMethodPlayground( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VirtualMethodPlayground\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(VirtualMethodPlayground, self, []) + + @jsii.member(jsii_name=\\"overrideMeAsync\\") + def override_me_async(self, index: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param index: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"overrideMeAsync\\", [index]) + + @jsii.member(jsii_name=\\"overrideMeSync\\") + def override_me_sync(self, index: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param index: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"overrideMeSync\\", [index]) + + @jsii.member(jsii_name=\\"parallelSumAsync\\") + def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param count: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"parallelSumAsync\\", [count]) + + @jsii.member(jsii_name=\\"serialSumAsync\\") + def serial_sum_async(self, count: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param count: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.ainvoke(self, \\"serialSumAsync\\", [count]) + + @jsii.member(jsii_name=\\"sumSync\\") + def sum_sync(self, count: jsii.Number) -> jsii.Number: + \\"\\"\\" + :param count: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"sumSync\\", [count]) + + +class VoidCallback( + metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.VoidCallback\\" +): + \\"\\"\\"This test is used to validate the runtimes can return correctly from a void callback. + + - Implement \`\`overrideMe\`\` (method does not have to do anything). + - Invoke \`\`callMe\`\` + - Verify that \`\`methodWasCalled\`\` is \`\`true\`\`. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _VoidCallbackProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(VoidCallback, self, []) + + @jsii.member(jsii_name=\\"callMe\\") + def call_me(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"callMe\\", []) + + @jsii.member(jsii_name=\\"overrideMe\\") + @abc.abstractmethod + def _override_me(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @builtins.property + @jsii.member(jsii_name=\\"methodWasCalled\\") + def method_was_called(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"methodWasCalled\\") + + +class _VoidCallbackProxy(VoidCallback): + @jsii.member(jsii_name=\\"overrideMe\\") + def _override_me(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"overrideMe\\", []) + + +class WithPrivatePropertyInConstructor( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.WithPrivatePropertyInConstructor\\" +): + \\"\\"\\"Verifies that private property declarations in constructor arguments are hidden. + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, private_field: typing.Optional[str] = None) -> None: + \\"\\"\\" + :param private_field: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) + + @builtins.property + @jsii.member(jsii_name=\\"success\\") + def success(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"success\\") + + +@jsii.implements(IInterfaceImplementedByAbstractClass) +class AbstractClass( + AbstractClassBase, + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.AbstractClass\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AbstractClass, self, []) + + @jsii.member(jsii_name=\\"abstractMethod\\") + @abc.abstractmethod + def abstract_method(self, name: str) -> str: + \\"\\"\\" + :param name: - + + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"nonAbstractMethod\\") + def non_abstract_method(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"nonAbstractMethod\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"propFromInterface\\") + def prop_from_interface(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"propFromInterface\\") + + +class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): + @jsii.member(jsii_name=\\"abstractMethod\\") + def abstract_method(self, name: str) -> str: + \\"\\"\\" + :param name: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"abstractMethod\\", [name]) + + +class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Add\\"): + \\"\\"\\"The \\"+\\" binary operation. + + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value + ) -> None: + \\"\\"\\"Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(Add, self, [lhs, rhs]) + + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +@jsii.implements(IAnonymousImplementationProvider) +class AnonymousImplementationProvider( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AnonymousImplementationProvider\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(AnonymousImplementationProvider, self, []) + + @jsii.member(jsii_name=\\"provideAsClass\\") + def provide_as_class(self) -> \\"Implementation\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"provideAsClass\\", []) + + @jsii.member(jsii_name=\\"provideAsInterface\\") + def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"provideAsInterface\\", []) + + +@jsii.implements(IBell) +class Bell(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Bell\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Bell, self, []) + + @jsii.member(jsii_name=\\"ring\\") + def ring(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"ring\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"rung\\") + def rung(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"rung\\") + + @rung.setter + def rung(self, value: bool) -> None: + jsii.set(self, \\"rung\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.ChildStruct982\\", + jsii_struct_bases=[ParentStruct982], + name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\"}, +) +class ChildStruct982(ParentStruct982): + def __init__(self, *, foo: str, bar: jsii.Number) -> None: + \\"\\"\\" + :param foo: + :param bar: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"foo\\": foo, + \\"bar\\": bar, + } + + @builtins.property + def foo(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"foo\\") + + @builtins.property + def bar(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"bar\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"ChildStruct982(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.implements(INonInternalInterface) +class ClassThatImplementsTheInternalInterface( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ClassThatImplementsTheInternalInterface\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassThatImplementsTheInternalInterface, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"a\\") + def a(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"a\\") + + @a.setter + def a(self, value: str) -> None: + jsii.set(self, \\"a\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"b\\") + def b(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"b\\") + + @b.setter + def b(self, value: str) -> None: + jsii.set(self, \\"b\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"c\\") + def c(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"c\\") + + @c.setter + def c(self, value: str) -> None: + jsii.set(self, \\"c\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"d\\") + def d(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"d\\") + + @d.setter + def d(self, value: str) -> None: + jsii.set(self, \\"d\\", value) + + +@jsii.implements(INonInternalInterface) +class ClassThatImplementsThePrivateInterface( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ClassThatImplementsThePrivateInterface\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassThatImplementsThePrivateInterface, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"a\\") + def a(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"a\\") + + @a.setter + def a(self, value: str) -> None: + jsii.set(self, \\"a\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"b\\") + def b(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"b\\") + + @b.setter + def b(self, value: str) -> None: + jsii.set(self, \\"b\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"c\\") + def c(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"c\\") + + @c.setter + def c(self, value: str) -> None: + jsii.set(self, \\"c\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"e\\") + def e(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"e\\") + + @e.setter + def e(self, value: str) -> None: + jsii.set(self, \\"e\\", value) + + +@jsii.implements(IInterfaceWithProperties) +class ClassWithPrivateConstructorAndAutomaticProperties( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\", +): + \\"\\"\\"Class that implements interface properties automatically, but using a private constructor. + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"create\\") + @builtins.classmethod + def create( + cls, read_only_string: str, read_write_string: str + ) -> \\"ClassWithPrivateConstructorAndAutomaticProperties\\": + \\"\\"\\" + :param read_only_string: - + :param read_write_string: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.sinvoke(cls, \\"create\\", [read_only_string, read_write_string]) + + @builtins.property + @jsii.member(jsii_name=\\"readOnlyString\\") + def read_only_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readOnlyString\\") + + @builtins.property + @jsii.member(jsii_name=\\"readWriteString\\") + def read_write_string(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"readWriteString\\") + + @read_write_string.setter + def read_write_string(self, value: str) -> None: + jsii.set(self, \\"readWriteString\\", value) + + +@jsii.interface(jsii_type=\\"jsii-calc.IFriendlyRandomGenerator\\") +class IFriendlyRandomGenerator( + IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlyRandomGeneratorProxy + + pass + + +class _IFriendlyRandomGeneratorProxy( + jsii.proxy_for(IRandomNumberGenerator), + jsii.proxy_for(scope.jsii_calc_lib.IFriendly), +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IFriendlyRandomGenerator\\" + pass + + +@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceThatShouldNotBeADataType\\") +class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): + \\"\\"\\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceThatShouldNotBeADataTypeProxy + + @builtins.property + @jsii.member(jsii_name=\\"otherValue\\") + def other_value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): + \\"\\"\\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\" + + @builtins.property + @jsii.member(jsii_name=\\"otherValue\\") + def other_value(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"otherValue\\") + + +@jsii.interface(jsii_type=\\"jsii-calc.IJSII417Derived\\") +class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417DerivedProxy + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + @jsii.member(jsii_name=\\"baz\\") + def baz(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.IJSII417Derived\\" + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"property\\") + + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"bar\\", []) + + @jsii.member(jsii_name=\\"baz\\") + def baz(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"baz\\", []) + + +@jsii.implements(IPublicInterface2) +class InbetweenClass( + PublicClass, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InbetweenClass\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(InbetweenClass, self, []) + + @jsii.member(jsii_name=\\"ciao\\") + def ciao(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"ciao\\", []) + + +class JSII417Derived( + JSII417PublicBaseOfBase, + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.JSII417Derived\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, property: str) -> None: + \\"\\"\\" + :param property: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(JSII417Derived, self, [property]) + + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"bar\\", []) + + @jsii.member(jsii_name=\\"baz\\") + def baz(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"baz\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"property\\") + def _property(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"property\\") + + +@jsii.implements(IFriendlier) +class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Negate\\"): + \\"\\"\\"The negation operation (\\"-value\\"). + + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + \\"\\"\\" + :param operand: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(Negate, self, [operand]) + + @jsii.member(jsii_name=\\"farewell\\") + def farewell(self) -> str: + \\"\\"\\"Say farewell. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"farewell\\", []) + + @jsii.member(jsii_name=\\"goodbye\\") + def goodbye(self) -> str: + \\"\\"\\"Say goodbye. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"goodbye\\", []) + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> str: + \\"\\"\\"Say hello! + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + +class SupportsNiceJavaBuilder( + SupportsNiceJavaBuilderWithRequiredProps, + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.SupportsNiceJavaBuilder\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__( + self, + id: jsii.Number, + default_bar: typing.Optional[jsii.Number] = None, + props: typing.Optional[\\"SupportsNiceJavaBuilderProps\\"] = None, + *rest: str, + ) -> None: + \\"\\"\\" + :param id: some identifier. + :param default_bar: the default value of \`\`bar\`\`. + :param props: some props once can provide. + :param rest: a variadic continuation. + + stability + :stability: experimental + \\"\\"\\" + jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) + + @builtins.property + @jsii.member(jsii_name=\\"id\\") + def id(self) -> jsii.Number: + \\"\\"\\"some identifier. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"id\\") + + @builtins.property + @jsii.member(jsii_name=\\"rest\\") + def rest(self) -> typing.List[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"rest\\") + + +@jsii.implements(IFriendlyRandomGenerator) +class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoubleTrouble\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(DoubleTrouble, self, []) + + @jsii.member(jsii_name=\\"hello\\") + def hello(self) -> str: + \\"\\"\\"Say hello! + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"hello\\", []) + + @jsii.member(jsii_name=\\"next\\") + def next(self) -> jsii.Number: + \\"\\"\\"Returns another random number. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"next\\", []) + + +__all__ = [ + \\"AbstractClass\\", + \\"AbstractClassBase\\", + \\"AbstractClassReturner\\", + \\"AbstractSuite\\", + \\"Add\\", + \\"AllTypes\\", + \\"AllTypesEnum\\", + \\"AllowedMethodNames\\", + \\"AmbiguousParameters\\", + \\"AnonymousImplementationProvider\\", + \\"AsyncVirtualMethods\\", + \\"AugmentableClass\\", + \\"BaseJsii976\\", + \\"Bell\\", + \\"BinaryOperation\\", + \\"Calculator\\", + \\"CalculatorProps\\", + \\"ChildStruct982\\", + \\"ClassThatImplementsTheInternalInterface\\", + \\"ClassThatImplementsThePrivateInterface\\", + \\"ClassWithCollections\\", + \\"ClassWithDocs\\", + \\"ClassWithJavaReservedWords\\", + \\"ClassWithMutableObjectLiteralProperty\\", + \\"ClassWithPrivateConstructorAndAutomaticProperties\\", + \\"ConfusingToJackson\\", + \\"ConfusingToJacksonStruct\\", + \\"ConstructorPassesThisOut\\", + \\"Constructors\\", + \\"ConsumePureInterface\\", + \\"ConsumerCanRingBell\\", + \\"ConsumersOfThisCrazyTypeSystem\\", + \\"DataRenderer\\", + \\"DefaultedConstructorArgument\\", + \\"Demonstrate982\\", + \\"DeprecatedClass\\", + \\"DeprecatedEnum\\", + \\"DeprecatedStruct\\", + \\"DerivedStruct\\", + \\"DiamondInheritanceBaseLevelStruct\\", + \\"DiamondInheritanceFirstMidLevelStruct\\", + \\"DiamondInheritanceSecondMidLevelStruct\\", + \\"DiamondInheritanceTopLevelStruct\\", + \\"DisappointingCollectionSource\\", + \\"DoNotOverridePrivates\\", + \\"DoNotRecognizeAnyAsOptional\\", + \\"DocumentedClass\\", + \\"DontComplainAboutVariadicAfterOptional\\", + \\"DoubleTrouble\\", + \\"EnumDispenser\\", + \\"EraseUndefinedHashValues\\", + \\"EraseUndefinedHashValuesOptions\\", + \\"ExperimentalClass\\", + \\"ExperimentalEnum\\", + \\"ExperimentalStruct\\", + \\"ExportedBaseClass\\", + \\"ExtendsInternalInterface\\", + \\"ExternalClass\\", + \\"ExternalEnum\\", + \\"ExternalStruct\\", + \\"GiveMeStructs\\", + \\"Greetee\\", + \\"GreetingAugmenter\\", + \\"IAnonymousImplementationProvider\\", + \\"IAnonymouslyImplementMe\\", + \\"IAnotherPublicInterface\\", + \\"IBell\\", + \\"IBellRinger\\", + \\"IConcreteBellRinger\\", + \\"IDeprecatedInterface\\", + \\"IExperimentalInterface\\", + \\"IExtendsPrivateInterface\\", + \\"IExternalInterface\\", + \\"IFriendlier\\", + \\"IFriendlyRandomGenerator\\", + \\"IInterfaceImplementedByAbstractClass\\", + \\"IInterfaceThatShouldNotBeADataType\\", + \\"IInterfaceWithInternal\\", + \\"IInterfaceWithMethods\\", + \\"IInterfaceWithOptionalMethodArguments\\", + \\"IInterfaceWithProperties\\", + \\"IInterfaceWithPropertiesExtension\\", + \\"IJSII417Derived\\", + \\"IJSII417PublicBaseOfBase\\", + \\"IJsii487External\\", + \\"IJsii487External2\\", + \\"IJsii496\\", + \\"IMutableObjectLiteral\\", + \\"INonInternalInterface\\", + \\"IObjectWithProperty\\", + \\"IOptionalMethod\\", + \\"IPrivatelyImplemented\\", + \\"IPublicInterface\\", + \\"IPublicInterface2\\", + \\"IRandomNumberGenerator\\", + \\"IReturnJsii976\\", + \\"IReturnsNumber\\", + \\"IStableInterface\\", + \\"IStructReturningDelegate\\", + \\"ImplementInternalInterface\\", + \\"Implementation\\", + \\"ImplementsInterfaceWithInternal\\", + \\"ImplementsInterfaceWithInternalSubclass\\", + \\"ImplementsPrivateInterface\\", + \\"ImplictBaseOfBase\\", + \\"InbetweenClass\\", + \\"InterfaceCollections\\", + \\"InterfacesMaker\\", + \\"Isomorphism\\", + \\"JSII417Derived\\", + \\"JSII417PublicBaseOfBase\\", + \\"JSObjectLiteralForInterface\\", + \\"JSObjectLiteralToNative\\", + \\"JSObjectLiteralToNativeClass\\", + \\"JavaReservedWords\\", + \\"Jsii487Derived\\", + \\"Jsii496Derived\\", + \\"JsiiAgent\\", + \\"JsonFormatter\\", + \\"LoadBalancedFargateServiceProps\\", + \\"MethodNamedProperty\\", + \\"Multiply\\", + \\"Negate\\", + \\"NestedStruct\\", + \\"NodeStandardLibrary\\", + \\"NullShouldBeTreatedAsUndefined\\", + \\"NullShouldBeTreatedAsUndefinedData\\", + \\"NumberGenerator\\", + \\"ObjectRefsInCollections\\", + \\"ObjectWithPropertyProvider\\", + \\"Old\\", + \\"OptionalArgumentInvoker\\", + \\"OptionalConstructorArgument\\", + \\"OptionalStruct\\", + \\"OptionalStructConsumer\\", + \\"OverridableProtectedMember\\", + \\"OverrideReturnsObject\\", + \\"ParentStruct982\\", + \\"PartiallyInitializedThisConsumer\\", + \\"Polymorphism\\", + \\"Power\\", + \\"PropertyNamedProperty\\", + \\"PublicClass\\", + \\"PythonReservedWords\\", + \\"ReferenceEnumFromScopedPackage\\", + \\"ReturnsPrivateImplementationOfInterface\\", + \\"RootStruct\\", + \\"RootStructValidator\\", + \\"RuntimeTypeChecking\\", + \\"SecondLevelStruct\\", + \\"SingleInstanceTwoTypes\\", + \\"SingletonInt\\", + \\"SingletonIntEnum\\", + \\"SingletonString\\", + \\"SingletonStringEnum\\", + \\"SmellyStruct\\", + \\"SomeTypeJsii976\\", + \\"StableClass\\", + \\"StableEnum\\", + \\"StableStruct\\", + \\"StaticContext\\", + \\"Statics\\", + \\"StringEnum\\", + \\"StripInternal\\", + \\"StructA\\", + \\"StructB\\", + \\"StructParameterType\\", + \\"StructPassing\\", + \\"StructUnionConsumer\\", + \\"StructWithJavaReservedWords\\", + \\"Sum\\", + \\"SupportsNiceJavaBuilder\\", + \\"SupportsNiceJavaBuilderProps\\", + \\"SupportsNiceJavaBuilderWithRequiredProps\\", + \\"SyncVirtualMethods\\", + \\"Thrower\\", + \\"TopLevelStruct\\", + \\"UmaskCheck\\", + \\"UnaryOperation\\", + \\"UnionProperties\\", + \\"UpcasingReflectable\\", + \\"UseBundledDependency\\", + \\"UseCalcBase\\", + \\"UsesInterfaceWithProperties\\", + \\"VariadicInvoker\\", + \\"VariadicMethod\\", + \\"VirtualMethodPlayground\\", + \\"VoidCallback\\", + \\"WithPrivatePropertyInConstructor\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/_jsii/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +import scope.jsii_calc_base._jsii +import scope.jsii_calc_base_of_base._jsii +import scope.jsii_calc_lib._jsii + +__jsii_assembly__ = jsii.JSIIAssembly.load( + \\"jsii-calc\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc@0.0.0.jsii.tgz\\" +) + +__all__ = [ + \\"__jsii_assembly__\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz 1`] = `python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz is a tarball`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/composition/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + +import scope.jsii_calc_lib + + +class CompositeOperation( + scope.jsii_calc_lib.Operation, + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.composition.CompositeOperation\\", +): + \\"\\"\\"Abstract operation composed from an expression of other operations. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _CompositeOperationProxy + + def __init__(self) -> None: + jsii.create(CompositeOperation, self, []) + + @jsii.member(jsii_name=\\"toString\\") + def to_string(self) -> str: + \\"\\"\\"String representation of the value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"toString\\", []) + + @builtins.property + @jsii.member(jsii_name=\\"expression\\") + @abc.abstractmethod + def expression(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + \\"\\"\\" + ... + + @builtins.property + @jsii.member(jsii_name=\\"value\\") + def value(self) -> jsii.Number: + \\"\\"\\"The value. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"value\\") + + @builtins.property + @jsii.member(jsii_name=\\"decorationPostfixes\\") + def decoration_postfixes(self) -> typing.List[str]: + \\"\\"\\"A set of postfixes to include in a decorated .toString(). + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"decorationPostfixes\\") + + @decoration_postfixes.setter + def decoration_postfixes(self, value: typing.List[str]) -> None: + jsii.set(self, \\"decorationPostfixes\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"decorationPrefixes\\") + def decoration_prefixes(self) -> typing.List[str]: + \\"\\"\\"A set of prefixes to include in a decorated .toString(). + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"decorationPrefixes\\") + + @decoration_prefixes.setter + def decoration_prefixes(self, value: typing.List[str]) -> None: + jsii.set(self, \\"decorationPrefixes\\", value) + + @builtins.property + @jsii.member(jsii_name=\\"stringStyle\\") + def string_style(self) -> \\"CompositionStringStyle\\": + \\"\\"\\"The .toString() style. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"stringStyle\\") + + @string_style.setter + def string_style(self, value: \\"CompositionStringStyle\\") -> None: + jsii.set(self, \\"stringStyle\\", value) + + @jsii.enum( + jsii_type=\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\" + ) + class CompositionStringStyle(enum.Enum): + \\"\\"\\"Style of .toString() output for CompositeOperation. + + stability + :stability: experimental + \\"\\"\\" + + NORMAL = \\"NORMAL\\" + \\"\\"\\"Normal string expression. + + stability + :stability: experimental + \\"\\"\\" + DECORATED = \\"DECORATED\\" + \\"\\"\\"Decorated string expression. + + stability + :stability: experimental + \\"\\"\\" + + +class _CompositeOperationProxy( + CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) +): + @builtins.property + @jsii.member(jsii_name=\\"expression\\") + def expression(self) -> scope.jsii_calc_lib.Value: + \\"\\"\\"The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"expression\\") + + +__all__ = [ + \\"CompositeOperation\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/derived_class_has_no_properties/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + + +class Base( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DerivedClassHasNoProperties.Base\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Base, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"prop\\") + def prop(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"prop\\") + + @prop.setter + def prop(self, value: str) -> None: + jsii.set(self, \\"prop\\", value) + + +class Derived( + Base, + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.DerivedClassHasNoProperties.Derived\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Derived, self, []) + + +__all__ = [ + \\"Base\\", + \\"Derived\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + + +class Foo( + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(Foo, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"bar\\") + def bar(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"bar\\") + + @bar.setter + def bar(self, value: typing.Optional[str]) -> None: + jsii.set(self, \\"bar\\", value) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\", + jsii_struct_bases=[], + name_mapping={\\"foo\\": \\"foo\\"}, +) +class Hello: + def __init__(self, *, foo: jsii.Number) -> None: + \\"\\"\\" + :param foo: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"foo\\": foo, + } + + @builtins.property + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"foo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"Hello(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"Foo\\", + \\"Hello\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + + +@jsii.data_type( + jsii_type=\\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\", + jsii_struct_bases=[], + name_mapping={\\"foo\\": \\"foo\\"}, +) +class Hello: + def __init__(self, *, foo: jsii.Number) -> None: + \\"\\"\\" + :param foo: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"foo\\": foo, + } + + @builtins.property + def foo(self) -> jsii.Number: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"foo\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"Hello(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"Hello\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/py.typed 1`] = ` +Object { + Symbol(file): " +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/python_self/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + + +class ClassWithSelf( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonSelf.ClassWithSelf\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self_, self: str) -> None: + \\"\\"\\" + :param self: - + + stability + :stability: experimental + \\"\\"\\" + jsii.create(ClassWithSelf, self_, [self]) + + @jsii.member(jsii_name=\\"method\\") + def method(self_, self: jsii.Number) -> str: + \\"\\"\\" + :param self: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self_, \\"method\\", [self]) + + @builtins.property + @jsii.member(jsii_name=\\"self\\") + def self(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"self\\") + + +class ClassWithSelfKwarg( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self_, *, self: str) -> None: + \\"\\"\\" + :param self: + + stability + :stability: experimental + \\"\\"\\" + props = StructWithSelf(self=self) + + jsii.create(ClassWithSelfKwarg, self_, [props]) + + @builtins.property + @jsii.member(jsii_name=\\"props\\") + def props(self) -> \\"StructWithSelf\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"props\\") + + +@jsii.interface(jsii_type=\\"jsii-calc.PythonSelf.IInterfaceWithSelf\\") +class IInterfaceWithSelf(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithSelfProxy + + @jsii.member(jsii_name=\\"method\\") + def method(self_, self: jsii.Number) -> str: + \\"\\"\\" + :param self: - + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _IInterfaceWithSelfProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\" + + @jsii.member(jsii_name=\\"method\\") + def method(self_, self: jsii.Number) -> str: + \\"\\"\\" + :param self: - + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self_, \\"method\\", [self]) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.PythonSelf.StructWithSelf\\", + jsii_struct_bases=[], + name_mapping={\\"self\\": \\"self\\"}, +) +class StructWithSelf: + def __init__(self_, *, self: str) -> None: + \\"\\"\\" + :param self: + + stability + :stability: experimental + \\"\\"\\" + self_._values = { + \\"self\\": self, + } + + @builtins.property + def self(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"self\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"StructWithSelf(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"ClassWithSelf\\", + \\"ClassWithSelfKwarg\\", + \\"IInterfaceWithSelf\\", + \\"StructWithSelf\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from .._jsii import * + +from .. import AllTypes as _AllTypes_b08307c5 +from .child import ( + SomeStruct as _SomeStruct_91627123, + SomeEnum as _SomeEnum_b2e41d92, + Awesomeness as _Awesomeness_d37a24df, + Goodness as _Goodness_2df26737, +) +from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad + + +@jsii.implements(_INamespaced_e2f386ad) +class MyClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.MyClass\\"): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None: + \\"\\"\\" + :param prop: + + stability + :stability: experimental + \\"\\"\\" + props = _SomeStruct_91627123(prop=prop) + + jsii.create(MyClass, self, [props]) + + @builtins.property + @jsii.member(jsii_name=\\"awesomeness\\") + def awesomeness(self) -> _Awesomeness_d37a24df: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"awesomeness\\") + + @builtins.property + @jsii.member(jsii_name=\\"definedAt\\") + def defined_at(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"definedAt\\") + + @builtins.property + @jsii.member(jsii_name=\\"goodness\\") + def goodness(self) -> _Goodness_2df26737: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"goodness\\") + + @builtins.property + @jsii.member(jsii_name=\\"props\\") + def props(self) -> _SomeStruct_91627123: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"props\\") + + @builtins.property + @jsii.member(jsii_name=\\"allTypes\\") + def all_types(self) -> typing.Optional[_AllTypes_b08307c5]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"allTypes\\") + + @all_types.setter + def all_types(self, value: typing.Optional[_AllTypes_b08307c5]) -> None: + jsii.set(self, \\"allTypes\\", value) + + +__all__ = [ + \\"MyClass\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/back_references/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ..._jsii import * + +from .. import MyClass as _MyClass_a2fdc0b6 + + +@jsii.data_type( + jsii_type=\\"jsii-calc.submodule.back_references.MyClassReference\\", + jsii_struct_bases=[], + name_mapping={\\"reference\\": \\"reference\\"}, +) +class MyClassReference: + def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None: + \\"\\"\\" + :param reference: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"reference\\": reference, + } + + @builtins.property + def reference(self) -> _MyClass_a2fdc0b6: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"reference\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"MyClassReference(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"MyClassReference\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/child/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ..._jsii import * + + +@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.Awesomeness\\") +class Awesomeness(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + AWESOME = \\"AWESOME\\" + \\"\\"\\"It was awesome! + + stability + :stability: experimental + \\"\\"\\" + + +@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.Goodness\\") +class Goodness(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + PRETTY_GOOD = \\"PRETTY_GOOD\\" + \\"\\"\\"It's pretty good. + + stability + :stability: experimental + \\"\\"\\" + REALLY_GOOD = \\"REALLY_GOOD\\" + \\"\\"\\"It's really good. + + stability + :stability: experimental + \\"\\"\\" + AMAZINGLY_GOOD = \\"AMAZINGLY_GOOD\\" + \\"\\"\\"It's amazingly good. + + stability + :stability: experimental + \\"\\"\\" + + +class InnerClass( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.child.InnerClass\\" +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(InnerClass, self, []) + + @jsii.python.classproperty + @jsii.member(jsii_name=\\"staticProp\\") + def STATIC_PROP(cls) -> \\"SomeStruct\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.sget(cls, \\"staticProp\\") + + +class OuterClass( + metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.child.OuterClass\\" +): + \\"\\"\\"Checks that classes can self-reference during initialization. + + see + :see: : https://github.com/aws/jsii/pull/1706 + stability + :stability: experimental + \\"\\"\\" + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(OuterClass, self, []) + + @builtins.property + @jsii.member(jsii_name=\\"innerClass\\") + def inner_class(self) -> \\"InnerClass\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"innerClass\\") + + +@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.SomeEnum\\") +class SomeEnum(enum.Enum): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + SOME = \\"SOME\\" + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + +@jsii.data_type( + jsii_type=\\"jsii-calc.submodule.child.SomeStruct\\", + jsii_struct_bases=[], + name_mapping={\\"prop\\": \\"prop\\"}, +) +class SomeStruct: + def __init__(self, *, prop: \\"SomeEnum\\") -> None: + \\"\\"\\" + :param prop: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"prop\\": prop, + } + + @builtins.property + def prop(self) -> \\"SomeEnum\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"prop\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"SomeStruct(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.submodule.child.Structure\\", + jsii_struct_bases=[], + name_mapping={\\"bool\\": \\"bool\\"}, +) +class Structure: + def __init__(self, *, bool: bool) -> None: + \\"\\"\\" + :param bool: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"bool\\": bool, + } + + @builtins.property + def bool(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"bool\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"Structure(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +@jsii.data_type( + jsii_type=\\"jsii-calc.submodule.child.KwargsProps\\", + jsii_struct_bases=[SomeStruct], + name_mapping={\\"prop\\": \\"prop\\", \\"extra\\": \\"extra\\"}, +) +class KwargsProps(SomeStruct): + def __init__(self, *, prop: \\"SomeEnum\\", extra: typing.Optional[str] = None) -> None: + \\"\\"\\" + :param prop: + :param extra: + + stability + :stability: experimental + \\"\\"\\" + self._values = { + \\"prop\\": prop, + } + if extra is not None: + self._values[\\"extra\\"] = extra + + @builtins.property + def prop(self) -> \\"SomeEnum\\": + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"prop\\") + + @builtins.property + def extra(self) -> typing.Optional[str]: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return self._values.get(\\"extra\\") + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return \\"KwargsProps(%s)\\" % \\", \\".join( + k + \\"=\\" + repr(v) for k, v in self._values.items() + ) + + +__all__ = [ + \\"Awesomeness\\", + \\"Goodness\\", + \\"InnerClass\\", + \\"KwargsProps\\", + \\"OuterClass\\", + \\"SomeEnum\\", + \\"SomeStruct\\", + \\"Structure\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/isolated/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ..._jsii import * + +from ..child import KwargsProps as _KwargsProps_c7855dcf, SomeEnum as _SomeEnum_b2e41d92 + + +class Kwargs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.isolated.Kwargs\\"): + \\"\\"\\"Ensures imports are correctly registered for kwargs lifted properties from super-structs. + + stability + :stability: experimental + \\"\\"\\" + + @jsii.member(jsii_name=\\"method\\") + @builtins.classmethod + def method( + cls, *, extra: typing.Optional[str] = None, prop: _SomeEnum_b2e41d92 + ) -> bool: + \\"\\"\\" + :param extra: + :param prop: + + stability + :stability: experimental + \\"\\"\\" + props = _KwargsProps_c7855dcf(extra=extra, prop=prop) + + return jsii.sinvoke(cls, \\"method\\", [props]) + + +__all__ = [ + \\"Kwargs\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/nested_submodule/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ..._jsii import * + +from ..child import Goodness as _Goodness_2df26737 +from .deeply_nested import INamespaced as _INamespaced_e2f386ad + + +@jsii.implements(_INamespaced_e2f386ad) +class Namespaced( + metaclass=jsii.JSIIAbstractClass, + jsii_type=\\"jsii-calc.submodule.nested_submodule.Namespaced\\", +): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _NamespacedProxy + + @builtins.property + @jsii.member(jsii_name=\\"definedAt\\") + def defined_at(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"definedAt\\") + + @builtins.property + @jsii.member(jsii_name=\\"goodness\\") + @abc.abstractmethod + def goodness(self) -> _Goodness_2df26737: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _NamespacedProxy(Namespaced): + @builtins.property + @jsii.member(jsii_name=\\"goodness\\") + def goodness(self) -> _Goodness_2df26737: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"goodness\\") + + +__all__ = [ + \\"Namespaced\\", +] + +publication.publish() +", +} +`; + +exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py 1`] = ` +Object { + Symbol(file): "import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +from ...._jsii import * + + +@jsii.interface( + jsii_type=\\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" +) +class INamespaced(jsii.compat.Protocol): + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INamespacedProxy + + @builtins.property + @jsii.member(jsii_name=\\"definedAt\\") + def defined_at(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + ... + + +class _INamespacedProxy: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + + __jsii_type__ = \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + + @builtins.property + @jsii.member(jsii_name=\\"definedAt\\") + def defined_at(self) -> str: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.get(self, \\"definedAt\\") + + +__all__ = [ + \\"INamespaced\\", +] + +publication.publish() +", +} +`; diff --git a/packages/jsii-pacmak/test/build-test.sh b/packages/jsii-pacmak/test/build-test.sh index 383c885ed8..58899b8257 100755 --- a/packages/jsii-pacmak/test/build-test.sh +++ b/packages/jsii-pacmak/test/build-test.sh @@ -26,8 +26,13 @@ trap final_cleanup EXIT # Prepare Python venv to avoid depending on system stuff venv="${outdir}/.env" python3 -m venv ${venv} -. ${venv}/bin/activate -pip install pip~=20.0.2 setuptools~=46.1.3 wheel~=0.34.2 twine~=3.1.1 +if [ -f ${venv}/bin/activate ]; then + . ${venv}/bin/activate +else + # Hello Windows! + . ${venv}/Scripts/activate +fi +python3 -m pip install pip~=20.0.2 setuptools~=46.1.3 wheel~=0.34.2 twine~=3.1.1 # Single target, recursive build to a certain location clean_dists diff --git a/packages/jsii-pacmak/test/diff-test.sh b/packages/jsii-pacmak/test/diff-test.sh deleted file mode 100755 index 031c3a548b..0000000000 --- a/packages/jsii-pacmak/test/diff-test.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash -set -e -cd $(dirname $0) - -workdir="$(mktemp -d -t jsii-diff-test.XXXXXXXXXX)" -success=true - -function mktmpdir() { - local newdir="${workdir}/$RANDOM" - mkdir -p ${newdir} - echo ${newdir} -} - -function assert-generator() { - local module=$1 - local module_root="$(cd ../../${module} && pwd)" - - # creating reference tgz for module ${module} (to avoid binary diffs across platforms)... - local expected_tarball="${module_root}/$(cd ${module_root} && npm pack --ignore-scripts 2>/dev/null)" - local workdir=$(mktmpdir) - mv ${expected_tarball} ${workdir} - local expected_tarball="${workdir}/$(basename ${expected_tarball})" - - local outdir="$(mktmpdir)" - local original_expected="$PWD/expected.${module/@scope\//}" - local expected="$(mktmpdir)" - - if [ -d ${original_expected} ]; then - rsync -a ${original_expected}/ ${expected}/ - fi - - if [[ -d ${original_expected}/java/target ]]; then - # When IDEs automaticallu compile the java target, the diff-test may fail later on with a cryptic error message - # due to the existence of .settings / .projects / ... directories that aren't part of the expected outcome. This - # check is here to avoid the confusion. - echo "An IDE plugin seems to have eagerly tried to compile ${original_expected}/java. Please remove:" - echo " rm -rf ${original_expected}/java/target" - exit 1 - fi - - # put the real expected tarball instead of the placeholder - for expected_tarball_placeholder in $(find ${expected} -name "*.tgz" || true); do - rm -f ${expected_tarball_placeholder} - cp ${expected_tarball} ${expected_tarball_placeholder} - done - - echo "Running jsii-pacmak test for ${module}" - ../bin/jsii-pacmak --outdir ${outdir} ${module_root} --code-only --no-fingerprint - - if ! diff --strip-trailing-cr -arq ${outdir} ${expected}; then - if [ -n "${UPDATE_DIFF:-}" ]; then - echo "⚡️ UPDATE_DIFF is set, overwriting ${original_expected}" - rsync -av --delete ${outdir}/ ${original_expected}/ - else - echo - echo "------------------------------------------------------------------------" - echo " diff-test for pacmak generator ${module} failed" - echo "------------------------------------------------------------------------" - echo " To update expectation run:" - echo " rsync -av --delete ${outdir}/ ${original_expected}/" - echo " Or, execute this test again with:" - echo " UPDATE_DIFF=1" - echo "------------------------------------------------------------------------" - success=false - fi - fi - - # change the placeholder back (we do this after UPDATE_DIFF) - for tarball_placeholder in $(find ${original_expected} -name "*.tgz" || true); do - echo "Placeholder for the expected module tarball" > ${tarball_placeholder} - echo "The diff-test.sh harness will replace it with the real expected tarball" >> ${tarball_placeholder} - done -} - -assert-generator @scope/jsii-calc-base-of-base -assert-generator @scope/jsii-calc-base -assert-generator @scope/jsii-calc-lib -assert-generator jsii-calc - -if ${success}; then - # only remove working directory if tests pass. Otherwise, user might want to - # update their expectations. - rm -fr "${workdir}" -else - echo "SOME TESTS FAILED" - echo - echo "Execute this test again with:" - echo " UPDATE_DIFF=1" - echo - exit 1 -fi - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii deleted file mode 100644 index 37b7c81aa4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii +++ /dev/null @@ -1,115 +0,0 @@ -{ - "author": { - "name": "Amazon Web Services", - "organization": true, - "roles": [ - "author" - ], - "url": "https://aws.amazon.com" - }, - "description": "An example transitive dependency for jsii-calc.", - "homepage": "https://github.com/aws/jsii", - "jsiiVersion": "0.0.0", - "license": "Apache-2.0", - "name": "@scope/jsii-calc-base-of-base", - "repository": { - "directory": "packages/@scope/jsii-calc-base-of-base", - "type": "git", - "url": "https://github.com/aws/jsii.git" - }, - "schema": "jsii/0.10.0", - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base-of-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.baseofbase" - }, - "js": { - "npm": "@scope/jsii-calc-base-of-base" - }, - "python": { - "distName": "scope.jsii-calc-base-of-base", - "module": "scope.jsii_calc_base_of_base" - } - }, - "types": { - "@scope/jsii-calc-base-of-base.IVeryBaseInterface": { - "assembly": "@scope/jsii-calc-base-of-base", - "fqn": "@scope/jsii-calc-base-of-base.IVeryBaseInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 1 - }, - "methods": [ - { - "abstract": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 2 - }, - "name": "foo" - } - ], - "name": "IVeryBaseInterface" - }, - "@scope/jsii-calc-base-of-base.Very": { - "assembly": "@scope/jsii-calc-base-of-base", - "fqn": "@scope/jsii-calc-base-of-base.Very", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/index.ts", - "line": 9 - }, - "methods": [ - { - "locationInModule": { - "filename": "lib/index.ts", - "line": 10 - }, - "name": "hey", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "Very" - }, - "@scope/jsii-calc-base-of-base.VeryBaseProps": { - "assembly": "@scope/jsii-calc-base-of-base", - "datatype": true, - "fqn": "@scope/jsii-calc-base-of-base.VeryBaseProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 5 - }, - "name": "VeryBaseProps", - "properties": [ - { - "abstract": true, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 6 - }, - "name": "foo", - "type": { - "fqn": "@scope/jsii-calc-base-of-base.Very" - } - } - ] - } - }, - "version": "0.0.0", - "fingerprint": "v3mwSbKGQ2aa8g0DEKIeaEXh3csX7PX2MJJxHVRufhI=" -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj deleted file mode 100644 index 2e640a2830..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj +++ /dev/null @@ -1,34 +0,0 @@ - - - - An example transitive dependency for jsii-calc. - Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId - Apache-2.0 - 0.0.0 - - Amazon Web Services - Amazon Web Services - en-US - https://github.com/aws/jsii - https://github.com/aws/jsii.git - git - - true - true - true - true - enable - snupkg - netcoreapp3.1 - - - - - - - - - 0612,0618 - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs deleted file mode 100644 index 8b04d8e412..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - [JsiiInterface(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base-of-base.IVeryBaseInterface")] - public interface IVeryBaseInterface - { - [JsiiMethod(name: "foo")] - void Foo(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs deleted file mode 100644 index b184490c98..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base-of-base.IVeryBaseInterface")] - internal sealed class IVeryBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface - { - private IVeryBaseInterfaceProxy(ByRefValue reference): base(reference) - { - } - - [JsiiMethod(name: "foo")] - public void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs deleted file mode 100644 index 6d05b140ea..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - [JsiiInterface(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: "@scope/jsii-calc-base-of-base.VeryBaseProps")] - public interface IVeryBaseProps - { - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}")] - Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs deleted file mode 100644 index b9f95337e7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs +++ /dev/null @@ -1,11 +0,0 @@ -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution -{ - public sealed class Anchor - { - public Anchor() - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs deleted file mode 100644 index 5581095168..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: "@scope/jsii-calc-base-of-base.Very")] - public class Very : DeputyBase - { - public Very(): base(new DeputyProps(new object[]{})) - { - } - - ///

Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Very(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Very(DeputyProps props): base(props) - { - } - - [JsiiMethod(name: "hey", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double Hey() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs deleted file mode 100644 index 156e210c43..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - #pragma warning disable CS8618 - - [JsiiByValue(fqn: "@scope/jsii-calc-base-of-base.VeryBaseProps")] - public class VeryBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps - { - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs deleted file mode 100644 index 96efe8a55e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: "@scope/jsii-calc-base-of-base.VeryBaseProps")] - internal sealed class VeryBasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps - { - private VeryBasePropsProxy(ByRefValue reference): base(reference) - { - } - - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs deleted file mode 100644 index 69937feb8a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -[assembly: JsiiAssembly("@scope/jsii-calc-base-of-base", "0.0.0", "scope-jsii-calc-base-of-base-0.0.0.tgz")] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/pom.xml b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/pom.xml deleted file mode 100644 index dc93f31b5f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/pom.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - 4.0.0 - ${project.groupId}:${project.artifactId} - An example transitive dependency for jsii-calc. - https://github.com/aws/jsii - - - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - repo - An OSI-approved license - - - - - Amazon Web Services - - author - - https://aws.amazon.com - - - - scm:git:https://github.com/aws/jsii.git - https://github.com/aws/jsii.git - - software.amazon.jsii.tests - calculator-base-of-base - 0.0.0 - jar - - UTF-8 - - - - software.amazon.jsii - jsii-runtime - [0.0.0,0.0.1) - - - org.jetbrains - annotations - [16.0.3,20.0.0) - - - - javax.annotation - javax.annotation-api - [1.3.2,1.4.0) - compile - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - true - - true - true - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - - attach-javadocs - - jar - - - - - false - protected - - **/$Module.java - - -J-XX:+TieredCompilation - -J-XX:TieredStopAtLevel=1 - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - enforce-maven - - enforce - - - - - 3.6 - - - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.7 - - false - - - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java deleted file mode 100644 index f183619c2f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java +++ /dev/null @@ -1,67 +0,0 @@ -package software.amazon.jsii.tests.calculator.baseofbase; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.io.Reader; -import java.io.UncheckedIOException; - -import java.nio.charset.StandardCharsets; - -import java.util.HashMap; -import java.util.Map; - -import software.amazon.jsii.JsiiModule; - -public final class $Module extends JsiiModule { - private static final Map MODULE_TYPES = load(); - - private static Map load() { - final Map result = new HashMap<>(); - final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/baseofbase/$Module.txt"); - final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); - final BufferedReader br = new BufferedReader(rd)) { - br.lines() - .filter(line -> !line.trim().isEmpty()) - .forEach(line -> { - final String[] parts = line.split("=", 2); - final String fqn = parts[0]; - final String className = parts[1]; - result.put(fqn, className); - }); - } - catch (final IOException exception) { - throw new UncheckedIOException(exception); - } - return result; - } - - private final Map> cache = new HashMap<>(); - - public $Module() { - super("@scope/jsii-calc-base-of-base", "0.0.0", $Module.class, "jsii-calc-base-of-base@0.0.0.jsii.tgz"); - } - - @Override - protected Class resolveClass(final String fqn) throws ClassNotFoundException { - if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException("Unknown JSII type: " + fqn); - } - String className = MODULE_TYPES.get(fqn); - if (!this.cache.containsKey(className)) { - this.cache.put(className, this.findClass(className)); - } - return this.cache.get(className); - } - - private Class findClass(final String binaryName) { - try { - return Class.forName(binaryName); - } - catch (final ClassNotFoundException exception) { - throw new RuntimeException(exception); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java deleted file mode 100644 index 98fe8c2b91..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java +++ /dev/null @@ -1,23 +0,0 @@ -package software.amazon.jsii.tests.calculator.baseofbase; - -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.IVeryBaseInterface") -@software.amazon.jsii.Jsii.Proxy(IVeryBaseInterface.Jsii$Proxy.class) -public interface IVeryBaseInterface extends software.amazon.jsii.JsiiSerializable { - - void foo(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - @Override - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java deleted file mode 100644 index e8f2c8b414..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java +++ /dev/null @@ -1,23 +0,0 @@ -package software.amazon.jsii.tests.calculator.baseofbase; - -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.Very") -public class Very extends software.amazon.jsii.JsiiObject { - - protected Very(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Very(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - public Very() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - public @org.jetbrains.annotations.NotNull java.lang.Number hey() { - return this.jsiiCall("hey", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java deleted file mode 100644 index 4d0d210478..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java +++ /dev/null @@ -1,104 +0,0 @@ -package software.amazon.jsii.tests.calculator.baseofbase; - -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.VeryBaseProps") -@software.amazon.jsii.Jsii.Proxy(VeryBaseProps.Jsii$Proxy.class) -public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { - - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.baseofbase.Very getFoo(); - - /** - * @return a {@link Builder} of {@link VeryBaseProps} - */ - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link VeryBaseProps} - */ - public static final class Builder implements software.amazon.jsii.Builder { - private software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Sets the value of {@link VeryBaseProps#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link VeryBaseProps} - * @throws NullPointerException if any required attribute was not provided - */ - @Override - public VeryBaseProps build() { - return new Jsii$Proxy(foo); - } - } - - /** - * An implementation for {@link VeryBaseProps} - */ - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements VeryBaseProps { - private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("@scope/jsii-calc-base-of-base.VeryBaseProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - VeryBaseProps.Jsii$Proxy that = (VeryBaseProps.Jsii$Proxy) o; - - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.foo.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt deleted file mode 100644 index 32b18eb5c2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt +++ /dev/null @@ -1,3 +0,0 @@ -@scope/jsii-calc-base-of-base.IVeryBaseInterface=software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface -@scope/jsii-calc-base-of-base.Very=software.amazon.jsii.tests.calculator.baseofbase.Very -@scope/jsii-calc-base-of-base.VeryBaseProps=software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/js/jsii-calc-base-of-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/js/jsii-calc-base-of-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/js/jsii-calc-base-of-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/MANIFEST.in b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/MANIFEST.in deleted file mode 100644 index bec201fc83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include pyproject.toml diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/README.md b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/README.md deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/README.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/pyproject.toml b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/pyproject.toml deleted file mode 100644 index 34ba8ead4b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["setuptools >= 38.6.0", "wheel >= 0.31.0"] -build-backend = "setuptools.build_meta" diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py deleted file mode 100644 index 4324f9ed11..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/setup.py +++ /dev/null @@ -1,56 +0,0 @@ -import json -import setuptools - -kwargs = json.loads( - """ -{ - "name": "scope.jsii-calc-base-of-base", - "version": "0.0.0", - "description": "An example transitive dependency for jsii-calc.", - "license": "Apache-2.0", - "url": "https://github.com/aws/jsii", - "long_description_content_type": "text/markdown", - "author": "Amazon Web Services", - "project_urls": { - "Source": "https://github.com/aws/jsii.git" - }, - "package_dir": { - "": "src" - }, - "packages": [ - "scope.jsii_calc_base_of_base", - "scope.jsii_calc_base_of_base._jsii" - ], - "package_data": { - "scope.jsii_calc_base_of_base._jsii": [ - "jsii-calc-base-of-base@0.0.0.jsii.tgz" - ], - "scope.jsii_calc_base_of_base": [ - "py.typed" - ] - }, - "python_requires": ">=3.6", - "install_requires": [ - "jsii>=0.0.0, <0.0.1", - "publication>=0.0.3" - ], - "classifiers": [ - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Programming Language :: JavaScript", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Typing :: Typed", - "License :: OSI Approved" - ] -} -""" -) - -with open("README.md") as fp: - kwargs["long_description"] = fp.read() - - -setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py deleted file mode 100644 index d2b682a31d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py +++ /dev/null @@ -1,78 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ._jsii import * - - -@jsii.interface(jsii_type="@scope/jsii-calc-base-of-base.IVeryBaseInterface") -class IVeryBaseInterface(jsii.compat.Protocol): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IVeryBaseInterfaceProxy - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - ... - - -class _IVeryBaseInterfaceProxy: - __jsii_type__ = "@scope/jsii-calc-base-of-base.IVeryBaseInterface" - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - return jsii.invoke(self, "foo", []) - - -class Very(metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-base-of-base.Very"): - def __init__(self) -> None: - jsii.create(Very, self, []) - - @jsii.member(jsii_name="hey") - def hey(self) -> jsii.Number: - return jsii.invoke(self, "hey", []) - - -@jsii.data_type( - jsii_type="@scope/jsii-calc-base-of-base.VeryBaseProps", - jsii_struct_bases=[], - name_mapping={"foo": "foo"}, -) -class VeryBaseProps: - def __init__(self, *, foo: "Very") -> None: - """ - :param foo: - - """ - self._values = { - "foo": foo, - } - - @builtins.property - def foo(self) -> "Very": - return self._values.get("foo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "VeryBaseProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "IVeryBaseInterface", - "Very", - "VeryBaseProps", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py deleted file mode 100644 index 90b633e998..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -__jsii_assembly__ = jsii.JSIIAssembly.load( - "@scope/jsii-calc-base-of-base", - "0.0.0", - __name__[0:-6], - "jsii-calc-base-of-base@0.0.0.jsii.tgz", -) - -__all__ = [ - "__jsii_assembly__", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/py.typed b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/py.typed deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/py.typed +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii deleted file mode 100644 index 37b4544eec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii +++ /dev/null @@ -1,155 +0,0 @@ -{ - "author": { - "name": "Amazon Web Services", - "organization": true, - "roles": [ - "author" - ], - "url": "https://aws.amazon.com" - }, - "dependencies": { - "@scope/jsii-calc-base-of-base": "^0.0.0" - }, - "dependencyClosure": { - "@scope/jsii-calc-base-of-base": { - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base-of-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.baseofbase" - }, - "js": { - "npm": "@scope/jsii-calc-base-of-base" - }, - "python": { - "distName": "scope.jsii-calc-base-of-base", - "module": "scope.jsii_calc_base_of_base" - } - } - } - }, - "description": "An example direct dependency for jsii-calc.", - "homepage": "https://github.com/aws/jsii", - "jsiiVersion": "0.0.0", - "license": "Apache-2.0", - "name": "@scope/jsii-calc-base", - "repository": { - "directory": "packages/@scope/jsii-calc-base", - "type": "git", - "url": "https://github.com/aws/jsii.git" - }, - "schema": "jsii/0.10.0", - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.base" - }, - "js": { - "npm": "@scope/jsii-calc-base" - }, - "python": { - "distName": "scope.jsii-calc-base", - "module": "scope.jsii_calc_base" - } - }, - "types": { - "@scope/jsii-calc-base.Base": { - "abstract": true, - "assembly": "@scope/jsii-calc-base", - "docs": { - "summary": "A base class." - }, - "fqn": "@scope/jsii-calc-base.Base", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/index.ts", - "line": 6 - }, - "methods": [ - { - "docs": { - "returns": "the name of the class (to verify native type names are created for derived classes)." - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 10 - }, - "name": "typeName", - "returns": { - "type": { - "primitive": "any" - } - } - } - ], - "name": "Base" - }, - "@scope/jsii-calc-base.BaseProps": { - "assembly": "@scope/jsii-calc-base", - "datatype": true, - "fqn": "@scope/jsii-calc-base.BaseProps", - "interfaces": [ - "@scope/jsii-calc-base-of-base.VeryBaseProps" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 15 - }, - "name": "BaseProps", - "properties": [ - { - "abstract": true, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 16 - }, - "name": "bar", - "type": { - "primitive": "string" - } - } - ] - }, - "@scope/jsii-calc-base.IBaseInterface": { - "assembly": "@scope/jsii-calc-base", - "fqn": "@scope/jsii-calc-base.IBaseInterface", - "interfaces": [ - "@scope/jsii-calc-base-of-base.IVeryBaseInterface" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 19 - }, - "methods": [ - { - "abstract": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 20 - }, - "name": "bar" - } - ], - "name": "IBaseInterface" - } - }, - "version": "0.0.0", - "fingerprint": "ttHhQ5EzgjW0lybCNSKOfqilJ04kp4VK3arcpRl3rBM=" -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj deleted file mode 100644 index 6df81f8e66..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj +++ /dev/null @@ -1,35 +0,0 @@ - - - - An example direct dependency for jsii-calc. - Amazon.JSII.Tests.CalculatorPackageId.BasePackageId - Apache-2.0 - 0.0.0 - - Amazon Web Services - Amazon Web Services - en-US - https://github.com/aws/jsii - https://github.com/aws/jsii.git - git - - true - true - true - true - enable - snupkg - netcoreapp3.1 - - - - - - - - - - 0612,0618 - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs deleted file mode 100644 index 7c246b6788..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - /// A base class. - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] - public abstract class Base : DeputyBase - { - protected Base(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Base(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Base(DeputyProps props): base(props) - { - } - - /// the name of the class (to verify native type names are created for derived classes). - [JsiiMethod(name: "typeName", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public virtual object TypeName() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs deleted file mode 100644 index 2e16c03730..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - #pragma warning disable CS8618 - - [JsiiByValue(fqn: "@scope/jsii-calc-base.BaseProps")] - public class BaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps - { - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Bar - { - get; - set; - } - - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs deleted file mode 100644 index 87883eb6b8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IBaseProps), fullyQualifiedName: "@scope/jsii-calc-base.BaseProps")] - internal sealed class BasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps - { - private BasePropsProxy(ByRefValue reference): base(reference) - { - } - - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}")] - public string Bar - { - get => GetInstanceProperty(); - } - - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs deleted file mode 100644 index d55a255ce7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - /// A base class. - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] - internal sealed class BaseProxy : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base - { - private BaseProxy(ByRefValue reference): base(reference) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs deleted file mode 100644 index 133a9026ca..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - [JsiiInterface(nativeType: typeof(IBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base.IBaseInterface")] - public interface IBaseInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface - { - [JsiiMethod(name: "bar")] - void Bar(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs deleted file mode 100644 index 34023d96d3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base.IBaseInterface")] - internal sealed class IBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface - { - private IBaseInterfaceProxy(ByRefValue reference): base(reference) - { - } - - [JsiiMethod(name: "bar")] - public void Bar() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - [JsiiMethod(name: "foo")] - public void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs deleted file mode 100644 index 7bfd86579c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace -{ - [JsiiInterface(nativeType: typeof(IBaseProps), fullyQualifiedName: "@scope/jsii-calc-base.BaseProps")] - public interface IBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps - { - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}")] - string Bar - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs deleted file mode 100644 index c15eade3ea..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs +++ /dev/null @@ -1,12 +0,0 @@ -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution -{ - public sealed class Anchor - { - public Anchor() - { - new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs deleted file mode 100644 index b1214dabf5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -[assembly: JsiiAssembly("@scope/jsii-calc-base", "0.0.0", "scope-jsii-calc-base-0.0.0.tgz")] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/pom.xml b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/pom.xml deleted file mode 100644 index bfad9315a2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/pom.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - 4.0.0 - ${project.groupId}:${project.artifactId} - An example direct dependency for jsii-calc. - https://github.com/aws/jsii - - - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - repo - An OSI-approved license - - - - - Amazon Web Services - - author - - https://aws.amazon.com - - - - scm:git:https://github.com/aws/jsii.git - https://github.com/aws/jsii.git - - software.amazon.jsii.tests - calculator-base - 0.0.0 - jar - - UTF-8 - - - - software.amazon.jsii.tests - calculator-base-of-base - [0.0.0,0.0.1) - - - software.amazon.jsii - jsii-runtime - [0.0.0,0.0.1) - - - org.jetbrains - annotations - [16.0.3,20.0.0) - - - - javax.annotation - javax.annotation-api - [1.3.2,1.4.0) - compile - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - true - - true - true - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - - attach-javadocs - - jar - - - - - false - protected - - **/$Module.java - - -J-XX:+TieredCompilation - -J-XX:TieredStopAtLevel=1 - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - enforce-maven - - enforce - - - - - 3.6 - - - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.7 - - false - - - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java deleted file mode 100644 index 99a7a6a8a0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator.base; - -import static java.util.Arrays.asList; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.io.Reader; -import java.io.UncheckedIOException; - -import java.nio.charset.StandardCharsets; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import software.amazon.jsii.JsiiModule; - -public final class $Module extends JsiiModule { - private static final Map MODULE_TYPES = load(); - - private static Map load() { - final Map result = new HashMap<>(); - final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/base/$Module.txt"); - final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); - final BufferedReader br = new BufferedReader(rd)) { - br.lines() - .filter(line -> !line.trim().isEmpty()) - .forEach(line -> { - final String[] parts = line.split("=", 2); - final String fqn = parts[0]; - final String className = parts[1]; - result.put(fqn, className); - }); - } - catch (final IOException exception) { - throw new UncheckedIOException(exception); - } - return result; - } - - private final Map> cache = new HashMap<>(); - - public $Module() { - super("@scope/jsii-calc-base", "0.0.0", $Module.class, "jsii-calc-base@0.0.0.jsii.tgz"); - } - - @Override - public List> getDependencies() { - return asList(software.amazon.jsii.tests.calculator.baseofbase.$Module.class); - } - - @Override - protected Class resolveClass(final String fqn) throws ClassNotFoundException { - if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException("Unknown JSII type: " + fqn); - } - String className = MODULE_TYPES.get(fqn); - if (!this.cache.containsKey(className)) { - this.cache.put(className, this.findClass(className)); - } - return this.cache.get(className); - } - - private Class findClass(final String binaryName) { - try { - return Class.forName(binaryName); - } - catch (final ClassNotFoundException exception) { - throw new RuntimeException(exception); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java deleted file mode 100644 index 577805c9f7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java +++ /dev/null @@ -1,38 +0,0 @@ -package software.amazon.jsii.tests.calculator.base; - -/** - * A base class. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.Base") -public abstract class Base extends software.amazon.jsii.JsiiObject { - - protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Base(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - protected Base() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * @return the name of the class (to verify native type names are created for derived classes). - */ - public @org.jetbrains.annotations.NotNull java.lang.Object typeName() { - return this.jsiiCall("typeName", java.lang.Object.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.base.Base { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java deleted file mode 100644 index 838567c962..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java +++ /dev/null @@ -1,126 +0,0 @@ -package software.amazon.jsii.tests.calculator.base; - -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.BaseProps") -@software.amazon.jsii.Jsii.Proxy(BaseProps.Jsii$Proxy.class) -public interface BaseProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps { - - @org.jetbrains.annotations.NotNull java.lang.String getBar(); - - /** - * @return a {@link Builder} of {@link BaseProps} - */ - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link BaseProps} - */ - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String bar; - private software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Sets the value of {@link BaseProps#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - public Builder bar(java.lang.String bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link BaseProps#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link BaseProps} - * @throws NullPointerException if any required attribute was not provided - */ - @Override - public BaseProps build() { - return new Jsii$Proxy(bar, foo); - } - } - - /** - * An implementation for {@link BaseProps} - */ - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BaseProps { - private final java.lang.String bar; - private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.bar = this.jsiiGet("bar", java.lang.String.class); - this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.lang.String getBar() { - return this.bar; - } - - @Override - public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("bar", om.valueToTree(this.getBar())); - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("@scope/jsii-calc-base.BaseProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - BaseProps.Jsii$Proxy that = (BaseProps.Jsii$Proxy) o; - - if (!bar.equals(that.bar)) return false; - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.bar.hashCode(); - result = 31 * result + (this.foo.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java deleted file mode 100644 index bee182d187..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java +++ /dev/null @@ -1,28 +0,0 @@ -package software.amazon.jsii.tests.calculator.base; - -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.IBaseInterface") -@software.amazon.jsii.Jsii.Proxy(IBaseInterface.Jsii$Proxy.class) -public interface IBaseInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface { - - void bar(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.base.IBaseInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - @Override - public void bar() { - this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); - } - - @Override - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt deleted file mode 100644 index e2f84e5c8e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt +++ /dev/null @@ -1,3 +0,0 @@ -@scope/jsii-calc-base.Base=software.amazon.jsii.tests.calculator.base.Base -@scope/jsii-calc-base.BaseProps=software.amazon.jsii.tests.calculator.base.BaseProps -@scope/jsii-calc-base.IBaseInterface=software.amazon.jsii.tests.calculator.base.IBaseInterface diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/js/jsii-calc-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base/js/jsii-calc-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/js/jsii-calc-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/MANIFEST.in b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/MANIFEST.in deleted file mode 100644 index bec201fc83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include pyproject.toml diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/README.md b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/README.md deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/README.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/pyproject.toml b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/pyproject.toml deleted file mode 100644 index 34ba8ead4b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["setuptools >= 38.6.0", "wheel >= 0.31.0"] -build-backend = "setuptools.build_meta" diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py deleted file mode 100644 index f608ca3c5a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/setup.py +++ /dev/null @@ -1,57 +0,0 @@ -import json -import setuptools - -kwargs = json.loads( - """ -{ - "name": "scope.jsii-calc-base", - "version": "0.0.0", - "description": "An example direct dependency for jsii-calc.", - "license": "Apache-2.0", - "url": "https://github.com/aws/jsii", - "long_description_content_type": "text/markdown", - "author": "Amazon Web Services", - "project_urls": { - "Source": "https://github.com/aws/jsii.git" - }, - "package_dir": { - "": "src" - }, - "packages": [ - "scope.jsii_calc_base", - "scope.jsii_calc_base._jsii" - ], - "package_data": { - "scope.jsii_calc_base._jsii": [ - "jsii-calc-base@0.0.0.jsii.tgz" - ], - "scope.jsii_calc_base": [ - "py.typed" - ] - }, - "python_requires": ">=3.6", - "install_requires": [ - "jsii>=0.0.0, <0.0.1", - "publication>=0.0.3", - "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1" - ], - "classifiers": [ - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Programming Language :: JavaScript", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Typing :: Typed", - "License :: OSI Approved" - ] -} -""" -) - -with open("README.md") as fp: - kwargs["long_description"] = fp.read() - - -setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py deleted file mode 100644 index 683f41190d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py +++ /dev/null @@ -1,104 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ._jsii import * - -import scope.jsii_calc_base_of_base - - -class Base(metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-base.Base"): - """A base class.""" - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _BaseProxy - - def __init__(self) -> None: - jsii.create(Base, self, []) - - @jsii.member(jsii_name="typeName") - def type_name(self) -> typing.Any: - """ - return - :return: the name of the class (to verify native type names are created for derived classes). - """ - return jsii.invoke(self, "typeName", []) - - -class _BaseProxy(Base): - pass - - -@jsii.data_type( - jsii_type="@scope/jsii-calc-base.BaseProps", - jsii_struct_bases=[scope.jsii_calc_base_of_base.VeryBaseProps], - name_mapping={"foo": "foo", "bar": "bar"}, -) -class BaseProps(scope.jsii_calc_base_of_base.VeryBaseProps): - def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str) -> None: - """ - :param foo: - - :param bar: - - """ - self._values = { - "foo": foo, - "bar": bar, - } - - @builtins.property - def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get("foo") - - @builtins.property - def bar(self) -> str: - return self._values.get("bar") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "BaseProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.interface(jsii_type="@scope/jsii-calc-base.IBaseInterface") -class IBaseInterface( - scope.jsii_calc_base_of_base.IVeryBaseInterface, jsii.compat.Protocol -): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBaseInterfaceProxy - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - ... - - -class _IBaseInterfaceProxy( - jsii.proxy_for(scope.jsii_calc_base_of_base.IVeryBaseInterface) -): - __jsii_type__ = "@scope/jsii-calc-base.IBaseInterface" - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - return jsii.invoke(self, "bar", []) - - -__all__ = [ - "Base", - "BaseProps", - "IBaseInterface", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py deleted file mode 100644 index d30dbc6e00..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -import scope.jsii_calc_base_of_base._jsii - -__jsii_assembly__ = jsii.JSIIAssembly.load( - "@scope/jsii-calc-base", "0.0.0", __name__[0:-6], "jsii-calc-base@0.0.0.jsii.tgz" -) - -__all__ = [ - "__jsii_assembly__", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/py.typed b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/py.typed deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/py.typed +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii deleted file mode 100644 index ab9b6e0c47..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii +++ /dev/null @@ -1,680 +0,0 @@ -{ - "author": { - "name": "Amazon Web Services", - "organization": true, - "roles": [ - "author" - ], - "url": "https://aws.amazon.com" - }, - "dependencies": { - "@scope/jsii-calc-base": "^0.0.0", - "@scope/jsii-calc-base-of-base": "^0.0.0" - }, - "dependencyClosure": { - "@scope/jsii-calc-base": { - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.base" - }, - "js": { - "npm": "@scope/jsii-calc-base" - }, - "python": { - "distName": "scope.jsii-calc-base", - "module": "scope.jsii_calc_base" - } - } - }, - "@scope/jsii-calc-base-of-base": { - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base-of-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.baseofbase" - }, - "js": { - "npm": "@scope/jsii-calc-base-of-base" - }, - "python": { - "distName": "scope.jsii-calc-base-of-base", - "module": "scope.jsii_calc_base_of_base" - } - } - } - }, - "description": "A simple calcuator library built on JSII.", - "docs": { - "deprecated": "Really just deprecated for shows...", - "stability": "deprecated" - }, - "homepage": "https://github.com/aws/jsii", - "jsiiVersion": "0.0.0", - "license": "Apache-2.0", - "name": "@scope/jsii-calc-lib", - "repository": { - "directory": "packages/@scope/jsii-calc-lib", - "type": "git", - "url": "https://github.com/aws/jsii.git" - }, - "schema": "jsii/0.10.0", - "submodules": { - "@scope/jsii-calc-lib.submodule": { - "locationInModule": { - "filename": "lib/index.ts", - "line": 112 - }, - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CustomSubmoduleName" - }, - "java": { - "package": "software.amazon.jsii.tests.calculator.custom_submodule_name" - }, - "python": { - "module": "scope.jsii_calc_lib.custom_submodule_name" - } - } - } - }, - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.LibNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.LibPackageId", - "versionSuffix": "-devpreview" - }, - "java": { - "maven": { - "artifactId": "calculator-lib", - "groupId": "software.amazon.jsii.tests", - "versionSuffix": ".DEVPREVIEW" - }, - "package": "software.amazon.jsii.tests.calculator.lib" - }, - "js": { - "npm": "@scope/jsii-calc-lib" - }, - "python": { - "distName": "scope.jsii-calc-lib", - "module": "scope.jsii_calc_lib" - } - }, - "types": { - "@scope/jsii-calc-lib.EnumFromScopedModule": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "remarks": "See awslabs/jsii#138", - "stability": "deprecated", - "summary": "Check that enums from \\@scoped packages can be references." - }, - "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule", - "kind": "enum", - "locationInModule": { - "filename": "lib/index.ts", - "line": 97 - }, - "members": [ - { - "docs": { - "stability": "deprecated" - }, - "name": "VALUE1" - }, - { - "docs": { - "stability": "deprecated" - }, - "name": "VALUE2" - } - ], - "name": "EnumFromScopedModule" - }, - "@scope/jsii-calc-lib.IDoublable": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "stability": "deprecated", - "summary": "The general contract for a concrete number." - }, - "fqn": "@scope/jsii-calc-lib.IDoublable", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 23 - }, - "name": "IDoublable", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 24 - }, - "name": "doubleValue", - "type": { - "primitive": "number" - } - } - ] - }, - "@scope/jsii-calc-lib.IFriendly": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "remarks": "These classes can be greeted with\na \"hello\" or \"goodbye\" blessing and they will respond back in a fun and friendly manner.", - "stability": "deprecated", - "summary": "Applies to classes that are considered friendly." - }, - "fqn": "@scope/jsii-calc-lib.IFriendly", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 58 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "Say hello!" - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 62 - }, - "name": "hello", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IFriendly" - }, - "@scope/jsii-calc-lib.IThreeLevelsInterface": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "remarks": "Their presence validates that .NET/Java/jsii-reflect can track all fields\nfar enough up the tree.", - "stability": "deprecated", - "summary": "Interface that inherits from packages 2 levels up the tree." - }, - "fqn": "@scope/jsii-calc-lib.IThreeLevelsInterface", - "interfaces": [ - "@scope/jsii-calc-base.IBaseInterface" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 108 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 109 - }, - "name": "baz" - } - ], - "name": "IThreeLevelsInterface" - }, - "@scope/jsii-calc-lib.MyFirstStruct": { - "assembly": "@scope/jsii-calc-lib", - "datatype": true, - "docs": { - "stability": "deprecated", - "summary": "This is the first struct we have created in jsii." - }, - "fqn": "@scope/jsii-calc-lib.MyFirstStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 68 - }, - "name": "MyFirstStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "An awesome number value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 77 - }, - "name": "anumber", - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "A string value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 72 - }, - "name": "astring", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 78 - }, - "name": "firstOptional", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, - "@scope/jsii-calc-lib.Number": { - "assembly": "@scope/jsii-calc-lib", - "base": "@scope/jsii-calc-lib.Value", - "docs": { - "stability": "deprecated", - "summary": "Represents a concrete number." - }, - "fqn": "@scope/jsii-calc-lib.Number", - "initializer": { - "docs": { - "stability": "deprecated", - "summary": "Creates a Number object." - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 35 - }, - "parameters": [ - { - "docs": { - "summary": "The number." - }, - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - "interfaces": [ - "@scope/jsii-calc-lib.IDoublable" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/index.ts", - "line": 30 - }, - "name": "Number", - "properties": [ - { - "docs": { - "stability": "deprecated", - "summary": "The number multiplied by 2." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 42 - }, - "name": "doubleValue", - "overrides": "@scope/jsii-calc-lib.IDoublable", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "deprecated", - "summary": "The number." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 35 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - } - ] - }, - "@scope/jsii-calc-lib.Operation": { - "abstract": true, - "assembly": "@scope/jsii-calc-lib", - "base": "@scope/jsii-calc-lib.Value", - "docs": { - "stability": "deprecated", - "summary": "Represents an operation on values." - }, - "fqn": "@scope/jsii-calc-lib.Operation", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/index.ts", - "line": 50 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 51 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Value", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Operation" - }, - "@scope/jsii-calc-lib.StructWithOnlyOptionals": { - "assembly": "@scope/jsii-calc-lib", - "datatype": true, - "docs": { - "stability": "deprecated", - "summary": "This is a struct with only optional properties." - }, - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals", - "kind": "interface", - "locationInModule": { - "filename": "lib/index.ts", - "line": 84 - }, - "name": "StructWithOnlyOptionals", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "The first optional!" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 88 - }, - "name": "optional1", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 89 - }, - "name": "optional2", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 90 - }, - "name": "optional3", - "optional": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "@scope/jsii-calc-lib.Value": { - "abstract": true, - "assembly": "@scope/jsii-calc-lib", - "base": "@scope/jsii-calc-base.Base", - "docs": { - "stability": "deprecated", - "summary": "Abstract class which represents a numeric value." - }, - "fqn": "@scope/jsii-calc-lib.Value", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/index.ts", - "line": 6 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/index.ts", - "line": 15 - }, - "name": "toString", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Value", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/index.ts", - "line": 10 - }, - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - "@scope/jsii-calc-lib.submodule.IReflectable": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "stability": "deprecated" - }, - "fqn": "@scope/jsii-calc-lib.submodule.IReflectable", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 1 - }, - "name": "IReflectable", - "namespace": "submodule", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 2 - }, - "name": "entries", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry" - }, - "kind": "array" - } - } - } - ] - }, - "@scope/jsii-calc-lib.submodule.ReflectableEntry": { - "assembly": "@scope/jsii-calc-lib", - "datatype": true, - "docs": { - "stability": "deprecated" - }, - "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 5 - }, - "name": "ReflectableEntry", - "namespace": "submodule", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 6 - }, - "name": "key", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 7 - }, - "name": "value", - "type": { - "primitive": "any" - } - } - ] - }, - "@scope/jsii-calc-lib.submodule.Reflector": { - "assembly": "@scope/jsii-calc-lib", - "docs": { - "stability": "deprecated" - }, - "fqn": "@scope/jsii-calc-lib.submodule.Reflector", - "initializer": { - "docs": { - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 11 - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 10 - }, - "methods": [ - { - "docs": { - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 13 - }, - "name": "asMap", - "parameters": [ - { - "name": "reflectable", - "type": { - "fqn": "@scope/jsii-calc-lib.submodule.IReflectable" - } - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - } - ], - "name": "Reflector", - "namespace": "submodule" - } - }, - "version": "0.0.0", - "fingerprint": "fVfpIK7xUajlT1zkHIJ8uYJPvy0gLgEe5BM8afu1mVg=" -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj deleted file mode 100644 index ab48cbd8c8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - - A simple calcuator library built on JSII. (Stability: Deprecated) - Amazon.JSII.Tests.CalculatorPackageId.LibPackageId - Apache-2.0 - 0.0.0-devpreview - - Amazon Web Services - Amazon Web Services - en-US - https://github.com/aws/jsii - https://github.com/aws/jsii.git - git - - true - true - true - true - enable - snupkg - netcoreapp3.1 - - - - - - - - - - - 0612,0618 - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs deleted file mode 100644 index d8fe0d6101..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Check that enums from \@scoped packages can be references. - /// - /// See awslabs/jsii#138 - /// - /// Stability: Deprecated - /// - [JsiiEnum(nativeType: typeof(EnumFromScopedModule), fullyQualifiedName: "@scope/jsii-calc-lib.EnumFromScopedModule")] - [System.Obsolete()] - public enum EnumFromScopedModule - { - /// - /// Stability: Deprecated - /// - [JsiiEnumMember(name: "VALUE1")] - [System.Obsolete()] - VALUE1, - /// - /// Stability: Deprecated - /// - [JsiiEnumMember(name: "VALUE2")] - [System.Obsolete()] - VALUE2 - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs deleted file mode 100644 index 0b72de37a3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// The general contract for a concrete number. - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IDoublable), fullyQualifiedName: "@scope/jsii-calc-lib.IDoublable")] - [System.Obsolete()] - public interface IDoublable - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "doubleValue", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - double DoubleValue - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs deleted file mode 100644 index 0397f3d6a6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// The general contract for a concrete number. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IDoublable), fullyQualifiedName: "@scope/jsii-calc-lib.IDoublable")] - [System.Obsolete()] - internal sealed class IDoublableProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable - { - private IDoublableProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "doubleValue", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public double DoubleValue - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs deleted file mode 100644 index 3d6a4a1dc2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Applies to classes that are considered friendly. - /// - /// These classes can be greeted with - /// a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IFriendly), fullyQualifiedName: "@scope/jsii-calc-lib.IFriendly")] - [System.Obsolete()] - public interface IFriendly - { - /// Say hello! - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - [System.Obsolete()] - string Hello(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs deleted file mode 100644 index f326f6bec1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Applies to classes that are considered friendly. - /// - /// These classes can be greeted with - /// a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IFriendly), fullyQualifiedName: "@scope/jsii-calc-lib.IFriendly")] - [System.Obsolete()] - internal sealed class IFriendlyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly - { - private IFriendlyProxy(ByRefValue reference): base(reference) - { - } - - /// Say hello! - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - [System.Obsolete()] - public string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs deleted file mode 100644 index bbcfb4b507..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// This is the first struct we have created in jsii. - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: "@scope/jsii-calc-lib.MyFirstStruct")] - [System.Obsolete()] - public interface IMyFirstStruct - { - /// An awesome number value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "anumber", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - double Anumber - { - get; - } - - /// A string value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "astring", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete()] - string Astring - { - get; - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "firstOptional", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - [System.Obsolete()] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string[]? FirstOptional - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs deleted file mode 100644 index e34ad6d126..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// This is a struct with only optional properties. - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] - [System.Obsolete()] - public interface IStructWithOnlyOptionals - { - /// The first optional! - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "optional1", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [System.Obsolete()] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Optional1 - { - get - { - return null; - } - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "optional2", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [System.Obsolete()] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? Optional2 - { - get - { - return null; - } - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "optional3", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [System.Obsolete()] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - bool? Optional3 - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs deleted file mode 100644 index f7f1d12c86..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Interface that inherits from packages 2 levels up the tree. - /// - /// Their presence validates that .NET/Java/jsii-reflect can track all fields - /// far enough up the tree. - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: "@scope/jsii-calc-lib.IThreeLevelsInterface")] - [System.Obsolete()] - public interface IThreeLevelsInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface - { - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "baz")] - [System.Obsolete()] - void Baz(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs deleted file mode 100644 index 1387748f36..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Interface that inherits from packages 2 levels up the tree. - /// - /// Their presence validates that .NET/Java/jsii-reflect can track all fields - /// far enough up the tree. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: "@scope/jsii-calc-lib.IThreeLevelsInterface")] - [System.Obsolete()] - internal sealed class IThreeLevelsInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IThreeLevelsInterface - { - private IThreeLevelsInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "baz")] - [System.Obsolete()] - public void Baz() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - [JsiiMethod(name: "bar")] - public void Bar() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - [JsiiMethod(name: "foo")] - public void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs deleted file mode 100644 index 3b887c9da6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs +++ /dev/null @@ -1,13 +0,0 @@ -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.DependencyResolution -{ - public sealed class Anchor - { - public Anchor() - { - new Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution.Anchor(); - new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs deleted file mode 100644 index 5e32c5bd76..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - #pragma warning disable CS8618 - - /// This is the first struct we have created in jsii. - /// - /// Stability: Deprecated - /// - [JsiiByValue(fqn: "@scope/jsii-calc-lib.MyFirstStruct")] - public class MyFirstStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct - { - /// An awesome number value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "anumber", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - [System.Obsolete()] - public double Anumber - { - get; - set; - } - - /// A string value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "astring", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - [System.Obsolete()] - public string Astring - { - get; - set; - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "firstOptional", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true, isOverride: true)] - [System.Obsolete()] - public string[]? FirstOptional - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs deleted file mode 100644 index 4ce1eab9f0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// This is the first struct we have created in jsii. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: "@scope/jsii-calc-lib.MyFirstStruct")] - [System.Obsolete()] - internal sealed class MyFirstStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct - { - private MyFirstStructProxy(ByRefValue reference): base(reference) - { - } - - /// An awesome number value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "anumber", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public double Anumber - { - get => GetInstanceProperty(); - } - - /// A string value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "astring", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete()] - public string Astring - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "firstOptional", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - [System.Obsolete()] - public string[]? FirstOptional - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs deleted file mode 100644 index 00456a3b2a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Represents a concrete number. - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number), fullyQualifiedName: "@scope/jsii-calc-lib.Number", parametersJson: "[{\"docs\":{\"summary\":\"The number.\"},\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - [System.Obsolete()] - public class Number : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable - { - /// Creates a Number object. - /// The number. - /// - /// Stability: Deprecated - /// - [System.Obsolete()] - public Number(double @value): base(new DeputyProps(new object[]{@value})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.Obsolete()] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Number(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.Obsolete()] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Number(DeputyProps props): base(props) - { - } - - /// The number multiplied by 2. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "doubleValue", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public virtual double DoubleValue - { - get => GetInstanceProperty(); - } - - /// The number. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public override double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs deleted file mode 100644 index e8ec34fbab..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Represents an operation on values. - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: "@scope/jsii-calc-lib.Operation")] - [System.Obsolete()] - public abstract class Operation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ - { - protected Operation(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Operation(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Operation(DeputyProps props): base(props) - { - } - - /// String representation of the value. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - [System.Obsolete()] - public override abstract string ToString(); - - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs deleted file mode 100644 index 961231dd4e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Represents an operation on values. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: "@scope/jsii-calc-lib.Operation")] - [System.Obsolete()] - internal sealed class OperationProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation - { - private OperationProxy(ByRefValue reference): base(reference) - { - } - - /// The value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public override double Value - { - get => GetInstanceProperty(); - } - - /// String representation of the value. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - [System.Obsolete()] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs deleted file mode 100644 index 6c98d38d00..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// This is a struct with only optional properties. - /// - /// Stability: Deprecated - /// - [JsiiByValue(fqn: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] - public class StructWithOnlyOptionals : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals - { - /// The first optional! - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional1", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - [System.Obsolete()] - public string? Optional1 - { - get; - set; - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional2", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)] - [System.Obsolete()] - public double? Optional2 - { - get; - set; - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional3", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true, isOverride: true)] - [System.Obsolete()] - public bool? Optional3 - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs deleted file mode 100644 index 71da5a9773..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// This is a struct with only optional properties. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] - [System.Obsolete()] - internal sealed class StructWithOnlyOptionalsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals - { - private StructWithOnlyOptionalsProxy(ByRefValue reference): base(reference) - { - } - - /// The first optional! - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional1", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [System.Obsolete()] - public string? Optional1 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional2", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [System.Obsolete()] - public double? Optional2 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "optional3", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [System.Obsolete()] - public bool? Optional3 - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs deleted file mode 100644 index 8f028413aa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Abstract class which represents a numeric value. - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: "@scope/jsii-calc-lib.Value")] - [System.Obsolete()] - internal sealed class ValueProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ - { - private ValueProxy(ByRefValue reference): base(reference) - { - } - - /// The value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public override double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs deleted file mode 100644 index 959732b439..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace -{ - /// Abstract class which represents a numeric value. - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: "@scope/jsii-calc-lib.Value")] - [System.Obsolete()] - public abstract class Value_ : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base - { - protected Value_(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Value_(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Value_(DeputyProps props): base(props) - { - } - - /// String representation of the value. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - [System.Obsolete()] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// The value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public abstract double Value - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs deleted file mode 100644 index 0fa74b3b3c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IReflectable), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.IReflectable")] - [System.Obsolete()] - public interface IReflectable - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "entries", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.submodule.ReflectableEntry\"},\"kind\":\"array\"}}")] - [System.Obsolete()] - Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs deleted file mode 100644 index e8d40a0c60..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IReflectableEntry), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] - [System.Obsolete()] - public interface IReflectableEntry - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "key", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete()] - string Key - { - get; - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"any\"}")] - [System.Obsolete()] - object Value - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs deleted file mode 100644 index e045a295a0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IReflectable), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.IReflectable")] - [System.Obsolete()] - internal sealed class IReflectableProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable - { - private IReflectableProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "entries", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.submodule.ReflectableEntry\"},\"kind\":\"array\"}}")] - [System.Obsolete()] - public Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs deleted file mode 100644 index 7a7be17288..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - #pragma warning disable CS8618 - - /// - /// Stability: Deprecated - /// - [JsiiByValue(fqn: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] - public class ReflectableEntry : Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "key", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - [System.Obsolete()] - public string Key - { - get; - set; - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"any\"}", isOverride: true)] - [System.Obsolete()] - public object Value - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs deleted file mode 100644 index 5c118fb5b7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IReflectableEntry), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] - [System.Obsolete()] - internal sealed class ReflectableEntryProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry - { - private ReflectableEntryProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "key", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete()] - public string Key - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"any\"}")] - [System.Obsolete()] - public object Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs deleted file mode 100644 index f4603846c0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CustomSubmoduleName -{ - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.Reflector), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.Reflector")] - [System.Obsolete()] - public class Reflector : DeputyBase - { - /// - /// Stability: Deprecated - /// - [System.Obsolete()] - public Reflector(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.Obsolete()] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Reflector(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.Obsolete()] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Reflector(DeputyProps props): base(props) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "asMap", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}", parametersJson: "[{\"name\":\"reflectable\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.submodule.IReflectable\"}}]")] - [System.Obsolete()] - public virtual System.Collections.Generic.IDictionary AsMap(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable reflectable) - { - return InvokeInstanceMethod>(new System.Type[]{typeof(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable)}, new object[]{reflectable}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs deleted file mode 100644 index 6fc0181843..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -[assembly: JsiiAssembly("@scope/jsii-calc-lib", "0.0.0", "scope-jsii-calc-lib-0.0.0.tgz")] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/pom.xml b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/pom.xml deleted file mode 100644 index 9affcca2d3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - 4.0.0 - ${project.groupId}:${project.artifactId} - A simple calcuator library built on JSII. - https://github.com/aws/jsii - - - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - repo - An OSI-approved license - - - - - Amazon Web Services - - author - - https://aws.amazon.com - - - - scm:git:https://github.com/aws/jsii.git - https://github.com/aws/jsii.git - - software.amazon.jsii.tests - calculator-lib - 0.0.0.DEVPREVIEW - jar - - UTF-8 - - - - software.amazon.jsii.tests - calculator-base - [0.0.0,0.0.1) - - - software.amazon.jsii.tests - calculator-base-of-base - [0.0.0,0.0.1) - - - software.amazon.jsii - jsii-runtime - [0.0.0,0.0.1) - - - org.jetbrains - annotations - [16.0.3,20.0.0) - - - - javax.annotation - javax.annotation-api - [1.3.2,1.4.0) - compile - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - true - - true - true - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - - attach-javadocs - - jar - - - - - false - protected - - **/$Module.java - - -J-XX:+TieredCompilation - -J-XX:TieredStopAtLevel=1 - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - enforce-maven - - enforce - - - - - 3.6 - - - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.7 - - false - - - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java deleted file mode 100644 index c7d669f933..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator.custom_submodule_name; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.IReflectable") -@software.amazon.jsii.Jsii.Proxy(IReflectable.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface IReflectable extends software.amazon.jsii.JsiiSerializable { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.util.List getEntries(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.util.List getEntries() { - return java.util.Collections.unmodifiableList(this.jsiiGet("entries", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java deleted file mode 100644 index 2edd2ecbe2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java +++ /dev/null @@ -1,152 +0,0 @@ -package software.amazon.jsii.tests.calculator.custom_submodule_name; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.ReflectableEntry") -@software.amazon.jsii.Jsii.Proxy(ReflectableEntry.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.String getKey(); - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.Object getValue(); - - /** - * @return a {@link Builder} of {@link ReflectableEntry} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ReflectableEntry} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String key; - private java.lang.Object value; - - /** - * Sets the value of {@link ReflectableEntry#getKey} - * @param key the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder key(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Sets the value of {@link ReflectableEntry#getValue} - * @param value the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder value(java.lang.Object value) { - this.value = value; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ReflectableEntry} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public ReflectableEntry build() { - return new Jsii$Proxy(key, value); - } - } - - /** - * An implementation for {@link ReflectableEntry} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ReflectableEntry { - private final java.lang.String key; - private final java.lang.Object value; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.key = this.jsiiGet("key", java.lang.String.class); - this.value = this.jsiiGet("value", java.lang.Object.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String key, final java.lang.Object value) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.key = java.util.Objects.requireNonNull(key, "key is required"); - this.value = java.util.Objects.requireNonNull(value, "value is required"); - } - - @Override - public java.lang.String getKey() { - return this.key; - } - - @Override - public java.lang.Object getValue() { - return this.value; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("key", om.valueToTree(this.getKey())); - data.set("value", om.valueToTree(this.getValue())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.submodule.ReflectableEntry")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ReflectableEntry.Jsii$Proxy that = (ReflectableEntry.Jsii$Proxy) o; - - if (!key.equals(that.key)) return false; - return this.value.equals(that.value); - } - - @Override - public int hashCode() { - int result = this.key.hashCode(); - result = 31 * result + (this.value.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java deleted file mode 100644 index 2bb2f08828..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java +++ /dev/null @@ -1,36 +0,0 @@ -package software.amazon.jsii.tests.calculator.custom_submodule_name; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.Reflector") -public class Reflector extends software.amazon.jsii.JsiiObject { - - protected Reflector(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Reflector(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Reflector() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * @param reflectable This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.util.Map asMap(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable reflectable) { - return java.util.Collections.unmodifiableMap(this.jsiiCall("asMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(reflectable, "reflectable is required") })); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java deleted file mode 100644 index 925fda7434..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -import static java.util.Arrays.asList; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.io.Reader; -import java.io.UncheckedIOException; - -import java.nio.charset.StandardCharsets; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import software.amazon.jsii.JsiiModule; - -public final class $Module extends JsiiModule { - private static final Map MODULE_TYPES = load(); - - private static Map load() { - final Map result = new HashMap<>(); - final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/lib/$Module.txt"); - final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); - final BufferedReader br = new BufferedReader(rd)) { - br.lines() - .filter(line -> !line.trim().isEmpty()) - .forEach(line -> { - final String[] parts = line.split("=", 2); - final String fqn = parts[0]; - final String className = parts[1]; - result.put(fqn, className); - }); - } - catch (final IOException exception) { - throw new UncheckedIOException(exception); - } - return result; - } - - private final Map> cache = new HashMap<>(); - - public $Module() { - super("@scope/jsii-calc-lib", "0.0.0", $Module.class, "jsii-calc-lib@0.0.0.jsii.tgz"); - } - - @Override - public List> getDependencies() { - return asList(software.amazon.jsii.tests.calculator.base.$Module.class, software.amazon.jsii.tests.calculator.baseofbase.$Module.class); - } - - @Override - protected Class resolveClass(final String fqn) throws ClassNotFoundException { - if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException("Unknown JSII type: " + fqn); - } - String className = MODULE_TYPES.get(fqn); - if (!this.cache.containsKey(className)) { - this.cache.put(className, this.findClass(className)); - } - return this.cache.get(className); - } - - private Class findClass(final String binaryName) { - try { - return Class.forName(binaryName); - } - catch (final ClassNotFoundException exception) { - throw new RuntimeException(exception); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java deleted file mode 100644 index 008363dcb5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java +++ /dev/null @@ -1,23 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Check that enums from \@scoped packages can be references. - *

- * See awslabs/jsii#138 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.EnumFromScopedModule") -public enum EnumFromScopedModule { - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - VALUE1, - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - VALUE2, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java deleted file mode 100644 index 4b24b5f7a0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java +++ /dev/null @@ -1,36 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * The general contract for a concrete number. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IDoublable") -@software.amazon.jsii.Jsii.Proxy(IDoublable.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface IDoublable extends software.amazon.jsii.JsiiSerializable { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IDoublable { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { - return this.jsiiGet("doubleValue", java.lang.Number.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java deleted file mode 100644 index 1bb67fdd01..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java +++ /dev/null @@ -1,41 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Applies to classes that are considered friendly. - *

- * These classes can be greeted with - * a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IFriendly") -@software.amazon.jsii.Jsii.Proxy(IFriendly.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface IFriendly extends software.amazon.jsii.JsiiSerializable { - - /** - * Say hello! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.String hello(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IFriendly { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * Say hello! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java deleted file mode 100644 index 85f3d4e55c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Interface that inherits from packages 2 levels up the tree. - *

- * Their presence validates that .NET/Java/jsii-reflect can track all fields - * far enough up the tree. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IThreeLevelsInterface") -@software.amazon.jsii.Jsii.Proxy(IThreeLevelsInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface IThreeLevelsInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.IBaseInterface { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - void baz(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.lib.IThreeLevelsInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public void baz() { - this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); - } - - @Override - public void bar() { - this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); - } - - @Override - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java deleted file mode 100644 index 68367b93d9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java +++ /dev/null @@ -1,189 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * This is the first struct we have created in jsii. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.MyFirstStruct") -@software.amazon.jsii.Jsii.Proxy(MyFirstStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * An awesome number value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.Number getAnumber(); - - /** - * A string value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.String getAstring(); - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - default @org.jetbrains.annotations.Nullable java.util.List getFirstOptional() { - return null; - } - - /** - * @return a {@link Builder} of {@link MyFirstStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link MyFirstStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number anumber; - private java.lang.String astring; - private java.util.List firstOptional; - - /** - * Sets the value of {@link MyFirstStruct#getAnumber} - * @param anumber An awesome number value. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder anumber(java.lang.Number anumber) { - this.anumber = anumber; - return this; - } - - /** - * Sets the value of {@link MyFirstStruct#getAstring} - * @param astring A string value. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder astring(java.lang.String astring) { - this.astring = astring; - return this; - } - - /** - * Sets the value of {@link MyFirstStruct#getFirstOptional} - * @param firstOptional the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder firstOptional(java.util.List firstOptional) { - this.firstOptional = firstOptional; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link MyFirstStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public MyFirstStruct build() { - return new Jsii$Proxy(anumber, astring, firstOptional); - } - } - - /** - * An implementation for {@link MyFirstStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MyFirstStruct { - private final java.lang.Number anumber; - private final java.lang.String astring; - private final java.util.List firstOptional; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.anumber = this.jsiiGet("anumber", java.lang.Number.class); - this.astring = this.jsiiGet("astring", java.lang.String.class); - this.firstOptional = this.jsiiGet("firstOptional", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.anumber = java.util.Objects.requireNonNull(anumber, "anumber is required"); - this.astring = java.util.Objects.requireNonNull(astring, "astring is required"); - this.firstOptional = firstOptional; - } - - @Override - public java.lang.Number getAnumber() { - return this.anumber; - } - - @Override - public java.lang.String getAstring() { - return this.astring; - } - - @Override - public java.util.List getFirstOptional() { - return this.firstOptional; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("anumber", om.valueToTree(this.getAnumber())); - data.set("astring", om.valueToTree(this.getAstring())); - if (this.getFirstOptional() != null) { - data.set("firstOptional", om.valueToTree(this.getFirstOptional())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.MyFirstStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - MyFirstStruct.Jsii$Proxy that = (MyFirstStruct.Jsii$Proxy) o; - - if (!anumber.equals(that.anumber)) return false; - if (!astring.equals(that.astring)) return false; - return this.firstOptional != null ? this.firstOptional.equals(that.firstOptional) : that.firstOptional == null; - } - - @Override - public int hashCode() { - int result = this.anumber.hashCode(); - result = 31 * result + (this.astring.hashCode()); - result = 31 * result + (this.firstOptional != null ? this.firstOptional.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java deleted file mode 100644 index 453a262f1e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java +++ /dev/null @@ -1,51 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Represents a concrete number. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Number") -public class Number extends software.amazon.jsii.tests.calculator.lib.Value implements software.amazon.jsii.tests.calculator.lib.IDoublable { - - protected Number(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Number(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a Number object. - *

- * @param value The number. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Number(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * The number multiplied by 2. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { - return this.jsiiGet("doubleValue", java.lang.Number.class); - } - - /** - * The number. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java deleted file mode 100644 index 12c1e5ff1d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java +++ /dev/null @@ -1,61 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Represents an operation on values. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Operation") -public abstract class Operation extends software.amazon.jsii.tests.calculator.lib.Value { - - protected Operation(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Operation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - protected Operation() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public abstract @org.jetbrains.annotations.NotNull java.lang.String toString(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.lib.Operation { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * The value. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java deleted file mode 100644 index 689d9354ce..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java +++ /dev/null @@ -1,196 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * This is a struct with only optional properties. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.StructWithOnlyOptionals") -@software.amazon.jsii.Jsii.Proxy(StructWithOnlyOptionals.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface StructWithOnlyOptionals extends software.amazon.jsii.JsiiSerializable { - - /** - * The first optional! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - default @org.jetbrains.annotations.Nullable java.lang.String getOptional1() { - return null; - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - default @org.jetbrains.annotations.Nullable java.lang.Number getOptional2() { - return null; - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - default @org.jetbrains.annotations.Nullable java.lang.Boolean getOptional3() { - return null; - } - - /** - * @return a {@link Builder} of {@link StructWithOnlyOptionals} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructWithOnlyOptionals} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String optional1; - private java.lang.Number optional2; - private java.lang.Boolean optional3; - - /** - * Sets the value of {@link StructWithOnlyOptionals#getOptional1} - * @param optional1 The first optional!. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder optional1(java.lang.String optional1) { - this.optional1 = optional1; - return this; - } - - /** - * Sets the value of {@link StructWithOnlyOptionals#getOptional2} - * @param optional2 the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder optional2(java.lang.Number optional2) { - this.optional2 = optional2; - return this; - } - - /** - * Sets the value of {@link StructWithOnlyOptionals#getOptional3} - * @param optional3 the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder optional3(java.lang.Boolean optional3) { - this.optional3 = optional3; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructWithOnlyOptionals} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public StructWithOnlyOptionals build() { - return new Jsii$Proxy(optional1, optional2, optional3); - } - } - - /** - * An implementation for {@link StructWithOnlyOptionals} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithOnlyOptionals { - private final java.lang.String optional1; - private final java.lang.Number optional2; - private final java.lang.Boolean optional3; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.optional1 = this.jsiiGet("optional1", java.lang.String.class); - this.optional2 = this.jsiiGet("optional2", java.lang.Number.class); - this.optional3 = this.jsiiGet("optional3", java.lang.Boolean.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String optional1, final java.lang.Number optional2, final java.lang.Boolean optional3) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.optional1 = optional1; - this.optional2 = optional2; - this.optional3 = optional3; - } - - @Override - public java.lang.String getOptional1() { - return this.optional1; - } - - @Override - public java.lang.Number getOptional2() { - return this.optional2; - } - - @Override - public java.lang.Boolean getOptional3() { - return this.optional3; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getOptional1() != null) { - data.set("optional1", om.valueToTree(this.getOptional1())); - } - if (this.getOptional2() != null) { - data.set("optional2", om.valueToTree(this.getOptional2())); - } - if (this.getOptional3() != null) { - data.set("optional3", om.valueToTree(this.getOptional3())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.StructWithOnlyOptionals")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructWithOnlyOptionals.Jsii$Proxy that = (StructWithOnlyOptionals.Jsii$Proxy) o; - - if (this.optional1 != null ? !this.optional1.equals(that.optional1) : that.optional1 != null) return false; - if (this.optional2 != null ? !this.optional2.equals(that.optional2) : that.optional2 != null) return false; - return this.optional3 != null ? this.optional3.equals(that.optional3) : that.optional3 == null; - } - - @Override - public int hashCode() { - int result = this.optional1 != null ? this.optional1.hashCode() : 0; - result = 31 * result + (this.optional2 != null ? this.optional2.hashCode() : 0); - result = 31 * result + (this.optional3 != null ? this.optional3.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java deleted file mode 100644 index 64f0c0a6d7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java +++ /dev/null @@ -1,59 +0,0 @@ -package software.amazon.jsii.tests.calculator.lib; - -/** - * Abstract class which represents a numeric value. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Value") -public abstract class Value extends software.amazon.jsii.tests.calculator.base.Base { - - protected Value(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Value(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - protected Value() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - - /** - * The value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public abstract @org.jetbrains.annotations.NotNull java.lang.Number getValue(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.lib.Value { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * The value. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java deleted file mode 100644 index 788e3a3524..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java +++ /dev/null @@ -1,7 +0,0 @@ -/** - * - * Deprecated: Really just deprecated for shows... - */ -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -package software.amazon.jsii.tests.calculator.lib; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt deleted file mode 100644 index 760699dfd9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt +++ /dev/null @@ -1,12 +0,0 @@ -@scope/jsii-calc-lib.EnumFromScopedModule=software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule -@scope/jsii-calc-lib.IDoublable=software.amazon.jsii.tests.calculator.lib.IDoublable -@scope/jsii-calc-lib.IFriendly=software.amazon.jsii.tests.calculator.lib.IFriendly -@scope/jsii-calc-lib.IThreeLevelsInterface=software.amazon.jsii.tests.calculator.lib.IThreeLevelsInterface -@scope/jsii-calc-lib.MyFirstStruct=software.amazon.jsii.tests.calculator.lib.MyFirstStruct -@scope/jsii-calc-lib.Number=software.amazon.jsii.tests.calculator.lib.Number -@scope/jsii-calc-lib.Operation=software.amazon.jsii.tests.calculator.lib.Operation -@scope/jsii-calc-lib.StructWithOnlyOptionals=software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals -@scope/jsii-calc-lib.Value=software.amazon.jsii.tests.calculator.lib.Value -@scope/jsii-calc-lib.submodule.IReflectable=software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable -@scope/jsii-calc-lib.submodule.ReflectableEntry=software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry -@scope/jsii-calc-lib.submodule.Reflector=software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/js/jsii-calc-lib@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-lib/js/jsii-calc-lib@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/js/jsii-calc-lib@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/MANIFEST.in b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/MANIFEST.in deleted file mode 100644 index bec201fc83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include pyproject.toml diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/README.md b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/README.md deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/README.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/pyproject.toml b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/pyproject.toml deleted file mode 100644 index 34ba8ead4b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["setuptools >= 38.6.0", "wheel >= 0.31.0"] -build-backend = "setuptools.build_meta" diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py deleted file mode 100644 index 0b2215d3ba..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -import json -import setuptools - -kwargs = json.loads( - """ -{ - "name": "scope.jsii-calc-lib", - "version": "0.0.0", - "description": "A simple calcuator library built on JSII.", - "license": "Apache-2.0", - "url": "https://github.com/aws/jsii", - "long_description_content_type": "text/markdown", - "author": "Amazon Web Services", - "project_urls": { - "Source": "https://github.com/aws/jsii.git" - }, - "package_dir": { - "": "src" - }, - "packages": [ - "scope.jsii_calc_lib", - "scope.jsii_calc_lib._jsii", - "scope.jsii_calc_lib.custom_submodule_name" - ], - "package_data": { - "scope.jsii_calc_lib._jsii": [ - "jsii-calc-lib@0.0.0.jsii.tgz" - ], - "scope.jsii_calc_lib": [ - "py.typed" - ] - }, - "python_requires": ">=3.6", - "install_requires": [ - "jsii>=0.0.0, <0.0.1", - "publication>=0.0.3", - "scope.jsii-calc-base>=0.0.0, <0.0.1", - "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1" - ], - "classifiers": [ - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Programming Language :: JavaScript", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Typing :: Typed", - "Development Status :: 7 - Inactive", - "License :: OSI Approved" - ] -} -""" -) - -with open("README.md") as fp: - kwargs["long_description"] = fp.read() - - -setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py deleted file mode 100644 index a367b1995f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py +++ /dev/null @@ -1,453 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ._jsii import * - -import scope.jsii_calc_base - - -@jsii.enum(jsii_type="@scope/jsii-calc-lib.EnumFromScopedModule") -class EnumFromScopedModule(enum.Enum): - """Check that enums from @scoped packages can be references. - - See awslabs/jsii#138 - - stability - :stability: deprecated - """ - - VALUE1 = "VALUE1" - """ - stability - :stability: deprecated - """ - VALUE2 = "VALUE2" - """ - stability - :stability: deprecated - """ - - -@jsii.interface(jsii_type="@scope/jsii-calc-lib.IDoublable") -class IDoublable(jsii.compat.Protocol): - """The general contract for a concrete number. - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IDoublableProxy - - @builtins.property - @jsii.member(jsii_name="doubleValue") - def double_value(self) -> jsii.Number: - """ - stability - :stability: deprecated - """ - ... - - -class _IDoublableProxy: - """The general contract for a concrete number. - - stability - :stability: deprecated - """ - - __jsii_type__ = "@scope/jsii-calc-lib.IDoublable" - - @builtins.property - @jsii.member(jsii_name="doubleValue") - def double_value(self) -> jsii.Number: - """ - stability - :stability: deprecated - """ - return jsii.get(self, "doubleValue") - - -@jsii.interface(jsii_type="@scope/jsii-calc-lib.IFriendly") -class IFriendly(jsii.compat.Protocol): - """Applies to classes that are considered friendly. - - These classes can be greeted with - a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlyProxy - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: deprecated - """ - ... - - -class _IFriendlyProxy: - """Applies to classes that are considered friendly. - - These classes can be greeted with - a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. - - stability - :stability: deprecated - """ - - __jsii_type__ = "@scope/jsii-calc-lib.IFriendly" - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: deprecated - """ - return jsii.invoke(self, "hello", []) - - -@jsii.interface(jsii_type="@scope/jsii-calc-lib.IThreeLevelsInterface") -class IThreeLevelsInterface(scope.jsii_calc_base.IBaseInterface, jsii.compat.Protocol): - """Interface that inherits from packages 2 levels up the tree. - - Their presence validates that .NET/Java/jsii-reflect can track all fields - far enough up the tree. - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IThreeLevelsInterfaceProxy - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: deprecated - """ - ... - - -class _IThreeLevelsInterfaceProxy(jsii.proxy_for(scope.jsii_calc_base.IBaseInterface)): - """Interface that inherits from packages 2 levels up the tree. - - Their presence validates that .NET/Java/jsii-reflect can track all fields - far enough up the tree. - - stability - :stability: deprecated - """ - - __jsii_type__ = "@scope/jsii-calc-lib.IThreeLevelsInterface" - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: deprecated - """ - return jsii.invoke(self, "baz", []) - - -@jsii.data_type( - jsii_type="@scope/jsii-calc-lib.MyFirstStruct", - jsii_struct_bases=[], - name_mapping={ - "anumber": "anumber", - "astring": "astring", - "first_optional": "firstOptional", - }, -) -class MyFirstStruct: - def __init__( - self, - *, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - ) -> None: - """This is the first struct we have created in jsii. - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: deprecated - """ - self._values = { - "anumber": anumber, - "astring": astring, - } - if first_optional is not None: - self._values["first_optional"] = first_optional - - @builtins.property - def anumber(self) -> jsii.Number: - """An awesome number value. - - stability - :stability: deprecated - """ - return self._values.get("anumber") - - @builtins.property - def astring(self) -> str: - """A string value. - - stability - :stability: deprecated - """ - return self._values.get("astring") - - @builtins.property - def first_optional(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: deprecated - """ - return self._values.get("first_optional") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "MyFirstStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="@scope/jsii-calc-lib.StructWithOnlyOptionals", - jsii_struct_bases=[], - name_mapping={ - "optional1": "optional1", - "optional2": "optional2", - "optional3": "optional3", - }, -) -class StructWithOnlyOptionals: - def __init__( - self, - *, - optional1: typing.Optional[str] = None, - optional2: typing.Optional[jsii.Number] = None, - optional3: typing.Optional[bool] = None, - ) -> None: - """This is a struct with only optional properties. - - :param optional1: The first optional! - :param optional2: - :param optional3: - - stability - :stability: deprecated - """ - self._values = {} - if optional1 is not None: - self._values["optional1"] = optional1 - if optional2 is not None: - self._values["optional2"] = optional2 - if optional3 is not None: - self._values["optional3"] = optional3 - - @builtins.property - def optional1(self) -> typing.Optional[str]: - """The first optional! - - stability - :stability: deprecated - """ - return self._values.get("optional1") - - @builtins.property - def optional2(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: deprecated - """ - return self._values.get("optional2") - - @builtins.property - def optional3(self) -> typing.Optional[bool]: - """ - stability - :stability: deprecated - """ - return self._values.get("optional3") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructWithOnlyOptionals(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class Value( - scope.jsii_calc_base.Base, - metaclass=jsii.JSIIAbstractClass, - jsii_type="@scope/jsii-calc-lib.Value", -): - """Abstract class which represents a numeric value. - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _ValueProxy - - def __init__(self) -> None: - jsii.create(Value, self, []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: deprecated - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="value") - @abc.abstractmethod - def value(self) -> jsii.Number: - """The value. - - stability - :stability: deprecated - """ - ... - - -class _ValueProxy(Value, jsii.proxy_for(scope.jsii_calc_base.Base)): - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: deprecated - """ - return jsii.get(self, "value") - - -@jsii.implements(IDoublable) -class Number(Value, metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.Number"): - """Represents a concrete number. - - stability - :stability: deprecated - """ - - def __init__(self, value: jsii.Number) -> None: - """Creates a Number object. - - :param value: The number. - - stability - :stability: deprecated - """ - jsii.create(Number, self, [value]) - - @builtins.property - @jsii.member(jsii_name="doubleValue") - def double_value(self) -> jsii.Number: - """The number multiplied by 2. - - stability - :stability: deprecated - """ - return jsii.get(self, "doubleValue") - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The number. - - stability - :stability: deprecated - """ - return jsii.get(self, "value") - - -class Operation( - Value, metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-lib.Operation" -): - """Represents an operation on values. - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _OperationProxy - - def __init__(self) -> None: - jsii.create(Operation, self, []) - - @jsii.member(jsii_name="toString") - @abc.abstractmethod - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: deprecated - """ - ... - - -class _OperationProxy(Operation, jsii.proxy_for(Value)): - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: deprecated - """ - return jsii.invoke(self, "toString", []) - - -__all__ = [ - "EnumFromScopedModule", - "IDoublable", - "IFriendly", - "IThreeLevelsInterface", - "MyFirstStruct", - "Number", - "Operation", - "StructWithOnlyOptionals", - "Value", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py deleted file mode 100644 index 6cb9cd7a1a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -import scope.jsii_calc_base._jsii -import scope.jsii_calc_base_of_base._jsii - -__jsii_assembly__ = jsii.JSIIAssembly.load( - "@scope/jsii-calc-lib", "0.0.0", __name__[0:-6], "jsii-calc-lib@0.0.0.jsii.tgz" -) - -__all__ = [ - "__jsii_assembly__", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py deleted file mode 100644 index db94b547ea..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py +++ /dev/null @@ -1,132 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - - -@jsii.interface(jsii_type="@scope/jsii-calc-lib.submodule.IReflectable") -class IReflectable(jsii.compat.Protocol): - """ - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReflectableProxy - - @builtins.property - @jsii.member(jsii_name="entries") - def entries(self) -> typing.List["ReflectableEntry"]: - """ - stability - :stability: deprecated - """ - ... - - -class _IReflectableProxy: - """ - stability - :stability: deprecated - """ - - __jsii_type__ = "@scope/jsii-calc-lib.submodule.IReflectable" - - @builtins.property - @jsii.member(jsii_name="entries") - def entries(self) -> typing.List["ReflectableEntry"]: - """ - stability - :stability: deprecated - """ - return jsii.get(self, "entries") - - -@jsii.data_type( - jsii_type="@scope/jsii-calc-lib.submodule.ReflectableEntry", - jsii_struct_bases=[], - name_mapping={"key": "key", "value": "value"}, -) -class ReflectableEntry: - def __init__(self, *, key: str, value: typing.Any) -> None: - """ - :param key: - :param value: - - stability - :stability: deprecated - """ - self._values = { - "key": key, - "value": value, - } - - @builtins.property - def key(self) -> str: - """ - stability - :stability: deprecated - """ - return self._values.get("key") - - @builtins.property - def value(self) -> typing.Any: - """ - stability - :stability: deprecated - """ - return self._values.get("value") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ReflectableEntry(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class Reflector( - metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.submodule.Reflector" -): - """ - stability - :stability: deprecated - """ - - def __init__(self) -> None: - """ - stability - :stability: deprecated - """ - jsii.create(Reflector, self, []) - - @jsii.member(jsii_name="asMap") - def as_map(self, reflectable: "IReflectable") -> typing.Mapping[str, typing.Any]: - """ - :param reflectable: - - - stability - :stability: deprecated - """ - return jsii.invoke(self, "asMap", [reflectable]) - - -__all__ = [ - "IReflectable", - "ReflectableEntry", - "Reflector", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/py.typed b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/py.typed deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/py.typed +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii deleted file mode 100644 index 9652ef283f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ /dev/null @@ -1,13726 +0,0 @@ -{ - "author": { - "name": "Amazon Web Services", - "organization": true, - "roles": [ - "author" - ], - "url": "https://aws.amazon.com" - }, - "bundled": { - "@fixtures/jsii-calc-bundled": "^0.19.0" - }, - "contributors": [ - { - "name": "Elad Ben-Israel", - "roles": [ - "maintainer" - ], - "url": "https://github.com/eladb" - }, - { - "name": "Rico Huijbers", - "roles": [ - "maintainer" - ], - "url": "https://github.com/rix0rrr" - }, - { - "name": "Romain Marcadier-Muller", - "roles": [ - "maintainer" - ], - "url": "https://github.com/RomainMuller" - } - ], - "dependencies": { - "@scope/jsii-calc-base": "^0.0.0", - "@scope/jsii-calc-base-of-base": "^0.0.0", - "@scope/jsii-calc-lib": "^0.0.0" - }, - "dependencyClosure": { - "@scope/jsii-calc-base": { - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.base" - }, - "js": { - "npm": "@scope/jsii-calc-base" - }, - "python": { - "distName": "scope.jsii-calc-base", - "module": "scope.jsii_calc_base" - } - } - }, - "@scope/jsii-calc-base-of-base": { - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" - }, - "java": { - "maven": { - "artifactId": "calculator-base-of-base", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator.baseofbase" - }, - "js": { - "npm": "@scope/jsii-calc-base-of-base" - }, - "python": { - "distName": "scope.jsii-calc-base-of-base", - "module": "scope.jsii_calc_base_of_base" - } - } - }, - "@scope/jsii-calc-lib": { - "submodules": { - "@scope/jsii-calc-lib.submodule": { - "locationInModule": { - "filename": "lib/index.ts", - "line": 112 - }, - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CustomSubmoduleName" - }, - "java": { - "package": "software.amazon.jsii.tests.calculator.custom_submodule_name" - }, - "python": { - "module": "scope.jsii_calc_lib.custom_submodule_name" - } - } - } - }, - "targets": { - "dotnet": { - "namespace": "Amazon.JSII.Tests.CalculatorNamespace.LibNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId.LibPackageId", - "versionSuffix": "-devpreview" - }, - "java": { - "maven": { - "artifactId": "calculator-lib", - "groupId": "software.amazon.jsii.tests", - "versionSuffix": ".DEVPREVIEW" - }, - "package": "software.amazon.jsii.tests.calculator.lib" - }, - "js": { - "npm": "@scope/jsii-calc-lib" - }, - "python": { - "distName": "scope.jsii-calc-lib", - "module": "scope.jsii_calc_lib" - } - } - } - }, - "description": "A simple calcuator built on JSII.", - "docs": { - "stability": "experimental" - }, - "homepage": "https://github.com/aws/jsii", - "jsiiVersion": "0.0.0", - "keywords": [ - "aws", - "jsii", - "test" - ], - "license": "Apache-2.0", - "metadata": { - "jsii:boolean": true, - "jsii:number": 1337, - "jsii:object": { - "string": "yes!" - } - }, - "name": "jsii-calc", - "readme": { - "markdown": "# jsii Calculator\n\nThis library is used to demonstrate and test the features of JSII\n\n## How to use running sum API:\n\nFirst, create a calculator:\n\n```ts\nconst calculator = new calc.Calculator();\n```\n\nThen call some operations:\n\n\n```ts fixture=with-calculator\ncalculator.add(10);\n```\n\n## Code Samples\n\n```ts\n/* This is totes a magic comment in here, just you wait! */\nconst foo = 'bar';\n```\n" - }, - "repository": { - "directory": "packages/jsii-calc", - "type": "git", - "url": "https://github.com/aws/jsii.git" - }, - "schema": "jsii/0.10.0", - "submodules": { - "@scope/jsii-calc-lib.submodule": { - "locationInModule": { - "filename": "../@scope/jsii-calc-lib/build/index.d.ts", - "line": 94 - } - }, - "jsii-calc.DerivedClassHasNoProperties": { - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 325 - } - }, - "jsii-calc.InterfaceInNamespaceIncludesClasses": { - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1206 - } - }, - "jsii-calc.InterfaceInNamespaceOnlyInterface": { - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1199 - } - }, - "jsii-calc.PythonSelf": { - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1090 - } - }, - "jsii-calc.composition": { - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 134 - } - }, - "jsii-calc.submodule": { - "locationInModule": { - "filename": "lib/index.ts", - "line": 8 - } - }, - "jsii-calc.submodule.back_references": { - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 5 - } - }, - "jsii-calc.submodule.child": { - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 1 - } - }, - "jsii-calc.submodule.isolated": { - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 2 - } - }, - "jsii-calc.submodule.nested_submodule": { - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 4 - } - }, - "jsii-calc.submodule.nested_submodule.deeplyNested": { - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 6 - } - } - }, - "targets": { - "dotnet": { - "iconUrl": "https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png", - "namespace": "Amazon.JSII.Tests.CalculatorNamespace", - "packageId": "Amazon.JSII.Tests.CalculatorPackageId" - }, - "java": { - "maven": { - "artifactId": "calculator", - "groupId": "software.amazon.jsii.tests" - }, - "package": "software.amazon.jsii.tests.calculator" - }, - "js": { - "npm": "jsii-calc" - }, - "python": { - "distName": "jsii-calc", - "module": "jsii_calc" - } - }, - "types": { - "jsii-calc.AbstractClass": { - "abstract": true, - "assembly": "jsii-calc", - "base": "jsii-calc.AbstractClassBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IInterfaceImplementedByAbstractClass" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1250 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1256 - }, - "name": "abstractMethod", - "parameters": [ - { - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1252 - }, - "name": "nonAbstractMethod", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "AbstractClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1258 - }, - "name": "propFromInterface", - "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassBase": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassBase", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1246 - }, - "name": "AbstractClassBase", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1247 - }, - "name": "abstractProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassReturner": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassReturner", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1273 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1274 - }, - "name": "giveMeAbstract", - "returns": { - "type": { - "fqn": "jsii-calc.AbstractClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1278 - }, - "name": "giveMeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" - } - } - } - ], - "name": "AbstractClassReturner", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1282 - }, - "name": "returnAbstractFromProperty", - "type": { - "fqn": "jsii-calc.AbstractClassBase" - } - } - ] - }, - "jsii-calc.AbstractSuite": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Ensures abstract members implementations correctly register overrides in various languages." - }, - "fqn": "jsii-calc.AbstractSuite", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 411 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 413 - }, - "name": "someMethod", - "parameters": [ - { - "name": "str", - "type": { - "primitive": "string" - } - } - ], - "protected": true, - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Sets `seed` to `this.property`, then calls `someMethod` with `this.property` and returns the result." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 419 - }, - "name": "workItAll", - "parameters": [ - { - "docs": { - "summary": "a `string`." - }, - "name": "seed", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "AbstractSuite", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 412 - }, - "name": "property", - "protected": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Add": { - "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", - "docs": { - "stability": "experimental", - "summary": "The \"+\" binary operation." - }, - "fqn": "jsii-calc.Add", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 49 - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 61 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 66 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Add", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 62 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.AllTypes": { - "assembly": "jsii-calc", - "docs": { - "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", - "stability": "experimental", - "summary": "This class includes property for all types supported by jsii." - }, - "fqn": "jsii-calc.AllTypes", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 63 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 232 - }, - "name": "anyIn", - "parameters": [ - { - "name": "inp", - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 224 - }, - "name": "anyOut", - "returns": { - "type": { - "primitive": "any" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 220 - }, - "name": "enumMethod", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "jsii-calc.StringEnum" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.StringEnum" - } - } - } - ], - "name": "AllTypes", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 216 - }, - "name": "enumPropertyValue", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 180 - }, - "name": "anyArrayProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 181 - }, - "name": "anyMapProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 179 - }, - "name": "anyProperty", - "type": { - "primitive": "any" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 165 - }, - "name": "arrayProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 68 - }, - "name": "booleanProperty", - "type": { - "primitive": "boolean" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 114 - }, - "name": "dateProperty", - "type": { - "primitive": "date" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 200 - }, - "name": "enumProperty", - "type": { - "fqn": "jsii-calc.AllTypesEnum" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 133 - }, - "name": "jsonProperty", - "type": { - "primitive": "json" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 150 - }, - "name": "mapProperty", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Number" - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 99 - }, - "name": "numberProperty", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 83 - }, - "name": "stringProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 192 - }, - "name": "unionArrayProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Value" - } - ] - } - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 193 - }, - "name": "unionMapProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 191 - }, - "name": "unionProperty", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 186 - }, - "name": "unknownArrayProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 187 - }, - "name": "unknownMapProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 185 - }, - "name": "unknownProperty", - "type": { - "primitive": "any" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 197 - }, - "name": "optionalEnumValue", - "optional": true, - "type": { - "fqn": "jsii-calc.StringEnum" - } - } - ] - }, - "jsii-calc.AllTypesEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AllTypesEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 33 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "MY_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "YOUR_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "THIS_IS_GREAT" - } - ], - "name": "AllTypesEnum" - }, - "jsii-calc.AllowedMethodNames": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AllowedMethodNames", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 615 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 623 - }, - "name": "getBar", - "parameters": [ - { - "name": "_p1", - "type": { - "primitive": "string" - } - }, - { - "name": "_p2", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 619 - }, - "name": "getFoo", - "parameters": [ - { - "name": "withParam", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 634 - }, - "name": "setBar", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - }, - { - "name": "_z", - "type": { - "primitive": "boolean" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 630 - }, - "name": "setFoo", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - } - ] - } - ], - "name": "AllowedMethodNames" - }, - "jsii-calc.AmbiguousParameters": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AmbiguousParameters", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2683 - }, - "parameters": [ - { - "name": "scope", - "type": { - "fqn": "jsii-calc.Bell" - } - }, - { - "name": "props", - "type": { - "fqn": "jsii-calc.StructParameterType" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2682 - }, - "name": "AmbiguousParameters", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2685 - }, - "name": "props", - "type": { - "fqn": "jsii-calc.StructParameterType" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2684 - }, - "name": "scope", - "type": { - "fqn": "jsii-calc.Bell" - } - } - ] - }, - "jsii-calc.AnonymousImplementationProvider": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AnonymousImplementationProvider", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IAnonymousImplementationProvider" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2212 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2216 - }, - "name": "provideAsClass", - "overrides": "jsii-calc.IAnonymousImplementationProvider", - "returns": { - "type": { - "fqn": "jsii-calc.Implementation" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2220 - }, - "name": "provideAsInterface", - "overrides": "jsii-calc.IAnonymousImplementationProvider", - "returns": { - "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" - } - } - } - ], - "name": "AnonymousImplementationProvider" - }, - "jsii-calc.AsyncVirtualMethods": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AsyncVirtualMethods", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 333 - }, - "methods": [ - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 334 - }, - "name": "callMe", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental", - "summary": "Just calls \"overrideMeToo\"." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 353 - }, - "name": "callMe2", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", - "stability": "experimental", - "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 363 - }, - "name": "callMeDoublePromise", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 371 - }, - "name": "dontOverrideMe", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 342 - }, - "name": "overrideMe", - "parameters": [ - { - "name": "mult", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 346 - }, - "name": "overrideMeToo", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "AsyncVirtualMethods" - }, - "jsii-calc.AugmentableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AugmentableClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1539 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1540 - }, - "name": "methodOne" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1546 - }, - "name": "methodTwo" - } - ], - "name": "AugmentableClass" - }, - "jsii-calc.BaseJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.BaseJsii976", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2477 - }, - "name": "BaseJsii976" - }, - "jsii-calc.Bell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Bell", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IBell" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2421 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2424 - }, - "name": "ring", - "overrides": "jsii-calc.IBell" - } - ], - "name": "Bell", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2422 - }, - "name": "rung", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.BinaryOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "Represents an operation with two operands." - }, - "fqn": "jsii-calc.BinaryOperation", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 49 - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 43 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Say hello!" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 53 - }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "BinaryOperation", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Left-hand side operand." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 49 - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Right-hand side operand." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 49 - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.Calculator": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", - "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", - "stability": "experimental", - "summary": "A calculator which maintains a current value and allows adding operations." - }, - "fqn": "jsii-calc.Calculator", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Calculator object." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 287 - }, - "parameters": [ - { - "docs": { - "summary": "Initialization properties." - }, - "name": "props", - "optional": true, - "type": { - "fqn": "jsii-calc.CalculatorProps" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 282 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Adds a number to the current value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 320 - }, - "name": "add", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Multiplies the current value by a number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 327 - }, - "name": "mul", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Negates the current value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 341 - }, - "name": "neg" - }, - { - "docs": { - "stability": "experimental", - "summary": "Raises the current value by a power." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 334 - }, - "name": "pow", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns teh value of the union property (if defined)." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 360 - }, - "name": "readUnionValue", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "Calculator", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the expression." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 348 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A log of all operations." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 310 - }, - "name": "operationsLog", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A map of per operation name of all operations performed." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 305 - }, - "name": "operationsMap", - "type": { - "collection": { - "elementtype": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The current value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 300 - }, - "name": "curr", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The maximum value allows in this calculator." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 315 - }, - "name": "maxValue", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Example of a property that accepts a union of types." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 355 - }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.Add" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "jsii-calc.Power" - } - ] - } - } - } - ] - }, - "jsii-calc.CalculatorProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "Properties for Calculator." - }, - "fqn": "jsii-calc.CalculatorProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 243 - }, - "name": "CalculatorProps", - "properties": [ - { - "abstract": true, - "docs": { - "default": "0", - "remarks": "NOTE: Any number works here, it's fine.", - "stability": "experimental", - "summary": "The initial value of the calculator." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 251 - }, - "name": "initialValue", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "default": "none", - "stability": "experimental", - "summary": "The maximum value the calculator can store." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 258 - }, - "name": "maximumValue", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.ChildStruct982": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ChildStruct982", - "interfaces": [ - "jsii-calc.ParentStruct982" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2501 - }, - "name": "ChildStruct982", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2502 - }, - "name": "bar", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.ClassThatImplementsTheInternalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1802 - }, - "name": "ClassThatImplementsTheInternalInterface", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1806 - }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1807 - }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1808 - }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1809 - }, - "name": "d", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ClassThatImplementsThePrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1812 - }, - "name": "ClassThatImplementsThePrivateInterface", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1814 - }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1815 - }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1816 - }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1817 - }, - "name": "e", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ClassWithCollections": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithCollections", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2118 - }, - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2108 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2123 - }, - "name": "createAList", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2127 - }, - "name": "createAMap", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - "static": true - } - ], - "name": "ClassWithCollections", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2116 - }, - "name": "staticArray", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2112 - }, - "name": "staticMap", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2110 - }, - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2109 - }, - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - } - ] - }, - "jsii-calc.ClassWithDocs": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "customAttribute": "hasAValue" - }, - "example": "function anExample() {\n}", - "remarks": "The docs are great. They're a bunch of tags.", - "see": "https://aws.amazon.com/", - "stability": "stable", - "summary": "This class has docs." - }, - "fqn": "jsii-calc.ClassWithDocs", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1885 - }, - "name": "ClassWithDocs" - }, - "jsii-calc.ClassWithJavaReservedWords": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithJavaReservedWords", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2058 - }, - "parameters": [ - { - "name": "int", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2055 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2062 - }, - "name": "import", - "parameters": [ - { - "name": "assert", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "ClassWithJavaReservedWords", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2056 - }, - "name": "int", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ClassWithMutableObjectLiteralProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1293 - }, - "name": "ClassWithMutableObjectLiteralProperty", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1294 - }, - "name": "mutableObject", - "type": { - "fqn": "jsii-calc.IMutableObjectLiteral" - } - } - ] - }, - "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Class that implements interface properties automatically, but using a private constructor." - }, - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1320 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1322 - }, - "name": "create", - "parameters": [ - { - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" - } - }, - "static": true - } - ], - "name": "ClassWithPrivateConstructorAndAutomaticProperties", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1330 - }, - "name": "readOnlyString", - "overrides": "jsii-calc.IInterfaceWithProperties", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1331 - }, - "name": "readWriteString", - "overrides": "jsii-calc.IInterfaceWithProperties", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ConfusingToJackson": { - "assembly": "jsii-calc", - "docs": { - "see": "https://github.com/aws/aws-cdk/issues/4080", - "stability": "experimental", - "summary": "This tries to confuse Jackson by having overloaded property setters." - }, - "fqn": "jsii-calc.ConfusingToJackson", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2640 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2641 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.ConfusingToJackson" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2645 - }, - "name": "makeStructInstance", - "returns": { - "type": { - "fqn": "jsii-calc.ConfusingToJacksonStruct" - } - }, - "static": true - } - ], - "name": "ConfusingToJackson", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2649 - }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] - } - } - } - ] - }, - "jsii-calc.ConfusingToJacksonStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConfusingToJacksonStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2653 - }, - "name": "ConfusingToJacksonStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2654 - }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] - } - } - } - ] - }, - "jsii-calc.ConstructorPassesThisOut": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConstructorPassesThisOut", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1842 - }, - "parameters": [ - { - "name": "consumer", - "type": { - "fqn": "jsii-calc.PartiallyInitializedThisConsumer" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1841 - }, - "name": "ConstructorPassesThisOut" - }, - "jsii-calc.Constructors": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Constructors", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1587 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1604 - }, - "name": "hiddenInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1608 - }, - "name": "hiddenInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1612 - }, - "name": "hiddenSubInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1588 - }, - "name": "makeClass", - "returns": { - "type": { - "fqn": "jsii-calc.PublicClass" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1592 - }, - "name": "makeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1596 - }, - "name": "makeInterface2", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface2" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1600 - }, - "name": "makeInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } - } - }, - "static": true - } - ], - "name": "Constructors" - }, - "jsii-calc.ConsumePureInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConsumePureInterface", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2664 - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.IStructReturningDelegate" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2663 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2666 - }, - "name": "workItBaby", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } - } - } - ], - "name": "ConsumePureInterface" - }, - "jsii-calc.ConsumerCanRingBell": { - "assembly": "jsii-calc", - "docs": { - "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", - "stability": "experimental", - "summary": "Test calling back to consumers that implement interfaces." - }, - "fqn": "jsii-calc.ConsumerCanRingBell", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2306 - }, - "methods": [ - { - "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2312 - }, - "name": "staticImplementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2338 - }, - "name": "staticImplementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2327 - }, - "name": "staticImplementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2349 - }, - "name": "staticWhenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2359 - }, - "name": "implementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2385 - }, - "name": "implementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2374 - }, - "name": "implementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2396 - }, - "name": "whenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - } - ], - "name": "ConsumerCanRingBell" - }, - "jsii-calc.ConsumersOfThisCrazyTypeSystem": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1820 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1821 - }, - "name": "consumeAnotherPublicInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.IAnotherPublicInterface" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1825 - }, - "name": "consumeNonInternalInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.INonInternalInterface" - } - } - ], - "returns": { - "type": { - "primitive": "any" - } - } - } - ], - "name": "ConsumersOfThisCrazyTypeSystem" - }, - "jsii-calc.DataRenderer": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies proper type handling through dynamic overrides." - }, - "fqn": "jsii-calc.DataRenderer", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1981 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1982 - }, - "name": "render", - "parameters": [ - { - "name": "data", - "optional": true, - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1988 - }, - "name": "renderArbitrary", - "parameters": [ - { - "name": "data", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1992 - }, - "name": "renderMap", - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "DataRenderer" - }, - "jsii-calc.DefaultedConstructorArgument": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DefaultedConstructorArgument", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 318 - }, - "parameters": [ - { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 317 - }, - "name": "DefaultedConstructorArgument", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 319 - }, - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 321 - }, - "name": "arg3", - "type": { - "primitive": "date" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 320 - }, - "name": "arg2", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Demonstrate982": { - "assembly": "jsii-calc", - "docs": { - "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", - "stability": "experimental", - "summary": "1." - }, - "fqn": "jsii-calc.Demonstrate982", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2508 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2515 - }, - "name": "takeThis", - "returns": { - "type": { - "fqn": "jsii-calc.ChildStruct982" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2520 - }, - "name": "takeThisToo", - "returns": { - "type": { - "fqn": "jsii-calc.ParentStruct982" - } - }, - "static": true - } - ], - "name": "Demonstrate982" - }, - "jsii-calc.DeprecatedClass": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "a pretty boring class", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedClass", - "initializer": { - "docs": { - "deprecated": "this constructor is \"just\" okay", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 95 - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 89 - }, - "methods": [ - { - "docs": { - "deprecated": "it was a bad idea", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 100 - }, - "name": "method" - } - ], - "name": "DeprecatedClass", - "properties": [ - { - "docs": { - "deprecated": "this is not always \"wazoo\", be ready to be disappointed", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 91 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "deprecated": "shouldn't have been mutable", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 93 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.DeprecatedEnum": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "your deprecated selection of bad options", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 105 - }, - "members": [ - { - "docs": { - "deprecated": "option A is not great", - "stability": "deprecated" - }, - "name": "OPTION_A" - }, - { - "docs": { - "deprecated": "option B is kinda bad, too", - "stability": "deprecated" - }, - "name": "OPTION_B" - } - ], - "name": "DeprecatedEnum" - }, - "jsii-calc.DeprecatedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "deprecated": "it just wraps a string", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 77 - }, - "name": "DeprecatedStruct", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "well, yeah", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 79 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DerivedClassHasNoProperties.Base": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 326 - }, - "name": "Base", - "namespace": "DerivedClassHasNoProperties", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 327 - }, - "name": "prop", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DerivedClassHasNoProperties.Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.DerivedClassHasNoProperties.Base", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 330 - }, - "name": "Derived", - "namespace": "DerivedClassHasNoProperties" - }, - "jsii-calc.DerivedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "A struct which derives from another struct." - }, - "fqn": "jsii-calc.DerivedStruct", - "interfaces": [ - "@scope/jsii-calc-lib.MyFirstStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 541 - }, - "name": "DerivedStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 547 - }, - "name": "anotherRequired", - "type": { - "primitive": "date" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 546 - }, - "name": "bool", - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "An example of a non primitive property." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 545 - }, - "name": "nonPrimitive", - "type": { - "fqn": "jsii-calc.DoubleTrouble" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "This is optional." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 553 - }, - "name": "anotherOptional", - "optional": true, - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 549 - }, - "name": "optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 548 - }, - "name": "optionalArray", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.DiamondInheritanceBaseLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2026 - }, - "name": "DiamondInheritanceBaseLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2027 - }, - "name": "baseLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2030 - }, - "name": "DiamondInheritanceFirstMidLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2032 - }, - "name": "firstMidLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2035 - }, - "name": "DiamondInheritanceSecondMidLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2037 - }, - "name": "secondMidLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DiamondInheritanceTopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "jsii-calc.DiamondInheritanceSecondMidLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2040 - }, - "name": "DiamondInheritanceTopLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2043 - }, - "name": "topLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DisappointingCollectionSource": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This source of collections is disappointing - it'll always give you nothing :(", - "stability": "experimental", - "summary": "Verifies that null/undefined can be returned for optional collections." - }, - "fqn": "jsii-calc.DisappointingCollectionSource", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2530 - }, - "name": "DisappointingCollectionSource", - "properties": [ - { - "const": true, - "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", - "stability": "experimental", - "summary": "Some List of strings, maybe?" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2532 - }, - "name": "maybeList", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "const": true, - "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", - "stability": "experimental", - "summary": "Some Map of strings to numbers, maybe?" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2534 - }, - "name": "maybeMap", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "map" - } - } - } - ] - }, - "jsii-calc.DoNotOverridePrivates": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DoNotOverridePrivates", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1297 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1312 - }, - "name": "changePrivatePropertyValue", - "parameters": [ - { - "name": "newValue", - "type": { - "primitive": "string" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1304 - }, - "name": "privateMethodValue", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1308 - }, - "name": "privatePropertyValue", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "DoNotOverridePrivates" - }, - "jsii-calc.DoNotRecognizeAnyAsOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#284: do not recognize \"any\" as an optional argument." - }, - "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1353 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1354 - }, - "name": "method", - "parameters": [ - { - "name": "_requiredAny", - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalString", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - } - ], - "name": "DoNotRecognizeAnyAsOptional" - }, - "jsii-calc.DocumentedClass": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", - "stability": "stable", - "summary": "Here's the first line of the TSDoc comment." - }, - "fqn": "jsii-calc.DocumentedClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 11 - }, - "methods": [ - { - "docs": { - "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", - "returns": "A number that everyone knows very well", - "stability": "stable", - "summary": "Greet the indicated person." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 21 - }, - "name": "greet", - "parameters": [ - { - "docs": { - "summary": "The person to be greeted." - }, - "name": "greetee", - "optional": true, - "type": { - "fqn": "jsii-calc.Greetee" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say ¡Hola!" - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 31 - }, - "name": "hola" - } - ], - "name": "DocumentedClass" - }, - "jsii-calc.DontComplainAboutVariadicAfterOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1430 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1431 - }, - "name": "optionalAndVariadic", - "parameters": [ - { - "name": "optional", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "name": "things", - "type": { - "primitive": "string" - }, - "variadic": true - } - ], - "returns": { - "type": { - "primitive": "string" - } - }, - "variadic": true - } - ], - "name": "DontComplainAboutVariadicAfterOptional" - }, - "jsii-calc.DoubleTrouble": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DoubleTrouble", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IFriendlyRandomGenerator" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 485 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Say hello!" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 490 - }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns another random number." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 486 - }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "DoubleTrouble" - }, - "jsii-calc.EnumDispenser": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EnumDispenser", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 45 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 51 - }, - "name": "randomIntegerLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.AllTypesEnum" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 46 - }, - "name": "randomStringLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.StringEnum" - } - }, - "static": true - } - ], - "name": "EnumDispenser" - }, - "jsii-calc.EraseUndefinedHashValues": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValues", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1643 - }, - "methods": [ - { - "docs": { - "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", - "stability": "experimental", - "summary": "Returns `true` if `key` is defined in `opts`." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1648 - }, - "name": "doesKeyExist", - "parameters": [ - { - "name": "opts", - "type": { - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" - } - }, - { - "name": "key", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental", - "summary": "We expect \"prop1\" to be erased." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1668 - }, - "name": "prop1IsNull", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental", - "summary": "We expect \"prop2\" to be erased." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1658 - }, - "name": "prop2IsUndefined", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - }, - "static": true - } - ], - "name": "EraseUndefinedHashValues" - }, - "jsii-calc.EraseUndefinedHashValuesOptions": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1638 - }, - "name": "EraseUndefinedHashValuesOptions", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1639 - }, - "name": "option1", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1640 - }, - "name": "option2", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ExperimentalClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ExperimentalClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 22 - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 16 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 28 - }, - "name": "method" - } - ], - "name": "ExperimentalClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 18 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 20 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.ExperimentalEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ExperimentalEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 33 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_B" - } - ], - "name": "ExperimentalEnum" - }, - "jsii-calc.ExperimentalStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ExperimentalStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 4 - }, - "name": "ExperimentalStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 6 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ExportedBaseClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ExportedBaseClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1516 - }, - "parameters": [ - { - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1515 - }, - "name": "ExportedBaseClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1516 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.ExtendsInternalInterface": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ExtendsInternalInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1757 - }, - "name": "ExtendsInternalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1758 - }, - "name": "boom", - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1698 - }, - "name": "prop", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ExternalClass": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "fqn": "jsii-calc.ExternalClass", - "initializer": { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 131 - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 125 - }, - "methods": [ - { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 136 - }, - "name": "method" - } - ], - "name": "ExternalClass", - "properties": [ - { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 127 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 129 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.ExternalEnum": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "fqn": "jsii-calc.ExternalEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 141 - }, - "members": [ - { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "name": "OPTION_A" - }, - { - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "name": "OPTION_B" - } - ], - "name": "ExternalEnum" - }, - "jsii-calc.ExternalStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "fqn": "jsii-calc.ExternalStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 113 - }, - "name": "ExternalStruct", - "properties": [ - { - "abstract": true, - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 115 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.GiveMeStructs": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.GiveMeStructs", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 556 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 574 - }, - "name": "derivedToFirst", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns the boolean from a DerivedStruct struct." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 567 - }, - "name": "readDerivedNonPrimitive", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.DoubleTrouble" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 560 - }, - "name": "readFirstNumber", - "parameters": [ - { - "name": "first", - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "GiveMeStructs", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 578 - }, - "name": "structLiteral", - "type": { - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" - } - } - ] - }, - "jsii-calc.Greetee": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "These are some arguments you can pass to a method." - }, - "fqn": "jsii-calc.Greetee", - "kind": "interface", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 39 - }, - "name": "Greetee", - "properties": [ - { - "abstract": true, - "docs": { - "default": "world", - "stability": "experimental", - "summary": "The name of the greetee." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 45 - }, - "name": "name", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.GreetingAugmenter": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.GreetingAugmenter", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 532 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 533 - }, - "name": "betterGreeting", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "GreetingAugmenter" - }, - "jsii-calc.IAnonymousImplementationProvider": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." - }, - "fqn": "jsii-calc.IAnonymousImplementationProvider", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2208 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2210 - }, - "name": "provideAsClass", - "returns": { - "type": { - "fqn": "jsii-calc.Implementation" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2209 - }, - "name": "provideAsInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" - } - } - } - ], - "name": "IAnonymousImplementationProvider" - }, - "jsii-calc.IAnonymouslyImplementMe": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IAnonymouslyImplementMe", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2227 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2229 - }, - "name": "verb", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IAnonymouslyImplementMe", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2228 - }, - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IAnotherPublicInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IAnotherPublicInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1778 - }, - "name": "IAnotherPublicInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1779 - }, - "name": "a", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IBell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IBell", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2417 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2418 - }, - "name": "ring" - } - ], - "name": "IBell" - }, - "jsii-calc.IBellRinger": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as an interface." - }, - "fqn": "jsii-calc.IBellRinger", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2406 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2407 - }, - "name": "yourTurn", - "parameters": [ - { - "name": "bell", - "type": { - "fqn": "jsii-calc.IBell" - } - } - ] - } - ], - "name": "IBellRinger" - }, - "jsii-calc.IConcreteBellRinger": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as a calss." - }, - "fqn": "jsii-calc.IConcreteBellRinger", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2413 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2414 - }, - "name": "yourTurn", - "parameters": [ - { - "name": "bell", - "type": { - "fqn": "jsii-calc.Bell" - } - } - ] - } - ], - "name": "IConcreteBellRinger" - }, - "jsii-calc.IDeprecatedInterface": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "useless interface", - "stability": "deprecated" - }, - "fqn": "jsii-calc.IDeprecatedInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 82 - }, - "methods": [ - { - "abstract": true, - "docs": { - "deprecated": "services no purpose", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 86 - }, - "name": "method" - } - ], - "name": "IDeprecatedInterface", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "could be better", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 84 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IExperimentalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IExperimentalInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 9 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 13 - }, - "name": "method" - } - ], - "name": "IExperimentalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 11 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IExtendsPrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IExtendsPrivateInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1769 - }, - "name": "IExtendsPrivateInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1770 - }, - "name": "moreThings", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1754 - }, - "name": "private", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IExternalInterface": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "fqn": "jsii-calc.IExternalInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 118 - }, - "methods": [ - { - "abstract": true, - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 122 - }, - "name": "method" - } - ], - "name": "IExternalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "custom": { - "external": "true" - }, - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 120 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IFriendlier": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even friendlier classes can implement this interface." - }, - "fqn": "jsii-calc.IFriendlier", - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 12 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "Say farewell." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 22 - }, - "name": "farewell", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "abstract": true, - "docs": { - "returns": "A goodbye blessing.", - "stability": "experimental", - "summary": "Say goodbye." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 17 - }, - "name": "goodbye", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IFriendlier" - }, - "jsii-calc.IFriendlyRandomGenerator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IFriendlyRandomGenerator", - "interfaces": [ - "jsii-calc.IRandomNumberGenerator", - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 36 - }, - "name": "IFriendlyRandomGenerator" - }, - "jsii-calc.IInterfaceImplementedByAbstractClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#220 Abstract return type." - }, - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1242 - }, - "name": "IInterfaceImplementedByAbstractClass", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1243 - }, - "name": "propFromInterface", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IInterfaceThatShouldNotBeADataType": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." - }, - "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", - "interfaces": [ - "jsii-calc.IInterfaceWithMethods" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1345 - }, - "name": "IInterfaceThatShouldNotBeADataType", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1347 - }, - "name": "otherValue", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IInterfaceWithInternal": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithInternal", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1709 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1710 - }, - "name": "visible" - } - ], - "name": "IInterfaceWithInternal" - }, - "jsii-calc.IInterfaceWithMethods": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithMethods", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1335 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1338 - }, - "name": "doThings" - } - ], - "name": "IInterfaceWithMethods", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1336 - }, - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IInterfaceWithOptionalMethodArguments": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." - }, - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1220 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1221 - }, - "name": "hello", - "parameters": [ - { - "name": "arg1", - "type": { - "primitive": "string" - } - }, - { - "name": "arg2", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - } - ], - "name": "IInterfaceWithOptionalMethodArguments" - }, - "jsii-calc.IInterfaceWithProperties": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithProperties", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 586 - }, - "name": "IInterfaceWithProperties", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 587 - }, - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 588 - }, - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IInterfaceWithPropertiesExtension": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 591 - }, - "name": "IInterfaceWithPropertiesExtension", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 593 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IJSII417Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJSII417Derived", - "interfaces": [ - "jsii-calc.IJSII417PublicBaseOfBase" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 43 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 41 - }, - "name": "bar" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 44 - }, - "name": "baz" - } - ], - "name": "IJSII417Derived", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 40 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IJSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJSII417PublicBaseOfBase", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 36 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 37 - }, - "name": "foo" - } - ], - "name": "IJSII417PublicBaseOfBase", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 34 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.IJsii487External": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJsii487External", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 52 - }, - "name": "IJsii487External" - }, - "jsii-calc.IJsii487External2": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJsii487External2", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 54 - }, - "name": "IJsii487External2" - }, - "jsii-calc.IJsii496": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJsii496", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 64 - }, - "name": "IJsii496" - }, - "jsii-calc.IMutableObjectLiteral": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IMutableObjectLiteral", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1289 - }, - "name": "IMutableObjectLiteral", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1290 - }, - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.INonInternalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.INonInternalInterface", - "interfaces": [ - "jsii-calc.IAnotherPublicInterface" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1787 - }, - "name": "INonInternalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1784 - }, - "name": "b", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1788 - }, - "name": "c", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IObjectWithProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Make sure that setters are properly called on objects with interfaces." - }, - "fqn": "jsii-calc.IObjectWithProperty", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2542 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2544 - }, - "name": "wasSet", - "returns": { - "type": { - "primitive": "boolean" - } - } - } - ], - "name": "IObjectWithProperty", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2543 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IOptionalMethod": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Checks that optional result from interface method code generates correctly." - }, - "fqn": "jsii-calc.IOptionalMethod", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2731 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2732 - }, - "name": "optional", - "returns": { - "optional": true, - "type": { - "primitive": "string" - } - } - } - ], - "name": "IOptionalMethod" - }, - "jsii-calc.IPrivatelyImplemented": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IPrivatelyImplemented", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1512 - }, - "name": "IPrivatelyImplemented", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1513 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.IPublicInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IPublicInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1558 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1559 - }, - "name": "bye", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IPublicInterface" - }, - "jsii-calc.IPublicInterface2": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IPublicInterface2", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1562 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1563 - }, - "name": "ciao", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IPublicInterface2" - }, - "jsii-calc.IRandomNumberGenerator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Generates random numbers." - }, - "fqn": "jsii-calc.IRandomNumberGenerator", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 28 - }, - "methods": [ - { - "abstract": true, - "docs": { - "returns": "A random number.", - "stability": "experimental", - "summary": "Returns another random number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 33 - }, - "name": "next", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "IRandomNumberGenerator" - }, - "jsii-calc.IReturnJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Returns a subclass of a known class which implements an interface." - }, - "fqn": "jsii-calc.IReturnJsii976", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2473 - }, - "name": "IReturnJsii976", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2474 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IReturnsNumber": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IReturnsNumber", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 639 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 640 - }, - "name": "obtainNumber", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - } - } - } - ], - "name": "IReturnsNumber", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 642 - }, - "name": "numberProp", - "type": { - "fqn": "@scope/jsii-calc-lib.Number" - } - } - ] - }, - "jsii-calc.IStableInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.IStableInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 46 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 50 - }, - "name": "method" - } - ], - "name": "IStableInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 48 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.IStructReturningDelegate": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies that a \"pure\" implementation of an interface works correctly." - }, - "fqn": "jsii-calc.IStructReturningDelegate", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2660 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2661 - }, - "name": "returnStruct", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } - } - } - ], - "name": "IStructReturningDelegate" - }, - "jsii-calc.ImplementInternalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ImplementInternalInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1761 - }, - "name": "ImplementInternalInterface", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1762 - }, - "name": "prop", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Implementation": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Implementation", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2224 - }, - "name": "Implementation", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2225 - }, - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.ImplementsInterfaceWithInternal": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternal", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IInterfaceWithInternal" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1716 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1717 - }, - "name": "visible", - "overrides": "jsii-calc.IInterfaceWithInternal" - } - ], - "name": "ImplementsInterfaceWithInternal" - }, - "jsii-calc.ImplementsInterfaceWithInternalSubclass": { - "assembly": "jsii-calc", - "base": "jsii-calc.ImplementsInterfaceWithInternal", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1735 - }, - "name": "ImplementsInterfaceWithInternalSubclass" - }, - "jsii-calc.ImplementsPrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ImplementsPrivateInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1765 - }, - "name": "ImplementsPrivateInterface", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1766 - }, - "name": "private", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ImplictBaseOfBase": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ImplictBaseOfBase", - "interfaces": [ - "@scope/jsii-calc-base.BaseProps" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1176 - }, - "name": "ImplictBaseOfBase", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1177 - }, - "name": "goo", - "type": { - "primitive": "date" - } - } - ] - }, - "jsii-calc.InbetweenClass": { - "assembly": "jsii-calc", - "base": "jsii-calc.PublicClass", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.InbetweenClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IPublicInterface2" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1565 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1566 - }, - "name": "ciao", - "overrides": "jsii-calc.IPublicInterface2", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "InbetweenClass" - }, - "jsii-calc.InterfaceCollections": { - "assembly": "jsii-calc", - "docs": { - "remarks": "See: https://github.com/aws/jsii/issues/1196", - "stability": "experimental", - "summary": "Verifies that collections of interfaces or structs are correctly handled." - }, - "fqn": "jsii-calc.InterfaceCollections", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2694 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2705 - }, - "name": "listOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "array" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2695 - }, - "name": "listOfStructs", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "array" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2715 - }, - "name": "mapOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "map" - } - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2699 - }, - "name": "mapOfStructs", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "map" - } - } - }, - "static": true - } - ], - "name": "InterfaceCollections" - }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1207 - }, - "name": "Foo", - "namespace": "InterfaceInNamespaceIncludesClasses", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1208 - }, - "name": "bar", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1211 - }, - "name": "Hello", - "namespace": "InterfaceInNamespaceIncludesClasses", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1212 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1201 - }, - "name": "Hello", - "namespace": "InterfaceInNamespaceOnlyInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1202 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.InterfacesMaker": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." - }, - "fqn": "jsii-calc.InterfacesMaker", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2096 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2097 - }, - "name": "makeInterfaces", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - }, - "kind": "array" - } - } - }, - "static": true - } - ], - "name": "InterfacesMaker" - }, - "jsii-calc.Isomorphism": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "remarks": "Create a subclass of this, and assert that `this.myself()` actually returns\n`this` from within the constructor.", - "stability": "experimental", - "summary": "Checks the \"same instance\" isomorphism is preserved within the constructor." - }, - "fqn": "jsii-calc.Isomorphism", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2741 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2742 - }, - "name": "myself", - "returns": { - "type": { - "fqn": "jsii-calc.Isomorphism" - } - } - } - ], - "name": "Isomorphism" - }, - "jsii-calc.JSII417Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.JSII417PublicBaseOfBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JSII417Derived", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 17 - }, - "parameters": [ - { - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 24 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 25 - }, - "name": "bar" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 28 - }, - "name": "baz" - } - ], - "name": "JSII417Derived", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 17 - }, - "name": "property", - "protected": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.JSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JSII417PublicBaseOfBase", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 8 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 9 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.JSII417PublicBaseOfBase" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 12 - }, - "name": "foo" - } - ], - "name": "JSII417PublicBaseOfBase", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 6 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.JSObjectLiteralForInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JSObjectLiteralForInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 517 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 518 - }, - "name": "giveMeFriendly", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 524 - }, - "name": "giveMeFriendlyGenerator", - "returns": { - "type": { - "fqn": "jsii-calc.IFriendlyRandomGenerator" - } - } - } - ], - "name": "JSObjectLiteralForInterface" - }, - "jsii-calc.JSObjectLiteralToNative": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JSObjectLiteralToNative", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 247 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 248 - }, - "name": "returnLiteral", - "returns": { - "type": { - "fqn": "jsii-calc.JSObjectLiteralToNativeClass" - } - } - } - ], - "name": "JSObjectLiteralToNative" - }, - "jsii-calc.JSObjectLiteralToNativeClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JSObjectLiteralToNativeClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 256 - }, - "name": "JSObjectLiteralToNativeClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 257 - }, - "name": "propA", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 258 - }, - "name": "propB", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.JavaReservedWords": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.JavaReservedWords", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 745 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 746 - }, - "name": "abstract" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 750 - }, - "name": "assert" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 754 - }, - "name": "boolean" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 758 - }, - "name": "break" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 762 - }, - "name": "byte" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 766 - }, - "name": "case" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 770 - }, - "name": "catch" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 774 - }, - "name": "char" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 778 - }, - "name": "class" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 782 - }, - "name": "const" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 786 - }, - "name": "continue" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 790 - }, - "name": "default" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 798 - }, - "name": "do" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 794 - }, - "name": "double" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 802 - }, - "name": "else" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 806 - }, - "name": "enum" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 810 - }, - "name": "extends" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 814 - }, - "name": "false" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 818 - }, - "name": "final" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 822 - }, - "name": "finally" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 826 - }, - "name": "float" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 830 - }, - "name": "for" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 834 - }, - "name": "goto" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 838 - }, - "name": "if" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 842 - }, - "name": "implements" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 846 - }, - "name": "import" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 850 - }, - "name": "instanceof" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 854 - }, - "name": "int" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 858 - }, - "name": "interface" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 862 - }, - "name": "long" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 866 - }, - "name": "native" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 870 - }, - "name": "new" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 874 - }, - "name": "null" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 878 - }, - "name": "package" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 882 - }, - "name": "private" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 886 - }, - "name": "protected" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 890 - }, - "name": "public" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 894 - }, - "name": "return" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 898 - }, - "name": "short" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 902 - }, - "name": "static" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 906 - }, - "name": "strictfp" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 910 - }, - "name": "super" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 914 - }, - "name": "switch" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 918 - }, - "name": "synchronized" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 922 - }, - "name": "this" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 926 - }, - "name": "throw" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 930 - }, - "name": "throws" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 934 - }, - "name": "transient" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 938 - }, - "name": "true" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 942 - }, - "name": "try" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 946 - }, - "name": "void" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 950 - }, - "name": "volatile" - } - ], - "name": "JavaReservedWords", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 954 - }, - "name": "while", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Jsii487Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii487Derived", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IJsii487External2", - "jsii-calc.IJsii487External" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 56 - }, - "name": "Jsii487Derived" - }, - "jsii-calc.Jsii496Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii496Derived", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "interfaces": [ - "jsii-calc.IJsii496" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 66 - }, - "name": "Jsii496Derived" - }, - "jsii-calc.JsiiAgent": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Host runtime version should be set via JSII_AGENT." - }, - "fqn": "jsii-calc.JsiiAgent", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1528 - }, - "name": "JsiiAgent", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the value of the JSII_AGENT environment variable." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1532 - }, - "name": "jsiiAgent", - "optional": true, - "static": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.JsonFormatter": { - "assembly": "jsii-calc", - "docs": { - "see": "https://github.com/aws/aws-cdk/issues/5066", - "stability": "experimental", - "summary": "Make sure structs are un-decorated on the way in." - }, - "fqn": "jsii-calc.JsonFormatter", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2575 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2620 - }, - "name": "anyArray", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2616 - }, - "name": "anyBooleanFalse", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2612 - }, - "name": "anyBooleanTrue", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2592 - }, - "name": "anyDate", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2608 - }, - "name": "anyEmptyString", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2588 - }, - "name": "anyFunction", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2624 - }, - "name": "anyHash", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2580 - }, - "name": "anyNull", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2596 - }, - "name": "anyNumber", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2628 - }, - "name": "anyRef", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2604 - }, - "name": "anyString", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2584 - }, - "name": "anyUndefined", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2600 - }, - "name": "anyZero", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2576 - }, - "name": "stringify", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } - } - ], - "returns": { - "optional": true, - "type": { - "primitive": "string" - } - }, - "static": true - } - ], - "name": "JsonFormatter" - }, - "jsii-calc.LoadBalancedFargateServiceProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." - }, - "fqn": "jsii-calc.LoadBalancedFargateServiceProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1439 - }, - "name": "LoadBalancedFargateServiceProps", - "properties": [ - { - "abstract": true, - "docs": { - "default": "80", - "remarks": "Corresponds to container port mapping.", - "stability": "experimental", - "summary": "The container port of the application load balancer attached to your Fargate service." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1482 - }, - "name": "containerPort", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "default": "256", - "remarks": "Valid values, which determines your range of valid values for the memory parameter:\n256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB\n512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB\n1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB\n2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments\n4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments\n\nThis default is set in the underlying FargateTaskDefinition construct.", - "stability": "experimental", - "summary": "The number of cpu units used by the task." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1453 - }, - "name": "cpu", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "default": "512", - "remarks": "This field is required and you must use one of the following values, which determines your range of valid values\nfor the cpu parameter:\n\n0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)\n\n1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)\n\n2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)\n\nBetween 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)\n\nBetween 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)\n\nThis default is set in the underlying FargateTaskDefinition construct.", - "stability": "experimental", - "summary": "The amount (in MiB) of memory used by the task." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1475 - }, - "name": "memoryMiB", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "default": "true", - "stability": "experimental", - "summary": "Determines whether the Application Load Balancer will be internet-facing." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1489 - }, - "name": "publicLoadBalancer", - "optional": true, - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "default": "false", - "stability": "experimental", - "summary": "Determines whether your Fargate Service will be assigned a public IP address." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1496 - }, - "name": "publicTasks", - "optional": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.MethodNamedProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.MethodNamedProperty", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 396 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 397 - }, - "name": "property", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "MethodNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 401 - }, - "name": "elite", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.Multiply": { - "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", - "docs": { - "stability": "experimental", - "summary": "The \"*\" binary operation." - }, - "fqn": "jsii-calc.Multiply", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 49 - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "interfaces": [ - "jsii-calc.IFriendlier", - "jsii-calc.IRandomNumberGenerator" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 74 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Say farewell." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 88 - }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say goodbye." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 84 - }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns another random number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 92 - }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 80 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Multiply", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 76 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.Negate": { - "assembly": "jsii-calc", - "base": "jsii-calc.UnaryOperation", - "docs": { - "stability": "experimental", - "summary": "The negation operation (\"-value\")." - }, - "fqn": "jsii-calc.Negate", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 101 - }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "interfaces": [ - "jsii-calc.IFriendlier" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 109 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Say farewell." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 126 - }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say goodbye." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 122 - }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say hello!" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 118 - }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 114 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Negate", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 110 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.NestedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.NestedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2449 - }, - "name": "NestedStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "When provided, must be > 0." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2453 - }, - "name": "numberProp", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.NodeStandardLibrary": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Test fixture to verify that jsii modules can use the node standard library." - }, - "fqn": "jsii-calc.NodeStandardLibrary", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1126 - }, - "methods": [ - { - "docs": { - "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", - "stability": "experimental", - "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1157 - }, - "name": "cryptoSha256", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "async": true, - "docs": { - "returns": "\"Hello, resource!\"", - "stability": "experimental", - "summary": "Reads a local resource file (resource.txt) asynchronously." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1131 - }, - "name": "fsReadFile", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "returns": "\"Hello, resource! SYNC!\"", - "stability": "experimental", - "summary": "Sync version of fsReadFile." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1140 - }, - "name": "fsReadFileSync", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "NodeStandardLibrary", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the current os.platform() from the \"os\" node module." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1149 - }, - "name": "osPlatform", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefined": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1369 - }, - "parameters": [ - { - "name": "_param1", - "type": { - "primitive": "string" - } - }, - { - "name": "optional", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1366 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1377 - }, - "name": "giveMeUndefined", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1387 - }, - "name": "giveMeUndefinedInsideAnObject", - "parameters": [ - { - "name": "input", - "type": { - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1416 - }, - "name": "verifyPropertyIsUndefined" - } - ], - "name": "NullShouldBeTreatedAsUndefined", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1367 - }, - "name": "changeMeToUndefined", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefinedData": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1425 - }, - "name": "NullShouldBeTreatedAsUndefinedData", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1427 - }, - "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1426 - }, - "name": "thisShouldBeUndefined", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - "jsii-calc.NumberGenerator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." - }, - "fqn": "jsii-calc.NumberGenerator", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 506 - }, - "parameters": [ - { - "name": "generator", - "type": { - "fqn": "jsii-calc.IRandomNumberGenerator" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 505 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 512 - }, - "name": "isSameGenerator", - "parameters": [ - { - "name": "gen", - "type": { - "fqn": "jsii-calc.IRandomNumberGenerator" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 508 - }, - "name": "nextTimes100", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "NumberGenerator", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 506 - }, - "name": "generator", - "type": { - "fqn": "jsii-calc.IRandomNumberGenerator" - } - } - ] - }, - "jsii-calc.ObjectRefsInCollections": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verify that object references can be passed inside collections." - }, - "fqn": "jsii-calc.ObjectRefsInCollections", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 264 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the sum of all values." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 268 - }, - "name": "sumFromArray", - "parameters": [ - { - "name": "values", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns the sum of all values in a map." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 279 - }, - "name": "sumFromMap", - "parameters": [ - { - "name": "values", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "ObjectRefsInCollections" - }, - "jsii-calc.ObjectWithPropertyProvider": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ObjectWithPropertyProvider", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2546 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2547 - }, - "name": "provide", - "returns": { - "type": { - "fqn": "jsii-calc.IObjectWithProperty" - } - }, - "static": true - } - ], - "name": "ObjectWithPropertyProvider" - }, - "jsii-calc.Old": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "Use the new class", - "stability": "deprecated", - "summary": "Old class." - }, - "fqn": "jsii-calc.Old", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 53 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "Doo wop that thing." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 57 - }, - "name": "doAThing" - } - ], - "name": "Old" - }, - "jsii-calc.OptionalArgumentInvoker": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.OptionalArgumentInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1224 - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1223 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1232 - }, - "name": "invokeWithOptional" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1228 - }, - "name": "invokeWithoutOptional" - } - ], - "name": "OptionalArgumentInvoker" - }, - "jsii-calc.OptionalConstructorArgument": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.OptionalConstructorArgument", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 310 - }, - "parameters": [ - { - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "type": { - "primitive": "string" - } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 309 - }, - "name": "OptionalConstructorArgument", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 311 - }, - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 312 - }, - "name": "arg2", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 313 - }, - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } - } - ] - }, - "jsii-calc.OptionalStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.OptionalStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1867 - }, - "name": "OptionalStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1868 - }, - "name": "field", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.OptionalStructConsumer": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.OptionalStructConsumer", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1862 - }, - "parameters": [ - { - "name": "optionalStruct", - "optional": true, - "type": { - "fqn": "jsii-calc.OptionalStruct" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1858 - }, - "name": "OptionalStructConsumer", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1859 - }, - "name": "parameterWasUndefined", - "type": { - "primitive": "boolean" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1860 - }, - "name": "fieldValue", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.OverridableProtectedMember": { - "assembly": "jsii-calc", - "docs": { - "see": "https://github.com/aws/jsii/issues/903", - "stability": "experimental" - }, - "fqn": "jsii-calc.OverridableProtectedMember", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2135 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2147 - }, - "name": "overrideMe", - "protected": true, - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2143 - }, - "name": "switchModes" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2139 - }, - "name": "valueFromProtected", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "OverridableProtectedMember", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2136 - }, - "name": "overrideReadOnly", - "protected": true, - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2137 - }, - "name": "overrideReadWrite", - "protected": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.OverrideReturnsObject": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.OverrideReturnsObject", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 645 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 646 - }, - "name": "test", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.IReturnsNumber" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "OverrideReturnsObject" - }, - "jsii-calc.ParentStruct982": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "https://github.com/aws/jsii/issues/982." - }, - "fqn": "jsii-calc.ParentStruct982", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2498 - }, - "name": "ParentStruct982", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2499 - }, - "name": "foo", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.PartiallyInitializedThisConsumer": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PartiallyInitializedThisConsumer", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1833 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1834 - }, - "name": "consumePartiallyInitializedThis", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.ConstructorPassesThisOut" - } - }, - { - "name": "dt", - "type": { - "primitive": "date" - } - }, - { - "name": "ev", - "type": { - "fqn": "jsii-calc.AllTypesEnum" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "PartiallyInitializedThisConsumer" - }, - "jsii-calc.Polymorphism": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Polymorphism", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 495 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 496 - }, - "name": "sayHello", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Polymorphism" - }, - "jsii-calc.Power": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "The power operation." - }, - "fqn": "jsii-calc.Power", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Power operation." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 227 - }, - "parameters": [ - { - "docs": { - "summary": "The base of the power." - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "The number of times to multiply." - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 221 - }, - "name": "Power", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The base of the power." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 227 - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 231 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The number of times to multiply." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 227 - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.PropertyNamedProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." - }, - "fqn": "jsii-calc.PropertyNamedProperty", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 392 - }, - "name": "PropertyNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 393 - }, - "name": "property", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 394 - }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.PublicClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PublicClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1553 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1554 - }, - "name": "hello" - } - ], - "name": "PublicClass" - }, - "jsii-calc.PythonReservedWords": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PythonReservedWords", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 957 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 958 - }, - "name": "and" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 962 - }, - "name": "as" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 966 - }, - "name": "assert" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 970 - }, - "name": "async" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 974 - }, - "name": "await" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 978 - }, - "name": "break" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 982 - }, - "name": "class" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 986 - }, - "name": "continue" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 990 - }, - "name": "def" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 994 - }, - "name": "del" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 998 - }, - "name": "elif" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1002 - }, - "name": "else" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1006 - }, - "name": "except" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1010 - }, - "name": "finally" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1014 - }, - "name": "for" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1018 - }, - "name": "from" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1022 - }, - "name": "global" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1026 - }, - "name": "if" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1030 - }, - "name": "import" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1034 - }, - "name": "in" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1038 - }, - "name": "is" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1042 - }, - "name": "lambda" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1046 - }, - "name": "nonlocal" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1050 - }, - "name": "not" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1054 - }, - "name": "or" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1058 - }, - "name": "pass" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1062 - }, - "name": "raise" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1066 - }, - "name": "return" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1070 - }, - "name": "try" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1074 - }, - "name": "while" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1078 - }, - "name": "with" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1082 - }, - "name": "yield" - } - ], - "name": "PythonReservedWords" - }, - "jsii-calc.PythonSelf.ClassWithSelf": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PythonSelf.ClassWithSelf", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1092 - }, - "parameters": [ - { - "name": "self", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1091 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1094 - }, - "name": "method", - "parameters": [ - { - "name": "self", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "ClassWithSelf", - "namespace": "PythonSelf", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1092 - }, - "name": "self", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.PythonSelf.ClassWithSelfKwarg": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PythonSelf.ClassWithSelfKwarg", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "parameters": [ - { - "name": "props", - "type": { - "fqn": "jsii-calc.PythonSelf.StructWithSelf" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1099 - }, - "name": "ClassWithSelfKwarg", - "namespace": "PythonSelf", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "name": "props", - "type": { - "fqn": "jsii-calc.PythonSelf.StructWithSelf" - } - } - ] - }, - "jsii-calc.PythonSelf.IInterfaceWithSelf": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PythonSelf.IInterfaceWithSelf", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1107 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1108 - }, - "name": "method", - "parameters": [ - { - "name": "self", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IInterfaceWithSelf", - "namespace": "PythonSelf" - }, - "jsii-calc.PythonSelf.StructWithSelf": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PythonSelf.StructWithSelf", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1103 - }, - "name": "StructWithSelf", - "namespace": "PythonSelf", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1104 - }, - "name": "self", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ReferenceEnumFromScopedPackage": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "See awslabs/jsii#138." - }, - "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1183 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1186 - }, - "name": "loadFoo", - "returns": { - "optional": true, - "type": { - "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1190 - }, - "name": "saveFoo", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" - } - } - ] - } - ], - "name": "ReferenceEnumFromScopedPackage", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1184 - }, - "name": "foo", - "optional": true, - "type": { - "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" - } - } - ] - }, - "jsii-calc.ReturnsPrivateImplementationOfInterface": { - "assembly": "jsii-calc", - "docs": { - "returns": "an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`.", - "see": "https://github.com/aws/jsii/issues/320", - "stability": "experimental", - "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." - }, - "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1507 - }, - "name": "ReturnsPrivateImplementationOfInterface", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1508 - }, - "name": "privateImplementation", - "type": { - "fqn": "jsii-calc.IPrivatelyImplemented" - } - } - ] - }, - "jsii-calc.RootStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "remarks": "This is cheating with the (current) declared types, but this is the \"more\nidiomatic\" way for Pythonists.", - "stability": "experimental", - "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." - }, - "fqn": "jsii-calc.RootStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2442 - }, - "name": "RootStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "May not be empty." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2446 - }, - "name": "stringProp", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2447 - }, - "name": "nestedStruct", - "optional": true, - "type": { - "fqn": "jsii-calc.NestedStruct" - } - } - ] - }, - "jsii-calc.RootStructValidator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.RootStructValidator", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2455 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2456 - }, - "name": "validate", - "parameters": [ - { - "name": "struct", - "type": { - "fqn": "jsii-calc.RootStruct" - } - } - ], - "static": true - } - ], - "name": "RootStructValidator" - }, - "jsii-calc.RuntimeTypeChecking": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.RuntimeTypeChecking", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 288 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 296 - }, - "name": "methodWithDefaultedArguments", - "parameters": [ - { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 304 - }, - "name": "methodWithOptionalAnyArgument", - "parameters": [ - { - "name": "arg", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Used to verify verification of number of method arguments." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 292 - }, - "name": "methodWithOptionalArguments", - "parameters": [ - { - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "type": { - "primitive": "string" - } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } - } - ] - } - ], - "name": "RuntimeTypeChecking" - }, - "jsii-calc.SecondLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SecondLevelStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2014 - }, - "name": "SecondLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "It's long and required." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2018 - }, - "name": "deeperRequiredProp", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "It's long, but you'll almost never pass it." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2023 - }, - "name": "deeperOptionalProp", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.SingleInstanceTwoTypes": { - "assembly": "jsii-calc", - "docs": { - "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\nobject. Unfortunately, this will break object equality, but if we didn't do\nthis it would break runtime type checks in the JVM or CLR.", - "stability": "experimental", - "summary": "Test that a single instance can be returned under two different FQNs." - }, - "fqn": "jsii-calc.SingleInstanceTwoTypes", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1624 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1627 - }, - "name": "interface1", - "returns": { - "type": { - "fqn": "jsii-calc.InbetweenClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1631 - }, - "name": "interface2", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface" - } - } - } - ], - "name": "SingleInstanceTwoTypes" - }, - "jsii-calc.SingletonInt": { - "assembly": "jsii-calc", - "docs": { - "remarks": "https://github.com/aws/jsii/issues/231", - "stability": "experimental", - "summary": "Verifies that singleton enums are handled correctly." - }, - "fqn": "jsii-calc.SingletonInt", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1966 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1968 - }, - "name": "isSingletonInt", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - } - ], - "name": "SingletonInt" - }, - "jsii-calc.SingletonIntEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "A singleton integer." - }, - "fqn": "jsii-calc.SingletonIntEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1973 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "Elite!" - }, - "name": "SINGLETON_INT" - } - ], - "name": "SingletonIntEnum" - }, - "jsii-calc.SingletonString": { - "assembly": "jsii-calc", - "docs": { - "remarks": "https://github.com/aws/jsii/issues/231", - "stability": "experimental", - "summary": "Verifies that singleton enums are handled correctly." - }, - "fqn": "jsii-calc.SingletonString", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1949 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1952 - }, - "name": "isSingletonString", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } - } - ], - "name": "SingletonString" - }, - "jsii-calc.SingletonStringEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "A singleton string." - }, - "fqn": "jsii-calc.SingletonStringEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1957 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "1337." - }, - "name": "SINGLETON_STRING" - } - ], - "name": "SingletonStringEnum" - }, - "jsii-calc.SmellyStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SmellyStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 403 - }, - "name": "SmellyStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 404 - }, - "name": "property", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 405 - }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.SomeTypeJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SomeTypeJsii976", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2479 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2488 - }, - "name": "returnAnonymous", - "returns": { - "type": { - "primitive": "any" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2480 - }, - "name": "returnReturn", - "returns": { - "type": { - "fqn": "jsii-calc.IReturnJsii976" - } - }, - "static": true - } - ], - "name": "SomeTypeJsii976" - }, - "jsii-calc.StableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableClass", - "initializer": { - "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 59 - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 53 - }, - "methods": [ - { - "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 64 - }, - "name": "method" - } - ], - "name": "StableClass", - "properties": [ - { - "docs": { - "stability": "stable" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 55 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 57 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.StableEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 69 - }, - "members": [ - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_B" - } - ], - "name": "StableEnum" - }, - "jsii-calc.StableStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 41 - }, - "name": "StableStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "stable" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 43 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StaticContext": { - "assembly": "jsii-calc", - "docs": { - "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", - "stability": "experimental", - "summary": "This is used to validate the ability to use `this` from within a static context." - }, - "fqn": "jsii-calc.StaticContext", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1892 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1895 - }, - "name": "canAccessStaticContext", - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - } - ], - "name": "StaticContext", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1903 - }, - "name": "staticVariable", - "static": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.Statics": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Statics", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 690 - }, - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 689 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Jsdocs for static method." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 696 - }, - "name": "staticMethod", - "parameters": [ - { - "docs": { - "summary": "The name of the person to say hello to." - }, - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 700 - }, - "name": "justMethod", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "Statics", - "properties": [ - { - "const": true, - "docs": { - "stability": "experimental", - "summary": "Constants may also use all-caps." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 712 - }, - "name": "BAR", - "static": true, - "type": { - "primitive": "number" - } - }, - { - "const": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 741 - }, - "name": "ConstObj", - "static": true, - "type": { - "fqn": "jsii-calc.DoubleTrouble" - } - }, - { - "const": true, - "docs": { - "stability": "experimental", - "summary": "Jsdocs for static property." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 707 - }, - "name": "Foo", - "static": true, - "type": { - "primitive": "string" - } - }, - { - "const": true, - "docs": { - "stability": "experimental", - "summary": "Constants can also use camelCase." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 717 - }, - "name": "zooBar", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "docs": { - "remarks": "Jsdocs for static setter.", - "stability": "experimental", - "summary": "Jsdocs for static getter." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 726 - }, - "name": "instance", - "static": true, - "type": { - "fqn": "jsii-calc.Statics" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 740 - }, - "name": "nonConstStatic", - "static": true, - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 690 - }, - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StringEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.StringEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 39 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "A" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "B" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "C" - } - ], - "name": "StringEnum" - }, - "jsii-calc.StripInternal": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.StripInternal", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1677 - }, - "name": "StripInternal", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1678 - }, - "name": "youSeeMe", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StructA": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "We can serialize and deserialize structs without silently ignoring optional fields." - }, - "fqn": "jsii-calc.StructA", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2240 - }, - "name": "StructA", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2241 - }, - "name": "requiredString", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2243 - }, - "name": "optionalNumber", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2242 - }, - "name": "optionalString", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StructB": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." - }, - "fqn": "jsii-calc.StructB", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2249 - }, - "name": "StructB", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2250 - }, - "name": "requiredString", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2251 - }, - "name": "optionalBoolean", - "optional": true, - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2252 - }, - "name": "optionalStructA", - "optional": true, - "type": { - "fqn": "jsii-calc.StructA" - } - } - ] - }, - "jsii-calc.StructParameterType": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "remarks": "See: https://github.com/aws/aws-cdk/issues/4302", - "stability": "experimental", - "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." - }, - "fqn": "jsii-calc.StructParameterType", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2678 - }, - "name": "StructParameterType", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2679 - }, - "name": "scope", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2680 - }, - "name": "props", - "optional": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.StructPassing": { - "assembly": "jsii-calc", - "docs": { - "stability": "external", - "summary": "Just because we can." - }, - "fqn": "jsii-calc.StructPassing", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2072 - }, - "methods": [ - { - "docs": { - "stability": "external" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2084 - }, - "name": "howManyVarArgsDidIPass", - "parameters": [ - { - "name": "_positional", - "type": { - "primitive": "number" - } - }, - { - "name": "inputs", - "type": { - "fqn": "jsii-calc.TopLevelStruct" - }, - "variadic": true - } - ], - "returns": { - "type": { - "primitive": "number" - } - }, - "static": true, - "variadic": true - }, - { - "docs": { - "stability": "external" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2073 - }, - "name": "roundTrip", - "parameters": [ - { - "name": "_positional", - "type": { - "primitive": "number" - } - }, - { - "name": "input", - "type": { - "fqn": "jsii-calc.TopLevelStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.TopLevelStruct" - } - }, - "static": true - } - ], - "name": "StructPassing" - }, - "jsii-calc.StructUnionConsumer": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.StructUnionConsumer", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2254 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2255 - }, - "name": "isStructA", - "parameters": [ - { - "name": "struct", - "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.StructA" - }, - { - "fqn": "jsii-calc.StructB" - } - ] - } - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2276 - }, - "name": "isStructB", - "parameters": [ - { - "name": "struct", - "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.StructA" - }, - { - "fqn": "jsii-calc.StructB" - } - ] - } - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - } - ], - "name": "StructUnionConsumer" - }, - "jsii-calc.StructWithJavaReservedWords": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.StructWithJavaReservedWords", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2046 - }, - "name": "StructWithJavaReservedWords", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2047 - }, - "name": "default", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2048 - }, - "name": "assert", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2051 - }, - "name": "result", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2052 - }, - "name": "that", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Sum": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "An operation that sums multiple values." - }, - "fqn": "jsii-calc.Sum", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 205 - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 197 - }, - "name": "Sum", - "properties": [ - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 209 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The parts to sum." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 201 - }, - "name": "parts", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.SupportsNiceJavaBuilder": { - "assembly": "jsii-calc", - "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SupportsNiceJavaBuilder", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2181 - }, - "parameters": [ - { - "docs": { - "summary": "some identifier." - }, - "name": "id", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "the default value of `bar`." - }, - "name": "defaultBar", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "some props once can provide." - }, - "name": "props", - "optional": true, - "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" - } - }, - { - "docs": { - "summary": "a variadic continuation." - }, - "name": "rest", - "type": { - "primitive": "string" - }, - "variadic": true - } - ], - "variadic": true - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2171 - }, - "name": "SupportsNiceJavaBuilder", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "some identifier." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2182 - }, - "name": "id", - "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2172 - }, - "name": "rest", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.SupportsNiceJavaBuilderProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2191 - }, - "name": "SupportsNiceJavaBuilderProps", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "Some number, like 42." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2201 - }, - "name": "bar", - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "remarks": "But here we are, doing it like we didn't care.", - "stability": "experimental", - "summary": "An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2196 - }, - "name": "id", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." - }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2163 - }, - "parameters": [ - { - "docs": { - "summary": "some identifier of your choice." - }, - "name": "id", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "some properties." - }, - "name": "props", - "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2155 - }, - "name": "SupportsNiceJavaBuilderWithRequiredProps", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2157 - }, - "name": "bar", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "some identifier of your choice." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2164 - }, - "name": "id", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2156 - }, - "name": "propId", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.SyncVirtualMethods": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SyncVirtualMethods", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 376 - }, - "methods": [ - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 389 - }, - "name": "callerIsAsync", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 377 - }, - "name": "callerIsMethod", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 429 - }, - "name": "modifyOtherProperty", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 401 - }, - "name": "modifyValueOfTheProperty", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 442 - }, - "name": "readA", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 433 - }, - "name": "retrieveOtherProperty", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 413 - }, - "name": "retrieveReadOnlyProperty", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 405 - }, - "name": "retrieveValueOfTheProperty", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 393 - }, - "name": "virtualMethod", - "parameters": [ - { - "name": "n", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 446 - }, - "name": "writeA", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - } - ], - "name": "SyncVirtualMethods", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 411 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 440 - }, - "name": "a", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 381 - }, - "name": "callerIsProperty", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 419 - }, - "name": "otherProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 399 - }, - "name": "theProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 427 - }, - "name": "valueOfOtherProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.Thrower": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Thrower", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 651 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 652 - }, - "name": "throwError" - } - ], - "name": "Thrower" - }, - "jsii-calc.TopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.TopLevelStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1997 - }, - "name": "TopLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "This is a required field." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2001 - }, - "name": "required", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "A union to really stress test our serialization." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2011 - }, - "name": "secondLevel", - "type": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.SecondLevelStruct" - } - ] - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "You don't have to pass this." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2006 - }, - "name": "optional", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.UmaskCheck": { - "assembly": "jsii-calc", - "docs": { - "see": "https://github.com/aws/jsii/issues/1765", - "stability": "experimental", - "summary": "Checks the current file permissions are cool (no funky UMASK down-scoping happened)." - }, - "fqn": "jsii-calc.UmaskCheck", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2752 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "This should return 0o644 (-rw-r--r--)." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2756 - }, - "name": "mode", - "returns": { - "type": { - "primitive": "number" - } - }, - "static": true - } - ], - "name": "UmaskCheck" - }, - "jsii-calc.UnaryOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "An operation on a single operand." - }, - "fqn": "jsii-calc.UnaryOperation", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 101 - }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 100 - }, - "name": "UnaryOperation", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 101 - }, - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.UnionProperties": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.UnionProperties", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1112 - }, - "name": "UnionProperties", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1114 - }, - "name": "bar", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.AllTypes" - } - ] - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1113 - }, - "name": "foo", - "optional": true, - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - } - ] - } - } - } - ] - }, - "jsii-calc.UpcasingReflectable": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Ensures submodule-imported types from dependencies can be used correctly." - }, - "fqn": "jsii-calc.UpcasingReflectable", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/submodules.ts", - "line": 9 - }, - "parameters": [ - { - "name": "delegate", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ] - }, - "interfaces": [ - "@scope/jsii-calc-lib.submodule.IReflectable" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/submodules.ts", - "line": 6 - }, - "name": "UpcasingReflectable", - "properties": [ - { - "const": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodules.ts", - "line": 7 - }, - "name": "reflector", - "static": true, - "type": { - "fqn": "@scope/jsii-calc-lib.submodule.Reflector" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodules.ts", - "line": 11 - }, - "name": "entries", - "overrides": "@scope/jsii-calc-lib.submodule.IReflectable", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.UseBundledDependency": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.UseBundledDependency", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1117 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1118 - }, - "name": "value", - "returns": { - "type": { - "primitive": "any" - } - } - } - ], - "name": "UseBundledDependency" - }, - "jsii-calc.UseCalcBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." - }, - "fqn": "jsii-calc.UseCalcBase", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1168 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1169 - }, - "name": "hello", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-base.Base" - } - } - } - ], - "name": "UseCalcBase" - }, - "jsii-calc.UsesInterfaceWithProperties": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.UsesInterfaceWithProperties", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 597 - }, - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 596 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 599 - }, - "name": "justRead", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 608 - }, - "name": "readStringAndNumber", - "parameters": [ - { - "name": "ext", - "type": { - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 603 - }, - "name": "writeAndRead", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "UsesInterfaceWithProperties", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 597 - }, - "name": "obj", - "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" - } - } - ] - }, - "jsii-calc.VariadicInvoker": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VariadicInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 681 - }, - "parameters": [ - { - "name": "method", - "type": { - "fqn": "jsii-calc.VariadicMethod" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 680 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 683 - }, - "name": "asArray", - "parameters": [ - { - "name": "values", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } - }, - "variadic": true - } - ], - "name": "VariadicInvoker" - }, - "jsii-calc.VariadicMethod": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VariadicMethod", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 667 - }, - "parameters": [ - { - "docs": { - "summary": "a prefix that will be use for all values returned by `#asArray`." - }, - "name": "prefix", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "variadic": true - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 661 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 675 - }, - "name": "asArray", - "parameters": [ - { - "docs": { - "summary": "the first element of the array to be returned (after the `prefix` provided at construction time)." - }, - "name": "first", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "other elements to be included in the array." - }, - "name": "others", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } - }, - "variadic": true - } - ], - "name": "VariadicMethod" - }, - "jsii-calc.VirtualMethodPlayground": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VirtualMethodPlayground", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 451 - }, - "methods": [ - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 476 - }, - "name": "overrideMeAsync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 480 - }, - "name": "overrideMeSync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 458 - }, - "name": "parallelSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 452 - }, - "name": "serialSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 468 - }, - "name": "sumSync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "VirtualMethodPlayground" - }, - "jsii-calc.VoidCallback": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "remarks": "- Implement `overrideMe` (method does not have to do anything).\n- Invoke `callMe`\n- Verify that `methodWasCalled` is `true`.", - "stability": "experimental", - "summary": "This test is used to validate the runtimes can return correctly from a void callback." - }, - "fqn": "jsii-calc.VoidCallback", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1921 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1926 - }, - "name": "callMe" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1930 - }, - "name": "overrideMe", - "protected": true - } - ], - "name": "VoidCallback", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1923 - }, - "name": "methodWasCalled", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.WithPrivatePropertyInConstructor": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies that private property declarations in constructor arguments are hidden." - }, - "fqn": "jsii-calc.WithPrivatePropertyInConstructor", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1937 - }, - "parameters": [ - { - "name": "privateField", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1936 - }, - "name": "WithPrivatePropertyInConstructor", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1939 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "Abstract operation composed from an expression of other operations." - }, - "fqn": "jsii-calc.composition.CompositeOperation", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 138 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 164 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "CompositeOperation", - "namespace": "composition", - "properties": [ - { - "abstract": true, - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 162 - }, - "name": "expression", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 154 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of postfixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 152 - }, - "name": "decorationPostfixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of prefixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 147 - }, - "name": "decorationPrefixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The .toString() style." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 142 - }, - "name": "stringStyle", - "type": { - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Style of .toString() output for CompositeOperation." - }, - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", - "kind": "enum", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 184 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "Normal string expression." - }, - "name": "NORMAL" - }, - { - "docs": { - "stability": "experimental", - "summary": "Decorated string expression." - }, - "name": "DECORATED" - } - ], - "name": "CompositionStringStyle", - "namespace": "composition.CompositeOperation" - }, - "jsii-calc.submodule.MyClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.MyClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 11 - }, - "parameters": [ - { - "name": "props", - "type": { - "fqn": "jsii-calc.submodule.child.SomeStruct" - } - } - ] - }, - "interfaces": [ - "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 5 - }, - "name": "MyClass", - "namespace": "submodule", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 8 - }, - "name": "awesomeness", - "type": { - "fqn": "jsii-calc.submodule.child.Awesomeness" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 6 - }, - "name": "definedAt", - "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 7 - }, - "name": "goodness", - "type": { - "fqn": "jsii-calc.submodule.child.Goodness" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 11 - }, - "name": "props", - "type": { - "fqn": "jsii-calc.submodule.child.SomeStruct" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/submodule/my-class.ts", - "line": 9 - }, - "name": "allTypes", - "optional": true, - "type": { - "fqn": "jsii-calc.AllTypes" - } - } - ] - }, - "jsii-calc.submodule.back_references.MyClassReference": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.back_references.MyClassReference", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/refers-to-parent/index.ts", - "line": 3 - }, - "name": "MyClassReference", - "namespace": "submodule.back_references", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/refers-to-parent/index.ts", - "line": 4 - }, - "name": "reference", - "type": { - "fqn": "jsii-calc.submodule.MyClass" - } - } - ] - }, - "jsii-calc.submodule.child.Awesomeness": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.Awesomeness", - "kind": "enum", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 15 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "It was awesome!" - }, - "name": "AWESOME" - } - ], - "name": "Awesomeness", - "namespace": "submodule.child" - }, - "jsii-calc.submodule.child.Goodness": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.Goodness", - "kind": "enum", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 5 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "It's pretty good." - }, - "name": "PRETTY_GOOD" - }, - { - "docs": { - "stability": "experimental", - "summary": "It's really good." - }, - "name": "REALLY_GOOD" - }, - { - "docs": { - "stability": "experimental", - "summary": "It's amazingly good." - }, - "name": "AMAZINGLY_GOOD" - } - ], - "name": "Goodness", - "namespace": "submodule.child" - }, - "jsii-calc.submodule.child.InnerClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.InnerClass", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 37 - }, - "name": "InnerClass", - "namespace": "submodule.child", - "properties": [ - { - "const": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 38 - }, - "name": "staticProp", - "static": true, - "type": { - "fqn": "jsii-calc.submodule.child.SomeStruct" - } - } - ] - }, - "jsii-calc.submodule.child.KwargsProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.KwargsProps", - "interfaces": [ - "jsii-calc.submodule.child.SomeStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 41 - }, - "name": "KwargsProps", - "namespace": "submodule.child", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 42 - }, - "name": "extra", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.submodule.child.OuterClass": { - "assembly": "jsii-calc", - "docs": { - "see": ": https://github.com/aws/jsii/pull/1706", - "stability": "experimental", - "summary": "Checks that classes can self-reference during initialization." - }, - "fqn": "jsii-calc.submodule.child.OuterClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 27 - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 24 - }, - "name": "OuterClass", - "namespace": "submodule.child", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 25 - }, - "name": "innerClass", - "type": { - "fqn": "jsii-calc.submodule.child.InnerClass" - } - } - ] - }, - "jsii-calc.submodule.child.SomeEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.SomeEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 31 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "SOME" - } - ], - "name": "SomeEnum", - "namespace": "submodule.child" - }, - "jsii-calc.submodule.child.SomeStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.SomeStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 34 - }, - "name": "SomeStruct", - "namespace": "submodule.child", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 35 - }, - "name": "prop", - "type": { - "fqn": "jsii-calc.submodule.child.SomeEnum" - } - } - ] - }, - "jsii-calc.submodule.child.Structure": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.child.Structure", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 1 - }, - "name": "Structure", - "namespace": "submodule.child", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/child/index.ts", - "line": 2 - }, - "name": "bool", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.submodule.isolated.Kwargs": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Ensures imports are correctly registered for kwargs lifted properties from super-structs." - }, - "fqn": "jsii-calc.submodule.isolated.Kwargs", - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/isolated.ts", - "line": 7 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/submodule/isolated.ts", - "line": 8 - }, - "name": "method", - "parameters": [ - { - "name": "props", - "optional": true, - "type": { - "fqn": "jsii-calc.submodule.child.KwargsProps" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - } - ], - "name": "Kwargs", - "namespace": "submodule.isolated" - }, - "jsii-calc.submodule.nested_submodule.Namespaced": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.nested_submodule.Namespaced", - "interfaces": [ - "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 12 - }, - "name": "Namespaced", - "namespace": "submodule.nested_submodule", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 13 - }, - "name": "definedAt", - "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 14 - }, - "name": "goodness", - "type": { - "fqn": "jsii-calc.submodule.child.Goodness" - } - } - ] - }, - "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", - "kind": "interface", - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 7 - }, - "name": "INamespaced", - "namespace": "submodule.nested_submodule.deeplyNested", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/submodule/nested_submodule.ts", - "line": 8 - }, - "name": "definedAt", - "type": { - "primitive": "string" - } - } - ] - } - }, - "version": "0.0.0", - "fingerprint": "AksOoFurRMyuF7gSjHXHbIRIIjq0e0R0CvpHycvyI3U=" -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj deleted file mode 100644 index 525025ccb2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj +++ /dev/null @@ -1,39 +0,0 @@ - - - - A simple calcuator built on JSII. (Stability: Experimental) - https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png - Amazon.JSII.Tests.CalculatorPackageId - Apache-2.0 - 0.0.0 - - Amazon Web Services - Amazon Web Services - aws;jsii;test - en-US - https://github.com/aws/jsii - https://github.com/aws/jsii.git - git - - true - true - true - true - enable - snupkg - netcoreapp3.1 - - - - - - - - - - - - 0612,0618 - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs deleted file mode 100644 index c5f430d3f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] - public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass - { - /// - /// Stability: Experimental - /// - protected AbstractClass(): base(new DeputyProps(new object[]{})) - { - } - - ///

Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "abstractMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"name\",\"type\":{\"primitive\":\"string\"}}]")] - public abstract string AbstractMethod(string name); - - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "nonAbstractMethod", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double NonAbstractMethod() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "propFromInterface", typeJson: "{\"primitive\":\"string\"}")] - public virtual string PropFromInterface - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs deleted file mode 100644 index c018bf6110..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] - public abstract class AbstractClassBase : DeputyBase - { - /// - /// Stability: Experimental - /// - protected AbstractClassBase(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClassBase(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClassBase(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "abstractProperty", typeJson: "{\"primitive\":\"string\"}")] - public abstract string AbstractProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs deleted file mode 100644 index 12666dca56..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] - internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase - { - private AbstractClassBaseProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "abstractProperty", typeJson: "{\"primitive\":\"string\"}")] - public override string AbstractProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs deleted file mode 100644 index 16218d84ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] - internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClass - { - private AbstractClassProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "abstractProperty", typeJson: "{\"primitive\":\"string\"}")] - public override string AbstractProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "abstractMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"name\",\"type\":{\"primitive\":\"string\"}}]")] - public override string AbstractMethod(string name) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{name}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs deleted file mode 100644 index 26f008a08c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: "jsii-calc.AbstractClassReturner")] - public class AbstractClassReturner : DeputyBase - { - /// - /// Stability: Experimental - /// - public AbstractClassReturner(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClassReturner(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractClassReturner(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IInterfaceImplementedByAbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\"fqn\":\"jsii-calc.AbstractClassBase\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs deleted file mode 100644 index 905378a031..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Ensures abstract members implementations correctly register overrides in various languages. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: "jsii-calc.AbstractSuite")] - public abstract class AbstractSuite : DeputyBase - { - /// - /// Stability: Experimental - /// - protected AbstractSuite(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractSuite(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AbstractSuite(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "someMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"str\",\"type\":{\"primitive\":\"string\"}}]")] - protected abstract string SomeMethod(string str); - - - /// Sets `seed` to `this.property`, then calls `someMethod` with `this.property` and returns the result. - /// a `string`. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "workItAll", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"docs\":{\"summary\":\"a `string`.\"},\"name\":\"seed\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual string WorkItAll(string seed) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{seed}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - protected abstract string Property - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs deleted file mode 100644 index 40d7a376e7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Ensures abstract members implementations correctly register overrides in various languages. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: "jsii-calc.AbstractSuite")] - internal sealed class AbstractSuiteProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite - { - private AbstractSuiteProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - protected override string Property - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "someMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"str\",\"type\":{\"primitive\":\"string\"}}]")] - protected override string SomeMethod(string str) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{str}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs deleted file mode 100644 index 21afd52304..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// The "+" binary operation. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Add), fullyQualifiedName: "jsii-calc.Add", parametersJson: "[{\"docs\":{\"summary\":\"Left-hand side operand.\"},\"name\":\"lhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}},{\"docs\":{\"summary\":\"Right-hand side operand.\"},\"name\":\"rhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public class Add : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation - { - /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. - /// - /// Stability: Experimental - /// - public Add(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Add(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Add(DeputyProps props): base(props) - { - } - - /// String representation of the value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// The value. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public override double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs deleted file mode 100644 index ca35fc950d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs +++ /dev/null @@ -1,255 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This class includes property for all types supported by jsii. - /// - /// The setters will validate - /// that the value set is of the expected type and throw otherwise. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: "jsii-calc.AllTypes")] - public class AllTypes : DeputyBase - { - /// - /// Stability: Experimental - /// - public AllTypes(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AllTypes(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AllTypes(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyIn", parametersJson: "[{\"name\":\"inp\",\"type\":{\"primitive\":\"any\"}}]")] - public virtual void AnyIn(object inp) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object[]{inp}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyOut", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public virtual object AnyOut() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "enumMethod", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "enumPropertyValue", typeJson: "{\"primitive\":\"number\"}")] - public virtual double EnumPropertyValue - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anyArrayProperty", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"array\"}}")] - public virtual object[] AnyArrayProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anyMapProperty", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary AnyMapProperty - { - get => GetInstanceProperty>(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anyProperty", typeJson: "{\"primitive\":\"any\"}")] - public virtual object AnyProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arrayProperty", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public virtual string[] ArrayProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "booleanProperty", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool BooleanProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "dateProperty", typeJson: "{\"primitive\":\"date\"}")] - public virtual System.DateTime DateProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "enumProperty", typeJson: "{\"fqn\":\"jsii-calc.AllTypesEnum\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "jsonProperty", typeJson: "{\"primitive\":\"json\"}")] - public virtual Newtonsoft.Json.Linq.JObject JsonProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "mapProperty", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Number\"},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary MapProperty - { - get => GetInstanceProperty>(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProperty", typeJson: "{\"primitive\":\"number\"}")] - public virtual double NumberProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "stringProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string StringProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unionArrayProperty", typeJson: "{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"@scope/jsii-calc-lib.Value\"}]}},\"kind\":\"array\"}}")] - public virtual object[] UnionArrayProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unionMapProperty", typeJson: "{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"@scope/jsii-calc-lib.Number\"}]}},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary UnionMapProperty - { - get => GetInstanceProperty>(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.Multiply\"},{\"fqn\":\"@scope/jsii-calc-lib.Number\"}]}}")] - public virtual object UnionProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unknownArrayProperty", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"array\"}}")] - public virtual object[] UnknownArrayProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unknownMapProperty", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary UnknownMapProperty - { - get => GetInstanceProperty>(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unknownProperty", typeJson: "{\"primitive\":\"any\"}")] - public virtual object UnknownProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalEnumValue", typeJson: "{\"fqn\":\"jsii-calc.StringEnum\"}", isOptional: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum? OptionalEnumValue - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs deleted file mode 100644 index f02269efed..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.AllTypesEnum")] - public enum AllTypesEnum - { - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "MY_ENUM_VALUE")] - MY_ENUM_VALUE, - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "YOUR_ENUM_VALUE")] - YOUR_ENUM_VALUE, - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "THIS_IS_GREAT")] - THIS_IS_GREAT - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs deleted file mode 100644 index 248de255a9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: "jsii-calc.AllowedMethodNames")] - public class AllowedMethodNames : DeputyBase - { - /// - /// Stability: Experimental - /// - public AllowedMethodNames(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AllowedMethodNames(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AllowedMethodNames(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "getBar", parametersJson: "[{\"name\":\"_p1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"_p2\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void GetBar(string p1, double p2) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{p1, p2}); - } - - /// getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "getFoo", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"withParam\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual string GetFoo(string withParam) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{withParam}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "setBar", parametersJson: "[{\"name\":\"_x\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"_y\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"_z\",\"type\":{\"primitive\":\"boolean\"}}]")] - public virtual void SetBar(string x, double y, bool z) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double), typeof(bool)}, new object[]{x, y, z}); - } - - /// setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "setFoo", parametersJson: "[{\"name\":\"_x\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"_y\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void SetFoo(string x, double y) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{x, y}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs deleted file mode 100644 index 7d8a8b3dee..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: "jsii-calc.AmbiguousParameters", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}},{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.StructParameterType\"}}]")] - public class AmbiguousParameters : DeputyBase - { - /// - /// Stability: Experimental - /// - public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AmbiguousParameters(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AmbiguousParameters(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.StructParameterType\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "scope", typeJson: "{\"fqn\":\"jsii-calc.Bell\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs deleted file mode 100644 index e34b931772..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.AnonymousImplementationProvider")] - public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider - { - /// - /// Stability: Experimental - /// - public AnonymousImplementationProvider(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AnonymousImplementationProvider(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AnonymousImplementationProvider(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs deleted file mode 100644 index caad1fc9ce..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.AsyncVirtualMethods")] - public class AsyncVirtualMethods : DeputyBase - { - /// - /// Stability: Experimental - /// - public AsyncVirtualMethods(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AsyncVirtualMethods(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AsyncVirtualMethods(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callMe", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isAsync: true)] - public virtual double CallMe() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Just calls "overrideMeToo". - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callMe2", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isAsync: true)] - public virtual double CallMe2() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - /// - /// This is a "double promise" situation, which - /// means that callbacks are not going to be available immediate, but only - /// after an "immediates" cycle. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callMeDoublePromise", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isAsync: true)] - public virtual double CallMeDoublePromise() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "dontOverrideMe", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double DontOverrideMe() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMe", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"mult\",\"type\":{\"primitive\":\"number\"}}]", isAsync: true)] - public virtual double OverrideMe(double mult) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{mult}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMeToo", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isAsync: true)] - public virtual double OverrideMeToo() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs deleted file mode 100644 index 1216d19347..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: "jsii-calc.AugmentableClass")] - public class AugmentableClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public AugmentableClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AugmentableClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected AugmentableClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "methodOne")] - public virtual void MethodOne() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "methodTwo")] - public virtual void MethodTwo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs deleted file mode 100644 index b9509631d8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: "jsii-calc.BaseJsii976")] - public class BaseJsii976 : DeputyBase - { - /// - /// Stability: Experimental - /// - public BaseJsii976(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected BaseJsii976(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected BaseJsii976(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs deleted file mode 100644 index 91b7ceb145..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: "jsii-calc.Bell")] - public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell - { - /// - /// Stability: Experimental - /// - public Bell(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Bell(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Bell(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ring", isOverride: true)] - public virtual void Ring() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "rung", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool Rung - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs deleted file mode 100644 index 628e779eb5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Represents an operation with two operands. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: "jsii-calc.BinaryOperation", parametersJson: "[{\"docs\":{\"summary\":\"Left-hand side operand.\"},\"name\":\"lhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}},{\"docs\":{\"summary\":\"Right-hand side operand.\"},\"name\":\"rhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public abstract class BinaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly - { - /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. - /// - /// Stability: Experimental - /// - protected BinaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected BinaryOperation(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected BinaryOperation(DeputyProps props): base(props) - { - } - - /// Say hello! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Left-hand side operand. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "lhs", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Lhs - { - get => GetInstanceProperty(); - } - - /// Right-hand side operand. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "rhs", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Rhs - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs deleted file mode 100644 index 7873bec4fd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Represents an operation with two operands. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: "jsii-calc.BinaryOperation")] - internal sealed class BinaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation - { - private BinaryOperationProxy(ByRefValue reference): base(reference) - { - } - - /// The value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public override double Value - { - get => GetInstanceProperty(); - } - - /// String representation of the value. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - [System.Obsolete()] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs deleted file mode 100644 index 806c1e9cd3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs +++ /dev/null @@ -1,171 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// A calculator which maintains a current value and allows adding operations. - /// - /// Here's how you use it: - /// - /// - /// - /// I will repeat this example again, but in an @example tag. - /// - /// Stability: Experimental - /// - /// - /// // Example automatically generated. See https://github.com/aws/jsii/issues/826 - /// Calculator calculator = new Calculator(); - /// calculator.Add(5); - /// calculator.Mul(3); - /// Console.WriteLine(calculator.Expression.Value); - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Calculator), fullyQualifiedName: "jsii-calc.Calculator", parametersJson: "[{\"docs\":{\"summary\":\"Initialization properties.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.CalculatorProps\"}}]")] - public class Calculator : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation - { - /// Creates a Calculator object. - /// Initialization properties. - /// - /// Stability: Experimental - /// - public Calculator(Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps? props = null): base(new DeputyProps(new object?[]{props})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Calculator(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Calculator(DeputyProps props): base(props) - { - } - - /// Adds a number to the current value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "add", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void Add(double @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); - } - - /// Multiplies the current value by a number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "mul", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void Mul(double @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); - } - - /// Negates the current value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "neg")] - public virtual void Neg() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// Raises the current value by a power. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "pow", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void Pow(double @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); - } - - /// Returns teh value of the union property (if defined). - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "readUnionValue", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double ReadUnionValue() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Returns the expression. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "expression", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression - { - get => GetInstanceProperty(); - } - - /// A log of all operations. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "operationsLog", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"array\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] OperationsLog - { - get => GetInstanceProperty(); - } - - /// A map of per operation name of all operations performed. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "operationsMap", typeJson: "{\"collection\":{\"elementtype\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"array\"}},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary OperationsMap - { - get => GetInstanceProperty>(); - } - - /// The current value. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "curr", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Curr - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// The maximum value allows in this calculator. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "maxValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public virtual double? MaxValue - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// Example of a property that accepts a union of types. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.Add\"},{\"fqn\":\"jsii-calc.Multiply\"},{\"fqn\":\"jsii-calc.Power\"}]}}", isOptional: true)] - public virtual object? UnionProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs deleted file mode 100644 index d1c874f084..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Properties for Calculator. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.CalculatorProps")] - public class CalculatorProps : Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps - { - /// The initial value of the calculator. - /// - /// NOTE: Any number works here, it's fine. - /// - /// Default: 0 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "initialValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)] - public double? InitialValue - { - get; - set; - } - - /// The maximum value the calculator can store. - /// - /// Default: none - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "maximumValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)] - public double? MaximumValue - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs deleted file mode 100644 index f4add959f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Properties for Calculator. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ICalculatorProps), fullyQualifiedName: "jsii-calc.CalculatorProps")] - internal sealed class CalculatorPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps - { - private CalculatorPropsProxy(ByRefValue reference): base(reference) - { - } - - /// The initial value of the calculator. - /// - /// NOTE: Any number works here, it's fine. - /// - /// Default: 0 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "initialValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? InitialValue - { - get => GetInstanceProperty(); - } - - /// The maximum value the calculator can store. - /// - /// Default: none - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "maximumValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? MaximumValue - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs deleted file mode 100644 index 1c27bda562..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ChildStruct982")] - public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - public double Bar - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs deleted file mode 100644 index e54993d05a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] - internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 - { - private ChildStruct982Proxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}")] - public double Bar - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"string\"}")] - public string Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs deleted file mode 100644 index 7d810d48a8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs +++ /dev/null @@ -1,74 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsTheInternalInterface")] - public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface - { - /// - /// Stability: Experimental - /// - public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassThatImplementsTheInternalInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassThatImplementsTheInternalInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"string\"}")] - public virtual string A - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "b", typeJson: "{\"primitive\":\"string\"}")] - public virtual string B - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "c", typeJson: "{\"primitive\":\"string\"}")] - public virtual string C - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "d", typeJson: "{\"primitive\":\"string\"}")] - public virtual string D - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs deleted file mode 100644 index c5aa4f8be2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs +++ /dev/null @@ -1,74 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsThePrivateInterface")] - public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface - { - /// - /// Stability: Experimental - /// - public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassThatImplementsThePrivateInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassThatImplementsThePrivateInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"string\"}")] - public virtual string A - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "b", typeJson: "{\"primitive\":\"string\"}")] - public virtual string B - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "c", typeJson: "{\"primitive\":\"string\"}")] - public virtual string C - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "e", typeJson: "{\"primitive\":\"string\"}")] - public virtual string E - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs deleted file mode 100644 index 1253a83880..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs +++ /dev/null @@ -1,92 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: "jsii-calc.ClassWithCollections", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}},{\"name\":\"array\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}]")] - public class ClassWithCollections : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithCollections(System.Collections.Generic.IDictionary map, string[] array): base(new DeputyProps(new object[]{map, array})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithCollections(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithCollections(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "createAList", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}")] - public static string[] CreateAList() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "createAMap", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary CreateAMap() - { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "staticArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public static string[] StaticArray - { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "staticMap", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}")] - public static System.Collections.Generic.IDictionary StaticMap - { - get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "array", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public virtual string[] Array - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "map", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}")] - public virtual System.Collections.Generic.IDictionary Map - { - get => GetInstanceProperty>(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs deleted file mode 100644 index b7fb921f50..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This class has docs. - /// - /// The docs are great. They're a bunch of tags. - /// - /// See: https://aws.amazon.com/ - /// - /// CustomAttribute: hasAValue - /// - /// - /// // Example automatically generated. See https://github.com/aws/jsii/issues/826 - /// public void AnExample() - /// { - /// } - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: "jsii-calc.ClassWithDocs")] - public class ClassWithDocs : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithDocs(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithDocs(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithDocs(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs deleted file mode 100644 index 32d8bf514c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.ClassWithJavaReservedWords", parametersJson: "[{\"name\":\"int\",\"type\":{\"primitive\":\"string\"}}]")] - public class ClassWithJavaReservedWords : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithJavaReservedWords(string @int): base(new DeputyProps(new object[]{@int})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithJavaReservedWords(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithJavaReservedWords(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "import", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"assert\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual string Import(string assert) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{assert}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "int", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Int - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs deleted file mode 100644 index 65f58f1820..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.ClassWithMutableObjectLiteralProperty")] - public class ClassWithMutableObjectLiteralProperty : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithMutableObjectLiteralProperty(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithMutableObjectLiteralProperty(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "mutableObject", typeJson: "{\"fqn\":\"jsii-calc.IMutableObjectLiteral\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs deleted file mode 100644 index 09263ba3f4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Class that implements interface properties automatically, but using a private constructor. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties")] - public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithPrivateConstructorAndAutomaticProperties(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithPrivateConstructorAndAutomaticProperties(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "create", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\"}}", parametersJson: "[{\"name\":\"readOnlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"readWriteString\",\"type\":{\"primitive\":\"string\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readOnlyString", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadOnlyString - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readWriteString", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadWriteString - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs deleted file mode 100644 index d1cb0ef425..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs +++ /dev/null @@ -1,118 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Composition -{ - /// Abstract operation composed from an expression of other operations. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] - public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation - { - protected CompositeOperation(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected CompositeOperation(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected CompositeOperation(DeputyProps props): base(props) - { - } - - /// String representation of the value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// The expression that this operation consists of. - /// - /// Must be implemented by derived classes. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "expression", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public abstract Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression - { - get; - } - - /// The value. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public override double Value - { - get => GetInstanceProperty(); - } - - /// A set of postfixes to include in a decorated .toString(). - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "decorationPostfixes", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public virtual string[] DecorationPostfixes - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// A set of prefixes to include in a decorated .toString(). - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "decorationPrefixes", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public virtual string[] DecorationPrefixes - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// The .toString() style. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "stringStyle", typeJson: "{\"fqn\":\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation.CompositionStringStyle StringStyle - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// Style of .toString() output for CompositeOperation. - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(CompositionStringStyle), fullyQualifiedName: "jsii-calc.composition.CompositeOperation.CompositionStringStyle")] - public enum CompositionStringStyle - { - /// Normal string expression. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "NORMAL")] - NORMAL, - /// Decorated string expression. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "DECORATED")] - DECORATED - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs deleted file mode 100644 index ab8f07c320..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Composition -{ - /// Abstract operation composed from an expression of other operations. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] - internal sealed class CompositeOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation - { - private CompositeOperationProxy(ByRefValue reference): base(reference) - { - } - - /// The expression that this operation consists of. - /// - /// Must be implemented by derived classes. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "expression", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs deleted file mode 100644 index a74b653a5a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This tries to confuse Jackson by having overloaded property setters. - /// - /// Stability: Experimental - /// - /// See: https://github.com/aws/aws-cdk/issues/4080 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: "jsii-calc.ConfusingToJackson")] - public class ConfusingToJackson : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConfusingToJackson(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConfusingToJackson(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJackson\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeStructInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJacksonStruct\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] - public virtual object? UnionProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs deleted file mode 100644 index 931605685f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ConfusingToJacksonStruct")] - public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct - { - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true, isOverride: true)] - public object? UnionProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs deleted file mode 100644 index 49c24131e4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] - internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct - { - private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] - public object? UnionProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs deleted file mode 100644 index 33d0c74c81..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.ConstructorPassesThisOut", parametersJson: "[{\"name\":\"consumer\",\"type\":{\"fqn\":\"jsii-calc.PartiallyInitializedThisConsumer\"}}]")] - public class ConstructorPassesThisOut : DeputyBase - { - /// - /// Stability: Experimental - /// - public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConstructorPassesThisOut(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConstructorPassesThisOut(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs deleted file mode 100644 index a5ca9c72ac..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs +++ /dev/null @@ -1,97 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: "jsii-calc.Constructors")] - public class Constructors : DeputyBase - { - /// - /// Stability: Experimental - /// - public Constructors(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Constructors(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Constructors(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hiddenInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.PublicClass\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInterface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface2\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs deleted file mode 100644 index 409d7b7445..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: "jsii-calc.ConsumePureInterface", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IStructReturningDelegate\"}}]")] - public class ConsumePureInterface : DeputyBase - { - /// - /// Stability: Experimental - /// - public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumePureInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumePureInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "workItBaby", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs deleted file mode 100644 index e03c2b5e9e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs +++ /dev/null @@ -1,134 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Test calling back to consumers that implement interfaces. - /// - /// Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - /// the method on the argument that they're passed... - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.ConsumerCanRingBell")] - public class ConsumerCanRingBell : DeputyBase - { - /// - /// Stability: Experimental - /// - public ConsumerCanRingBell(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumerCanRingBell(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumerCanRingBell(DeputyProps props): base(props) - { - } - - /// ...if the interface is implemented using an object literal. - /// - /// Returns whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// ...if the interface is implemented using a private class. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// ...if the interface is implemented using a public class. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// If the parameter is a concrete class instead of an interface. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] - public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); - } - - /// ...if the interface is implemented using an object literal. - /// - /// Returns whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// ...if the interface is implemented using a private class. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// ...if the interface is implemented using a public class. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); - } - - /// If the parameter is a concrete class instead of an interface. - /// - /// Return whether the bell was rung. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] - public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs deleted file mode 100644 index fd66628be6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.ConsumersOfThisCrazyTypeSystem")] - public class ConsumersOfThisCrazyTypeSystem : DeputyBase - { - /// - /// Stability: Experimental - /// - public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumersOfThisCrazyTypeSystem(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ConsumersOfThisCrazyTypeSystem(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IAnotherPublicInterface\"}}]")] - public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\"type\":{\"primitive\":\"any\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.INonInternalInterface\"}}]")] - public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs deleted file mode 100644 index 6710b1a168..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies proper type handling through dynamic overrides. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: "jsii-calc.DataRenderer")] - public class DataRenderer : DeputyBase - { - /// - /// Stability: Experimental - /// - public DataRenderer(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DataRenderer(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DataRenderer(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "render", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"data\",\"optional\":true,\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}]")] - public virtual string Render(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct? data = null) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object?[]{data}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "renderArbitrary", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"data\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}]")] - public virtual string RenderArbitrary(System.Collections.Generic.IDictionary data) - { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{data}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "renderMap", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}]")] - public virtual string RenderMap(System.Collections.Generic.IDictionary map) - { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{map}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs deleted file mode 100644 index 09c247d989..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.DefaultedConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] - public class DefaultedConstructorArgument : DeputyBase - { - /// - /// Stability: Experimental - /// - public DefaultedConstructorArgument(double? arg1 = null, string? arg2 = null, System.DateTime? arg3 = null): base(new DeputyProps(new object?[]{arg1, arg2, arg3})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DefaultedConstructorArgument(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DefaultedConstructorArgument(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arg1", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Arg1 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arg3", typeJson: "{\"primitive\":\"date\"}")] - public virtual System.DateTime Arg3 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "arg2", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public virtual string? Arg2 - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs deleted file mode 100644 index 58462c9962..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// 1. - /// - /// call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - /// 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: "jsii-calc.Demonstrate982")] - public class Demonstrate982 : DeputyBase - { - /// - /// Stability: Experimental - /// - public Demonstrate982(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Demonstrate982(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Demonstrate982(DeputyProps props): base(props) - { - } - - /// It's dangerous to go alone! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "takeThis", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ChildStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); - } - - /// It's dangerous to go alone! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "takeThisToo", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ParentStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs deleted file mode 100644 index 755679743a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs +++ /dev/null @@ -1,70 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: "jsii-calc.DeprecatedClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - [System.Obsolete("a pretty boring class")] - public class DeprecatedClass : DeputyBase - { - /// - /// Stability: Deprecated - /// - [System.Obsolete("this constructor is \"just\" okay")] - public DeprecatedClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.Obsolete("this constructor is \"just\" okay")] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DeprecatedClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.Obsolete("this constructor is \"just\" okay")] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DeprecatedClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "method")] - [System.Obsolete("it was a bad idea")] - public virtual void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete("this is not always \"wazoo\", be ready to be disappointed")] - public virtual string ReadonlyProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [System.Obsolete("shouldn't have been mutable")] - public virtual double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs deleted file mode 100644 index bac1794583..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// - /// Stability: Deprecated - /// - [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.DeprecatedEnum")] - [System.Obsolete("your deprecated selection of bad options")] - public enum DeprecatedEnum - { - /// - /// Stability: Deprecated - /// - [JsiiEnumMember(name: "OPTION_A")] - [System.Obsolete("option A is not great")] - OPTION_A, - /// - /// Stability: Deprecated - /// - [JsiiEnumMember(name: "OPTION_B")] - [System.Obsolete("option B is kinda bad, too")] - OPTION_B - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs deleted file mode 100644 index 41bdd5203a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Deprecated - /// - [JsiiByValue(fqn: "jsii-calc.DeprecatedStruct")] - public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - [System.Obsolete("well, yeah")] - public string ReadonlyProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs deleted file mode 100644 index e09c590c3d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] - [System.Obsolete("it just wraps a string")] - internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct - { - private DeprecatedStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete("well, yeah")] - public string ReadonlyProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs deleted file mode 100644 index 7284d5cef7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Base")] - public class Base : DeputyBase - { - /// - /// Stability: Experimental - /// - public Base(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Base(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Base(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Prop - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs deleted file mode 100644 index 8ea464cb59..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Derived")] - public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base - { - /// - /// Stability: Experimental - /// - public Derived(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Derived(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Derived(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs deleted file mode 100644 index 3ebd040b64..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs +++ /dev/null @@ -1,117 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// A struct which derives from another struct. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.DerivedStruct")] - public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anotherRequired", typeJson: "{\"primitive\":\"date\"}", isOverride: true)] - public System.DateTime AnotherRequired - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}", isOverride: true)] - public bool Bool - { - get; - set; - } - - /// An example of a non primitive property. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive - { - get; - set; - } - - /// This is optional. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "anotherOptional", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"map\"}}", isOptional: true, isOverride: true)] - public System.Collections.Generic.IDictionary? AnotherOptional - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalAny", typeJson: "{\"primitive\":\"any\"}", isOptional: true, isOverride: true)] - public object? OptionalAny - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true, isOverride: true)] - public string[]? OptionalArray - { - get; - set; - } - - /// An awesome number value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "anumber", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - [System.Obsolete()] - public double Anumber - { - get; - set; - } - - /// A string value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "astring", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - [System.Obsolete()] - public string Astring - { - get; - set; - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "firstOptional", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true, isOverride: true)] - [System.Obsolete()] - public string[]? FirstOptional - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs deleted file mode 100644 index d73f819aa6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs +++ /dev/null @@ -1,110 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// A struct which derives from another struct. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] - internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct - { - private DerivedStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anotherRequired", typeJson: "{\"primitive\":\"date\"}")] - public System.DateTime AnotherRequired - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] - public bool Bool - { - get => GetInstanceProperty(); - } - - /// An example of a non primitive property. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive - { - get => GetInstanceProperty(); - } - - /// This is optional. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "anotherOptional", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"map\"}}", isOptional: true)] - public System.Collections.Generic.IDictionary? AnotherOptional - { - get => GetInstanceProperty?>(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalAny", typeJson: "{\"primitive\":\"any\"}", isOptional: true)] - public object? OptionalAny - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - public string[]? OptionalArray - { - get => GetInstanceProperty(); - } - - /// An awesome number value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "anumber", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public double Anumber - { - get => GetInstanceProperty(); - } - - /// A string value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "astring", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete()] - public string Astring - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "firstOptional", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - [System.Obsolete()] - public string[]? FirstOptional - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs deleted file mode 100644 index 18964efa05..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceBaseLevelStruct")] - public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string BaseLevelProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs deleted file mode 100644 index 2d3b621874..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] - internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct - { - private DiamondInheritanceBaseLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string BaseLevelProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs deleted file mode 100644 index e436e3e1e0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string FirstMidLevelProperty - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string BaseLevelProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs deleted file mode 100644 index aa831688a5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct - { - private DiamondInheritanceFirstMidLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string FirstMidLevelProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string BaseLevelProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs deleted file mode 100644 index ef8d735f16..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string SecondMidLevelProperty - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string BaseLevelProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs deleted file mode 100644 index ff88d769b6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct - { - private DiamondInheritanceSecondMidLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string SecondMidLevelProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string BaseLevelProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs deleted file mode 100644 index 16435c8c60..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceTopLevelStruct")] - public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "topLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string TopLevelProperty - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string FirstMidLevelProperty - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string BaseLevelProperty - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string SecondMidLevelProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs deleted file mode 100644 index b4c89fc547..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] - internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct - { - private DiamondInheritanceTopLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "topLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string TopLevelProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string FirstMidLevelProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string BaseLevelProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - public string SecondMidLevelProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs deleted file mode 100644 index bef36a3fc8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that null/undefined can be returned for optional collections. - /// - /// This source of collections is disappointing - it'll always give you nothing :( - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.DisappointingCollectionSource")] - public class DisappointingCollectionSource : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DisappointingCollectionSource(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DisappointingCollectionSource(DeputyProps props): base(props) - { - } - - /// Some List of strings, maybe? - /// - /// (Nah, just a billion dollars mistake!) - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "maybeList", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - public static string[] MaybeList - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); - - /// Some Map of strings to numbers, maybe? - /// - /// (Nah, just a billion dollars mistake!) - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "maybeMap", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"number\"},\"kind\":\"map\"}}", isOptional: true)] - public static System.Collections.Generic.IDictionary MaybeMap - { - get; - } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs deleted file mode 100644 index b570e42df0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.DoNotOverridePrivates")] - public class DoNotOverridePrivates : DeputyBase - { - /// - /// Stability: Experimental - /// - public DoNotOverridePrivates(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoNotOverridePrivates(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoNotOverridePrivates(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "changePrivatePropertyValue", parametersJson: "[{\"name\":\"newValue\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual void ChangePrivatePropertyValue(string newValue) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{newValue}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "privateMethodValue", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string PrivateMethodValue() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "privatePropertyValue", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string PrivatePropertyValue() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs deleted file mode 100644 index 94fe3bd38d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// jsii#284: do not recognize "any" as an optional argument. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.DoNotRecognizeAnyAsOptional")] - public class DoNotRecognizeAnyAsOptional : DeputyBase - { - /// - /// Stability: Experimental - /// - public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoNotRecognizeAnyAsOptional(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoNotRecognizeAnyAsOptional(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method", parametersJson: "[{\"name\":\"_requiredAny\",\"type\":{\"primitive\":\"any\"}},{\"name\":\"_optionalAny\",\"optional\":true,\"type\":{\"primitive\":\"any\"}},{\"name\":\"_optionalString\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] - public virtual void Method(object requiredAny, object? optionalAny = null, string? optionalString = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(object), typeof(object), typeof(string)}, new object?[]{requiredAny, optionalAny, optionalString}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs deleted file mode 100644 index 172c01753e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Here's the first line of the TSDoc comment. - /// - /// This is the meat of the TSDoc comment. It may contain - /// multiple lines and multiple paragraphs. - /// - /// Multiple paragraphs are separated by an empty line. - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: "jsii-calc.DocumentedClass")] - public class DocumentedClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public DocumentedClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DocumentedClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DocumentedClass(DeputyProps props): base(props) - { - } - - /// Greet the indicated person. - /// The person to be greeted. - /// A number that everyone knows very well - /// - /// This will print out a friendly greeting intended for - /// the indicated person. - /// - [JsiiMethod(name: "greet", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The person to be greeted.\"},\"name\":\"greetee\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.Greetee\"}}]")] - public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); - } - - /// Say ¡Hola! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hola")] - public virtual void Hola() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs deleted file mode 100644 index 92f970d0ea..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.DontComplainAboutVariadicAfterOptional")] - public class DontComplainAboutVariadicAfterOptional : DeputyBase - { - /// - /// Stability: Experimental - /// - public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DontComplainAboutVariadicAfterOptional(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DontComplainAboutVariadicAfterOptional(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "optionalAndVariadic", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"things\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] - public virtual string OptionalAndVariadic(string? optional = null, params string[] things) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string), typeof(string[])}, new object?[]{optional, things}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs deleted file mode 100644 index f8510f064a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: "jsii-calc.DoubleTrouble")] - public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator - { - /// - /// Stability: Experimental - /// - public DoubleTrouble(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoubleTrouble(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected DoubleTrouble(DeputyProps props): base(props) - { - } - - /// Say hello! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Returns another random number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "next", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isOverride: true)] - public virtual double Next() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs deleted file mode 100644 index 11304b8937..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: "jsii-calc.EnumDispenser")] - public class EnumDispenser : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected EnumDispenser(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected EnumDispenser(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs deleted file mode 100644 index f5ae370708..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValues")] - public class EraseUndefinedHashValues : DeputyBase - { - /// - /// Stability: Experimental - /// - public EraseUndefinedHashValues(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected EraseUndefinedHashValues(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected EraseUndefinedHashValues(DeputyProps props): base(props) - { - } - - /// Returns `true` if `key` is defined in `opts`. - /// - /// Used to check that undefined/null hash values - /// are being erased when sending values from native code to JS. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "doesKeyExist", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"opts\",\"type\":{\"fqn\":\"jsii-calc.EraseUndefinedHashValuesOptions\"}},{\"name\":\"key\",\"type\":{\"primitive\":\"string\"}}]")] - public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); - } - - /// We expect "prop1" to be erased. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "prop1IsNull", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary Prop1IsNull() - { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); - } - - /// We expect "prop2" to be erased. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "prop2IsUndefined", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary Prop2IsUndefined() - { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs deleted file mode 100644 index 210da73b00..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.EraseUndefinedHashValuesOptions")] - public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions - { - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "option1", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Option1 - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "option2", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Option2 - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs deleted file mode 100644 index b052171dcb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] - internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions - { - private EraseUndefinedHashValuesOptionsProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "option1", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Option1 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "option2", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Option2 - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs deleted file mode 100644 index c3637f9d89..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: "jsii-calc.ExperimentalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - public class ExperimentalClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public ExperimentalClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExperimentalClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExperimentalClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method")] - public virtual void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadonlyProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public virtual double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs deleted file mode 100644 index 044ca3163c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.ExperimentalEnum")] - public enum ExperimentalEnum - { - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "OPTION_A")] - OPTION_A, - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "OPTION_B")] - OPTION_B - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs deleted file mode 100644 index ce67d8764d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ExperimentalStruct")] - public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string ReadonlyProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs deleted file mode 100644 index d0d4e8c78e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] - internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct - { - private ExperimentalStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public string ReadonlyProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs deleted file mode 100644 index 12ba96ce45..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: "jsii-calc.ExportedBaseClass", parametersJson: "[{\"name\":\"success\",\"type\":{\"primitive\":\"boolean\"}}]")] - public class ExportedBaseClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public ExportedBaseClass(bool success): base(new DeputyProps(new object[]{success})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExportedBaseClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExportedBaseClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "success", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool Success - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs deleted file mode 100644 index e421064e24..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ExtendsInternalInterface")] - public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "boom", typeJson: "{\"primitive\":\"boolean\"}", isOverride: true)] - public bool Boom - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Prop - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs deleted file mode 100644 index b59b2a688d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] - internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface - { - private ExtendsInternalInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "boom", typeJson: "{\"primitive\":\"boolean\"}")] - public bool Boom - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"primitive\":\"string\"}")] - public string Prop - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs deleted file mode 100644 index 231a46621d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExternalClass), fullyQualifiedName: "jsii-calc.ExternalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - public class ExternalClass : DeputyBase - { - /// - /// Stability: Experimental - /// - /// External: true - /// - public ExternalClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExternalClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ExternalClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiMethod(name: "method")] - public virtual void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadonlyProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public virtual double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs deleted file mode 100644 index 2ba111f41d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiEnum(nativeType: typeof(ExternalEnum), fullyQualifiedName: "jsii-calc.ExternalEnum")] - public enum ExternalEnum - { - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiEnumMember(name: "OPTION_A")] - OPTION_A, - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiEnumMember(name: "OPTION_B")] - OPTION_B - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs deleted file mode 100644 index 51f8876d22..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiByValue(fqn: "jsii-calc.ExternalStruct")] - public class ExternalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct - { - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string ReadonlyProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs deleted file mode 100644 index ba80d9af23..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiTypeProxy(nativeType: typeof(IExternalStruct), fullyQualifiedName: "jsii-calc.ExternalStruct")] - internal sealed class ExternalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct - { - private ExternalStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public string ReadonlyProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs deleted file mode 100644 index 0f664d062b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: "jsii-calc.GiveMeStructs")] - public class GiveMeStructs : DeputyBase - { - /// - /// Stability: Experimental - /// - public GiveMeStructs(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected GiveMeStructs(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected GiveMeStructs(DeputyProps props): base(props) - { - } - - /// Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "derivedToFirst", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); - } - - /// Returns the boolean from a DerivedStruct struct. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.DoubleTrouble\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); - } - - /// Returns the "anumber" from a MyFirstStruct struct; - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "readFirstNumber", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"first\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}]")] - public virtual double ReadFirstNumber(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct first) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object[]{first}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "structLiteral", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.StructWithOnlyOptionals\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals StructLiteral - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs deleted file mode 100644 index 48d1f46546..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// These are some arguments you can pass to a method. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.Greetee")] - public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.IGreetee - { - /// The name of the greetee. - /// - /// Default: world - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "name", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Name - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs deleted file mode 100644 index 063f33cc48..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// These are some arguments you can pass to a method. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] - internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IGreetee - { - private GreeteeProxy(ByRefValue reference): base(reference) - { - } - - /// The name of the greetee. - /// - /// Default: world - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "name", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Name - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs deleted file mode 100644 index 6b9c1dcb9f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: "jsii-calc.GreetingAugmenter")] - public class GreetingAugmenter : DeputyBase - { - /// - /// Stability: Experimental - /// - public GreetingAugmenter(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected GreetingAugmenter(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected GreetingAugmenter(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "betterGreeting", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"friendly\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}}]")] - public virtual string BetterGreeting(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs deleted file mode 100644 index b05ab50ed2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can return an anonymous interface implementation from an override without losing the interface declarations. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] - public interface IAnonymousImplementationProvider - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass(); - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs deleted file mode 100644 index 024b37f5d4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can return an anonymous interface implementation from an override without losing the interface declarations. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] - internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider - { - private IAnonymousImplementationProviderProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs deleted file mode 100644 index e597158e5b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] - public interface IAnonymouslyImplementMe - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - double Value - { - get; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "verb", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - string Verb(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs deleted file mode 100644 index 8332a597ee..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] - internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe - { - private IAnonymouslyImplementMeProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public double Value - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "verb", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public string Verb() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs deleted file mode 100644 index a9e6e70208..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] - public interface IAnotherPublicInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"string\"}")] - string A - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs deleted file mode 100644 index c8cc9365ae..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] - internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface - { - private IAnotherPublicInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"string\"}")] - public string A - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs deleted file mode 100644 index 8d9660f909..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] - public interface IBell - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ring")] - void Ring(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs deleted file mode 100644 index c97675e990..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] - internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell - { - private IBellProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ring")] - public void Ring() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs deleted file mode 100644 index c3ce3e7eee..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Takes the object parameter as an interface. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] - public interface IBellRinger - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs deleted file mode 100644 index 58c94edc91..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Takes the object parameter as an interface. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] - internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBellRinger - { - private IBellRingerProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBell)}, new object[]{bell}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs deleted file mode 100644 index 7b6036eadd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Properties for Calculator. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ICalculatorProps), fullyQualifiedName: "jsii-calc.CalculatorProps")] - public interface ICalculatorProps - { - /// The initial value of the calculator. - /// - /// NOTE: Any number works here, it's fine. - /// - /// Default: 0 - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "initialValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? InitialValue - { - get - { - return null; - } - } - - /// The maximum value the calculator can store. - /// - /// Default: none - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "maximumValue", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? MaximumValue - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs deleted file mode 100644 index 547a089a6d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] - public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}")] - double Bar - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs deleted file mode 100644 index 30046d2fe7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Takes the object parameter as a calss. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] - public interface IConcreteBellRinger - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs deleted file mode 100644 index 2070d3934b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Takes the object parameter as a calss. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] - internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger - { - private IConcreteBellRingerProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell)}, new object[]{bell}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs deleted file mode 100644 index 6f977dec15..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] - public interface IConfusingToJacksonStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - object? UnionProperty - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs deleted file mode 100644 index cf3eec3a0b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] - [System.Obsolete("useless interface")] - public interface IDeprecatedInterface - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [System.Obsolete("could be better")] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? MutableProperty - { - get - { - return null; - } - set - { - throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); - } - } - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "method")] - [System.Obsolete("services no purpose")] - void Method(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs deleted file mode 100644 index 3088276b2b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Deprecated - /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] - [System.Obsolete("useless interface")] - internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedInterface - { - private IDeprecatedInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Deprecated - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [System.Obsolete("could be better")] - public double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "method")] - [System.Obsolete("services no purpose")] - public void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs deleted file mode 100644 index 9ac07e113a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Deprecated - /// - [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] - [System.Obsolete("it just wraps a string")] - public interface IDeprecatedStruct - { - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - [System.Obsolete("well, yeah")] - string ReadonlyProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs deleted file mode 100644 index d13374e934..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// A struct which derives from another struct. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] - public interface IDerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anotherRequired", typeJson: "{\"primitive\":\"date\"}")] - System.DateTime AnotherRequired - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] - bool Bool - { - get; - } - - /// An example of a non primitive property. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive - { - get; - } - - /// This is optional. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "anotherOptional", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"map\"}}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - System.Collections.Generic.IDictionary? AnotherOptional - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalAny", typeJson: "{\"primitive\":\"any\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - object? OptionalAny - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string[]? OptionalArray - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs deleted file mode 100644 index 593ddc3b2f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] - public interface IDiamondInheritanceBaseLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "baseLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - string BaseLevelProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs deleted file mode 100644 index 122e1e2e8c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - string FirstMidLevelProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs deleted file mode 100644 index b7d5765c88..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - string SecondMidLevelProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs deleted file mode 100644 index 4db183c2f0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] - public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "topLevelProperty", typeJson: "{\"primitive\":\"string\"}")] - string TopLevelProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs deleted file mode 100644 index 9e531f3fc3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] - public interface IEraseUndefinedHashValuesOptions - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "option1", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Option1 - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "option2", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Option2 - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs deleted file mode 100644 index 6490862fd1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] - public interface IExperimentalInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? MutableProperty - { - get - { - return null; - } - set - { - throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); - } - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method")] - void Method(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs deleted file mode 100644 index 0116a80ac4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] - internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalInterface - { - private IExperimentalInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method")] - public void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs deleted file mode 100644 index b7e3ead730..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] - public interface IExperimentalStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - string ReadonlyProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs deleted file mode 100644 index 4d4acef34c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] - public interface IExtendsInternalInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "boom", typeJson: "{\"primitive\":\"boolean\"}")] - bool Boom - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"primitive\":\"string\"}")] - string Prop - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs deleted file mode 100644 index bfa38ca241..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] - public interface IExtendsPrivateInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "moreThings", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - string[] MoreThings - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "private", typeJson: "{\"primitive\":\"string\"}")] - string Private - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs deleted file mode 100644 index 1487123ed0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] - internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsPrivateInterface - { - private IExtendsPrivateInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "moreThings", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public string[] MoreThings - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "private", typeJson: "{\"primitive\":\"string\"}")] - public string Private - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs deleted file mode 100644 index 1ce26225cb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiInterface(nativeType: typeof(IExternalInterface), fullyQualifiedName: "jsii-calc.IExternalInterface")] - public interface IExternalInterface - { - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? MutableProperty - { - get - { - return null; - } - set - { - throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); - } - } - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiMethod(name: "method")] - void Method(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs deleted file mode 100644 index f7615542b5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiTypeProxy(nativeType: typeof(IExternalInterface), fullyQualifiedName: "jsii-calc.IExternalInterface")] - internal sealed class IExternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalInterface - { - private IExternalInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiMethod(name: "method")] - public void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs deleted file mode 100644 index ab53637570..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiInterface(nativeType: typeof(IExternalStruct), fullyQualifiedName: "jsii-calc.ExternalStruct")] - public interface IExternalStruct - { - /// - /// Stability: Experimental - /// - /// External: true - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - string ReadonlyProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs deleted file mode 100644 index 044cfa5b85..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Even friendlier classes can implement this interface. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IFriendlier), fullyQualifiedName: "jsii-calc.IFriendlier")] - public interface IFriendlier : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly - { - /// Say farewell. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "farewell", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - string Farewell(); - /// Say goodbye. - /// A goodbye blessing. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "goodbye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - string Goodbye(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs deleted file mode 100644 index f72d7a18f8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Even friendlier classes can implement this interface. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IFriendlier), fullyQualifiedName: "jsii-calc.IFriendlier")] - internal sealed class IFriendlierProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier - { - private IFriendlierProxy(ByRefValue reference): base(reference) - { - } - - /// Say farewell. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "farewell", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public string Farewell() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say goodbye. - /// A goodbye blessing. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "goodbye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public string Goodbye() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say hello! - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - [System.Obsolete()] - public string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs deleted file mode 100644 index 46688ac5cf..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: "jsii-calc.IFriendlyRandomGenerator")] - public interface IFriendlyRandomGenerator : Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly - { - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs deleted file mode 100644 index d3fec56a59..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: "jsii-calc.IFriendlyRandomGenerator")] - internal sealed class IFriendlyRandomGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator - { - private IFriendlyRandomGeneratorProxy(ByRefValue reference): base(reference) - { - } - - /// Returns another random number. - /// A random number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "next", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public double Next() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say hello! - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - [System.Obsolete()] - public string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs deleted file mode 100644 index dd4e12710b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// These are some arguments you can pass to a method. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] - public interface IGreetee - { - /// The name of the greetee. - /// - /// Default: world - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "name", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Name - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs deleted file mode 100644 index 20d87af703..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] - public interface IImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goo", typeJson: "{\"primitive\":\"date\"}")] - System.DateTime Goo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs deleted file mode 100644 index 31fb8626cd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// awslabs/jsii#220 Abstract return type. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] - public interface IInterfaceImplementedByAbstractClass - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "propFromInterface", typeJson: "{\"primitive\":\"string\"}")] - string PropFromInterface - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs deleted file mode 100644 index a0a1c599dc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// awslabs/jsii#220 Abstract return type. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] - internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass - { - private IInterfaceImplementedByAbstractClassProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "propFromInterface", typeJson: "{\"primitive\":\"string\"}")] - public string PropFromInterface - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs deleted file mode 100644 index 2ed4afd7aa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] - public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "otherValue", typeJson: "{\"primitive\":\"string\"}")] - string OtherValue - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs deleted file mode 100644 index 8d94bf4959..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] - internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceThatShouldNotBeADataType - { - private IInterfaceThatShouldNotBeADataTypeProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "otherValue", typeJson: "{\"primitive\":\"string\"}")] - public string OtherValue - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - public string Value - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "doThings")] - public void DoThings() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs deleted file mode 100644 index 53ffdd4132..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] - public interface IInterfaceWithInternal - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "visible")] - void Visible(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs deleted file mode 100644 index 7fd3e24542..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] - internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal - { - private IInterfaceWithInternalProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "visible")] - public void Visible() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs deleted file mode 100644 index e3f276336c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] - public interface IInterfaceWithMethods - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - string Value - { - get; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "doThings")] - void DoThings(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs deleted file mode 100644 index e995d959d3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] - internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods - { - private IInterfaceWithMethodsProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - public string Value - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "doThings")] - public void DoThings() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs deleted file mode 100644 index b5dffd51a6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] - public interface IInterfaceWithOptionalMethodArguments - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - void Hello(string arg1, double? arg2 = null); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs deleted file mode 100644 index 6646913a80..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] - internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments - { - private IInterfaceWithOptionalMethodArgumentsProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - public void Hello(string arg1, double? arg2 = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object?[]{arg1, arg2}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs deleted file mode 100644 index 294f1202d9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] - public interface IInterfaceWithProperties - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readOnlyString", typeJson: "{\"primitive\":\"string\"}")] - string ReadOnlyString - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readWriteString", typeJson: "{\"primitive\":\"string\"}")] - string ReadWriteString - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs deleted file mode 100644 index bc3a8dd689..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] - public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - double Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs deleted file mode 100644 index 7925b7b394..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] - internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension - { - private IInterfaceWithPropertiesExtensionProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - public double Foo - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readOnlyString", typeJson: "{\"primitive\":\"string\"}")] - public string ReadOnlyString - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readWriteString", typeJson: "{\"primitive\":\"string\"}")] - public string ReadWriteString - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs deleted file mode 100644 index 4e38afd9d6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] - internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties - { - private IInterfaceWithPropertiesProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readOnlyString", typeJson: "{\"primitive\":\"string\"}")] - public string ReadOnlyString - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readWriteString", typeJson: "{\"primitive\":\"string\"}")] - public string ReadWriteString - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs deleted file mode 100644 index 7e0e6c7eca..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] - public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - string Property - { - get; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "bar")] - void Bar(); - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "baz")] - void Baz(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs deleted file mode 100644 index 7802c21a47..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] - internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417Derived - { - private IJSII417DerivedProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - public string Property - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "hasRoot", typeJson: "{\"primitive\":\"boolean\"}")] - public bool HasRoot - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "bar")] - public void Bar() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "baz")] - public void Baz() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "foo")] - public void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs deleted file mode 100644 index c5681e0a2b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] - public interface IJSII417PublicBaseOfBase - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "hasRoot", typeJson: "{\"primitive\":\"boolean\"}")] - bool HasRoot - { - get; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "foo")] - void Foo(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs deleted file mode 100644 index 01a7b4700f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] - internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase - { - private IJSII417PublicBaseOfBaseProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "hasRoot", typeJson: "{\"primitive\":\"boolean\"}")] - public bool HasRoot - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "foo")] - public void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs deleted file mode 100644 index de1260883b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] - public interface IJsii487External - { - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs deleted file mode 100644 index 2eaeb8cba4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] - public interface IJsii487External2 - { - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs deleted file mode 100644 index a1c3449a59..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] - internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2 - { - private IJsii487External2Proxy(ByRefValue reference): base(reference) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs deleted file mode 100644 index 6d6488ae8f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] - internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External - { - private IJsii487ExternalProxy(ByRefValue reference): base(reference) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs deleted file mode 100644 index 06d683366f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] - public interface IJsii496 - { - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs deleted file mode 100644 index bc1adf5c06..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] - internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 - { - private IJsii496Proxy(ByRefValue reference): base(reference) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs deleted file mode 100644 index 13e935d855..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs +++ /dev/null @@ -1,120 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// jsii#298: show default values in sphinx documentation, and respect newlines. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] - public interface ILoadBalancedFargateServiceProps - { - /// The container port of the application load balancer attached to your Fargate service. - /// - /// Corresponds to container port mapping. - /// - /// Default: 80 - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "containerPort", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? ContainerPort - { - get - { - return null; - } - } - - /// The number of cpu units used by the task. - /// - /// Valid values, which determines your range of valid values for the memory parameter: - /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 256 - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "cpu", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Cpu - { - get - { - return null; - } - } - - /// The amount (in MiB) of memory used by the task. - /// - /// This field is required and you must use one of the following values, which determines your range of valid values - /// for the cpu parameter: - /// - /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - /// - /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - /// - /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - /// - /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - /// - /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 512 - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "memoryMiB", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? MemoryMiB - { - get - { - return null; - } - } - - /// Determines whether the Application Load Balancer will be internet-facing. - /// - /// Default: true - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - bool? PublicLoadBalancer - { - get - { - return null; - } - } - - /// Determines whether your Fargate Service will be assigned a public IP address. - /// - /// Default: false - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "publicTasks", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - bool? PublicTasks - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs deleted file mode 100644 index 4a4a0ef2ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] - public interface IMutableObjectLiteral - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - string Value - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs deleted file mode 100644 index d40ea185a4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] - internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral - { - private IMutableObjectLiteralProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - public string Value - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs deleted file mode 100644 index 0a9b2170b4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] - public interface INestedStruct - { - /// When provided, must be > 0. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProp", typeJson: "{\"primitive\":\"number\"}")] - double NumberProp - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs deleted file mode 100644 index 74382048e8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] - public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "b", typeJson: "{\"primitive\":\"string\"}")] - string B - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "c", typeJson: "{\"primitive\":\"string\"}")] - string C - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs deleted file mode 100644 index 9aef3b93df..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] - internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface - { - private INonInternalInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "b", typeJson: "{\"primitive\":\"string\"}")] - public string B - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "c", typeJson: "{\"primitive\":\"string\"}")] - public string C - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"string\"}")] - public string A - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs deleted file mode 100644 index e2961d22da..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] - public interface INullShouldBeTreatedAsUndefinedData - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"array\"}}")] - object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\"primitive\":\"any\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - object? ThisShouldBeUndefined - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs deleted file mode 100644 index 2851ffe3cf..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Make sure that setters are properly called on objects with interfaces. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] - public interface IObjectWithProperty - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - string Property - { - get; - set; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "wasSet", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}")] - bool WasSet(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs deleted file mode 100644 index f56faa6f35..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Make sure that setters are properly called on objects with interfaces. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] - internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty - { - private IObjectWithPropertyProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - public string Property - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "wasSet", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}")] - public bool WasSet() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs deleted file mode 100644 index 65f2b701fa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Checks that optional result from interface method code generates correctly. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] - public interface IOptionalMethod - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "optional", returnsJson: "{\"optional\":true,\"type\":{\"primitive\":\"string\"}}")] - string? Optional(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs deleted file mode 100644 index fc24f81181..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Checks that optional result from interface method code generates correctly. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] - internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalMethod - { - private IOptionalMethodProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "optional", returnsJson: "{\"optional\":true,\"type\":{\"primitive\":\"string\"}}")] - public string? Optional() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs deleted file mode 100644 index f843be2012..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] - public interface IOptionalStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "field", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Field - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs deleted file mode 100644 index 6cb0e65e6d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// https://github.com/aws/jsii/issues/982. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] - public interface IParentStruct982 - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"string\"}")] - string Foo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs deleted file mode 100644 index e90b1a7344..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] - public interface IPrivatelyImplemented - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "success", typeJson: "{\"primitive\":\"boolean\"}")] - bool Success - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs deleted file mode 100644 index 5b545a9197..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] - internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented - { - private IPrivatelyImplementedProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "success", typeJson: "{\"primitive\":\"boolean\"}")] - public bool Success - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs deleted file mode 100644 index a90f2de934..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] - public interface IPublicInterface - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "bye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - string Bye(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs deleted file mode 100644 index 42fb8a9d20..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] - public interface IPublicInterface2 - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ciao", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - string Ciao(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs deleted file mode 100644 index ca9ec52744..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] - internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 - { - private IPublicInterface2Proxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ciao", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public string Ciao() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs deleted file mode 100644 index b0a9c3a4d8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] - internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface - { - private IPublicInterfaceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "bye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public string Bye() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs deleted file mode 100644 index da60f4ccc3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Generates random numbers. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: "jsii-calc.IRandomNumberGenerator")] - public interface IRandomNumberGenerator - { - /// Returns another random number. - /// A random number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "next", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - double Next(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs deleted file mode 100644 index 3a9106cfc6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Generates random numbers. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: "jsii-calc.IRandomNumberGenerator")] - internal sealed class IRandomNumberGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator - { - private IRandomNumberGeneratorProxy(ByRefValue reference): base(reference) - { - } - - /// Returns another random number. - /// A random number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "next", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public double Next() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs deleted file mode 100644 index 451472dc8f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Returns a subclass of a known class which implements an interface. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] - public interface IReturnJsii976 - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - double Foo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs deleted file mode 100644 index e0e1417885..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Returns a subclass of a known class which implements an interface. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] - internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 - { - private IReturnJsii976Proxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - public double Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs deleted file mode 100644 index 58caa1a521..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] - public interface IReturnsNumber - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProp", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Number\"}")] - Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp - { - get; - } - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "obtainNumber", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.IDoublable\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs deleted file mode 100644 index d5d7968841..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] - internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber - { - private IReturnsNumberProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProp", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Number\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "obtainNumber", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.IDoublable\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs deleted file mode 100644 index ab6087c2a4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - /// - /// This is cheating with the (current) declared types, but this is the "more - /// idiomatic" way for Pythonists. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] - public interface IRootStruct - { - /// May not be empty. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "stringProp", typeJson: "{\"primitive\":\"string\"}")] - string StringProp - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs deleted file mode 100644 index 9a04203a0a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] - public interface ISecondLevelStruct - { - /// It's long and required. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\"primitive\":\"string\"}")] - string DeeperRequiredProp - { - get; - } - - /// It's long, but you'll almost never pass it. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? DeeperOptionalProp - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs deleted file mode 100644 index 6098aa4d6d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ISmellyStruct), fullyQualifiedName: "jsii-calc.SmellyStruct")] - public interface ISmellyStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - string Property - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "yetAnoterOne", typeJson: "{\"primitive\":\"boolean\"}")] - bool YetAnoterOne - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs deleted file mode 100644 index 1136d87b10..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] - public interface IStableInterface - { - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? MutableProperty - { - get - { - return null; - } - set - { - throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); - } - } - [JsiiMethod(name: "method")] - void Method(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs deleted file mode 100644 index e5462b3109..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] - internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableInterface - { - private IStableInterfaceProxy(ByRefValue reference): base(reference) - { - } - - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - [JsiiMethod(name: "method")] - public void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs deleted file mode 100644 index de7ad6aa20..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] - public interface IStableStruct - { - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - string ReadonlyProperty - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs deleted file mode 100644 index 82fc21e9dc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can serialize and deserialize structs without silently ignoring optional fields. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] - public interface IStructA - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}")] - string RequiredString - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalNumber", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - double? OptionalNumber - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalString", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? OptionalString - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs deleted file mode 100644 index 0f8b980847..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] - public interface IStructB - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}")] - string RequiredString - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalBoolean", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - bool? OptionalBoolean - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs deleted file mode 100644 index 0add06f85c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - /// - /// See: https://github.com/aws/aws-cdk/issues/4302 - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] - public interface IStructParameterType - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "scope", typeJson: "{\"primitive\":\"string\"}")] - string Scope - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "props", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - bool? Props - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs deleted file mode 100644 index 33fc919397..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that a "pure" implementation of an interface works correctly. - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] - public interface IStructReturningDelegate - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct(); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs deleted file mode 100644 index 60a2535e65..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that a "pure" implementation of an interface works correctly. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] - internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate - { - private IStructReturningDelegateProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs deleted file mode 100644 index 626cc39b76..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] - public interface IStructWithJavaReservedWords - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "default", typeJson: "{\"primitive\":\"string\"}")] - string Default - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "assert", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Assert - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "result", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Result - { - get - { - return null; - } - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "that", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? That - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs deleted file mode 100644 index 7ab379d0ed..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] - public interface ISupportsNiceJavaBuilderProps - { - /// Some number, like 42. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}")] - double Bar - { - get; - } - - /// An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - /// - /// But here we are, doing it like we didn't care. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Id - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs deleted file mode 100644 index de85a44c62..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] - public interface ITopLevelStruct - { - /// This is a required field. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "required", typeJson: "{\"primitive\":\"string\"}")] - string Required - { - get; - } - - /// A union to really stress test our serialization. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] - object SecondLevel - { - get; - } - - /// You don't have to pass this. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "optional", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Optional - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs deleted file mode 100644 index 1dfd5102f4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] - public interface IUnionProperties - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] - object Bar - { - get; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"}]}}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - object? Foo - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs deleted file mode 100644 index dc8c649851..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.ImplementInternalInterface")] - public class ImplementInternalInterface : DeputyBase - { - /// - /// Stability: Experimental - /// - public ImplementInternalInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementInternalInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementInternalInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Prop - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs deleted file mode 100644 index b2fa9be35f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: "jsii-calc.Implementation")] - public class Implementation : DeputyBase - { - /// - /// Stability: Experimental - /// - public Implementation(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Implementation(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Implementation(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs deleted file mode 100644 index 900f7143f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternal")] - public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal - { - /// - /// Stability: Experimental - /// - public ImplementsInterfaceWithInternal(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsInterfaceWithInternal(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsInterfaceWithInternal(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "visible", isOverride: true)] - public virtual void Visible() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs deleted file mode 100644 index 27d41f6e2d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternalSubclass")] - public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal - { - /// - /// Stability: Experimental - /// - public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsInterfaceWithInternalSubclass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsInterfaceWithInternalSubclass(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs deleted file mode 100644 index ad0ea72586..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.ImplementsPrivateInterface")] - public class ImplementsPrivateInterface : DeputyBase - { - /// - /// Stability: Experimental - /// - public ImplementsPrivateInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsPrivateInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ImplementsPrivateInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "private", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Private - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs deleted file mode 100644 index c71598f91b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ImplictBaseOfBase")] - public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goo", typeJson: "{\"primitive\":\"date\"}", isOverride: true)] - public System.DateTime Goo - { - get; - set; - } - - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Bar - { - get; - set; - } - - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs deleted file mode 100644 index 9fbd7b9fd1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] - internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase - { - private ImplictBaseOfBaseProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goo", typeJson: "{\"primitive\":\"date\"}")] - public System.DateTime Goo - { - get => GetInstanceProperty(); - } - - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}")] - public string Bar - { - get => GetInstanceProperty(); - } - - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-base-of-base.Very\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs deleted file mode 100644 index 129a255c29..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: "jsii-calc.InbetweenClass")] - public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 - { - /// - /// Stability: Experimental - /// - public InbetweenClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InbetweenClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InbetweenClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "ciao", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Ciao() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs deleted file mode 100644 index c913a9de18..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that collections of interfaces or structs are correctly handled. - /// - /// See: https://github.com/aws/jsii/issues/1196 - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: "jsii-calc.InterfaceCollections")] - public class InterfaceCollections : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InterfaceCollections(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InterfaceCollections(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "listOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfInterfaces() - { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "mapOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfStructs() - { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs deleted file mode 100644 index dd4327c1cc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo")] - public class Foo : DeputyBase - { - /// - /// Stability: Experimental - /// - public Foo(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Foo(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Foo(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public virtual string? Bar - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs deleted file mode 100644 index 01f793a673..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - public double Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs deleted file mode 100644 index 99836531c8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello - { - private HelloProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - public double Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs deleted file mode 100644 index ea8cc39ce2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] - public interface IHello - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - double Foo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs deleted file mode 100644 index d0f4347ac5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - public double Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs deleted file mode 100644 index ff0c6f5ade..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello - { - private HelloProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - public double Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs deleted file mode 100644 index b467b87743..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] - public interface IHello - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"number\"}")] - double Foo - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs deleted file mode 100644 index 95a4a6315f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can return arrays of interfaces See aws/aws-cdk#2362. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: "jsii-calc.InterfacesMaker")] - public class InterfacesMaker : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InterfacesMaker(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InterfacesMaker(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.IDoublable\"},\"kind\":\"array\"}}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs deleted file mode 100644 index ca88d3bfab..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs +++ /dev/null @@ -1,14 +0,0 @@ -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Internal.DependencyResolution -{ - public sealed class Anchor - { - public Anchor() - { - new Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution.Anchor(); - new Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution.Anchor(); - new Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.DependencyResolution.Anchor(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs deleted file mode 100644 index 985fead738..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Checks the "same instance" isomorphism is preserved within the constructor. - /// - /// Create a subclass of this, and assert that this.myself() actually returns - /// this from within the constructor. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: "jsii-calc.Isomorphism")] - public abstract class Isomorphism : DeputyBase - { - /// - /// Stability: Experimental - /// - protected Isomorphism(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Isomorphism(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Isomorphism(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "myself", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Isomorphism\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Isomorphism Myself() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs deleted file mode 100644 index 6831cb1806..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Checks the "same instance" isomorphism is preserved within the constructor. - /// - /// Create a subclass of this, and assert that this.myself() actually returns - /// this from within the constructor. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: "jsii-calc.Isomorphism")] - internal sealed class IsomorphismProxy : Amazon.JSII.Tests.CalculatorNamespace.Isomorphism - { - private IsomorphismProxy(ByRefValue reference): base(reference) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs deleted file mode 100644 index e70c3cd65d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: "jsii-calc.JSII417Derived", parametersJson: "[{\"name\":\"property\",\"type\":{\"primitive\":\"string\"}}]")] - public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase - { - /// - /// Stability: Experimental - /// - public JSII417Derived(string property): base(new DeputyProps(new object[]{property})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSII417Derived(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSII417Derived(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "bar")] - public virtual void Bar() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "baz")] - public virtual void Baz() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - protected virtual string Property - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs deleted file mode 100644 index f4b8941b0e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.JSII417PublicBaseOfBase")] - public class JSII417PublicBaseOfBase : DeputyBase - { - /// - /// Stability: Experimental - /// - public JSII417PublicBaseOfBase(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSII417PublicBaseOfBase(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSII417PublicBaseOfBase(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSII417PublicBaseOfBase\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "foo")] - public virtual void Foo() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "hasRoot", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool HasRoot - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs deleted file mode 100644 index 489c1c4e21..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.JSObjectLiteralForInterface")] - public class JSObjectLiteralForInterface : DeputyBase - { - /// - /// Stability: Experimental - /// - public JSObjectLiteralForInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralForInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralForInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeFriendly", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly GiveMeFriendly() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeFriendlyGenerator", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IFriendlyRandomGenerator\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator GiveMeFriendlyGenerator() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs deleted file mode 100644 index 1d17272ec0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNative")] - public class JSObjectLiteralToNative : DeputyBase - { - /// - /// Stability: Experimental - /// - public JSObjectLiteralToNative(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralToNative(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralToNative(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "returnLiteral", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSObjectLiteralToNativeClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs deleted file mode 100644 index 62bde74073..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNativeClass")] - public class JSObjectLiteralToNativeClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public JSObjectLiteralToNativeClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralToNativeClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JSObjectLiteralToNativeClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "propA", typeJson: "{\"primitive\":\"string\"}")] - public virtual string PropA - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "propB", typeJson: "{\"primitive\":\"number\"}")] - public virtual double PropB - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs deleted file mode 100644 index a07de7bc82..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs +++ /dev/null @@ -1,512 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: "jsii-calc.JavaReservedWords")] - public class JavaReservedWords : DeputyBase - { - /// - /// Stability: Experimental - /// - public JavaReservedWords(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JavaReservedWords(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JavaReservedWords(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "abstract")] - public virtual void Abstract() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "assert")] - public virtual void Assert() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "boolean")] - public virtual void Boolean() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "break")] - public virtual void Break() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "byte")] - public virtual void Byte() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "case")] - public virtual void Case() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "catch")] - public virtual void Catch() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "char")] - public virtual void Char() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "class")] - public virtual void Class() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "const")] - public virtual void Const() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "continue")] - public virtual void Continue() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "default")] - public virtual void Default() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "do")] - public virtual void Do() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "double")] - public virtual void Double() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "else")] - public virtual void Else() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "enum")] - public virtual void Enum() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "extends")] - public virtual void Extends() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "false")] - public virtual void False() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "final")] - public virtual void Final() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "finally")] - public virtual void Finally() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "float")] - public virtual void Float() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "for")] - public virtual void For() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "goto")] - public virtual void Goto() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "if")] - public virtual void If() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "implements")] - public virtual void Implements() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "import")] - public virtual void Import() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "instanceof")] - public virtual void Instanceof() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "int")] - public virtual void Int() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "interface")] - public virtual void Interface() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "long")] - public virtual void Long() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "native")] - public virtual void Native() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "new")] - public virtual void New() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "null")] - public virtual void Null() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "package")] - public virtual void Package() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "private")] - public virtual void Private() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "protected")] - public virtual void Protected() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "public")] - public virtual void Public() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "return")] - public virtual void Return() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "short")] - public virtual void Short() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "static")] - public virtual void Static() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "strictfp")] - public virtual void Strictfp() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "super")] - public virtual void Super() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "switch")] - public virtual void Switch() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "synchronized")] - public virtual void Synchronized() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "this")] - public virtual void This() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "throw")] - public virtual void Throw() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "throws")] - public virtual void Throws() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "transient")] - public virtual void Transient() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "true")] - public virtual void True() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "try")] - public virtual void Try() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "void")] - public virtual void Void() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "volatile")] - public virtual void Volatile() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "while", typeJson: "{\"primitive\":\"string\"}")] - public virtual string While - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs deleted file mode 100644 index 5628f2e5c4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: "jsii-calc.Jsii487Derived")] - public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External - { - /// - /// Stability: Experimental - /// - public Jsii487Derived(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Jsii487Derived(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Jsii487Derived(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs deleted file mode 100644 index 4bf8a4288b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: "jsii-calc.Jsii496Derived")] - public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 - { - /// - /// Stability: Experimental - /// - public Jsii496Derived(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Jsii496Derived(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Jsii496Derived(DeputyProps props): base(props) - { - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs deleted file mode 100644 index e6d82e4503..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Host runtime version should be set via JSII_AGENT. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: "jsii-calc.JsiiAgent")] - public class JsiiAgent_ : DeputyBase - { - /// - /// Stability: Experimental - /// - public JsiiAgent_(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JsiiAgent_(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JsiiAgent_(DeputyProps props): base(props) - { - } - - /// Returns the value of the JSII_AGENT environment variable. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "jsiiAgent", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public static string? JsiiAgent - { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_)); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs deleted file mode 100644 index ea1591c1ab..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs +++ /dev/null @@ -1,156 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Make sure structs are un-decorated on the way in. - /// - /// Stability: Experimental - /// - /// See: https://github.com/aws/aws-cdk/issues/5066 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: "jsii-calc.JsonFormatter")] - public class JsonFormatter : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JsonFormatter(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected JsonFormatter(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyArray", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyArray() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyBooleanFalse", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyBooleanFalse() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyBooleanTrue", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyBooleanTrue() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyDate", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyDate() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyEmptyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyEmptyString() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyFunction", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyFunction() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyHash", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyHash() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyNull", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyNull() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyNumber", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyNumber() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyRef", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyRef() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyString() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyUndefined", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyUndefined() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "anyZero", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object AnyZero() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "stringify", returnsJson: "{\"optional\":true,\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"value\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] - public static string? Stringify(object? @value = null) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs deleted file mode 100644 index 1d6eda47cb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs +++ /dev/null @@ -1,110 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// jsii#298: show default values in sphinx documentation, and respect newlines. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.LoadBalancedFargateServiceProps")] - public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps - { - /// The container port of the application load balancer attached to your Fargate service. - /// - /// Corresponds to container port mapping. - /// - /// Default: 80 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "containerPort", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)] - public double? ContainerPort - { - get; - set; - } - - /// The number of cpu units used by the task. - /// - /// Valid values, which determines your range of valid values for the memory parameter: - /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 256 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "cpu", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Cpu - { - get; - set; - } - - /// The amount (in MiB) of memory used by the task. - /// - /// This field is required and you must use one of the following values, which determines your range of valid values - /// for the cpu parameter: - /// - /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - /// - /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - /// - /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - /// - /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - /// - /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 512 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "memoryMiB", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? MemoryMiB - { - get; - set; - } - - /// Determines whether the Application Load Balancer will be internet-facing. - /// - /// Default: true - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true, isOverride: true)] - public bool? PublicLoadBalancer - { - get; - set; - } - - /// Determines whether your Fargate Service will be assigned a public IP address. - /// - /// Default: false - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "publicTasks", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true, isOverride: true)] - public bool? PublicTasks - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs deleted file mode 100644 index 157359c801..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs +++ /dev/null @@ -1,109 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// jsii#298: show default values in sphinx documentation, and respect newlines. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] - internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps - { - private LoadBalancedFargateServicePropsProxy(ByRefValue reference): base(reference) - { - } - - /// The container port of the application load balancer attached to your Fargate service. - /// - /// Corresponds to container port mapping. - /// - /// Default: 80 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "containerPort", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? ContainerPort - { - get => GetInstanceProperty(); - } - - /// The number of cpu units used by the task. - /// - /// Valid values, which determines your range of valid values for the memory parameter: - /// 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - /// 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - /// 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - /// 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - /// 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 256 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "cpu", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Cpu - { - get => GetInstanceProperty(); - } - - /// The amount (in MiB) of memory used by the task. - /// - /// This field is required and you must use one of the following values, which determines your range of valid values - /// for the cpu parameter: - /// - /// 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - /// - /// 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - /// - /// 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - /// - /// Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - /// - /// Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - /// - /// This default is set in the underlying FargateTaskDefinition construct. - /// - /// Default: 512 - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "memoryMiB", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? MemoryMiB - { - get => GetInstanceProperty(); - } - - /// Determines whether the Application Load Balancer will be internet-facing. - /// - /// Default: true - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - public bool? PublicLoadBalancer - { - get => GetInstanceProperty(); - } - - /// Determines whether your Fargate Service will be assigned a public IP address. - /// - /// Default: false - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "publicTasks", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - public bool? PublicTasks - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs deleted file mode 100644 index b065a949ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.MethodNamedProperty), fullyQualifiedName: "jsii-calc.MethodNamedProperty")] - public class MethodNamedProperty : DeputyBase - { - /// - /// Stability: Experimental - /// - public MethodNamedProperty(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected MethodNamedProperty(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected MethodNamedProperty(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "property", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string Property() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "elite", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Elite - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs deleted file mode 100644 index 60bdc6bd9e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs +++ /dev/null @@ -1,88 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// The "*" binary operation. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Multiply), fullyQualifiedName: "jsii-calc.Multiply", parametersJson: "[{\"docs\":{\"summary\":\"Left-hand side operand.\"},\"name\":\"lhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}},{\"docs\":{\"summary\":\"Right-hand side operand.\"},\"name\":\"rhs\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public class Multiply : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator - { - /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. - /// - /// Stability: Experimental - /// - public Multiply(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ rhs): base(new DeputyProps(new object[]{lhs, rhs})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Multiply(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Multiply(DeputyProps props): base(props) - { - } - - /// Say farewell. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "farewell", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Farewell() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say goodbye. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "goodbye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Goodbye() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Returns another random number. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "next", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isOverride: true)] - public virtual double Next() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// String representation of the value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// The value. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public override double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs deleted file mode 100644 index f70481049f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs +++ /dev/null @@ -1,38 +0,0 @@ -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - ///

jsii Calculator

- /// - /// This library is used to demonstrate and test the features of JSII - /// - ///

How to use running sum API:

- /// - /// First, create a calculator: - /// - /// - /// - /// Then call some operations: - /// - /// - /// - ///

Code Samples

- /// - /// - ///
- [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public class NamespaceDoc - { - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs deleted file mode 100644 index 65270cc992..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs +++ /dev/null @@ -1,85 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// The negation operation ("-value"). - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Negate), fullyQualifiedName: "jsii-calc.Negate", parametersJson: "[{\"name\":\"operand\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public class Negate : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier - { - /// - /// Stability: Experimental - /// - public Negate(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ operand): base(new DeputyProps(new object[]{operand})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Negate(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Negate(DeputyProps props): base(props) - { - } - - /// Say farewell. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "farewell", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Farewell() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say goodbye. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "goodbye", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Goodbye() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Say hello! - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public virtual string Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// String representation of the value. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// The value. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - public override double Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs deleted file mode 100644 index a0ae6d4c83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.NestedStruct")] - public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.INestedStruct - { - /// When provided, must be > 0. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProp", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - public double NumberProp - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs deleted file mode 100644 index e19f2ab74e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] - internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INestedStruct - { - private NestedStructProxy(ByRefValue reference): base(reference) - { - } - - /// When provided, must be > 0. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "numberProp", typeJson: "{\"primitive\":\"number\"}")] - public double NumberProp - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs deleted file mode 100644 index 999ccde9bb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs +++ /dev/null @@ -1,78 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Test fixture to verify that jsii modules can use the node standard library. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.NodeStandardLibrary")] - public class NodeStandardLibrary : DeputyBase - { - /// - /// Stability: Experimental - /// - public NodeStandardLibrary(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NodeStandardLibrary(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NodeStandardLibrary(DeputyProps props): base(props) - { - } - - /// Uses node.js "crypto" module to calculate sha256 of a string. - /// "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "cryptoSha256", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string CryptoSha256() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Reads a local resource file (resource.txt) asynchronously. - /// "Hello, resource!" - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "fsReadFile", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isAsync: true)] - public virtual string FsReadFile() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Sync version of fsReadFile. - /// "Hello, resource! SYNC!" - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "fsReadFileSync", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string FsReadFileSync() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Returns the current os.platform() from the "os" node module. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "osPlatform", typeJson: "{\"primitive\":\"string\"}")] - public virtual string OsPlatform - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs deleted file mode 100644 index f4a238d7fe..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// jsii#282, aws-cdk#157: null should be treated as "undefined". - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefined", parametersJson: "[{\"name\":\"_param1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] - public class NullShouldBeTreatedAsUndefined : DeputyBase - { - /// - /// Stability: Experimental - /// - public NullShouldBeTreatedAsUndefined(string param1, object? optional = null): base(new DeputyProps(new object?[]{param1, optional})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NullShouldBeTreatedAsUndefined(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NullShouldBeTreatedAsUndefined(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeUndefined", parametersJson: "[{\"name\":\"value\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] - public virtual void GiveMeUndefined(object? @value = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.NullShouldBeTreatedAsUndefinedData\"}}]")] - public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData input) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "verifyPropertyIsUndefined")] - public virtual void VerifyPropertyIsUndefined() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "changeMeToUndefined", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public virtual string? ChangeMeToUndefined - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs deleted file mode 100644 index 7bf97343ff..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] - public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"array\"}}", isOverride: true)] - public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\"primitive\":\"any\"}", isOptional: true, isOverride: true)] - public object? ThisShouldBeUndefined - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs deleted file mode 100644 index 196225af4a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] - internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData - { - private NullShouldBeTreatedAsUndefinedDataProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"array\"}}")] - public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\"primitive\":\"any\"}", isOptional: true)] - public object? ThisShouldBeUndefined - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs deleted file mode 100644 index 574e60fb11..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This allows us to test that a reference can be stored for objects that implement interfaces. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: "jsii-calc.NumberGenerator", parametersJson: "[{\"name\":\"generator\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] - public class NumberGenerator : DeputyBase - { - /// - /// Stability: Experimental - /// - public NumberGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator generator): base(new DeputyProps(new object[]{generator})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NumberGenerator(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected NumberGenerator(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "isSameGenerator", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"gen\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] - public virtual bool IsSameGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator gen) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator)}, new object[]{gen}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "nextTimes100", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double NextTimes100() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "generator", typeJson: "{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator Generator - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs deleted file mode 100644 index 6b45df883b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verify that object references can be passed inside collections. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.ObjectRefsInCollections")] - public class ObjectRefsInCollections : DeputyBase - { - /// - /// Stability: Experimental - /// - public ObjectRefsInCollections(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ObjectRefsInCollections(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ObjectRefsInCollections(DeputyProps props): base(props) - { - } - - /// Returns the sum of all values. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "sumFromArray", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"values\",\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"array\"}}}]")] - public virtual double SumFromArray(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] values) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[])}, new object[]{values}); - } - - /// Returns the sum of all values in a map. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "sumFromMap", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"values\",\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"map\"}}}]")] - public virtual double SumFromMap(System.Collections.Generic.IDictionary values) - { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{values}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs deleted file mode 100644 index 32e1cc2176..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.ObjectWithPropertyProvider")] - public class ObjectWithPropertyProvider : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ObjectWithPropertyProvider(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ObjectWithPropertyProvider(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "provide", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IObjectWithProperty\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs deleted file mode 100644 index bc24fc60e7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Old class. - /// - /// Stability: Deprecated - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: "jsii-calc.Old")] - [System.Obsolete("Use the new class")] - public class Old : DeputyBase - { - /// - /// Stability: Experimental - /// - public Old(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Old(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Old(DeputyProps props): base(props) - { - } - - /// Doo wop that thing. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "doAThing")] - [System.Obsolete()] - public virtual void DoAThing() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs deleted file mode 100644 index 71a808bded..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.OptionalArgumentInvoker", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithOptionalMethodArguments\"}}]")] - public class OptionalArgumentInvoker : DeputyBase - { - /// - /// Stability: Experimental - /// - public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalArgumentInvoker(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalArgumentInvoker(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "invokeWithOptional")] - public virtual void InvokeWithOptional() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "invokeWithoutOptional")] - public virtual void InvokeWithoutOptional() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs deleted file mode 100644 index c2af050109..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.OptionalConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] - public class OptionalConstructorArgument : DeputyBase - { - /// - /// Stability: Experimental - /// - public OptionalConstructorArgument(double arg1, string arg2, System.DateTime? arg3 = null): base(new DeputyProps(new object?[]{arg1, arg2, arg3})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalConstructorArgument(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalConstructorArgument(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arg1", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Arg1 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "arg2", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Arg2 - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "arg3", typeJson: "{\"primitive\":\"date\"}", isOptional: true)] - public virtual System.DateTime? Arg3 - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs deleted file mode 100644 index a734f19e6a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.OptionalStruct")] - public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct - { - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "field", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Field - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs deleted file mode 100644 index a6d80e094c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.OptionalStructConsumer", parametersJson: "[{\"name\":\"optionalStruct\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.OptionalStruct\"}}]")] - public class OptionalStructConsumer : DeputyBase - { - /// - /// Stability: Experimental - /// - public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalStructConsumer(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OptionalStructConsumer(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "parameterWasUndefined", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool ParameterWasUndefined - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "fieldValue", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public virtual string? FieldValue - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs deleted file mode 100644 index ea0c9fa351..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] - internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct - { - private OptionalStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "field", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Field - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs deleted file mode 100644 index b864d3f9dd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - /// See: https://github.com/aws/jsii/issues/903 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.OverridableProtectedMember")] - public class OverridableProtectedMember : DeputyBase - { - /// - /// Stability: Experimental - /// - public OverridableProtectedMember(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OverridableProtectedMember(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OverridableProtectedMember(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMe", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - protected virtual string OverrideMe() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "switchModes")] - public virtual void SwitchModes() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "valueFromProtected", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string ValueFromProtected() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "overrideReadOnly", typeJson: "{\"primitive\":\"string\"}")] - protected virtual string OverrideReadOnly - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "overrideReadWrite", typeJson: "{\"primitive\":\"string\"}")] - protected virtual string OverrideReadWrite - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs deleted file mode 100644 index c7b5cf1dd4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.OverrideReturnsObject")] - public class OverrideReturnsObject : DeputyBase - { - /// - /// Stability: Experimental - /// - public OverrideReturnsObject(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OverrideReturnsObject(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OverrideReturnsObject(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "test", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IReturnsNumber\"}}]")] - public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs deleted file mode 100644 index 85afd15639..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// https://github.com/aws/jsii/issues/982. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.ParentStruct982")] - public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs deleted file mode 100644 index 275ef7c034..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// https://github.com/aws/jsii/issues/982. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] - internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 - { - private ParentStruct982Proxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "foo", typeJson: "{\"primitive\":\"string\"}")] - public string Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs deleted file mode 100644 index ae3b00b828..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] - public abstract class PartiallyInitializedThisConsumer : DeputyBase - { - /// - /// Stability: Experimental - /// - protected PartiallyInitializedThisConsumer(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PartiallyInitializedThisConsumer(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PartiallyInitializedThisConsumer(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] - public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev); - - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs deleted file mode 100644 index 721a24c93a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] - internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer - { - private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] - public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs deleted file mode 100644 index 883f7593e4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: "jsii-calc.Polymorphism")] - public class Polymorphism : DeputyBase - { - /// - /// Stability: Experimental - /// - public Polymorphism(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Polymorphism(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Polymorphism(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "sayHello", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"friendly\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}}]")] - public virtual string SayHello(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs deleted file mode 100644 index f366aa6847..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs +++ /dev/null @@ -1,70 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// The power operation. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Power), fullyQualifiedName: "jsii-calc.Power", parametersJson: "[{\"docs\":{\"summary\":\"The base of the power.\"},\"name\":\"base\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}},{\"docs\":{\"summary\":\"The number of times to multiply.\"},\"name\":\"pow\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public class Power : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation - { - /// Creates a Power operation. - /// The base of the power. - /// The number of times to multiply. - /// - /// Stability: Experimental - /// - public Power(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ @base, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ pow): base(new DeputyProps(new object[]{@base, pow})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Power(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Power(DeputyProps props): base(props) - { - } - - /// The base of the power. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "base", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Base - { - get => GetInstanceProperty(); - } - - /// The expression that this operation consists of. - /// - /// Must be implemented by derived classes. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "expression", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression - { - get => GetInstanceProperty(); - } - - /// The number of times to multiply. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "pow", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Pow - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs deleted file mode 100644 index 7eb3cf1be2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PropertyNamedProperty), fullyQualifiedName: "jsii-calc.PropertyNamedProperty")] - public class PropertyNamedProperty : DeputyBase - { - /// - /// Stability: Experimental - /// - public PropertyNamedProperty(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PropertyNamedProperty(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PropertyNamedProperty(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Property - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "yetAnoterOne", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool YetAnoterOne - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs deleted file mode 100644 index 240d05b3a3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: "jsii-calc.PublicClass")] - public class PublicClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public PublicClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PublicClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PublicClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello")] - public virtual void Hello() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs deleted file mode 100644 index 0b9dfc10ca..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs +++ /dev/null @@ -1,322 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: "jsii-calc.PythonReservedWords")] - public class PythonReservedWords : DeputyBase - { - /// - /// Stability: Experimental - /// - public PythonReservedWords(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PythonReservedWords(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected PythonReservedWords(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "and")] - public virtual void And() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "as")] - public virtual void As() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "assert")] - public virtual void Assert() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "async")] - public virtual void Async() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "await")] - public virtual void Await() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "break")] - public virtual void Break() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "class")] - public virtual void Class() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "continue")] - public virtual void Continue() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "def")] - public virtual void Def() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "del")] - public virtual void Del() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "elif")] - public virtual void Elif() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "else")] - public virtual void Else() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "except")] - public virtual void Except() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "finally")] - public virtual void Finally() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "for")] - public virtual void For() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "from")] - public virtual void From() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "global")] - public virtual void Global() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "if")] - public virtual void If() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "import")] - public virtual void Import() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "in")] - public virtual void In() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "is")] - public virtual void Is() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "lambda")] - public virtual void Lambda() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "nonlocal")] - public virtual void Nonlocal() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "not")] - public virtual void Not() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "or")] - public virtual void Or() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "pass")] - public virtual void Pass() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "raise")] - public virtual void Raise() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "return")] - public virtual void Return() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "try")] - public virtual void Try() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "while")] - public virtual void While() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "with")] - public virtual void With() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "yield")] - public virtual void Yield() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs deleted file mode 100644 index 98d62902da..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelf", parametersJson: "[{\"name\":\"self\",\"type\":{\"primitive\":\"string\"}}]")] - public class ClassWithSelf : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithSelf(string self): base(new DeputyProps(new object[]{self})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithSelf(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithSelf(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"self\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual string Method(double self) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "self", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Self - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs deleted file mode 100644 index 0c3f21b129..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelfKwarg), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelfKwarg", parametersJson: "[{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.PythonSelf.StructWithSelf\"}}]")] - public class ClassWithSelfKwarg : DeputyBase - { - /// - /// Stability: Experimental - /// - public ClassWithSelfKwarg(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf props): base(new DeputyProps(new object[]{props})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithSelfKwarg(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ClassWithSelfKwarg(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.PythonSelf.StructWithSelf\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf Props - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs deleted file mode 100644 index 4069ae833e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.IInterfaceWithSelf")] - public interface IInterfaceWithSelf - { - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"self\",\"type\":{\"primitive\":\"number\"}}]")] - string Method(double self); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs deleted file mode 100644 index 354e571d62..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.IInterfaceWithSelf")] - internal sealed class IInterfaceWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IInterfaceWithSelf - { - private IInterfaceWithSelfProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"self\",\"type\":{\"primitive\":\"number\"}}]")] - public string Method(double self) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs deleted file mode 100644 index 5b39d347f9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.StructWithSelf")] - public interface IStructWithSelf - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "self", typeJson: "{\"primitive\":\"string\"}")] - string Self - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs deleted file mode 100644 index 947d9697cb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.PythonSelf.StructWithSelf")] - public class StructWithSelf : Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "self", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Self - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs deleted file mode 100644 index 0eb4bf9069..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.StructWithSelf")] - internal sealed class StructWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf - { - private StructWithSelfProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "self", typeJson: "{\"primitive\":\"string\"}")] - public string Self - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs deleted file mode 100644 index 8a39a76371..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// See awslabs/jsii#138. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.ReferenceEnumFromScopedPackage")] - public class ReferenceEnumFromScopedPackage : DeputyBase - { - /// - /// Stability: Experimental - /// - public ReferenceEnumFromScopedPackage(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ReferenceEnumFromScopedPackage(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ReferenceEnumFromScopedPackage(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "loadFoo", returnsJson: "{\"optional\":true,\"type\":{\"fqn\":\"@scope/jsii-calc-lib.EnumFromScopedModule\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? LoadFoo() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "saveFoo", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.EnumFromScopedModule\"}}]")] - public virtual void SaveFoo(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "foo", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.EnumFromScopedModule\"}", isOptional: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? Foo - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs deleted file mode 100644 index 728333deb5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - /// an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`. - /// - /// Stability: Experimental - /// - /// See: https://github.com/aws/jsii/issues/320 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.ReturnsPrivateImplementationOfInterface")] - public class ReturnsPrivateImplementationOfInterface : DeputyBase - { - /// - /// Stability: Experimental - /// - public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ReturnsPrivateImplementationOfInterface(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected ReturnsPrivateImplementationOfInterface(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "privateImplementation", typeJson: "{\"fqn\":\"jsii-calc.IPrivatelyImplemented\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs deleted file mode 100644 index 68f3a11453..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - /// - /// This is cheating with the (current) declared types, but this is the "more - /// idiomatic" way for Pythonists. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.RootStruct")] - public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.IRootStruct - { - /// May not be empty. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "stringProp", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string StringProp - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs deleted file mode 100644 index 35c3c57f12..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - /// - /// This is cheating with the (current) declared types, but this is the "more - /// idiomatic" way for Pythonists. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] - internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRootStruct - { - private RootStructProxy(ByRefValue reference): base(reference) - { - } - - /// May not be empty. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "stringProp", typeJson: "{\"primitive\":\"string\"}")] - public string StringProp - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs deleted file mode 100644 index f560779442..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: "jsii-calc.RootStructValidator")] - public class RootStructValidator : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected RootStructValidator(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected RootStructValidator(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "validate", parametersJson: "[{\"name\":\"struct\",\"type\":{\"fqn\":\"jsii-calc.RootStruct\"}}]")] - public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct @struct) - { - InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct)}, new object[]{@struct}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs deleted file mode 100644 index 10976ffd8c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.RuntimeTypeChecking")] - public class RuntimeTypeChecking : DeputyBase - { - /// - /// Stability: Experimental - /// - public RuntimeTypeChecking(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected RuntimeTypeChecking(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected RuntimeTypeChecking(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "methodWithDefaultedArguments", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] - public virtual void MethodWithDefaultedArguments(double? arg1 = null, string? arg2 = null, System.DateTime? arg3 = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "methodWithOptionalAnyArgument", parametersJson: "[{\"name\":\"arg\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] - public virtual void MethodWithOptionalAnyArgument(object? arg = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{arg}); - } - - /// Used to verify verification of number of method arguments. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "methodWithOptionalArguments", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] - public virtual void MethodWithOptionalArguments(double arg1, string arg2, System.DateTime? arg3 = null) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs deleted file mode 100644 index 18f6fa479d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.SecondLevelStruct")] - public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct - { - /// It's long and required. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string DeeperRequiredProp - { - get; - set; - } - - /// It's long, but you'll almost never pass it. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? DeeperOptionalProp - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs deleted file mode 100644 index 45f51b425f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] - internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct - { - private SecondLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// It's long and required. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\"primitive\":\"string\"}")] - public string DeeperRequiredProp - { - get => GetInstanceProperty(); - } - - /// It's long, but you'll almost never pass it. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? DeeperOptionalProp - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs deleted file mode 100644 index cc0b51ae4e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Test that a single instance can be returned under two different FQNs. - /// - /// JSII clients can instantiate 2 different strongly-typed wrappers for the same - /// object. Unfortunately, this will break object equality, but if we didn't do - /// this it would break runtime type checks in the JVM or CLR. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.SingleInstanceTwoTypes")] - public class SingleInstanceTwoTypes : DeputyBase - { - /// - /// Stability: Experimental - /// - public SingleInstanceTwoTypes(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingleInstanceTwoTypes(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingleInstanceTwoTypes(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "interface1", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.InbetweenClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "interface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs deleted file mode 100644 index 172df42f94..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that singleton enums are handled correctly. - /// - /// https://github.com/aws/jsii/issues/231 - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: "jsii-calc.SingletonInt")] - public class SingletonInt : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingletonInt(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingletonInt(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "isSingletonInt", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual bool IsSingletonInt(double @value) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{@value}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs deleted file mode 100644 index 255d9ad793..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// A singleton integer. - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.SingletonIntEnum")] - public enum SingletonIntEnum - { - /// Elite! - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "SINGLETON_INT")] - SINGLETON_INT - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs deleted file mode 100644 index 0443985851..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that singleton enums are handled correctly. - /// - /// https://github.com/aws/jsii/issues/231 - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: "jsii-calc.SingletonString")] - public class SingletonString : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingletonString(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SingletonString(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "isSingletonString", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual bool IsSingletonString(string @value) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs deleted file mode 100644 index 5e9afb5734..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// A singleton string. - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.SingletonStringEnum")] - public enum SingletonStringEnum - { - /// 1337. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "SINGLETON_STRING")] - SINGLETON_STRING - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs deleted file mode 100644 index 3e01f5c21d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.SmellyStruct")] - public class SmellyStruct : Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Property - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "yetAnoterOne", typeJson: "{\"primitive\":\"boolean\"}", isOverride: true)] - public bool YetAnoterOne - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs deleted file mode 100644 index e11ad625ea..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ISmellyStruct), fullyQualifiedName: "jsii-calc.SmellyStruct")] - internal sealed class SmellyStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct - { - private SmellyStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "property", typeJson: "{\"primitive\":\"string\"}")] - public string Property - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "yetAnoterOne", typeJson: "{\"primitive\":\"boolean\"}")] - public bool YetAnoterOne - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs deleted file mode 100644 index ee1042de51..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.SomeTypeJsii976")] - public class SomeTypeJsii976 : DeputyBase - { - /// - /// Stability: Experimental - /// - public SomeTypeJsii976(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SomeTypeJsii976(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SomeTypeJsii976(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "returnAnonymous", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public static object ReturnAnonymous() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "returnReturn", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IReturnJsii976\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs deleted file mode 100644 index 66ecc68f3e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: "jsii-calc.StableClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] - public class StableClass : DeputyBase - { - public StableClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StableClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StableClass(DeputyProps props): base(props) - { - } - - [JsiiMethod(name: "method")] - public virtual void Method() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadonlyProperty - { - get => GetInstanceProperty(); - } - - [JsiiOptional] - [JsiiProperty(name: "mutableProperty", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public virtual double? MutableProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs deleted file mode 100644 index 17b7d05a04..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.StableEnum")] - public enum StableEnum - { - [JsiiEnumMember(name: "OPTION_A")] - OPTION_A, - [JsiiEnumMember(name: "OPTION_B")] - OPTION_B - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs deleted file mode 100644 index 7aa4ac8ff1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - [JsiiByValue(fqn: "jsii-calc.StableStruct")] - public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.IStableStruct - { - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string ReadonlyProperty - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs deleted file mode 100644 index 497a34dfbd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] - internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableStruct - { - private StableStructProxy(ByRefValue reference): base(reference) - { - } - - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public string ReadonlyProperty - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs deleted file mode 100644 index d803de2769..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This is used to validate the ability to use `this` from within a static context. - /// - /// https://github.com/awslabs/aws-cdk/issues/2304 - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: "jsii-calc.StaticContext")] - public class StaticContext : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StaticContext(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StaticContext(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "canAccessStaticContext", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}")] - public static bool CanAccessStaticContext() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "staticVariable", typeJson: "{\"primitive\":\"boolean\"}")] - public static bool StaticVariable - { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs deleted file mode 100644 index fabaa43e58..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs +++ /dev/null @@ -1,129 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: "jsii-calc.Statics", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] - public class Statics : DeputyBase - { - /// - /// Stability: Experimental - /// - public Statics(string @value): base(new DeputyProps(new object[]{@value})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Statics(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Statics(DeputyProps props): base(props) - { - } - - /// Jsdocs for static method. - /// The name of the person to say hello to. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "staticMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The name of the person to say hello to.\"},\"name\":\"name\",\"type\":{\"primitive\":\"string\"}}]")] - public static string StaticMethod(string name) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "justMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string JustMethod() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// Constants may also use all-caps. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "BAR", typeJson: "{\"primitive\":\"number\"}")] - public static double BAR - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "ConstObj", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - - /// Jsdocs for static property. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "Foo", typeJson: "{\"primitive\":\"string\"}")] - public static string Foo - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - - /// Constants can also use camelCase. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "zooBar", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}")] - public static System.Collections.Generic.IDictionary ZooBar - { - get; - } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - - /// Jsdocs for static getter. - /// - /// Jsdocs for static setter. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "instance", typeJson: "{\"fqn\":\"jsii-calc.Statics\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance - { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "nonConstStatic", typeJson: "{\"primitive\":\"number\"}")] - public static double NonConstStatic - { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"string\"}")] - public virtual string Value - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs deleted file mode 100644 index 4c7851da65..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.StringEnum")] - public enum StringEnum - { - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "A")] - A, - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "B")] - B, - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "C")] - C - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs deleted file mode 100644 index 813b037735..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: "jsii-calc.StripInternal")] - public class StripInternal : DeputyBase - { - /// - /// Stability: Experimental - /// - public StripInternal(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StripInternal(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StripInternal(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "youSeeMe", typeJson: "{\"primitive\":\"string\"}")] - public virtual string YouSeeMe - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs deleted file mode 100644 index a689765a1d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// We can serialize and deserialize structs without silently ignoring optional fields. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.StructA")] - public class StructA : Amazon.JSII.Tests.CalculatorNamespace.IStructA - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string RequiredString - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalNumber", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)] - public double? OptionalNumber - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalString", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? OptionalString - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs deleted file mode 100644 index dfccd35da5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can serialize and deserialize structs without silently ignoring optional fields. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] - internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructA - { - private StructAProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}")] - public string RequiredString - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalNumber", typeJson: "{\"primitive\":\"number\"}", isOptional: true)] - public double? OptionalNumber - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalString", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? OptionalString - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs deleted file mode 100644 index 5e3288721b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.StructB")] - public class StructB : Amazon.JSII.Tests.CalculatorNamespace.IStructB - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string RequiredString - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalBoolean", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true, isOverride: true)] - public bool? OptionalBoolean - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs deleted file mode 100644 index fbeb80c2fe..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] - internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructB - { - private StructBProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "requiredString", typeJson: "{\"primitive\":\"string\"}")] - public string RequiredString - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalBoolean", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - public bool? OptionalBoolean - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs deleted file mode 100644 index 498e8ebb67..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - /// - /// See: https://github.com/aws/aws-cdk/issues/4302 - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.StructParameterType")] - public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "scope", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Scope - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "props", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true, isOverride: true)] - public bool? Props - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs deleted file mode 100644 index 25ffff86b0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - /// - /// See: https://github.com/aws/aws-cdk/issues/4302 - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] - internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType - { - private StructParameterTypeProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "scope", typeJson: "{\"primitive\":\"string\"}")] - public string Scope - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "props", typeJson: "{\"primitive\":\"boolean\"}", isOptional: true)] - public bool? Props - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs deleted file mode 100644 index d10b5fb52a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Just because we can. - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: "jsii-calc.StructPassing")] - public class StructPassing : DeputyBase - { - /// - /// Stability: Experimental - /// - public StructPassing(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StructPassing(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StructPassing(DeputyProps props): base(props) - { - } - - [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"inputs\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"},\"variadic\":true}]")] - public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); - } - - [JsiiMethod(name: "roundTrip", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs deleted file mode 100644 index 550aa1ab46..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: "jsii-calc.StructUnionConsumer")] - public class StructUnionConsumer : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StructUnionConsumer(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected StructUnionConsumer(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "isStructA", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] - public static bool IsStructA(object @struct) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "isStructB", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] - public static bool IsStructB(object @struct) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs deleted file mode 100644 index ae29361d74..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.StructWithJavaReservedWords")] - public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "default", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Default - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "assert", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Assert - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "result", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Result - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "that", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? That - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs deleted file mode 100644 index 82d29eef13..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] - internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords - { - private StructWithJavaReservedWordsProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "default", typeJson: "{\"primitive\":\"string\"}")] - public string Default - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "assert", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Assert - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "result", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Result - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "that", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? That - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs deleted file mode 100644 index d0bba143dc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] - public interface IMyClassReference - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}")] - Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs deleted file mode 100644 index 3abbb5b89f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.submodule.back_references.MyClassReference")] - public class MyClassReference : Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs deleted file mode 100644 index e2c5c7874a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] - internal sealed class MyClassReferenceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference - { - private MyClassReferenceProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs deleted file mode 100644 index 6bf4fd036e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(Awesomeness), fullyQualifiedName: "jsii-calc.submodule.child.Awesomeness")] - public enum Awesomeness - { - /// It was awesome! - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "AWESOME")] - AWESOME - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs deleted file mode 100644 index d479b90294..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(Goodness), fullyQualifiedName: "jsii-calc.submodule.child.Goodness")] - public enum Goodness - { - /// It's pretty good. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "PRETTY_GOOD")] - PRETTY_GOOD, - /// It's really good. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "REALLY_GOOD")] - REALLY_GOOD, - /// It's amazingly good. - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "AMAZINGLY_GOOD")] - AMAZINGLY_GOOD - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs deleted file mode 100644 index feccce1a0c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IKwargsProps), fullyQualifiedName: "jsii-calc.submodule.child.KwargsProps")] - public interface IKwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "extra", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - [Amazon.JSII.Runtime.Deputy.JsiiOptional] - string? Extra - { - get - { - return null; - } - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs deleted file mode 100644 index 80a8cf22a6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(ISomeStruct), fullyQualifiedName: "jsii-calc.submodule.child.SomeStruct")] - public interface ISomeStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeEnum\"}")] - Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs deleted file mode 100644 index 0592d56531..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] - public interface IStructure - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] - bool Bool - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs deleted file mode 100644 index b81390a756..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass), fullyQualifiedName: "jsii-calc.submodule.child.InnerClass")] - public class InnerClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public InnerClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InnerClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected InnerClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "staticProp", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeStruct\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct StaticProp - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass)); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs deleted file mode 100644 index b15e33e05c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.submodule.child.KwargsProps")] - public class KwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps - { - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "extra", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Extra - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeEnum\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs deleted file mode 100644 index 07fa362113..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IKwargsProps), fullyQualifiedName: "jsii-calc.submodule.child.KwargsProps")] - internal sealed class KwargsPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps - { - private KwargsPropsProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "extra", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Extra - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeEnum\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs deleted file mode 100644 index b348b5c725..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// Checks that classes can self-reference during initialization. - /// - /// Stability: Experimental - /// - /// See: : https://github.com/aws/jsii/pull/1706 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.OuterClass), fullyQualifiedName: "jsii-calc.submodule.child.OuterClass")] - public class OuterClass : DeputyBase - { - /// - /// Stability: Experimental - /// - public OuterClass(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OuterClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected OuterClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "innerClass", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.InnerClass\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass InnerClass - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs deleted file mode 100644 index 17e0efdf61..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - - /// - /// Stability: Experimental - /// - [JsiiEnum(nativeType: typeof(SomeEnum), fullyQualifiedName: "jsii-calc.submodule.child.SomeEnum")] - public enum SomeEnum - { - /// - /// Stability: Experimental - /// - [JsiiEnumMember(name: "SOME")] - SOME - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs deleted file mode 100644 index 5245796dde..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.submodule.child.SomeStruct")] - public class SomeStruct : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeEnum\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs deleted file mode 100644 index 06b47ddaa6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ISomeStruct), fullyQualifiedName: "jsii-calc.submodule.child.SomeStruct")] - internal sealed class SomeStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct - { - private SomeStructProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "prop", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeEnum\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs deleted file mode 100644 index 249762ae88..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.submodule.child.Structure")] - public class Structure : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}", isOverride: true)] - public bool Bool - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs deleted file mode 100644 index 945641b246..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] - internal sealed class StructureProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure - { - private StructureProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] - public bool Bool - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs deleted file mode 100644 index 97e3829e20..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated -{ - /// Ensures imports are correctly registered for kwargs lifted properties from super-structs. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), fullyQualifiedName: "jsii-calc.submodule.isolated.Kwargs")] - public class Kwargs : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Kwargs(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Kwargs(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "method", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.submodule.child.KwargsProps\"}}]")] - public static bool Method(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps? props = null) - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps)}, new object?[]{props}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs deleted file mode 100644 index 977d3ba5ac..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs +++ /dev/null @@ -1,81 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass", parametersJson: "[{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.submodule.child.SomeStruct\"}}]")] - public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced - { - /// - /// Stability: Experimental - /// - public MyClass(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct props): base(new DeputyProps(new object[]{props})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected MyClass(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected MyClass(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "awesomeness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Awesomeness\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Awesomeness Awesomeness - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] - public virtual string DefinedAt - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.SomeStruct\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct Props - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "allTypes", typeJson: "{\"fqn\":\"jsii-calc.AllTypes\"}", isOptional: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypes? AllTypes - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs deleted file mode 100644 index b68772f183..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested -{ - /// - /// Stability: Experimental - /// - [JsiiInterface(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] - public interface INamespaced - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] - string DefinedAt - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs deleted file mode 100644 index 13f38d0463..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] - internal sealed class INamespacedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced - { - private INamespacedProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] - public string DefinedAt - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs deleted file mode 100644 index 665a692841..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] - public abstract class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Namespaced(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Namespaced(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] - public virtual string DefinedAt - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] - public abstract Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness - { - get; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs deleted file mode 100644 index 8ba980f079..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] - internal sealed class NamespacedProxy : Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced - { - private NamespacedProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] - public override Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs deleted file mode 100644 index a6c703dc0e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// An operation that sums multiple values. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: "jsii-calc.Sum")] - public class Sum : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation - { - /// - /// Stability: Experimental - /// - public Sum(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Sum(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Sum(DeputyProps props): base(props) - { - } - - /// The expression that this operation consists of. - /// - /// Must be implemented by derived classes. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "expression", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression - { - get => GetInstanceProperty(); - } - - /// The parts to sum. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "parts", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"},\"kind\":\"array\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] Parts - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs deleted file mode 100644 index 4d125e367a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilder", parametersJson: "[{\"docs\":{\"summary\":\"some identifier.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"the default value of `bar`.\"},\"name\":\"defaultBar\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some props once can provide.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}},{\"docs\":{\"summary\":\"a variadic continuation.\"},\"name\":\"rest\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] - public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps - { - /// some identifier. - /// the default value of `bar`. - /// some props once can provide. - /// a variadic continuation. - /// - /// Stability: Experimental - /// - public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SupportsNiceJavaBuilder(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SupportsNiceJavaBuilder(DeputyProps props): base(props) - { - } - - /// some identifier. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"number\"}")] - public override double Id - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "rest", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] - public virtual string[] Rest - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs deleted file mode 100644 index 16c2819a9d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.SupportsNiceJavaBuilderProps")] - public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps - { - /// Some number, like 42. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}", isOverride: true)] - public double Bar - { - get; - set; - } - - /// An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - /// - /// But here we are, doing it like we didn't care. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Id - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs deleted file mode 100644 index d11df3b092..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] - internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps - { - private SupportsNiceJavaBuilderPropsProxy(ByRefValue reference): base(reference) - { - } - - /// Some number, like 42. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}")] - public double Bar - { - get => GetInstanceProperty(); - } - - /// An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - /// - /// But here we are, doing it like we didn't care. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Id - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs deleted file mode 100644 index 2f9b227c46..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\"docs\":{\"summary\":\"some identifier of your choice.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some properties.\"},\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}}]")] - public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase - { - /// some identifier of your choice. - /// some properties. - /// - /// Stability: Experimental - /// - public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SupportsNiceJavaBuilderWithRequiredProps(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SupportsNiceJavaBuilderWithRequiredProps(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Bar - { - get => GetInstanceProperty(); - } - - /// some identifier of your choice. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"number\"}")] - public virtual double Id - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "propId", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public virtual string? PropId - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs deleted file mode 100644 index b464ae172d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs +++ /dev/null @@ -1,183 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.SyncVirtualMethods")] - public class SyncVirtualMethods : DeputyBase - { - /// - /// Stability: Experimental - /// - public SyncVirtualMethods(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SyncVirtualMethods(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected SyncVirtualMethods(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callerIsAsync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", isAsync: true)] - public virtual double CallerIsAsync() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callerIsMethod", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double CallerIsMethod() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "modifyOtherProperty", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual void ModifyOtherProperty(string @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "modifyValueOfTheProperty", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual void ModifyValueOfTheProperty(string @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "readA", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public virtual double ReadA() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "retrieveOtherProperty", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string RetrieveOtherProperty() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "retrieveReadOnlyProperty", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string RetrieveReadOnlyProperty() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "retrieveValueOfTheProperty", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string RetrieveValueOfTheProperty() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "virtualMethod", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"n\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual double VirtualMethod(double n) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{n}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "writeA", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual void WriteA(double @value) - { - InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "readonlyProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ReadonlyProperty - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "a", typeJson: "{\"primitive\":\"number\"}")] - public virtual double A - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "callerIsProperty", typeJson: "{\"primitive\":\"number\"}")] - public virtual double CallerIsProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "otherProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string OtherProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "theProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string TheProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "valueOfOtherProperty", typeJson: "{\"primitive\":\"string\"}")] - public virtual string ValueOfOtherProperty - { - get => GetInstanceProperty(); - set => SetInstanceProperty(value); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs deleted file mode 100644 index 2cdd78c71c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: "jsii-calc.Thrower")] - public class Thrower : DeputyBase - { - /// - /// Stability: Experimental - /// - public Thrower(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Thrower(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected Thrower(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "throwError")] - public virtual void ThrowError() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs deleted file mode 100644 index 71952e0149..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.TopLevelStruct")] - public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct - { - /// This is a required field. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "required", typeJson: "{\"primitive\":\"string\"}", isOverride: true)] - public string Required - { - get; - set; - } - - /// A union to really stress test our serialization. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}", isOverride: true)] - public object SecondLevel - { - get; - set; - } - - /// You don't have to pass this. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optional", typeJson: "{\"primitive\":\"string\"}", isOptional: true, isOverride: true)] - public string? Optional - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs deleted file mode 100644 index 9c94640e97..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] - internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct - { - private TopLevelStructProxy(ByRefValue reference): base(reference) - { - } - - /// This is a required field. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "required", typeJson: "{\"primitive\":\"string\"}")] - public string Required - { - get => GetInstanceProperty(); - } - - /// A union to really stress test our serialization. - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] - public object SecondLevel - { - get => GetInstanceProperty(); - } - - /// You don't have to pass this. - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "optional", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] - public string? Optional - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs deleted file mode 100644 index 7acc1fa677..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Checks the current file permissions are cool (no funky UMASK down-scoping happened). - /// - /// Stability: Experimental - /// - /// See: https://github.com/aws/jsii/issues/1765 - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: "jsii-calc.UmaskCheck")] - public class UmaskCheck : DeputyBase - { - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UmaskCheck(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UmaskCheck(DeputyProps props): base(props) - { - } - - /// This should return 0o644 (-rw-r--r--). - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "mode", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] - public static double Mode() - { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs deleted file mode 100644 index 20bcad5a4c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// An operation on a single operand. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: "jsii-calc.UnaryOperation", parametersJson: "[{\"name\":\"operand\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public abstract class UnaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation - { - /// - /// Stability: Experimental - /// - protected UnaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ operand): base(new DeputyProps(new object[]{operand})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UnaryOperation(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UnaryOperation(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "operand", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.Value\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Operand - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs deleted file mode 100644 index cf7df5d32b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// An operation on a single operand. - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: "jsii-calc.UnaryOperation")] - internal sealed class UnaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation - { - private UnaryOperationProxy(ByRefValue reference): base(reference) - { - } - - /// The value. - /// - /// Stability: Deprecated - /// - [JsiiProperty(name: "value", typeJson: "{\"primitive\":\"number\"}")] - [System.Obsolete()] - public override double Value - { - get => GetInstanceProperty(); - } - - /// String representation of the value. - /// - /// Stability: Deprecated - /// - [JsiiMethod(name: "toString", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", isOverride: true)] - [System.Obsolete()] - public override string ToString() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs deleted file mode 100644 index c827b0e642..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - #pragma warning disable CS8618 - - /// - /// Stability: Experimental - /// - [JsiiByValue(fqn: "jsii-calc.UnionProperties")] - public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties - { - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}", isOverride: true)] - public object Bar - { - get; - set; - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "foo", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"}]}}", isOptional: true, isOverride: true)] - public object? Foo - { - get; - set; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs deleted file mode 100644 index 16732ebbcf..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] - internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties - { - private UnionPropertiesProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] - public object Bar - { - get => GetInstanceProperty(); - } - - /// - /// Stability: Experimental - /// - [JsiiOptional] - [JsiiProperty(name: "foo", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"}]}}", isOptional: true)] - public object? Foo - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs deleted file mode 100644 index 7631f50509..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Ensures submodule-imported types from dependencies can be used correctly. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable), fullyQualifiedName: "jsii-calc.UpcasingReflectable", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}]")] - public class UpcasingReflectable : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable - { - /// - /// Stability: Experimental - /// - public UpcasingReflectable(System.Collections.Generic.IDictionary @delegate): base(new DeputyProps(new object[]{@delegate})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UpcasingReflectable(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UpcasingReflectable(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "reflector", typeJson: "{\"fqn\":\"@scope/jsii-calc-lib.submodule.Reflector\"}")] - public static Amazon.JSII.Tests.CustomSubmoduleName.Reflector Reflector - { - get; - } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable)); - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "entries", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.submodule.ReflectableEntry\"},\"kind\":\"array\"}}")] - public virtual Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs deleted file mode 100644 index 1f197e160d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: "jsii-calc.UseBundledDependency")] - public class UseBundledDependency : DeputyBase - { - /// - /// Stability: Experimental - /// - public UseBundledDependency(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UseBundledDependency(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UseBundledDependency(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "value", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] - public virtual object Value() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs deleted file mode 100644 index d9345aa926..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: "jsii-calc.UseCalcBase")] - public class UseCalcBase : DeputyBase - { - /// - /// Stability: Experimental - /// - public UseCalcBase(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UseCalcBase(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UseCalcBase(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "hello", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-base.Base\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base Hello() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs deleted file mode 100644 index 85b8ea2818..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs +++ /dev/null @@ -1,70 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.UsesInterfaceWithProperties", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}}]")] - public class UsesInterfaceWithProperties : DeputyBase - { - /// - /// Stability: Experimental - /// - public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UsesInterfaceWithProperties(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected UsesInterfaceWithProperties(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "justRead", returnsJson: "{\"type\":{\"primitive\":\"string\"}}")] - public virtual string JustRead() - { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"ext\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithPropertiesExtension\"}}]")] - public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "writeAndRead", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] - public virtual string WriteAndRead(string @value) - { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "obj", typeJson: "{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs deleted file mode 100644 index 2c7f3d7d65..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: "jsii-calc.VariadicInvoker", parametersJson: "[{\"name\":\"method\",\"type\":{\"fqn\":\"jsii-calc.VariadicMethod\"}}]")] - public class VariadicInvoker : DeputyBase - { - /// - /// Stability: Experimental - /// - public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object[]{method})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VariadicInvoker(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VariadicInvoker(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "asArray", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"number\"},\"kind\":\"array\"}}}", parametersJson: "[{\"name\":\"values\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] - public virtual double[] AsArray(params double[] values) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double[])}, new object[]{values}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs deleted file mode 100644 index 102b19b473..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: "jsii-calc.VariadicMethod", parametersJson: "[{\"docs\":{\"summary\":\"a prefix that will be use for all values returned by `#asArray`.\"},\"name\":\"prefix\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] - public class VariadicMethod : DeputyBase - { - /// a prefix that will be use for all values returned by `#asArray`. - /// - /// Stability: Experimental - /// - public VariadicMethod(params double[] prefix): base(new DeputyProps(new object[]{prefix})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VariadicMethod(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VariadicMethod(DeputyProps props): base(props) - { - } - - /// the first element of the array to be returned (after the `prefix` provided at construction time). - /// other elements to be included in the array. - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "asArray", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"number\"},\"kind\":\"array\"}}}", parametersJson: "[{\"docs\":{\"summary\":\"the first element of the array to be returned (after the `prefix` provided at construction time).\"},\"name\":\"first\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"other elements to be included in the array.\"},\"name\":\"others\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] - public virtual double[] AsArray(double first, params double[] others) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double), typeof(double[])}, new object[]{first, others}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs deleted file mode 100644 index 62c46abfc1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs +++ /dev/null @@ -1,79 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.VirtualMethodPlayground")] - public class VirtualMethodPlayground : DeputyBase - { - /// - /// Stability: Experimental - /// - public VirtualMethodPlayground(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VirtualMethodPlayground(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VirtualMethodPlayground(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMeAsync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"index\",\"type\":{\"primitive\":\"number\"}}]", isAsync: true)] - public virtual double OverrideMeAsync(double index) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMeSync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"index\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual double OverrideMeSync(double index) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "parallelSumAsync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]", isAsync: true)] - public virtual double ParallelSumAsync(double count) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "serialSumAsync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]", isAsync: true)] - public virtual double SerialSumAsync(double count) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "sumSync", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]")] - public virtual double SumSync(double count) - { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs deleted file mode 100644 index f1e4dcf79b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This test is used to validate the runtimes can return correctly from a void callback. - /// - /// - /// Implement overrideMe (method does not have to do anything). - /// Invoke callMe - /// Verify that methodWasCalled is true. - /// - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] - public abstract class VoidCallback : DeputyBase - { - /// - /// Stability: Experimental - /// - protected VoidCallback(): base(new DeputyProps(new object[]{})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VoidCallback(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected VoidCallback(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "callMe")] - public virtual void CallMe() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMe")] - protected abstract void OverrideMe(); - - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "methodWasCalled", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool MethodWasCalled - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs deleted file mode 100644 index 17fcef5856..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// This test is used to validate the runtimes can return correctly from a void callback. - /// - /// - /// Implement overrideMe (method does not have to do anything). - /// Invoke callMe - /// Verify that methodWasCalled is true. - /// - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] - internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.VoidCallback - { - private VoidCallbackProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "overrideMe")] - protected override void OverrideMe() - { - InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs deleted file mode 100644 index 2dfcb9651f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// Verifies that private property declarations in constructor arguments are hidden. - /// - /// Stability: Experimental - /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.WithPrivatePropertyInConstructor", parametersJson: "[{\"name\":\"privateField\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] - public class WithPrivatePropertyInConstructor : DeputyBase - { - /// - /// Stability: Experimental - /// - public WithPrivatePropertyInConstructor(string? privateField = null): base(new DeputyProps(new object?[]{privateField})) - { - } - - /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected WithPrivatePropertyInConstructor(ByRefValue reference): base(reference) - { - } - - /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - protected WithPrivatePropertyInConstructor(DeputyProps props): base(props) - { - } - - /// - /// Stability: Experimental - /// - [JsiiProperty(name: "success", typeJson: "{\"primitive\":\"boolean\"}")] - public virtual bool Success - { - get => GetInstanceProperty(); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs deleted file mode 100644 index f1f382a288..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -[assembly: JsiiAssembly("jsii-calc", "0.0.0", "jsii-calc-0.0.0.tgz")] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/pom.xml b/packages/jsii-pacmak/test/expected.jsii-calc/java/pom.xml deleted file mode 100644 index 027d425e2c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/pom.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - 4.0.0 - ${project.groupId}:${project.artifactId} - A simple calcuator built on JSII. - https://github.com/aws/jsii - - - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - repo - An OSI-approved license - - - - - Amazon Web Services - - author - - https://aws.amazon.com - - - Elad Ben-Israel - - maintainer - - https://github.com/eladb - - - Rico Huijbers - - maintainer - - https://github.com/rix0rrr - - - Romain Marcadier-Muller - - maintainer - - https://github.com/RomainMuller - - - - scm:git:https://github.com/aws/jsii.git - https://github.com/aws/jsii.git - - software.amazon.jsii.tests - calculator - 0.0.0 - jar - - UTF-8 - - - - software.amazon.jsii.tests - calculator-base - [0.0.0,0.0.1) - - - software.amazon.jsii.tests - calculator-base-of-base - [0.0.0,0.0.1) - - - software.amazon.jsii.tests - calculator-lib - [0.0.0.DEVPREVIEW,0.0.1.DEVPREVIEW) - - - software.amazon.jsii - jsii-runtime - [0.0.0,0.0.1) - - - org.jetbrains - annotations - [16.0.3,20.0.0) - - - - javax.annotation - javax.annotation-api - [1.3.2,1.4.0) - compile - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - true - - true - true - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - - attach-javadocs - - jar - - - - - false - protected - - **/$Module.java - - -J-XX:+TieredCompilation - -J-XX:TieredStopAtLevel=1 - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - enforce-maven - - enforce - - - - - 3.6 - - - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.7 - - false - - - - - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java deleted file mode 100644 index 9015a7e763..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -import static java.util.Arrays.asList; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.io.Reader; -import java.io.UncheckedIOException; - -import java.nio.charset.StandardCharsets; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import software.amazon.jsii.JsiiModule; - -public final class $Module extends JsiiModule { - private static final Map MODULE_TYPES = load(); - - private static Map load() { - final Map result = new HashMap<>(); - final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/$Module.txt"); - final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); - final BufferedReader br = new BufferedReader(rd)) { - br.lines() - .filter(line -> !line.trim().isEmpty()) - .forEach(line -> { - final String[] parts = line.split("=", 2); - final String fqn = parts[0]; - final String className = parts[1]; - result.put(fqn, className); - }); - } - catch (final IOException exception) { - throw new UncheckedIOException(exception); - } - return result; - } - - private final Map> cache = new HashMap<>(); - - public $Module() { - super("jsii-calc", "0.0.0", $Module.class, "jsii-calc@0.0.0.jsii.tgz"); - } - - @Override - public List> getDependencies() { - return asList(software.amazon.jsii.tests.calculator.base.$Module.class, software.amazon.jsii.tests.calculator.baseofbase.$Module.class, software.amazon.jsii.tests.calculator.lib.$Module.class); - } - - @Override - protected Class resolveClass(final String fqn) throws ClassNotFoundException { - if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException("Unknown JSII type: " + fqn); - } - String className = MODULE_TYPES.get(fqn); - if (!this.cache.containsKey(className)) { - this.cache.put(className, this.findClass(className)); - } - return this.cache.get(className); - } - - private Class findClass(final String binaryName) { - try { - return Class.forName(binaryName); - } - catch (final ClassNotFoundException exception) { - throw new RuntimeException(exception); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java deleted file mode 100644 index 6254fd7922..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java +++ /dev/null @@ -1,90 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClass") -public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.AbstractClassBase implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { - - protected AbstractClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AbstractClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected AbstractClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param name This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull java.lang.String abstractMethod(final @org.jetbrains.annotations.NotNull java.lang.String name); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number nonAbstractMethod() { - return this.jsiiCall("nonAbstractMethod", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet("propFromInterface", java.lang.String.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClass { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet("propFromInterface", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { - return this.jsiiGet("abstractProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - *

- * @param name This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String abstractMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return this.jsiiCall("abstractMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java deleted file mode 100644 index 9e0799861a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java +++ /dev/null @@ -1,51 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassBase") -public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject { - - protected AbstractClassBase(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AbstractClassBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected AbstractClassBase() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClassBase { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { - return this.jsiiGet("abstractProperty", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java deleted file mode 100644 index 425c3035bc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java +++ /dev/null @@ -1,51 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassReturner") -public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { - - protected AbstractClassReturner(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AbstractClassReturner(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AbstractClassReturner() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClass giveMeAbstract() { - return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.AbstractClass.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass giveMeInterface() { - return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClassBase getReturnAbstractFromProperty() { - return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.AbstractClassBase.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java deleted file mode 100644 index 28c94f7129..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java +++ /dev/null @@ -1,99 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Ensures abstract members implementations correctly register overrides in various languages. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractSuite") -public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { - - protected AbstractSuite(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AbstractSuite(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected AbstractSuite() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param str This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected abstract @org.jetbrains.annotations.NotNull java.lang.String someMethod(final @org.jetbrains.annotations.NotNull java.lang.String str); - - /** - * Sets `seed` to `this.property`, then calls `someMethod` with `this.property` and returns the result. - *

- * EXPERIMENTAL - *

- * @param seed a `string`. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String workItAll(final @org.jetbrains.annotations.NotNull java.lang.String seed) { - return this.jsiiCall("workItAll", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(seed, "seed is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected abstract @org.jetbrains.annotations.NotNull java.lang.String getProperty(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected abstract void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractSuite { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet("property", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("property", java.util.Objects.requireNonNull(value, "property is required")); - } - - /** - * EXPERIMENTAL - *

- * @param str This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - protected @org.jetbrains.annotations.NotNull java.lang.String someMethod(final @org.jetbrains.annotations.NotNull java.lang.String str) { - return this.jsiiCall("someMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(str, "str is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Add.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Add.java deleted file mode 100644 index 98a711ff34..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Add.java +++ /dev/null @@ -1,56 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * The "+" binary operation. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Add") -public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { - - protected Add(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Add(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a BinaryOperation. - *

- * EXPERIMENTAL - *

- * @param lhs Left-hand side operand. This parameter is required. - * @param rhs Right-hand side operand. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Add(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); - } - - /** - * String representation of the value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - - /** - * The value. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java deleted file mode 100644 index 1e2ba42994..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java +++ /dev/null @@ -1,380 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This class includes property for all types supported by jsii. - *

- * The setters will validate - * that the value set is of the expected type and throw otherwise. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypes") -public class AllTypes extends software.amazon.jsii.JsiiObject { - - protected AllTypes(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AllTypes(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AllTypes() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param inp This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void anyIn(final @org.jetbrains.annotations.NotNull java.lang.Object inp) { - this.jsiiCall("anyIn", software.amazon.jsii.NativeType.VOID, new Object[] { inp }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object anyOut() { - return this.jsiiCall("anyOut", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum value) { - return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getEnumPropertyValue() { - return this.jsiiGet("enumPropertyValue", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getAnyArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet("anyArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setAnyArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("anyArrayProperty", java.util.Objects.requireNonNull(value, "anyArrayProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map getAnyMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("anyMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setAnyMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet("anyMapProperty", java.util.Objects.requireNonNull(value, "anyMapProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object getAnyProperty() { - return this.jsiiGet("anyProperty", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setAnyProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { - this.jsiiSet("anyProperty", java.util.Objects.requireNonNull(value, "anyProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet("arrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("arrayProperty", java.util.Objects.requireNonNull(value, "arrayProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getBooleanProperty() { - return this.jsiiGet("booleanProperty", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setBooleanProperty(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - this.jsiiSet("booleanProperty", java.util.Objects.requireNonNull(value, "booleanProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.time.Instant getDateProperty() { - return this.jsiiGet("dateProperty", java.time.Instant.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setDateProperty(final @org.jetbrains.annotations.NotNull java.time.Instant value) { - this.jsiiSet("dateProperty", java.util.Objects.requireNonNull(value, "dateProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum getEnumProperty() { - return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.AllTypesEnum.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum value) { - this.jsiiSet("enumProperty", java.util.Objects.requireNonNull(value, "enumProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode getJsonProperty() { - return this.jsiiGet("jsonProperty", com.fasterxml.jackson.databind.node.ObjectNode.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setJsonProperty(final @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode value) { - this.jsiiSet("jsonProperty", java.util.Objects.requireNonNull(value, "jsonProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map getMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("mapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Number.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet("mapProperty", java.util.Objects.requireNonNull(value, "mapProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getNumberProperty() { - return this.jsiiGet("numberProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setNumberProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("numberProperty", java.util.Objects.requireNonNull(value, "numberProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getStringProperty() { - return this.jsiiGet("stringProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setStringProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("stringProperty", java.util.Objects.requireNonNull(value, "stringProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getUnionArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet("unionArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("unionArrayProperty", java.util.Objects.requireNonNull(value, "unionArrayProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map getUnionMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("unionMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet("unionMapProperty", java.util.Objects.requireNonNull(value, "unionMapProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object getUnionProperty() { - return this.jsiiGet("unionProperty", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Multiply value) { - this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number value) { - this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getUnknownArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet("unknownArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnknownArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("unknownArrayProperty", java.util.Objects.requireNonNull(value, "unknownArrayProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map getUnknownMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("unknownMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnknownMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet("unknownMapProperty", java.util.Objects.requireNonNull(value, "unknownMapProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object getUnknownProperty() { - return this.jsiiGet("unknownProperty", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnknownProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { - this.jsiiSet("unknownProperty", java.util.Objects.requireNonNull(value, "unknownProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum getOptionalEnumValue() { - return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.StringEnum.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum value) { - this.jsiiSet("optionalEnumValue", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java deleted file mode 100644 index 5037016559..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java +++ /dev/null @@ -1,25 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypesEnum") -public enum AllTypesEnum { - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - MY_ENUM_VALUE, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - YOUR_ENUM_VALUE, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - THIS_IS_GREAT, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java deleted file mode 100644 index 255bf24728..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllowedMethodNames") -public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { - - protected AllowedMethodNames(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AllowedMethodNames(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AllowedMethodNames() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param _p1 This parameter is required. - * @param _p2 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void getBar(final @org.jetbrains.annotations.NotNull java.lang.String _p1, final @org.jetbrains.annotations.NotNull java.lang.Number _p2) { - this.jsiiCall("getBar", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_p1, "_p1 is required"), java.util.Objects.requireNonNull(_p2, "_p2 is required") }); - } - - /** - * getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. - *

- * EXPERIMENTAL - *

- * @param withParam This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getFoo(final @org.jetbrains.annotations.NotNull java.lang.String withParam) { - return this.jsiiCall("getFoo", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(withParam, "withParam is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param _x This parameter is required. - * @param _y This parameter is required. - * @param _z This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setBar(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y, final @org.jetbrains.annotations.NotNull java.lang.Boolean _z) { - this.jsiiCall("setBar", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, "_x is required"), java.util.Objects.requireNonNull(_y, "_y is required"), java.util.Objects.requireNonNull(_z, "_z is required") }); - } - - /** - * setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - *

- * EXPERIMENTAL - *

- * @param _x This parameter is required. - * @param _y This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y) { - this.jsiiCall("setFoo", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, "_x is required"), java.util.Objects.requireNonNull(_y, "_y is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java deleted file mode 100644 index 24b0c43215..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java +++ /dev/null @@ -1,107 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AmbiguousParameters") -public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { - - protected AmbiguousParameters(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AmbiguousParameters(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param scope This parameter is required. - * @param props This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(props, "props is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType getProps() { - return this.jsiiGet("props", software.amazon.jsii.tests.calculator.StructParameterType.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell getScope() { - return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.Bell.class); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - * @param scope This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final software.amazon.jsii.tests.calculator.Bell scope) { - return new Builder(scope); - } - - private final software.amazon.jsii.tests.calculator.Bell scope; - private final software.amazon.jsii.tests.calculator.StructParameterType.Builder props; - - private Builder(final software.amazon.jsii.tests.calculator.Bell scope) { - this.scope = scope; - this.props = new software.amazon.jsii.tests.calculator.StructParameterType.Builder(); - } - - /** - * EXPERIMENTAL - *

- * @return {@code this} - * @param scope This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder scope(final java.lang.String scope) { - this.props.scope(scope); - return this; - } - - /** - * EXPERIMENTAL - *

- * @return {@code this} - * @param props This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder props(final java.lang.Boolean props) { - this.props.props(props); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.AmbiguousParameters build() { - return new software.amazon.jsii.tests.calculator.AmbiguousParameters( - this.scope, - this.props.build() - ); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java deleted file mode 100644 index bf6d35a613..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AnonymousImplementationProvider") -public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { - - protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AnonymousImplementationProvider() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java deleted file mode 100644 index 110e076e5a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java +++ /dev/null @@ -1,85 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AsyncVirtualMethods") -public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { - - protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AsyncVirtualMethods() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number callMe() { - return this.jsiiAsyncCall("callMe", java.lang.Number.class); - } - - /** - * Just calls "overrideMeToo". - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number callMe2() { - return this.jsiiAsyncCall("callMe2", java.lang.Number.class); - } - - /** - * This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - *

- * This is a "double promise" situation, which - * means that callbacks are not going to be available immediate, but only - * after an "immediates" cycle. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number callMeDoublePromise() { - return this.jsiiAsyncCall("callMeDoublePromise", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number dontOverrideMe() { - return this.jsiiCall("dontOverrideMe", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - *

- * @param mult This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number overrideMe(final @org.jetbrains.annotations.NotNull java.lang.Number mult) { - return this.jsiiAsyncCall("overrideMe", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(mult, "mult is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeToo() { - return this.jsiiAsyncCall("overrideMeToo", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java deleted file mode 100644 index f17f3da582..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AugmentableClass") -public class AugmentableClass extends software.amazon.jsii.JsiiObject { - - protected AugmentableClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected AugmentableClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AugmentableClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodOne() { - this.jsiiCall("methodOne", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodTwo() { - this.jsiiCall("methodTwo", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java deleted file mode 100644 index 65b77a885a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java +++ /dev/null @@ -1,27 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BaseJsii976") -public class BaseJsii976 extends software.amazon.jsii.JsiiObject { - - protected BaseJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected BaseJsii976(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public BaseJsii976() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java deleted file mode 100644 index 1bd3b04f6e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java +++ /dev/null @@ -1,52 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Bell") -public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { - - protected Bell(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Bell(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Bell() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void ring() { - this.jsiiCall("ring", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getRung() { - return this.jsiiGet("rung", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setRung(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - this.jsiiSet("rung", java.util.Objects.requireNonNull(value, "rung is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java deleted file mode 100644 index 989aa1da99..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java +++ /dev/null @@ -1,104 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Represents an operation with two operands. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BinaryOperation") -public abstract class BinaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation implements software.amazon.jsii.tests.calculator.lib.IFriendly { - - protected BinaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected BinaryOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a BinaryOperation. - *

- * EXPERIMENTAL - *

- * @param lhs Left-hand side operand. This parameter is required. - * @param rhs Right-hand side operand. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected BinaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); - } - - /** - * Say hello! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - - /** - * Left-hand side operand. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getLhs() { - return this.jsiiGet("lhs", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * Right-hand side operand. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getRhs() { - return this.jsiiGet("rhs", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.BinaryOperation { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * The value. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * Say hello! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java deleted file mode 100644 index a5300012f9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java +++ /dev/null @@ -1,305 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * A calculator which maintains a current value and allows adding operations. - *

- * Here's how you use it: - *

- *

- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * Calculator calculator = new Calculator();
- * calculator.add(5);
- * calculator.mul(3);
- * System.out.println(calculator.expression.getValue());
- * 
- *

- * I will repeat this example again, but in an @example tag. - *

- * Example: - *

- *

{@code
- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * Calculator calculator = new Calculator();
- * calculator.add(5);
- * calculator.mul(3);
- * System.out.println(calculator.expression.getValue());}
- *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Calculator") -public class Calculator extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { - - protected Calculator(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Calculator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a Calculator object. - *

- * EXPERIMENTAL - *

- * @param props Initialization properties. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Calculator(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.CalculatorProps props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { props }); - } - - /** - * Creates a Calculator object. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Calculator() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Adds a number to the current value. - *

- * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void add(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall("add", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * Multiplies the current value by a number. - *

- * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void mul(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall("mul", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * Negates the current value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void neg() { - this.jsiiCall("neg", software.amazon.jsii.NativeType.VOID); - } - - /** - * Raises the current value by a power. - *

- * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void pow(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall("pow", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * Returns teh value of the union property (if defined). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number readUnionValue() { - return this.jsiiCall("readUnionValue", java.lang.Number.class); - } - - /** - * Returns the expression. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * A log of all operations. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getOperationsLog() { - return java.util.Collections.unmodifiableList(this.jsiiGet("operationsLog", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); - } - - /** - * A map of per operation name of all operations performed. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map> getOperationsMap() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("operationsMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))))); - } - - /** - * The current value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getCurr() { - return this.jsiiGet("curr", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * The current value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setCurr(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value value) { - this.jsiiSet("curr", java.util.Objects.requireNonNull(value, "curr is required")); - } - - /** - * The maximum value allows in this calculator. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Number getMaxValue() { - return this.jsiiGet("maxValue", java.lang.Number.class); - } - - /** - * The maximum value allows in this calculator. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMaxValue(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("maxValue", value); - } - - /** - * Example of a property that accepts a union of types. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { - return this.jsiiGet("unionProperty", java.lang.Object.class); - } - - /** - * Example of a property that accepts a union of types. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Add value) { - this.jsiiSet("unionProperty", value); - } - - /** - * Example of a property that accepts a union of types. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Multiply value) { - this.jsiiSet("unionProperty", value); - } - - /** - * Example of a property that accepts a union of types. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Power value) { - this.jsiiSet("unionProperty", value); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.Calculator}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create() { - return new Builder(); - } - - private software.amazon.jsii.tests.calculator.CalculatorProps.Builder props; - - private Builder() { - } - - /** - * The initial value of the calculator. - *

- * NOTE: Any number works here, it's fine. - *

- * Default: 0 - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param initialValue The initial value of the calculator. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder initialValue(final java.lang.Number initialValue) { - this.props().initialValue(initialValue); - return this; - } - - /** - * The maximum value the calculator can store. - *

- * Default: none - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param maximumValue The maximum value the calculator can store. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder maximumValue(final java.lang.Number maximumValue) { - this.props().maximumValue(maximumValue); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.Calculator}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.Calculator build() { - return new software.amazon.jsii.tests.calculator.Calculator( - this.props != null ? this.props.build() : null - ); - } - - private software.amazon.jsii.tests.calculator.CalculatorProps.Builder props() { - if (this.props == null) { - this.props = new software.amazon.jsii.tests.calculator.CalculatorProps.Builder(); - } - return this.props; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java deleted file mode 100644 index 1fbe4a7245..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java +++ /dev/null @@ -1,167 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Properties for Calculator. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.CalculatorProps") -@software.amazon.jsii.Jsii.Proxy(CalculatorProps.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { - - /** - * The initial value of the calculator. - *

- * NOTE: Any number works here, it's fine. - *

- * Default: 0 - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getInitialValue() { - return null; - } - - /** - * The maximum value the calculator can store. - *

- * Default: none - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getMaximumValue() { - return null; - } - - /** - * @return a {@link Builder} of {@link CalculatorProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link CalculatorProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number initialValue; - private java.lang.Number maximumValue; - - /** - * Sets the value of {@link CalculatorProps#getInitialValue} - * @param initialValue The initial value of the calculator. - * NOTE: Any number works here, it's fine. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder initialValue(java.lang.Number initialValue) { - this.initialValue = initialValue; - return this; - } - - /** - * Sets the value of {@link CalculatorProps#getMaximumValue} - * @param maximumValue The maximum value the calculator can store. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder maximumValue(java.lang.Number maximumValue) { - this.maximumValue = maximumValue; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link CalculatorProps} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public CalculatorProps build() { - return new Jsii$Proxy(initialValue, maximumValue); - } - } - - /** - * An implementation for {@link CalculatorProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CalculatorProps { - private final java.lang.Number initialValue; - private final java.lang.Number maximumValue; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.initialValue = this.jsiiGet("initialValue", java.lang.Number.class); - this.maximumValue = this.jsiiGet("maximumValue", java.lang.Number.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number initialValue, final java.lang.Number maximumValue) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.initialValue = initialValue; - this.maximumValue = maximumValue; - } - - @Override - public java.lang.Number getInitialValue() { - return this.initialValue; - } - - @Override - public java.lang.Number getMaximumValue() { - return this.maximumValue; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getInitialValue() != null) { - data.set("initialValue", om.valueToTree(this.getInitialValue())); - } - if (this.getMaximumValue() != null) { - data.set("maximumValue", om.valueToTree(this.getMaximumValue())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.CalculatorProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - CalculatorProps.Jsii$Proxy that = (CalculatorProps.Jsii$Proxy) o; - - if (this.initialValue != null ? !this.initialValue.equals(that.initialValue) : that.initialValue != null) return false; - return this.maximumValue != null ? this.maximumValue.equals(that.maximumValue) : that.maximumValue == null; - } - - @Override - public int hashCode() { - int result = this.initialValue != null ? this.initialValue.hashCode() : 0; - result = 31 * result + (this.maximumValue != null ? this.maximumValue.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java deleted file mode 100644 index 8e7dbf90c4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java +++ /dev/null @@ -1,140 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ChildStruct982") -@software.amazon.jsii.Jsii.Proxy(ChildStruct982.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.ParentStruct982 { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getBar(); - - /** - * @return a {@link Builder} of {@link ChildStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ChildStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number bar; - private java.lang.String foo; - - /** - * Sets the value of {@link ChildStruct982#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(java.lang.Number bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link ChildStruct982#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.String foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ChildStruct982} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ChildStruct982 build() { - return new Jsii$Proxy(bar, foo); - } - } - - /** - * An implementation for {@link ChildStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ChildStruct982 { - private final java.lang.Number bar; - private final java.lang.String foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.bar = this.jsiiGet("bar", java.lang.Number.class); - this.foo = this.jsiiGet("foo", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number bar, final java.lang.String foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.lang.Number getBar() { - return this.bar; - } - - @Override - public java.lang.String getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("bar", om.valueToTree(this.getBar())); - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ChildStruct982")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ChildStruct982.Jsii$Proxy that = (ChildStruct982.Jsii$Proxy) o; - - if (!bar.equals(that.bar)) return false; - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.bar.hashCode(); - result = 31 * result + (this.foo.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java deleted file mode 100644 index 0c4b70ea07..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java +++ /dev/null @@ -1,97 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsTheInternalInterface") -public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { - - protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassThatImplementsTheInternalInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet("a", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet("b", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet("c", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getD() { - return this.jsiiGet("d", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setD(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("d", java.util.Objects.requireNonNull(value, "d is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java deleted file mode 100644 index 3dc953ff91..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java +++ /dev/null @@ -1,97 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsThePrivateInterface") -public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { - - protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassThatImplementsThePrivateInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet("a", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet("b", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet("c", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getE() { - return this.jsiiGet("e", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setE(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("e", java.util.Objects.requireNonNull(value, "e is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java deleted file mode 100644 index fde75d67a0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java +++ /dev/null @@ -1,110 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithCollections") -public class ClassWithCollections extends software.amazon.jsii.JsiiObject { - - protected ClassWithCollections(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param map This parameter is required. - * @param array This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.Map map, final @org.jetbrains.annotations.NotNull java.util.List array) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(map, "map is required"), java.util.Objects.requireNonNull(array, "array is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List createAList() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map createAMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List getStaticArray() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setStaticArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map getStaticMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setStaticMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getArray() { - return java.util.Collections.unmodifiableList(this.jsiiGet("array", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("array", java.util.Objects.requireNonNull(value, "array is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.Map getMap() { - return java.util.Collections.unmodifiableMap(this.jsiiGet("map", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet("map", java.util.Objects.requireNonNull(value, "map is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java deleted file mode 100644 index 8d92529c0e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java +++ /dev/null @@ -1,38 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This class has docs. - *

- * The docs are great. They're a bunch of tags. - *

- * Example: - *

- *

{@code
- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * public void anExample() {
- * }}
- *

- * @see https://aws.amazon.com/ - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithDocs") -public class ClassWithDocs extends software.amazon.jsii.JsiiObject { - - protected ClassWithDocs(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithDocs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithDocs() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java deleted file mode 100644 index 8909302c32..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java +++ /dev/null @@ -1,47 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithJavaReservedWords") -public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject { - - protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param int This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithJavaReservedWords(final @org.jetbrains.annotations.NotNull java.lang.String intValue) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(intValue, "intValue is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param assert This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String doImport(final @org.jetbrains.annotations.NotNull java.lang.String assertValue) { - return this.jsiiCall("import", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(assertValue, "assertValue is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getIntValue() { - return this.jsiiGet("int", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java deleted file mode 100644 index e94f7f7044..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithMutableObjectLiteralProperty") -public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii.JsiiObject { - - protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithMutableObjectLiteralProperty() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral getMutableObject() { - return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral value) { - this.jsiiSet("mutableObject", java.util.Objects.requireNonNull(value, "mutableObject is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java deleted file mode 100644 index aa9b4d92d6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Class that implements interface properties automatically, but using a private constructor. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties") -public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { - - protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param readOnlyString This parameter is required. - * @param readWriteString This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet("readOnlyString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet("readWriteString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java deleted file mode 100644 index 50693499d4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java +++ /dev/null @@ -1,62 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This tries to confuse Jackson by having overloaded property setters. - *

- * EXPERIMENTAL - *

- * @see https://github.com/aws/aws-cdk/issues/4080 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJackson") -public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { - - protected ConfusingToJackson(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ConfusingToJackson(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJackson makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct makeStructInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { - return this.jsiiGet("unionProperty", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.IFriendly value) { - this.jsiiSet("unionProperty", value); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setUnionProperty(final @org.jetbrains.annotations.Nullable java.util.List value) { - this.jsiiSet("unionProperty", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java deleted file mode 100644 index 1dc3eb8720..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java +++ /dev/null @@ -1,132 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJacksonStruct") -@software.amazon.jsii.Jsii.Proxy(ConfusingToJacksonStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { - return null; - } - - /** - * @return a {@link Builder} of {@link ConfusingToJacksonStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ConfusingToJacksonStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Object unionProperty; - - /** - * Sets the value of {@link ConfusingToJacksonStruct#getUnionProperty} - * @param unionProperty the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder unionProperty(software.amazon.jsii.tests.calculator.lib.IFriendly unionProperty) { - this.unionProperty = unionProperty; - return this; - } - - /** - * Sets the value of {@link ConfusingToJacksonStruct#getUnionProperty} - * @param unionProperty the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder unionProperty(java.util.List unionProperty) { - this.unionProperty = unionProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ConfusingToJacksonStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ConfusingToJacksonStruct build() { - return new Jsii$Proxy(unionProperty); - } - } - - /** - * An implementation for {@link ConfusingToJacksonStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConfusingToJacksonStruct { - private final java.lang.Object unionProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.unionProperty = this.jsiiGet("unionProperty", java.lang.Object.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Object unionProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.unionProperty = unionProperty; - } - - @Override - public java.lang.Object getUnionProperty() { - return this.unionProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getUnionProperty() != null) { - data.set("unionProperty", om.valueToTree(this.getUnionProperty())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ConfusingToJacksonStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ConfusingToJacksonStruct.Jsii$Proxy that = (ConfusingToJacksonStruct.Jsii$Proxy) o; - - return this.unionProperty != null ? this.unionProperty.equals(that.unionProperty) : that.unionProperty == null; - } - - @Override - public int hashCode() { - int result = this.unionProperty != null ? this.unionProperty.hashCode() : 0; - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java deleted file mode 100644 index df0af47c17..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java +++ /dev/null @@ -1,29 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConstructorPassesThisOut") -public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { - - protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param consumer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer consumer) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, "consumer is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java deleted file mode 100644 index c74757871c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java +++ /dev/null @@ -1,83 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Constructors") -public class Constructors extends software.amazon.jsii.JsiiObject { - - protected Constructors(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Constructors(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Constructors() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface hiddenInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PublicClass makeClass() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.PublicClass.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface makeInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface2 makeInterface2() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.IPublicInterface2.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java deleted file mode 100644 index 10ee1b8178..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumePureInterface") -public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { - - protected ConsumePureInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ConsumePureInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param delegate This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IStructReturningDelegate delegate) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB workItBaby() { - return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.StructB.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java deleted file mode 100644 index 2af7cf73dd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java +++ /dev/null @@ -1,144 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Test calling back to consumers that implement interfaces. - *

- * Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - * the method on the argument that they're passed... - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumerCanRingBell") -public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { - - protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConsumerCanRingBell() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * ...if the interface is implemented using an object literal. - *

- * Returns whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * ...if the interface is implemented using a private class. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * ...if the interface is implemented using a public class. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * If the parameter is a concrete class instead of an interface. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * ...if the interface is implemented using an object literal. - *

- * Returns whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall("implementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * ...if the interface is implemented using a private class. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall("implementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * ...if the interface is implemented using a public class. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall("implementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } - - /** - * If the parameter is a concrete class instead of an interface. - *

- * Return whether the bell was rung. - *

- * EXPERIMENTAL - *

- * @param ringer This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { - return this.jsiiCall("whenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java deleted file mode 100644 index 9089d5d47b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java +++ /dev/null @@ -1,47 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumersOfThisCrazyTypeSystem") -public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObject { - - protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConsumersOfThisCrazyTypeSystem() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnotherPublicInterface obj) { - return this.jsiiCall("consumeAnotherPublicInterface", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.INonInternalInterface obj) { - return this.jsiiCall("consumeNonInternalInterface", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java deleted file mode 100644 index abcb865f83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java +++ /dev/null @@ -1,67 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies proper type handling through dynamic overrides. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DataRenderer") -public class DataRenderer extends software.amazon.jsii.JsiiObject { - - protected DataRenderer(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DataRenderer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DataRenderer() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param data - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String render(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.MyFirstStruct data) { - return this.jsiiCall("render", java.lang.String.class, new Object[] { data }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String render() { - return this.jsiiCall("render", java.lang.String.class); - } - - /** - * EXPERIMENTAL - *

- * @param data This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String renderArbitrary(final @org.jetbrains.annotations.NotNull java.util.Map data) { - return this.jsiiCall("renderArbitrary", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(data, "data is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param map This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String renderMap(final @org.jetbrains.annotations.NotNull java.util.Map map) { - return this.jsiiCall("renderMap", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(map, "map is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java deleted file mode 100644 index 804a6ff2e9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java +++ /dev/null @@ -1,87 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DefaultedConstructorArgument") -public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObject { - - protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - * @param arg2 - * @param arg3 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1, arg2, arg3 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - * @param arg2 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1, arg2 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DefaultedConstructorArgument(final @org.jetbrains.annotations.Nullable java.lang.Number arg1) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { arg1 }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DefaultedConstructorArgument() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { - return this.jsiiGet("arg1", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.time.Instant getArg3() { - return this.jsiiGet("arg3", java.time.Instant.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.String getArg2() { - return this.jsiiGet("arg2", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java deleted file mode 100644 index 44d9540c2d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java +++ /dev/null @@ -1,52 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * 1. - *

- * call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - * 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Demonstrate982") -public class Demonstrate982 extends software.amazon.jsii.JsiiObject { - - protected Demonstrate982(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Demonstrate982(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Demonstrate982() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * It's dangerous to go alone! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ChildStruct982 takeThis() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.ChildStruct982.class); - } - - /** - * It's dangerous to go alone! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ParentStruct982 takeThisToo() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.ParentStruct982.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java deleted file mode 100644 index 164665b54e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java +++ /dev/null @@ -1,78 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * @deprecated a pretty boring class - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedClass") -public class DeprecatedClass extends software.amazon.jsii.JsiiObject { - - protected DeprecatedClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DeprecatedClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * @deprecated this constructor is "just" okay - * @param readonlyString This parameter is required. - * @param mutableNumber - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); - } - - /** - * @deprecated this constructor is "just" okay - * @param readonlyString This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); - } - - /** - * @deprecated it was a bad idea - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - - /** - * @deprecated this is not always "wazoo", be ready to be disappointed - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * @deprecated shouldn't have been mutable - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * @deprecated shouldn't have been mutable - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java deleted file mode 100644 index aee4dd6aaf..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java +++ /dev/null @@ -1,23 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * @deprecated your deprecated selection of bad options - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedEnum") -public enum DeprecatedEnum { - /** - * @deprecated option A is not great - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - OPTION_A, - /** - * @deprecated option B is kinda bad, too - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - OPTION_B, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java deleted file mode 100644 index 0d22ab7c20..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java +++ /dev/null @@ -1,125 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * @deprecated it just wraps a string - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedStruct") -@software.amazon.jsii.Jsii.Proxy(DeprecatedStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * @deprecated well, yeah - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); - - /** - * @return a {@link Builder} of {@link DeprecatedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DeprecatedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String readonlyProperty; - - /** - * Sets the value of {@link DeprecatedStruct#getReadonlyProperty} - * @param readonlyProperty the value to be set. This parameter is required. - * @return {@code this} - * @deprecated well, yeah - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder readonlyProperty(java.lang.String readonlyProperty) { - this.readonlyProperty = readonlyProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DeprecatedStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public DeprecatedStruct build() { - return new Jsii$Proxy(readonlyProperty); - } - } - - /** - * An implementation for {@link DeprecatedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DeprecatedStruct { - private final java.lang.String readonlyProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String readonlyProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); - } - - @Override - public java.lang.String getReadonlyProperty() { - return this.readonlyProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DeprecatedStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DeprecatedStruct.Jsii$Proxy that = (DeprecatedStruct.Jsii$Proxy) o; - - return this.readonlyProperty.equals(that.readonlyProperty); - } - - @Override - public int hashCode() { - int result = this.readonlyProperty.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java deleted file mode 100644 index 3ea7d58dab..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java +++ /dev/null @@ -1,354 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * A struct which derives from another struct. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedStruct") -@software.amazon.jsii.Jsii.Proxy(DerivedStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.MyFirstStruct { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.time.Instant getAnotherRequired(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getBool(); - - /** - * An example of a non primitive property. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive(); - - /** - * This is optional. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.util.Map getAnotherOptional() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Object getOptionalAny() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.util.List getOptionalArray() { - return null; - } - - /** - * @return a {@link Builder} of {@link DerivedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DerivedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.time.Instant anotherRequired; - private java.lang.Boolean bool; - private software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; - private java.util.Map anotherOptional; - private java.lang.Object optionalAny; - private java.util.List optionalArray; - private java.lang.Number anumber; - private java.lang.String astring; - private java.util.List firstOptional; - - /** - * Sets the value of {@link DerivedStruct#getAnotherRequired} - * @param anotherRequired the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder anotherRequired(java.time.Instant anotherRequired) { - this.anotherRequired = anotherRequired; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getBool} - * @param bool the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bool(java.lang.Boolean bool) { - this.bool = bool; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getNonPrimitive} - * @param nonPrimitive An example of a non primitive property. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nonPrimitive(software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive) { - this.nonPrimitive = nonPrimitive; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getAnotherOptional} - * @param anotherOptional This is optional. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder anotherOptional(java.util.Map anotherOptional) { - this.anotherOptional = anotherOptional; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getOptionalAny} - * @param optionalAny the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalAny(java.lang.Object optionalAny) { - this.optionalAny = optionalAny; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getOptionalArray} - * @param optionalArray the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalArray(java.util.List optionalArray) { - this.optionalArray = optionalArray; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getAnumber} - * @param anumber An awesome number value. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder anumber(java.lang.Number anumber) { - this.anumber = anumber; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getAstring} - * @param astring A string value. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder astring(java.lang.String astring) { - this.astring = astring; - return this; - } - - /** - * Sets the value of {@link DerivedStruct#getFirstOptional} - * @param firstOptional the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public Builder firstOptional(java.util.List firstOptional) { - this.firstOptional = firstOptional; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DerivedStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public DerivedStruct build() { - return new Jsii$Proxy(anotherRequired, bool, nonPrimitive, anotherOptional, optionalAny, optionalArray, anumber, astring, firstOptional); - } - } - - /** - * An implementation for {@link DerivedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DerivedStruct { - private final java.time.Instant anotherRequired; - private final java.lang.Boolean bool; - private final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; - private final java.util.Map anotherOptional; - private final java.lang.Object optionalAny; - private final java.util.List optionalArray; - private final java.lang.Number anumber; - private final java.lang.String astring; - private final java.util.List firstOptional; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.anotherRequired = this.jsiiGet("anotherRequired", java.time.Instant.class); - this.bool = this.jsiiGet("bool", java.lang.Boolean.class); - this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class); - this.anotherOptional = this.jsiiGet("anotherOptional", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); - this.optionalAny = this.jsiiGet("optionalAny", java.lang.Object.class); - this.optionalArray = this.jsiiGet("optionalArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); - this.anumber = this.jsiiGet("anumber", java.lang.Number.class); - this.astring = this.jsiiGet("astring", java.lang.String.class); - this.firstOptional = this.jsiiGet("firstOptional", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, "anotherRequired is required"); - this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); - this.nonPrimitive = java.util.Objects.requireNonNull(nonPrimitive, "nonPrimitive is required"); - this.anotherOptional = anotherOptional; - this.optionalAny = optionalAny; - this.optionalArray = optionalArray; - this.anumber = java.util.Objects.requireNonNull(anumber, "anumber is required"); - this.astring = java.util.Objects.requireNonNull(astring, "astring is required"); - this.firstOptional = firstOptional; - } - - @Override - public java.time.Instant getAnotherRequired() { - return this.anotherRequired; - } - - @Override - public java.lang.Boolean getBool() { - return this.bool; - } - - @Override - public software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive() { - return this.nonPrimitive; - } - - @Override - public java.util.Map getAnotherOptional() { - return this.anotherOptional; - } - - @Override - public java.lang.Object getOptionalAny() { - return this.optionalAny; - } - - @Override - public java.util.List getOptionalArray() { - return this.optionalArray; - } - - @Override - public java.lang.Number getAnumber() { - return this.anumber; - } - - @Override - public java.lang.String getAstring() { - return this.astring; - } - - @Override - public java.util.List getFirstOptional() { - return this.firstOptional; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("anotherRequired", om.valueToTree(this.getAnotherRequired())); - data.set("bool", om.valueToTree(this.getBool())); - data.set("nonPrimitive", om.valueToTree(this.getNonPrimitive())); - if (this.getAnotherOptional() != null) { - data.set("anotherOptional", om.valueToTree(this.getAnotherOptional())); - } - if (this.getOptionalAny() != null) { - data.set("optionalAny", om.valueToTree(this.getOptionalAny())); - } - if (this.getOptionalArray() != null) { - data.set("optionalArray", om.valueToTree(this.getOptionalArray())); - } - data.set("anumber", om.valueToTree(this.getAnumber())); - data.set("astring", om.valueToTree(this.getAstring())); - if (this.getFirstOptional() != null) { - data.set("firstOptional", om.valueToTree(this.getFirstOptional())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DerivedStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DerivedStruct.Jsii$Proxy that = (DerivedStruct.Jsii$Proxy) o; - - if (!anotherRequired.equals(that.anotherRequired)) return false; - if (!bool.equals(that.bool)) return false; - if (!nonPrimitive.equals(that.nonPrimitive)) return false; - if (this.anotherOptional != null ? !this.anotherOptional.equals(that.anotherOptional) : that.anotherOptional != null) return false; - if (this.optionalAny != null ? !this.optionalAny.equals(that.optionalAny) : that.optionalAny != null) return false; - if (this.optionalArray != null ? !this.optionalArray.equals(that.optionalArray) : that.optionalArray != null) return false; - if (!anumber.equals(that.anumber)) return false; - if (!astring.equals(that.astring)) return false; - return this.firstOptional != null ? this.firstOptional.equals(that.firstOptional) : that.firstOptional == null; - } - - @Override - public int hashCode() { - int result = this.anotherRequired.hashCode(); - result = 31 * result + (this.bool.hashCode()); - result = 31 * result + (this.nonPrimitive.hashCode()); - result = 31 * result + (this.anotherOptional != null ? this.anotherOptional.hashCode() : 0); - result = 31 * result + (this.optionalAny != null ? this.optionalAny.hashCode() : 0); - result = 31 * result + (this.optionalArray != null ? this.optionalArray.hashCode() : 0); - result = 31 * result + (this.anumber.hashCode()); - result = 31 * result + (this.astring.hashCode()); - result = 31 * result + (this.firstOptional != null ? this.firstOptional.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java deleted file mode 100644 index 33e1a5da62..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceBaseLevelStruct") -@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceBaseLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getBaseLevelProperty(); - - /** - * @return a {@link Builder} of {@link DiamondInheritanceBaseLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DiamondInheritanceBaseLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String baseLevelProperty; - - /** - * Sets the value of {@link DiamondInheritanceBaseLevelStruct#getBaseLevelProperty} - * @param baseLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder baseLevelProperty(java.lang.String baseLevelProperty) { - this.baseLevelProperty = baseLevelProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DiamondInheritanceBaseLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public DiamondInheritanceBaseLevelStruct build() { - return new Jsii$Proxy(baseLevelProperty); - } - } - - /** - * An implementation for {@link DiamondInheritanceBaseLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceBaseLevelStruct { - private final java.lang.String baseLevelProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String baseLevelProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); - } - - @Override - public java.lang.String getBaseLevelProperty() { - return this.baseLevelProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceBaseLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DiamondInheritanceBaseLevelStruct.Jsii$Proxy that = (DiamondInheritanceBaseLevelStruct.Jsii$Proxy) o; - - return this.baseLevelProperty.equals(that.baseLevelProperty); - } - - @Override - public int hashCode() { - int result = this.baseLevelProperty.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java deleted file mode 100644 index 2fcdc2750a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java +++ /dev/null @@ -1,140 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceFirstMidLevelStruct") -@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getFirstMidLevelProperty(); - - /** - * @return a {@link Builder} of {@link DiamondInheritanceFirstMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DiamondInheritanceFirstMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String firstMidLevelProperty; - private java.lang.String baseLevelProperty; - - /** - * Sets the value of {@link DiamondInheritanceFirstMidLevelStruct#getFirstMidLevelProperty} - * @param firstMidLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder firstMidLevelProperty(java.lang.String firstMidLevelProperty) { - this.firstMidLevelProperty = firstMidLevelProperty; - return this; - } - - /** - * Sets the value of {@link DiamondInheritanceFirstMidLevelStruct#getBaseLevelProperty} - * @param baseLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder baseLevelProperty(java.lang.String baseLevelProperty) { - this.baseLevelProperty = baseLevelProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DiamondInheritanceFirstMidLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public DiamondInheritanceFirstMidLevelStruct build() { - return new Jsii$Proxy(firstMidLevelProperty, baseLevelProperty); - } - } - - /** - * An implementation for {@link DiamondInheritanceFirstMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceFirstMidLevelStruct { - private final java.lang.String firstMidLevelProperty; - private final java.lang.String baseLevelProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.firstMidLevelProperty = this.jsiiGet("firstMidLevelProperty", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, "firstMidLevelProperty is required"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); - } - - @Override - public java.lang.String getFirstMidLevelProperty() { - return this.firstMidLevelProperty; - } - - @Override - public java.lang.String getBaseLevelProperty() { - return this.baseLevelProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("firstMidLevelProperty", om.valueToTree(this.getFirstMidLevelProperty())); - data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceFirstMidLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy that = (DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy) o; - - if (!firstMidLevelProperty.equals(that.firstMidLevelProperty)) return false; - return this.baseLevelProperty.equals(that.baseLevelProperty); - } - - @Override - public int hashCode() { - int result = this.firstMidLevelProperty.hashCode(); - result = 31 * result + (this.baseLevelProperty.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java deleted file mode 100644 index 70bd7c38f7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java +++ /dev/null @@ -1,140 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceSecondMidLevelStruct") -@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getSecondMidLevelProperty(); - - /** - * @return a {@link Builder} of {@link DiamondInheritanceSecondMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DiamondInheritanceSecondMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String secondMidLevelProperty; - private java.lang.String baseLevelProperty; - - /** - * Sets the value of {@link DiamondInheritanceSecondMidLevelStruct#getSecondMidLevelProperty} - * @param secondMidLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondMidLevelProperty(java.lang.String secondMidLevelProperty) { - this.secondMidLevelProperty = secondMidLevelProperty; - return this; - } - - /** - * Sets the value of {@link DiamondInheritanceSecondMidLevelStruct#getBaseLevelProperty} - * @param baseLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder baseLevelProperty(java.lang.String baseLevelProperty) { - this.baseLevelProperty = baseLevelProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DiamondInheritanceSecondMidLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public DiamondInheritanceSecondMidLevelStruct build() { - return new Jsii$Proxy(secondMidLevelProperty, baseLevelProperty); - } - } - - /** - * An implementation for {@link DiamondInheritanceSecondMidLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceSecondMidLevelStruct { - private final java.lang.String secondMidLevelProperty; - private final java.lang.String baseLevelProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.secondMidLevelProperty = this.jsiiGet("secondMidLevelProperty", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String secondMidLevelProperty, final java.lang.String baseLevelProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, "secondMidLevelProperty is required"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); - } - - @Override - public java.lang.String getSecondMidLevelProperty() { - return this.secondMidLevelProperty; - } - - @Override - public java.lang.String getBaseLevelProperty() { - return this.baseLevelProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); - data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceSecondMidLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy that = (DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy) o; - - if (!secondMidLevelProperty.equals(that.secondMidLevelProperty)) return false; - return this.baseLevelProperty.equals(that.baseLevelProperty); - } - - @Override - public int hashCode() { - int result = this.secondMidLevelProperty.hashCode(); - result = 31 * result + (this.baseLevelProperty.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java deleted file mode 100644 index 65a77d8c0c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java +++ /dev/null @@ -1,186 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceTopLevelStruct") -@software.amazon.jsii.Jsii.Proxy(DiamondInheritanceTopLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getTopLevelProperty(); - - /** - * @return a {@link Builder} of {@link DiamondInheritanceTopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link DiamondInheritanceTopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String topLevelProperty; - private java.lang.String firstMidLevelProperty; - private java.lang.String baseLevelProperty; - private java.lang.String secondMidLevelProperty; - - /** - * Sets the value of {@link DiamondInheritanceTopLevelStruct#getTopLevelProperty} - * @param topLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder topLevelProperty(java.lang.String topLevelProperty) { - this.topLevelProperty = topLevelProperty; - return this; - } - - /** - * Sets the value of {@link DiamondInheritanceTopLevelStruct#getFirstMidLevelProperty} - * @param firstMidLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder firstMidLevelProperty(java.lang.String firstMidLevelProperty) { - this.firstMidLevelProperty = firstMidLevelProperty; - return this; - } - - /** - * Sets the value of {@link DiamondInheritanceTopLevelStruct#getBaseLevelProperty} - * @param baseLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder baseLevelProperty(java.lang.String baseLevelProperty) { - this.baseLevelProperty = baseLevelProperty; - return this; - } - - /** - * Sets the value of {@link DiamondInheritanceTopLevelStruct#getSecondMidLevelProperty} - * @param secondMidLevelProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondMidLevelProperty(java.lang.String secondMidLevelProperty) { - this.secondMidLevelProperty = secondMidLevelProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link DiamondInheritanceTopLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public DiamondInheritanceTopLevelStruct build() { - return new Jsii$Proxy(topLevelProperty, firstMidLevelProperty, baseLevelProperty, secondMidLevelProperty); - } - } - - /** - * An implementation for {@link DiamondInheritanceTopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiamondInheritanceTopLevelStruct { - private final java.lang.String topLevelProperty; - private final java.lang.String firstMidLevelProperty; - private final java.lang.String baseLevelProperty; - private final java.lang.String secondMidLevelProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.topLevelProperty = this.jsiiGet("topLevelProperty", java.lang.String.class); - this.firstMidLevelProperty = this.jsiiGet("firstMidLevelProperty", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); - this.secondMidLevelProperty = this.jsiiGet("secondMidLevelProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String topLevelProperty, final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty, final java.lang.String secondMidLevelProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.topLevelProperty = java.util.Objects.requireNonNull(topLevelProperty, "topLevelProperty is required"); - this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, "firstMidLevelProperty is required"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); - this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, "secondMidLevelProperty is required"); - } - - @Override - public java.lang.String getTopLevelProperty() { - return this.topLevelProperty; - } - - @Override - public java.lang.String getFirstMidLevelProperty() { - return this.firstMidLevelProperty; - } - - @Override - public java.lang.String getBaseLevelProperty() { - return this.baseLevelProperty; - } - - @Override - public java.lang.String getSecondMidLevelProperty() { - return this.secondMidLevelProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("topLevelProperty", om.valueToTree(this.getTopLevelProperty())); - data.set("firstMidLevelProperty", om.valueToTree(this.getFirstMidLevelProperty())); - data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); - data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceTopLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - DiamondInheritanceTopLevelStruct.Jsii$Proxy that = (DiamondInheritanceTopLevelStruct.Jsii$Proxy) o; - - if (!topLevelProperty.equals(that.topLevelProperty)) return false; - if (!firstMidLevelProperty.equals(that.firstMidLevelProperty)) return false; - if (!baseLevelProperty.equals(that.baseLevelProperty)) return false; - return this.secondMidLevelProperty.equals(that.secondMidLevelProperty); - } - - @Override - public int hashCode() { - int result = this.topLevelProperty.hashCode(); - result = 31 * result + (this.firstMidLevelProperty.hashCode()); - result = 31 * result + (this.baseLevelProperty.hashCode()); - result = 31 * result + (this.secondMidLevelProperty.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java deleted file mode 100644 index cd8437b7cd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java +++ /dev/null @@ -1,47 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that null/undefined can be returned for optional collections. - *

- * This source of collections is disappointing - it'll always give you nothing :( - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DisappointingCollectionSource") -public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObject { - - protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - static { - MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); - MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); - } - - /** - * Some List of strings, maybe? - *

- * (Nah, just a billion dollars mistake!) - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static java.util.List MAYBE_LIST; - - /** - * Some Map of strings to numbers, maybe? - *

- * (Nah, just a billion dollars mistake!) - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static java.util.Map MAYBE_MAP; -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java deleted file mode 100644 index 838f73066f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java +++ /dev/null @@ -1,53 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotOverridePrivates") -public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { - - protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DoNotOverridePrivates() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param newValue This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void changePrivatePropertyValue(final @org.jetbrains.annotations.NotNull java.lang.String newValue) { - this.jsiiCall("changePrivatePropertyValue", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(newValue, "newValue is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String privateMethodValue() { - return this.jsiiCall("privateMethodValue", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String privatePropertyValue() { - return this.jsiiCall("privatePropertyValue", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java deleted file mode 100644 index e9613a9a82..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java +++ /dev/null @@ -1,62 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * jsii#284: do not recognize "any" as an optional argument. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotRecognizeAnyAsOptional") -public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject { - - protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DoNotRecognizeAnyAsOptional() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param _requiredAny This parameter is required. - * @param _optionalAny - * @param _optionalString - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny, final @org.jetbrains.annotations.Nullable java.lang.String _optionalString) { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny, _optionalString }); - } - - /** - * EXPERIMENTAL - *

- * @param _requiredAny This parameter is required. - * @param _optionalAny - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny) { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny }); - } - - /** - * EXPERIMENTAL - *

- * @param _requiredAny This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny) { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java deleted file mode 100644 index 86667dd0f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java +++ /dev/null @@ -1,69 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Here's the first line of the TSDoc comment. - *

- * This is the meat of the TSDoc comment. It may contain - * multiple lines and multiple paragraphs. - *

- * Multiple paragraphs are separated by an empty line. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DocumentedClass") -public class DocumentedClass extends software.amazon.jsii.JsiiObject { - - protected DocumentedClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DocumentedClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DocumentedClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Greet the indicated person. - *

- * This will print out a friendly greeting intended for - * the indicated person. - *

- * @return A number that everyone knows very well - * @param greetee The person to be greeted. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Greetee greetee) { - return this.jsiiCall("greet", java.lang.Number.class, new Object[] { greetee }); - } - - /** - * Greet the indicated person. - *

- * This will print out a friendly greeting intended for - * the indicated person. - *

- * @return A number that everyone knows very well - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.NotNull java.lang.Number greet() { - return this.jsiiCall("greet", java.lang.Number.class); - } - - /** - * Say ¡Hola! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void hola() { - this.jsiiCall("hola", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java deleted file mode 100644 index 4a299e71ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java +++ /dev/null @@ -1,38 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DontComplainAboutVariadicAfterOptional") -public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii.JsiiObject { - - protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DontComplainAboutVariadicAfterOptional() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param optional - * @param things This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String optionalAndVariadic(final @org.jetbrains.annotations.Nullable java.lang.String optional, final @org.jetbrains.annotations.NotNull java.lang.String... things) { - return this.jsiiCall("optionalAndVariadic", java.lang.String.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { optional }), java.util.Arrays.stream(things)).toArray(Object[]::new)); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java deleted file mode 100644 index 5eb49d952a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoubleTrouble") -public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { - - protected DoubleTrouble(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected DoubleTrouble(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public DoubleTrouble() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Say hello! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - - /** - * Returns another random number. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall("next", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java deleted file mode 100644 index 77f137eb25..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java +++ /dev/null @@ -1,34 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EnumDispenser") -public class EnumDispenser extends software.amazon.jsii.JsiiObject { - - protected EnumDispenser(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected EnumDispenser(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum randomIntegerLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.AllTypesEnum.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum randomStringLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.StringEnum.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java deleted file mode 100644 index cc4714b2ee..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java +++ /dev/null @@ -1,63 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValues") -public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { - - protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public EraseUndefinedHashValues() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Returns `true` if `key` is defined in `opts`. - *

- * Used to check that undefined/null hash values - * are being erased when sending values from native code to JS. - *

- * EXPERIMENTAL - *

- * @param opts This parameter is required. - * @param key This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); - } - - /** - * We expect "prop1" to be erased. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map prop1IsNull() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } - - /** - * We expect "prop2" to be erased. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map prop2IsUndefined() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java deleted file mode 100644 index f975ed919a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java +++ /dev/null @@ -1,154 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValuesOptions") -@software.amazon.jsii.Jsii.Proxy(EraseUndefinedHashValuesOptions.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getOption1() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getOption2() { - return null; - } - - /** - * @return a {@link Builder} of {@link EraseUndefinedHashValuesOptions} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link EraseUndefinedHashValuesOptions} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String option1; - private java.lang.String option2; - - /** - * Sets the value of {@link EraseUndefinedHashValuesOptions#getOption1} - * @param option1 the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder option1(java.lang.String option1) { - this.option1 = option1; - return this; - } - - /** - * Sets the value of {@link EraseUndefinedHashValuesOptions#getOption2} - * @param option2 the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder option2(java.lang.String option2) { - this.option2 = option2; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link EraseUndefinedHashValuesOptions} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public EraseUndefinedHashValuesOptions build() { - return new Jsii$Proxy(option1, option2); - } - } - - /** - * An implementation for {@link EraseUndefinedHashValuesOptions} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EraseUndefinedHashValuesOptions { - private final java.lang.String option1; - private final java.lang.String option2; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.option1 = this.jsiiGet("option1", java.lang.String.class); - this.option2 = this.jsiiGet("option2", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String option1, final java.lang.String option2) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.option1 = option1; - this.option2 = option2; - } - - @Override - public java.lang.String getOption1() { - return this.option1; - } - - @Override - public java.lang.String getOption2() { - return this.option2; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getOption1() != null) { - data.set("option1", om.valueToTree(this.getOption1())); - } - if (this.getOption2() != null) { - data.set("option2", om.valueToTree(this.getOption2())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.EraseUndefinedHashValuesOptions")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - EraseUndefinedHashValuesOptions.Jsii$Proxy that = (EraseUndefinedHashValuesOptions.Jsii$Proxy) o; - - if (this.option1 != null ? !this.option1.equals(that.option1) : that.option1 != null) return false; - return this.option2 != null ? this.option2.equals(that.option2) : that.option2 == null; - } - - @Override - public int hashCode() { - int result = this.option1 != null ? this.option1.hashCode() : 0; - result = 31 * result + (this.option2 != null ? this.option2.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java deleted file mode 100644 index f2e82b1ca5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java +++ /dev/null @@ -1,73 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalClass") -public class ExperimentalClass extends software.amazon.jsii.JsiiObject { - - protected ExperimentalClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ExperimentalClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param readonlyString This parameter is required. - * @param mutableNumber - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); - } - - /** - * EXPERIMENTAL - *

- * @param readonlyString This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java deleted file mode 100644 index f4fdd8d755..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalEnum") -public enum ExperimentalEnum { - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - OPTION_A, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - OPTION_B, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java deleted file mode 100644 index 64f07a9add..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalStruct") -@software.amazon.jsii.Jsii.Proxy(ExperimentalStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); - - /** - * @return a {@link Builder} of {@link ExperimentalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ExperimentalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String readonlyProperty; - - /** - * Sets the value of {@link ExperimentalStruct#getReadonlyProperty} - * @param readonlyProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder readonlyProperty(java.lang.String readonlyProperty) { - this.readonlyProperty = readonlyProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ExperimentalStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ExperimentalStruct build() { - return new Jsii$Proxy(readonlyProperty); - } - } - - /** - * An implementation for {@link ExperimentalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExperimentalStruct { - private final java.lang.String readonlyProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String readonlyProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); - } - - @Override - public java.lang.String getReadonlyProperty() { - return this.readonlyProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ExperimentalStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ExperimentalStruct.Jsii$Proxy that = (ExperimentalStruct.Jsii$Proxy) o; - - return this.readonlyProperty.equals(that.readonlyProperty); - } - - @Override - public int hashCode() { - int result = this.readonlyProperty.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java deleted file mode 100644 index aa3ab4a33b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExportedBaseClass") -public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { - - protected ExportedBaseClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ExportedBaseClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param success This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ExportedBaseClass(final @org.jetbrains.annotations.NotNull java.lang.Boolean success) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(success, "success is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet("success", java.lang.Boolean.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java deleted file mode 100644 index 5d96319c59..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java +++ /dev/null @@ -1,146 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExtendsInternalInterface") -@software.amazon.jsii.Jsii.Proxy(ExtendsInternalInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getBoom(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getProp(); - - /** - * @return a {@link Builder} of {@link ExtendsInternalInterface} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ExtendsInternalInterface} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Boolean boom; - private java.lang.String prop; - - /** - * Sets the value of {@link ExtendsInternalInterface#getBoom} - * @param boom the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder boom(java.lang.Boolean boom) { - this.boom = boom; - return this; - } - - /** - * Sets the value of {@link ExtendsInternalInterface#getProp} - * @param prop the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder prop(java.lang.String prop) { - this.prop = prop; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ExtendsInternalInterface} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ExtendsInternalInterface build() { - return new Jsii$Proxy(boom, prop); - } - } - - /** - * An implementation for {@link ExtendsInternalInterface} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExtendsInternalInterface { - private final java.lang.Boolean boom; - private final java.lang.String prop; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.boom = this.jsiiGet("boom", java.lang.Boolean.class); - this.prop = this.jsiiGet("prop", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Boolean boom, final java.lang.String prop) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.boom = java.util.Objects.requireNonNull(boom, "boom is required"); - this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); - } - - @Override - public java.lang.Boolean getBoom() { - return this.boom; - } - - @Override - public java.lang.String getProp() { - return this.prop; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("boom", om.valueToTree(this.getBoom())); - data.set("prop", om.valueToTree(this.getProp())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ExtendsInternalInterface")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ExtendsInternalInterface.Jsii$Proxy that = (ExtendsInternalInterface.Jsii$Proxy) o; - - if (!boom.equals(that.boom)) return false; - return this.prop.equals(that.prop); - } - - @Override - public int hashCode() { - int result = this.boom.hashCode(); - result = 31 * result + (this.prop.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java deleted file mode 100644 index 926247f8ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java +++ /dev/null @@ -1,73 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalClass") -public class ExternalClass extends software.amazon.jsii.JsiiObject { - - protected ExternalClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ExternalClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param readonlyString This parameter is required. - * @param mutableNumber - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); - } - - /** - * EXPERIMENTAL - *

- * @param readonlyString This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java deleted file mode 100644 index f41fc89e8c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalEnum") -public enum ExternalEnum { - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - OPTION_A, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - OPTION_B, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java deleted file mode 100644 index a284bf7b15..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalStruct") -@software.amazon.jsii.Jsii.Proxy(ExternalStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); - - /** - * @return a {@link Builder} of {@link ExternalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ExternalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String readonlyProperty; - - /** - * Sets the value of {@link ExternalStruct#getReadonlyProperty} - * @param readonlyProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder readonlyProperty(java.lang.String readonlyProperty) { - this.readonlyProperty = readonlyProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ExternalStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ExternalStruct build() { - return new Jsii$Proxy(readonlyProperty); - } - } - - /** - * An implementation for {@link ExternalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExternalStruct { - private final java.lang.String readonlyProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String readonlyProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); - } - - @Override - public java.lang.String getReadonlyProperty() { - return this.readonlyProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ExternalStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ExternalStruct.Jsii$Proxy that = (ExternalStruct.Jsii$Proxy) o; - - return this.readonlyProperty.equals(that.readonlyProperty); - } - - @Override - public int hashCode() { - int result = this.readonlyProperty.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java deleted file mode 100644 index 6b075dc043..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java +++ /dev/null @@ -1,71 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GiveMeStructs") -public class GiveMeStructs extends software.amazon.jsii.JsiiObject { - - protected GiveMeStructs(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected GiveMeStructs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public GiveMeStructs() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. - *

- * EXPERIMENTAL - *

- * @param derived This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { - return this.jsiiCall("derivedToFirst", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); - } - - /** - * Returns the boolean from a DerivedStruct struct. - *

- * EXPERIMENTAL - *

- * @param derived This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { - return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); - } - - /** - * Returns the "anumber" from a MyFirstStruct struct; - *

- * EXPERIMENTAL - *

- * @param first This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number readFirstNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct first) { - return this.jsiiCall("readFirstNumber", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(first, "first is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals getStructLiteral() { - return this.jsiiGet("structLiteral", software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java deleted file mode 100644 index a4bbba4f7f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java +++ /dev/null @@ -1,127 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * These are some arguments you can pass to a method. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Greetee") -@software.amazon.jsii.Jsii.Proxy(Greetee.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface Greetee extends software.amazon.jsii.JsiiSerializable { - - /** - * The name of the greetee. - *

- * Default: world - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getName() { - return null; - } - - /** - * @return a {@link Builder} of {@link Greetee} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link Greetee} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String name; - - /** - * Sets the value of {@link Greetee#getName} - * @param name The name of the greetee. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder name(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link Greetee} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public Greetee build() { - return new Jsii$Proxy(name); - } - } - - /** - * An implementation for {@link Greetee} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Greetee { - private final java.lang.String name; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.name = this.jsiiGet("name", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String name) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.name = name; - } - - @Override - public java.lang.String getName() { - return this.name; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getName() != null) { - data.set("name", om.valueToTree(this.getName())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.Greetee")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Greetee.Jsii$Proxy that = (Greetee.Jsii$Proxy) o; - - return this.name != null ? this.name.equals(that.name) : that.name == null; - } - - @Override - public int hashCode() { - int result = this.name != null ? this.name.hashCode() : 0; - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java deleted file mode 100644 index 0c33bf9431..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GreetingAugmenter") -public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { - - protected GreetingAugmenter(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected GreetingAugmenter(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public GreetingAugmenter() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param friendly This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String betterGreeting(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { - return this.jsiiCall("betterGreeting", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, "friendly is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java deleted file mode 100644 index 56ded56652..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java +++ /dev/null @@ -1,52 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * We can return an anonymous interface implementation from an override without losing the interface declarations. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymousImplementationProvider") -@software.amazon.jsii.Jsii.Proxy(IAnonymousImplementationProvider.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IAnonymousImplementationProvider extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java deleted file mode 100644 index 06a8760603..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java +++ /dev/null @@ -1,50 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymouslyImplementMe") -@software.amazon.jsii.Jsii.Proxy(IAnonymouslyImplementMe.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getValue(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String verb(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String verb() { - return this.jsiiCall("verb", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java deleted file mode 100644 index 24df9c1f7e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnotherPublicInterface") -@software.amazon.jsii.Jsii.Proxy(IAnotherPublicInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getA(); - - /** - * EXPERIMENTAL - */ - void setA(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnotherPublicInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet("a", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java deleted file mode 100644 index f393b3b3d9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBell") -@software.amazon.jsii.Jsii.Proxy(IBell.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IBell extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void ring(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void ring() { - this.jsiiCall("ring", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java deleted file mode 100644 index 2e022ab157..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java +++ /dev/null @@ -1,41 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Takes the object parameter as an interface. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBellRinger") -@software.amazon.jsii.Jsii.Proxy(IBellRinger.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - *

- * @param bell This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBellRinger { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - *

- * @param bell This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell) { - this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java deleted file mode 100644 index 33f277235c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java +++ /dev/null @@ -1,41 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Takes the object parameter as a calss. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IConcreteBellRinger") -@software.amazon.jsii.Jsii.Proxy(IConcreteBellRinger.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - *

- * @param bell This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IConcreteBellRinger { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - *

- * @param bell This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell) { - this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java deleted file mode 100644 index e21e8f6b01..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * @deprecated useless interface - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IDeprecatedInterface") -@software.amazon.jsii.Jsii.Proxy(IDeprecatedInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * @deprecated could be better - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return null; - } - - /** - * @deprecated could be better - */ - @software.amazon.jsii.Optional - default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); - } - - /** - * @deprecated services no purpose - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - void method(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IDeprecatedInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * @deprecated could be better - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * @deprecated could be better - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } - - /** - * @deprecated services no purpose - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java deleted file mode 100644 index 0275bc94ce..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java +++ /dev/null @@ -1,69 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExperimentalInterface") -@software.amazon.jsii.Jsii.Proxy(IExperimentalInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IExperimentalInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Optional - default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void method(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExperimentalInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java deleted file mode 100644 index f42620283e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java +++ /dev/null @@ -1,64 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExtendsPrivateInterface") -@software.amazon.jsii.Jsii.Proxy(IExtendsPrivateInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.util.List getMoreThings(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue(); - - /** - * EXPERIMENTAL - */ - void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExtendsPrivateInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getMoreThings() { - return java.util.Collections.unmodifiableList(this.jsiiGet("moreThings", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { - return this.jsiiGet("private", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("private", java.util.Objects.requireNonNull(value, "private is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java deleted file mode 100644 index 4b1d89da40..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java +++ /dev/null @@ -1,69 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExternalInterface") -@software.amazon.jsii.Jsii.Proxy(IExternalInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IExternalInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Optional - default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void method(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExternalInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java deleted file mode 100644 index 53b6126f04..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java +++ /dev/null @@ -1,74 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Even friendlier classes can implement this interface. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IFriendlier") -@software.amazon.jsii.Jsii.Proxy(IFriendlier.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.IFriendly { - - /** - * Say farewell. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String farewell(); - - /** - * Say goodbye. - *

- * EXPERIMENTAL - *

- * @return A goodbye blessing. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String goodbye(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlier { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * Say farewell. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall("farewell", java.lang.String.class); - } - - /** - * Say goodbye. - *

- * EXPERIMENTAL - *

- * @return A goodbye blessing. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall("goodbye", java.lang.String.class); - } - - /** - * Say hello! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java deleted file mode 100644 index a900844e57..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IFriendlyRandomGenerator") -@software.amazon.jsii.Jsii.Proxy(IFriendlyRandomGenerator.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IFriendlyRandomGenerator extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IRandomNumberGenerator, software.amazon.jsii.tests.calculator.lib.IFriendly { - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * Returns another random number. - *

- * EXPERIMENTAL - *

- * @return A random number. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall("next", java.lang.Number.class); - } - - /** - * Say hello! - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java deleted file mode 100644 index d1694f02e4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * awslabs/jsii#220 Abstract return type. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceImplementedByAbstractClass") -@software.amazon.jsii.Jsii.Proxy(IInterfaceImplementedByAbstractClass.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceImplementedByAbstractClass extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet("propFromInterface", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java deleted file mode 100644 index 2ea770a360..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java +++ /dev/null @@ -1,55 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceThatShouldNotBeADataType") -@software.amazon.jsii.Jsii.Proxy(IInterfaceThatShouldNotBeADataType.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithMethods { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getOtherValue(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getOtherValue() { - return this.jsiiGet("otherValue", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet("value", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void doThings() { - this.jsiiCall("doThings", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java deleted file mode 100644 index 9c94f424f3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithInternal") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithInternal.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void visible(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void visible() { - this.jsiiCall("visible", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java deleted file mode 100644 index a06c61e818..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java +++ /dev/null @@ -1,50 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithMethods") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithMethods.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getValue(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void doThings(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithMethods { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet("value", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void doThings() { - this.jsiiCall("doThings", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java deleted file mode 100644 index 9df417e6e1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java +++ /dev/null @@ -1,62 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithOptionalMethodArguments") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithOptionalMethodArguments.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithOptionalMethodArguments extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.Nullable java.lang.Number arg2); - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.Nullable java.lang.Number arg2) { - this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), arg2 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1) { - this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java deleted file mode 100644 index b076c29f7d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java +++ /dev/null @@ -1,64 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithProperties") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithProperties.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString(); - - /** - * EXPERIMENTAL - */ - void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet("readOnlyString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet("readWriteString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java deleted file mode 100644 index 77a23479f5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java +++ /dev/null @@ -1,76 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithPropertiesExtension") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithPropertiesExtension.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithProperties { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); - - /** - * EXPERIMENTAL - */ - void setFoo(final @org.jetbrains.annotations.NotNull java.lang.Number value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { - return this.jsiiGet("foo", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("foo", java.util.Objects.requireNonNull(value, "foo is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet("readOnlyString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet("readWriteString", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java deleted file mode 100644 index 54ba7132dc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java +++ /dev/null @@ -1,83 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417Derived") -@software.amazon.jsii.Jsii.Proxy(IJSII417Derived.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getProperty(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void bar(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void baz(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417Derived { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet("property", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet("hasRoot", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void bar() { - this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void baz() { - this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java deleted file mode 100644 index 2c6820d81d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java +++ /dev/null @@ -1,50 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417PublicBaseOfBase") -@software.amazon.jsii.Jsii.Proxy(IJSII417PublicBaseOfBase.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void foo(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet("hasRoot", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java deleted file mode 100644 index 7cde89a598..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java +++ /dev/null @@ -1,20 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External") -@software.amazon.jsii.Jsii.Proxy(IJsii487External.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJsii487External extends software.amazon.jsii.JsiiSerializable { - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java deleted file mode 100644 index 8bc93504a3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java +++ /dev/null @@ -1,20 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External2") -@software.amazon.jsii.Jsii.Proxy(IJsii487External2.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable { - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2 { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java deleted file mode 100644 index e460b03bc6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java +++ /dev/null @@ -1,20 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii496") -@software.amazon.jsii.Jsii.Proxy(IJsii496.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java deleted file mode 100644 index c586b60c1a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IMutableObjectLiteral") -@software.amazon.jsii.Jsii.Proxy(IMutableObjectLiteral.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getValue(); - - /** - * EXPERIMENTAL - */ - void setValue(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IMutableObjectLiteral { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet("value", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("value", java.util.Objects.requireNonNull(value, "value is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java deleted file mode 100644 index 0eeeddc90b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java +++ /dev/null @@ -1,96 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.INonInternalInterface") -@software.amazon.jsii.Jsii.Proxy(INonInternalInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IAnotherPublicInterface { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getB(); - - /** - * EXPERIMENTAL - */ - void setB(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getC(); - - /** - * EXPERIMENTAL - */ - void setC(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet("b", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet("c", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet("a", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java deleted file mode 100644 index 52858a88d7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java +++ /dev/null @@ -1,66 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Make sure that setters are properly called on objects with interfaces. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IObjectWithProperty") -@software.amazon.jsii.Jsii.Proxy(IObjectWithProperty.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getProperty(); - - /** - * EXPERIMENTAL - */ - void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean wasSet(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IObjectWithProperty { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet("property", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("property", java.util.Objects.requireNonNull(value, "property is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.Boolean wasSet() { - return this.jsiiCall("wasSet", java.lang.Boolean.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java deleted file mode 100644 index f84d3541fb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Checks that optional result from interface method code generates correctly. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IOptionalMethod") -@software.amazon.jsii.Jsii.Proxy(IOptionalMethod.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.Nullable java.lang.String optional(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IOptionalMethod { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.Nullable java.lang.String optional() { - return this.jsiiCall("optional", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java deleted file mode 100644 index 05e1101d39..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPrivatelyImplemented") -@software.amazon.jsii.Jsii.Proxy(IPrivatelyImplemented.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPrivatelyImplemented { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet("success", java.lang.Boolean.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java deleted file mode 100644 index adf477fa24..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface") -@software.amazon.jsii.Jsii.Proxy(IPublicInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String bye(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String bye() { - return this.jsiiCall("bye", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java deleted file mode 100644 index a206803a86..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface2") -@software.amazon.jsii.Jsii.Proxy(IPublicInterface2.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String ciao(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface2 { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String ciao() { - return this.jsiiCall("ciao", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java deleted file mode 100644 index c80bd318c8..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java +++ /dev/null @@ -1,45 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Generates random numbers. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IRandomNumberGenerator") -@software.amazon.jsii.Jsii.Proxy(IRandomNumberGenerator.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IRandomNumberGenerator extends software.amazon.jsii.JsiiSerializable { - - /** - * Returns another random number. - *

- * EXPERIMENTAL - *

- * @return A random number. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number next(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IRandomNumberGenerator { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * Returns another random number. - *

- * EXPERIMENTAL - *

- * @return A random number. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall("next", java.lang.Number.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java deleted file mode 100644 index cebf6f3a30..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Returns a subclass of a known class which implements an interface. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnJsii976") -@software.amazon.jsii.Jsii.Proxy(IReturnJsii976.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnJsii976 { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { - return this.jsiiGet("foo", java.lang.Number.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java deleted file mode 100644 index 0ed94b4e90..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java +++ /dev/null @@ -1,50 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnsNumber") -@software.amazon.jsii.Jsii.Proxy(IReturnsNumber.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number getNumberProp(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IDoublable obtainNumber(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnsNumber { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number getNumberProp() { - return this.jsiiGet("numberProp", software.amazon.jsii.tests.calculator.lib.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IDoublable obtainNumber() { - return this.jsiiCall("obtainNumber", software.amazon.jsii.tests.calculator.lib.IDoublable.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java deleted file mode 100644 index 156691d894..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java +++ /dev/null @@ -1,62 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStableInterface") -@software.amazon.jsii.Jsii.Proxy(IStableInterface.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -public interface IStableInterface extends software.amazon.jsii.JsiiSerializable { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - default @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return null; - } - - /** - */ - @software.amazon.jsii.Optional - default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - void method(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStableInterface { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - @Override - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java deleted file mode 100644 index 9636fde34c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that a "pure" implementation of an interface works correctly. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStructReturningDelegate") -@software.amazon.jsii.Jsii.Proxy(IStructReturningDelegate.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStructReturningDelegate { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct() { - return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.StructB.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java deleted file mode 100644 index b18386649b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementInternalInterface") -public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject { - - protected ImplementInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ImplementInternalInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ImplementInternalInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getProp() { - return this.jsiiGet("prop", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("prop", java.util.Objects.requireNonNull(value, "prop is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java deleted file mode 100644 index 81e89c590a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Implementation") -public class Implementation extends software.amazon.jsii.JsiiObject { - - protected Implementation(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Implementation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Implementation() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java deleted file mode 100644 index 51368d83cc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java +++ /dev/null @@ -1,36 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternal") -public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { - - protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ImplementsInterfaceWithInternal() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public void visible() { - this.jsiiCall("visible", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java deleted file mode 100644 index 820b94f353..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java +++ /dev/null @@ -1,27 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternalSubclass") -public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal { - - protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ImplementsInterfaceWithInternalSubclass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java deleted file mode 100644 index f31397a1d5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsPrivateInterface") -public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject { - - protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ImplementsPrivateInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { - return this.jsiiGet("private", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("private", java.util.Objects.requireNonNull(value, "private is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java deleted file mode 100644 index 78a26aa386..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java +++ /dev/null @@ -1,161 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplictBaseOfBase") -@software.amazon.jsii.Jsii.Proxy(ImplictBaseOfBase.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.BaseProps { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.time.Instant getGoo(); - - /** - * @return a {@link Builder} of {@link ImplictBaseOfBase} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ImplictBaseOfBase} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.time.Instant goo; - private java.lang.String bar; - private software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Sets the value of {@link ImplictBaseOfBase#getGoo} - * @param goo the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder goo(java.time.Instant goo) { - this.goo = goo; - return this; - } - - /** - * Sets the value of {@link ImplictBaseOfBase#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - public Builder bar(java.lang.String bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link ImplictBaseOfBase#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - public Builder foo(software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ImplictBaseOfBase} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ImplictBaseOfBase build() { - return new Jsii$Proxy(goo, bar, foo); - } - } - - /** - * An implementation for {@link ImplictBaseOfBase} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ImplictBaseOfBase { - private final java.time.Instant goo; - private final java.lang.String bar; - private final software.amazon.jsii.tests.calculator.baseofbase.Very foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.goo = this.jsiiGet("goo", java.time.Instant.class); - this.bar = this.jsiiGet("bar", java.lang.String.class); - this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.time.Instant goo, final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.goo = java.util.Objects.requireNonNull(goo, "goo is required"); - this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.time.Instant getGoo() { - return this.goo; - } - - @Override - public java.lang.String getBar() { - return this.bar; - } - - @Override - public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("goo", om.valueToTree(this.getGoo())); - data.set("bar", om.valueToTree(this.getBar())); - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ImplictBaseOfBase")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ImplictBaseOfBase.Jsii$Proxy that = (ImplictBaseOfBase.Jsii$Proxy) o; - - if (!goo.equals(that.goo)) return false; - if (!bar.equals(that.bar)) return false; - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.goo.hashCode(); - result = 31 * result + (this.bar.hashCode()); - result = 31 * result + (this.foo.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java deleted file mode 100644 index bc2e542475..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java +++ /dev/null @@ -1,36 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InbetweenClass") -public class InbetweenClass extends software.amazon.jsii.tests.calculator.PublicClass implements software.amazon.jsii.tests.calculator.IPublicInterface2 { - - protected InbetweenClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected InbetweenClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public InbetweenClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String ciao() { - return this.jsiiCall("ciao", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java deleted file mode 100644 index 6eb438dc1e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java +++ /dev/null @@ -1,54 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that collections of interfaces or structs are correctly handled. - *

- * See: https://github.com/aws/jsii/issues/1196 - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceCollections") -public class InterfaceCollections extends software.amazon.jsii.JsiiObject { - - protected InterfaceCollections(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected InterfaceCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java deleted file mode 100644 index ce7235ff56..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java +++ /dev/null @@ -1,30 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * We can return arrays of interfaces See aws/aws-cdk#2362. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfacesMaker") -public class InterfacesMaker extends software.amazon.jsii.JsiiObject { - - protected InterfacesMaker(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected InterfacesMaker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param count This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java deleted file mode 100644 index 1d04590907..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Checks the "same instance" isomorphism is preserved within the constructor. - *

- * Create a subclass of this, and assert that this.myself() actually returns - * this from within the constructor. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Isomorphism") -public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { - - protected Isomorphism(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Isomorphism(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected Isomorphism() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Isomorphism myself() { - return this.jsiiCall("myself", software.amazon.jsii.tests.calculator.Isomorphism.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.Isomorphism { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java deleted file mode 100644 index bba61e636c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java +++ /dev/null @@ -1,53 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417Derived") -public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase { - - protected JSII417Derived(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JSII417Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param property This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JSII417Derived(final @org.jetbrains.annotations.NotNull java.lang.String property) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(property, "property is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void bar() { - this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void baz() { - this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet("property", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java deleted file mode 100644 index d80ec72727..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java +++ /dev/null @@ -1,51 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417PublicBaseOfBase") -public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { - - protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JSII417PublicBaseOfBase() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void foo() { - this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet("hasRoot", java.lang.Boolean.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java deleted file mode 100644 index 101b922b97..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralForInterface") -public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject { - - protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JSObjectLiteralForInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly giveMeFriendly() { - return this.jsiiCall("giveMeFriendly", software.amazon.jsii.tests.calculator.lib.IFriendly.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator giveMeFriendlyGenerator() { - return this.jsiiCall("giveMeFriendlyGenerator", software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java deleted file mode 100644 index 5b37017973..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNative") -public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { - - protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JSObjectLiteralToNative() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass returnLiteral() { - return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java deleted file mode 100644 index 6d61c5f9ac..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java +++ /dev/null @@ -1,59 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNativeClass") -public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObject { - - protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JSObjectLiteralToNativeClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getPropA() { - return this.jsiiGet("propA", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setPropA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("propA", java.util.Objects.requireNonNull(value, "propA is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getPropB() { - return this.jsiiGet("propB", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setPropB(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("propB", java.util.Objects.requireNonNull(value, "propB is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java deleted file mode 100644 index 9040983e12..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java +++ /dev/null @@ -1,459 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JavaReservedWords") -public class JavaReservedWords extends software.amazon.jsii.JsiiObject { - - protected JavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JavaReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JavaReservedWords() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doAbstract() { - this.jsiiCall("abstract", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doAssert() { - this.jsiiCall("assert", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doBoolean() { - this.jsiiCall("boolean", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doBreak() { - this.jsiiCall("break", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doByte() { - this.jsiiCall("byte", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doCase() { - this.jsiiCall("case", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doCatch() { - this.jsiiCall("catch", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doChar() { - this.jsiiCall("char", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doClass() { - this.jsiiCall("class", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doConst() { - this.jsiiCall("const", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doContinue() { - this.jsiiCall("continue", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doDefault() { - this.jsiiCall("default", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doDo() { - this.jsiiCall("do", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doDouble() { - this.jsiiCall("double", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doElse() { - this.jsiiCall("else", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doEnum() { - this.jsiiCall("enum", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doExtends() { - this.jsiiCall("extends", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFalse() { - this.jsiiCall("false", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFinal() { - this.jsiiCall("final", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFinally() { - this.jsiiCall("finally", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFloat() { - this.jsiiCall("float", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFor() { - this.jsiiCall("for", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doGoto() { - this.jsiiCall("goto", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doIf() { - this.jsiiCall("if", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doImplements() { - this.jsiiCall("implements", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doImport() { - this.jsiiCall("import", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doInstanceof() { - this.jsiiCall("instanceof", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doInt() { - this.jsiiCall("int", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doInterface() { - this.jsiiCall("interface", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doLong() { - this.jsiiCall("long", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doNative() { - this.jsiiCall("native", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doNew() { - this.jsiiCall("new", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doNull() { - this.jsiiCall("null", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doPackage() { - this.jsiiCall("package", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doPrivate() { - this.jsiiCall("private", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doProtected() { - this.jsiiCall("protected", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doPublic() { - this.jsiiCall("public", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doReturn() { - this.jsiiCall("return", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doShort() { - this.jsiiCall("short", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doStatic() { - this.jsiiCall("static", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doStrictfp() { - this.jsiiCall("strictfp", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doSuper() { - this.jsiiCall("super", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doSwitch() { - this.jsiiCall("switch", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doSynchronized() { - this.jsiiCall("synchronized", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doThis() { - this.jsiiCall("this", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doThrow() { - this.jsiiCall("throw", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doThrows() { - this.jsiiCall("throws", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doTransient() { - this.jsiiCall("transient", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doTrue() { - this.jsiiCall("true", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doTry() { - this.jsiiCall("try", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doVoid() { - this.jsiiCall("void", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doVolatile() { - this.jsiiCall("volatile", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getWhileValue() { - return this.jsiiGet("while", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setWhileValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("while", java.util.Objects.requireNonNull(value, "while is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java deleted file mode 100644 index 5abeef747b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java +++ /dev/null @@ -1,27 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii487Derived") -public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2, software.amazon.jsii.tests.calculator.IJsii487External { - - protected Jsii487Derived(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Jsii487Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Jsii487Derived() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java deleted file mode 100644 index dc5436476e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java +++ /dev/null @@ -1,27 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii496Derived") -public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { - - protected Jsii496Derived(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Jsii496Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Jsii496Derived() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java deleted file mode 100644 index 02cc724de9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java +++ /dev/null @@ -1,39 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Host runtime version should be set via JSII_AGENT. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsiiAgent") -public class JsiiAgent extends software.amazon.jsii.JsiiObject { - - protected JsiiAgent(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JsiiAgent(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public JsiiAgent() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Returns the value of the JSII_AGENT environment variable. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.Nullable java.lang.String getJsiiAgent() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, "jsiiAgent", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java deleted file mode 100644 index cfebde74fa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java +++ /dev/null @@ -1,144 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Make sure structs are un-decorated on the way in. - *

- * EXPERIMENTAL - *

- * @see https://github.com/aws/aws-cdk/issues/5066 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsonFormatter") -public class JsonFormatter extends software.amazon.jsii.JsiiObject { - - protected JsonFormatter(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyArray() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyArray", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanFalse() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanTrue() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyDate() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyDate", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyEmptyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyFunction() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyFunction", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyHash() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyHash", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyNull() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNull", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyNumber() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNumber", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyRef() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyRef", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyString", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyUndefined() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyUndefined", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object anyZero() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyZero", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - *

- * @param value - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.Nullable java.lang.String stringify(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.Nullable java.lang.String stringify() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java deleted file mode 100644 index 3fc4a409fe..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java +++ /dev/null @@ -1,324 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * jsii#298: show default values in sphinx documentation, and respect newlines. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.LoadBalancedFargateServiceProps") -@software.amazon.jsii.Jsii.Proxy(LoadBalancedFargateServiceProps.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable { - - /** - * The container port of the application load balancer attached to your Fargate service. - *

- * Corresponds to container port mapping. - *

- * Default: 80 - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getContainerPort() { - return null; - } - - /** - * The number of cpu units used by the task. - *

- * Valid values, which determines your range of valid values for the memory parameter: - * 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - * 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - * 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - * 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - * 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - *

- * This default is set in the underlying FargateTaskDefinition construct. - *

- * Default: 256 - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getCpu() { - return null; - } - - /** - * The amount (in MiB) of memory used by the task. - *

- * This field is required and you must use one of the following values, which determines your range of valid values - * for the cpu parameter: - *

- * 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - *

- * 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - *

- * 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - *

- * Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - *

- * Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - *

- * This default is set in the underlying FargateTaskDefinition construct. - *

- * Default: 512 - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getMemoryMiB() { - return null; - } - - /** - * Determines whether the Application Load Balancer will be internet-facing. - *

- * Default: true - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Boolean getPublicLoadBalancer() { - return null; - } - - /** - * Determines whether your Fargate Service will be assigned a public IP address. - *

- * Default: false - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Boolean getPublicTasks() { - return null; - } - - /** - * @return a {@link Builder} of {@link LoadBalancedFargateServiceProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link LoadBalancedFargateServiceProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number containerPort; - private java.lang.String cpu; - private java.lang.String memoryMiB; - private java.lang.Boolean publicLoadBalancer; - private java.lang.Boolean publicTasks; - - /** - * Sets the value of {@link LoadBalancedFargateServiceProps#getContainerPort} - * @param containerPort The container port of the application load balancer attached to your Fargate service. - * Corresponds to container port mapping. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder containerPort(java.lang.Number containerPort) { - this.containerPort = containerPort; - return this; - } - - /** - * Sets the value of {@link LoadBalancedFargateServiceProps#getCpu} - * @param cpu The number of cpu units used by the task. - * Valid values, which determines your range of valid values for the memory parameter: - * 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - * 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - * 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - * 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - * 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - *

- * This default is set in the underlying FargateTaskDefinition construct. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder cpu(java.lang.String cpu) { - this.cpu = cpu; - return this; - } - - /** - * Sets the value of {@link LoadBalancedFargateServiceProps#getMemoryMiB} - * @param memoryMiB The amount (in MiB) of memory used by the task. - * This field is required and you must use one of the following values, which determines your range of valid values - * for the cpu parameter: - *

- * 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - *

- * 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - *

- * 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - *

- * Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - *

- * Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - *

- * This default is set in the underlying FargateTaskDefinition construct. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder memoryMiB(java.lang.String memoryMiB) { - this.memoryMiB = memoryMiB; - return this; - } - - /** - * Sets the value of {@link LoadBalancedFargateServiceProps#getPublicLoadBalancer} - * @param publicLoadBalancer Determines whether the Application Load Balancer will be internet-facing. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder publicLoadBalancer(java.lang.Boolean publicLoadBalancer) { - this.publicLoadBalancer = publicLoadBalancer; - return this; - } - - /** - * Sets the value of {@link LoadBalancedFargateServiceProps#getPublicTasks} - * @param publicTasks Determines whether your Fargate Service will be assigned a public IP address. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder publicTasks(java.lang.Boolean publicTasks) { - this.publicTasks = publicTasks; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link LoadBalancedFargateServiceProps} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public LoadBalancedFargateServiceProps build() { - return new Jsii$Proxy(containerPort, cpu, memoryMiB, publicLoadBalancer, publicTasks); - } - } - - /** - * An implementation for {@link LoadBalancedFargateServiceProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LoadBalancedFargateServiceProps { - private final java.lang.Number containerPort; - private final java.lang.String cpu; - private final java.lang.String memoryMiB; - private final java.lang.Boolean publicLoadBalancer; - private final java.lang.Boolean publicTasks; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.containerPort = this.jsiiGet("containerPort", java.lang.Number.class); - this.cpu = this.jsiiGet("cpu", java.lang.String.class); - this.memoryMiB = this.jsiiGet("memoryMiB", java.lang.String.class); - this.publicLoadBalancer = this.jsiiGet("publicLoadBalancer", java.lang.Boolean.class); - this.publicTasks = this.jsiiGet("publicTasks", java.lang.Boolean.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number containerPort, final java.lang.String cpu, final java.lang.String memoryMiB, final java.lang.Boolean publicLoadBalancer, final java.lang.Boolean publicTasks) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.containerPort = containerPort; - this.cpu = cpu; - this.memoryMiB = memoryMiB; - this.publicLoadBalancer = publicLoadBalancer; - this.publicTasks = publicTasks; - } - - @Override - public java.lang.Number getContainerPort() { - return this.containerPort; - } - - @Override - public java.lang.String getCpu() { - return this.cpu; - } - - @Override - public java.lang.String getMemoryMiB() { - return this.memoryMiB; - } - - @Override - public java.lang.Boolean getPublicLoadBalancer() { - return this.publicLoadBalancer; - } - - @Override - public java.lang.Boolean getPublicTasks() { - return this.publicTasks; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getContainerPort() != null) { - data.set("containerPort", om.valueToTree(this.getContainerPort())); - } - if (this.getCpu() != null) { - data.set("cpu", om.valueToTree(this.getCpu())); - } - if (this.getMemoryMiB() != null) { - data.set("memoryMiB", om.valueToTree(this.getMemoryMiB())); - } - if (this.getPublicLoadBalancer() != null) { - data.set("publicLoadBalancer", om.valueToTree(this.getPublicLoadBalancer())); - } - if (this.getPublicTasks() != null) { - data.set("publicTasks", om.valueToTree(this.getPublicTasks())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.LoadBalancedFargateServiceProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - LoadBalancedFargateServiceProps.Jsii$Proxy that = (LoadBalancedFargateServiceProps.Jsii$Proxy) o; - - if (this.containerPort != null ? !this.containerPort.equals(that.containerPort) : that.containerPort != null) return false; - if (this.cpu != null ? !this.cpu.equals(that.cpu) : that.cpu != null) return false; - if (this.memoryMiB != null ? !this.memoryMiB.equals(that.memoryMiB) : that.memoryMiB != null) return false; - if (this.publicLoadBalancer != null ? !this.publicLoadBalancer.equals(that.publicLoadBalancer) : that.publicLoadBalancer != null) return false; - return this.publicTasks != null ? this.publicTasks.equals(that.publicTasks) : that.publicTasks == null; - } - - @Override - public int hashCode() { - int result = this.containerPort != null ? this.containerPort.hashCode() : 0; - result = 31 * result + (this.cpu != null ? this.cpu.hashCode() : 0); - result = 31 * result + (this.memoryMiB != null ? this.memoryMiB.hashCode() : 0); - result = 31 * result + (this.publicLoadBalancer != null ? this.publicLoadBalancer.hashCode() : 0); - result = 31 * result + (this.publicTasks != null ? this.publicTasks.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java deleted file mode 100644 index 76b18e7eb3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.MethodNamedProperty") -public class MethodNamedProperty extends software.amazon.jsii.JsiiObject { - - protected MethodNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected MethodNamedProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public MethodNamedProperty() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String property() { - return this.jsiiCall("property", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getElite() { - return this.jsiiGet("elite", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java deleted file mode 100644 index 42e257fd6f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java +++ /dev/null @@ -1,89 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * The "*" binary operation. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Multiply") -public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier, software.amazon.jsii.tests.calculator.IRandomNumberGenerator { - - protected Multiply(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Multiply(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a BinaryOperation. - *

- * EXPERIMENTAL - *

- * @param lhs Left-hand side operand. This parameter is required. - * @param rhs Right-hand side operand. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Multiply(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); - } - - /** - * Say farewell. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall("farewell", java.lang.String.class); - } - - /** - * Say goodbye. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall("goodbye", java.lang.String.class); - } - - /** - * Returns another random number. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall("next", java.lang.Number.class); - } - - /** - * String representation of the value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - - /** - * The value. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java deleted file mode 100644 index 58b0f4cb71..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java +++ /dev/null @@ -1,86 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * The negation operation ("-value"). - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Negate") -public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier { - - protected Negate(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Negate(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param operand This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Negate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, "operand is required") }); - } - - /** - * Say farewell. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall("farewell", java.lang.String.class); - } - - /** - * Say goodbye. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall("goodbye", java.lang.String.class); - } - - /** - * Say hello! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall("hello", java.lang.String.class); - } - - /** - * String representation of the value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - - /** - * The value. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java deleted file mode 100644 index f4643c1f5e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java +++ /dev/null @@ -1,119 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NestedStruct") -@software.amazon.jsii.Jsii.Proxy(NestedStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * When provided, must be > 0. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getNumberProp(); - - /** - * @return a {@link Builder} of {@link NestedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link NestedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number numberProp; - - /** - * Sets the value of {@link NestedStruct#getNumberProp} - * @param numberProp When provided, must be > 0. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder numberProp(java.lang.Number numberProp) { - this.numberProp = numberProp; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link NestedStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public NestedStruct build() { - return new Jsii$Proxy(numberProp); - } - } - - /** - * An implementation for {@link NestedStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NestedStruct { - private final java.lang.Number numberProp; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.numberProp = this.jsiiGet("numberProp", java.lang.Number.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number numberProp) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.numberProp = java.util.Objects.requireNonNull(numberProp, "numberProp is required"); - } - - @Override - public java.lang.Number getNumberProp() { - return this.numberProp; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("numberProp", om.valueToTree(this.getNumberProp())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.NestedStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - NestedStruct.Jsii$Proxy that = (NestedStruct.Jsii$Proxy) o; - - return this.numberProp.equals(that.numberProp); - } - - @Override - public int hashCode() { - int result = this.numberProp.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java deleted file mode 100644 index e5e8af9567..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Test fixture to verify that jsii modules can use the node standard library. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NodeStandardLibrary") -public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { - - protected NodeStandardLibrary(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected NodeStandardLibrary(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public NodeStandardLibrary() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Uses node.js "crypto" module to calculate sha256 of a string. - *

- * EXPERIMENTAL - *

- * @return "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String cryptoSha256() { - return this.jsiiCall("cryptoSha256", java.lang.String.class); - } - - /** - * Reads a local resource file (resource.txt) asynchronously. - *

- * EXPERIMENTAL - *

- * @return "Hello, resource!" - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String fsReadFile() { - return this.jsiiAsyncCall("fsReadFile", java.lang.String.class); - } - - /** - * Sync version of fsReadFile. - *

- * EXPERIMENTAL - *

- * @return "Hello, resource! SYNC!" - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String fsReadFileSync() { - return this.jsiiCall("fsReadFileSync", java.lang.String.class); - } - - /** - * Returns the current os.platform() from the "os" node module. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getOsPlatform() { - return this.jsiiGet("osPlatform", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java deleted file mode 100644 index 034b052505..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java +++ /dev/null @@ -1,95 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * jsii#282, aws-cdk#157: null should be treated as "undefined". - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefined") -public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObject { - - protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param _param1 This parameter is required. - * @param optional - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1, final @org.jetbrains.annotations.Nullable java.lang.Object optional) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, "_param1 is required"), optional }); - } - - /** - * EXPERIMENTAL - *

- * @param _param1 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, "_param1 is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param value - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void giveMeUndefined(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - this.jsiiCall("giveMeUndefined", software.amazon.jsii.NativeType.VOID, new Object[] { value }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void giveMeUndefined() { - this.jsiiCall("giveMeUndefined", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - *

- * @param input This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData input) { - this.jsiiCall("giveMeUndefinedInsideAnObject", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, "input is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void verifyPropertyIsUndefined() { - this.jsiiCall("verifyPropertyIsUndefined", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.String getChangeMeToUndefined() { - return this.jsiiGet("changeMeToUndefined", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setChangeMeToUndefined(final @org.jetbrains.annotations.Nullable java.lang.String value) { - this.jsiiSet("changeMeToUndefined", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java deleted file mode 100644 index 8027692d91..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java +++ /dev/null @@ -1,150 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefinedData") -@software.amazon.jsii.Jsii.Proxy(NullShouldBeTreatedAsUndefinedData.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.util.List getArrayWithThreeElementsAndUndefinedAsSecondArgument(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Object getThisShouldBeUndefined() { - return null; - } - - /** - * @return a {@link Builder} of {@link NullShouldBeTreatedAsUndefinedData} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link NullShouldBeTreatedAsUndefinedData} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument; - private java.lang.Object thisShouldBeUndefined; - - /** - * Sets the value of {@link NullShouldBeTreatedAsUndefinedData#getArrayWithThreeElementsAndUndefinedAsSecondArgument} - * @param arrayWithThreeElementsAndUndefinedAsSecondArgument the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder arrayWithThreeElementsAndUndefinedAsSecondArgument(java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument) { - this.arrayWithThreeElementsAndUndefinedAsSecondArgument = arrayWithThreeElementsAndUndefinedAsSecondArgument; - return this; - } - - /** - * Sets the value of {@link NullShouldBeTreatedAsUndefinedData#getThisShouldBeUndefined} - * @param thisShouldBeUndefined the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder thisShouldBeUndefined(java.lang.Object thisShouldBeUndefined) { - this.thisShouldBeUndefined = thisShouldBeUndefined; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link NullShouldBeTreatedAsUndefinedData} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public NullShouldBeTreatedAsUndefinedData build() { - return new Jsii$Proxy(arrayWithThreeElementsAndUndefinedAsSecondArgument, thisShouldBeUndefined); - } - } - - /** - * An implementation for {@link NullShouldBeTreatedAsUndefinedData} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NullShouldBeTreatedAsUndefinedData { - private final java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument; - private final java.lang.Object thisShouldBeUndefined; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.arrayWithThreeElementsAndUndefinedAsSecondArgument = this.jsiiGet("arrayWithThreeElementsAndUndefinedAsSecondArgument", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))); - this.thisShouldBeUndefined = this.jsiiGet("thisShouldBeUndefined", java.lang.Object.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument, final java.lang.Object thisShouldBeUndefined) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.arrayWithThreeElementsAndUndefinedAsSecondArgument = java.util.Objects.requireNonNull(arrayWithThreeElementsAndUndefinedAsSecondArgument, "arrayWithThreeElementsAndUndefinedAsSecondArgument is required"); - this.thisShouldBeUndefined = thisShouldBeUndefined; - } - - @Override - public java.util.List getArrayWithThreeElementsAndUndefinedAsSecondArgument() { - return this.arrayWithThreeElementsAndUndefinedAsSecondArgument; - } - - @Override - public java.lang.Object getThisShouldBeUndefined() { - return this.thisShouldBeUndefined; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("arrayWithThreeElementsAndUndefinedAsSecondArgument", om.valueToTree(this.getArrayWithThreeElementsAndUndefinedAsSecondArgument())); - if (this.getThisShouldBeUndefined() != null) { - data.set("thisShouldBeUndefined", om.valueToTree(this.getThisShouldBeUndefined())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.NullShouldBeTreatedAsUndefinedData")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - NullShouldBeTreatedAsUndefinedData.Jsii$Proxy that = (NullShouldBeTreatedAsUndefinedData.Jsii$Proxy) o; - - if (!arrayWithThreeElementsAndUndefinedAsSecondArgument.equals(that.arrayWithThreeElementsAndUndefinedAsSecondArgument)) return false; - return this.thisShouldBeUndefined != null ? this.thisShouldBeUndefined.equals(that.thisShouldBeUndefined) : that.thisShouldBeUndefined == null; - } - - @Override - public int hashCode() { - int result = this.arrayWithThreeElementsAndUndefinedAsSecondArgument.hashCode(); - result = 31 * result + (this.thisShouldBeUndefined != null ? this.thisShouldBeUndefined.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java deleted file mode 100644 index e41d1086fc..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java +++ /dev/null @@ -1,65 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This allows us to test that a reference can be stored for objects that implement interfaces. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NumberGenerator") -public class NumberGenerator extends software.amazon.jsii.JsiiObject { - - protected NumberGenerator(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected NumberGenerator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param generator This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public NumberGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator generator) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(generator, "generator is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param gen This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean isSameGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator gen) { - return this.jsiiCall("isSameGenerator", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(gen, "gen is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number nextTimes100() { - return this.jsiiCall("nextTimes100", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator getGenerator() { - return this.jsiiGet("generator", software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator value) { - this.jsiiSet("generator", java.util.Objects.requireNonNull(value, "generator is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java deleted file mode 100644 index b8ab47023d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java +++ /dev/null @@ -1,53 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verify that object references can be passed inside collections. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectRefsInCollections") -public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { - - protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ObjectRefsInCollections() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Returns the sum of all values. - *

- * EXPERIMENTAL - *

- * @param values This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number sumFromArray(final @org.jetbrains.annotations.NotNull java.util.List values) { - return this.jsiiCall("sumFromArray", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, "values is required") }); - } - - /** - * Returns the sum of all values in a map. - *

- * EXPERIMENTAL - *

- * @param values This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number sumFromMap(final @org.jetbrains.annotations.NotNull java.util.Map values) { - return this.jsiiCall("sumFromMap", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, "values is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java deleted file mode 100644 index 399ccc041d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java +++ /dev/null @@ -1,26 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectWithPropertyProvider") -public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject { - - protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IObjectWithProperty provide() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java deleted file mode 100644 index d2178a8128..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java +++ /dev/null @@ -1,39 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Old class. - *

- * @deprecated Use the new class - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) -@Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Old") -public class Old extends software.amazon.jsii.JsiiObject { - - protected Old(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Old(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Old() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * Doo wop that thing. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public void doAThing() { - this.jsiiCall("doAThing", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java deleted file mode 100644 index 1487518bfe..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java +++ /dev/null @@ -1,45 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalArgumentInvoker") -public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { - - protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param delegate This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments delegate) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void invokeWithOptional() { - this.jsiiCall("invokeWithOptional", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void invokeWithoutOptional() { - this.jsiiCall("invokeWithoutOptional", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java deleted file mode 100644 index 10d69a4bf7..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java +++ /dev/null @@ -1,67 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalConstructorArgument") -public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject { - - protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 This parameter is required. - * @param arg3 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required"), arg3 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { - return this.jsiiGet("arg1", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getArg2() { - return this.jsiiGet("arg2", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.time.Instant getArg3() { - return this.jsiiGet("arg3", java.time.Instant.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java deleted file mode 100644 index 7506817b6a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java +++ /dev/null @@ -1,121 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStruct") -@software.amazon.jsii.Jsii.Proxy(OptionalStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getField() { - return null; - } - - /** - * @return a {@link Builder} of {@link OptionalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link OptionalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String field; - - /** - * Sets the value of {@link OptionalStruct#getField} - * @param field the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder field(java.lang.String field) { - this.field = field; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link OptionalStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public OptionalStruct build() { - return new Jsii$Proxy(field); - } - } - - /** - * An implementation for {@link OptionalStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements OptionalStruct { - private final java.lang.String field; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.field = this.jsiiGet("field", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String field) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.field = field; - } - - @Override - public java.lang.String getField() { - return this.field; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getField() != null) { - data.set("field", om.valueToTree(this.getField())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.OptionalStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - OptionalStruct.Jsii$Proxy that = (OptionalStruct.Jsii$Proxy) o; - - return this.field != null ? this.field.equals(that.field) : that.field == null; - } - - @Override - public int hashCode() { - int result = this.field != null ? this.field.hashCode() : 0; - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java deleted file mode 100644 index 6024810888..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java +++ /dev/null @@ -1,105 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStructConsumer") -public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { - - protected OptionalStructConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OptionalStructConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param optionalStruct - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.OptionalStruct optionalStruct) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { optionalStruct }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalStructConsumer() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getParameterWasUndefined() { - return this.jsiiGet("parameterWasUndefined", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.String getFieldValue() { - return this.jsiiGet("fieldValue", java.lang.String.class); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create() { - return new Builder(); - } - - private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct; - - private Builder() { - } - - /** - * EXPERIMENTAL - *

- * @return {@code this} - * @param field This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder field(final java.lang.String field) { - this.optionalStruct().field(field); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.OptionalStructConsumer build() { - return new software.amazon.jsii.tests.calculator.OptionalStructConsumer( - this.optionalStruct != null ? this.optionalStruct.build() : null - ); - } - - private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct() { - if (this.optionalStruct == null) { - this.optionalStruct = new software.amazon.jsii.tests.calculator.OptionalStruct.Builder(); - } - return this.optionalStruct; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java deleted file mode 100644 index 27d55139f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java +++ /dev/null @@ -1,77 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - *

- * @see https://github.com/aws/jsii/issues/903 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverridableProtectedMember") -public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject { - - protected OverridableProtectedMember(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OverridableProtectedMember(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OverridableProtectedMember() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected @org.jetbrains.annotations.NotNull java.lang.String overrideMe() { - return this.jsiiCall("overrideMe", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void switchModes() { - this.jsiiCall("switchModes", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String valueFromProtected() { - return this.jsiiCall("valueFromProtected", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadOnly() { - return this.jsiiGet("overrideReadOnly", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadWrite() { - return this.jsiiGet("overrideReadWrite", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected void setOverrideReadWrite(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("overrideReadWrite", java.util.Objects.requireNonNull(value, "overrideReadWrite is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java deleted file mode 100644 index fb4dee8ba1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverrideReturnsObject") -public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { - - protected OverrideReturnsObject(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OverrideReturnsObject(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OverrideReturnsObject() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnsNumber obj) { - return this.jsiiCall("test", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java deleted file mode 100644 index 4a091ea0f0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java +++ /dev/null @@ -1,119 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * https://github.com/aws/jsii/issues/982. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ParentStruct982") -@software.amazon.jsii.Jsii.Proxy(ParentStruct982.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getFoo(); - - /** - * @return a {@link Builder} of {@link ParentStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link ParentStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String foo; - - /** - * Sets the value of {@link ParentStruct982#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.String foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link ParentStruct982} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public ParentStruct982 build() { - return new Jsii$Proxy(foo); - } - } - - /** - * An implementation for {@link ParentStruct982} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ParentStruct982 { - private final java.lang.String foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.foo = this.jsiiGet("foo", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.lang.String getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ParentStruct982")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - ParentStruct982.Jsii$Proxy that = (ParentStruct982.Jsii$Proxy) o; - - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.foo.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java deleted file mode 100644 index 7387686e8e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java +++ /dev/null @@ -1,59 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PartiallyInitializedThisConsumer") -public abstract class PartiallyInitializedThisConsumer extends software.amazon.jsii.JsiiObject { - - protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected PartiallyInitializedThisConsumer() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - * @param dt This parameter is required. - * @param ev This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - * @param dt This parameter is required. - * @param ev This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev) { - return this.jsiiCall("consumePartiallyInitializedThis", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required"), java.util.Objects.requireNonNull(dt, "dt is required"), java.util.Objects.requireNonNull(ev, "ev is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java deleted file mode 100644 index 968b03e0b0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Polymorphism") -public class Polymorphism extends software.amazon.jsii.JsiiObject { - - protected Polymorphism(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Polymorphism(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Polymorphism() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param friendly This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String sayHello(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { - return this.jsiiCall("sayHello", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, "friendly is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Power.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Power.java deleted file mode 100644 index afa8901c70..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Power.java +++ /dev/null @@ -1,67 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * The power operation. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Power") -public class Power extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { - - protected Power(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Power(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * Creates a Power operation. - *

- * EXPERIMENTAL - *

- * @param base The base of the power. This parameter is required. - * @param pow The number of times to multiply. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Power(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value base, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value pow) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(base, "base is required"), java.util.Objects.requireNonNull(pow, "pow is required") }); - } - - /** - * The base of the power. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getBase() { - return this.jsiiGet("base", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * The expression that this operation consists of. - *

- * Must be implemented by derived classes. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * The number of times to multiply. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getPow() { - return this.jsiiGet("pow", software.amazon.jsii.tests.calculator.lib.Value.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java deleted file mode 100644 index e4210bec4f..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java +++ /dev/null @@ -1,45 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PropertyNamedProperty") -public class PropertyNamedProperty extends software.amazon.jsii.JsiiObject { - - protected PropertyNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected PropertyNamedProperty(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public PropertyNamedProperty() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet("property", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getYetAnoterOne() { - return this.jsiiGet("yetAnoterOne", java.lang.Boolean.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java deleted file mode 100644 index 4e79c5b2ba..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PublicClass") -public class PublicClass extends software.amazon.jsii.JsiiObject { - - protected PublicClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected PublicClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public PublicClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void hello() { - this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java deleted file mode 100644 index 02ce7b23bb..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java +++ /dev/null @@ -1,283 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonReservedWords") -public class PythonReservedWords extends software.amazon.jsii.JsiiObject { - - protected PythonReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected PythonReservedWords(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public PythonReservedWords() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void and() { - this.jsiiCall("and", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void as() { - this.jsiiCall("as", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doAssert() { - this.jsiiCall("assert", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void async() { - this.jsiiCall("async", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void await() { - this.jsiiCall("await", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doBreak() { - this.jsiiCall("break", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doClass() { - this.jsiiCall("class", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doContinue() { - this.jsiiCall("continue", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void def() { - this.jsiiCall("def", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void del() { - this.jsiiCall("del", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void elif() { - this.jsiiCall("elif", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doElse() { - this.jsiiCall("else", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void except() { - this.jsiiCall("except", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFinally() { - this.jsiiCall("finally", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doFor() { - this.jsiiCall("for", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void from() { - this.jsiiCall("from", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void global() { - this.jsiiCall("global", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doIf() { - this.jsiiCall("if", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doImport() { - this.jsiiCall("import", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void in() { - this.jsiiCall("in", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void is() { - this.jsiiCall("is", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void lambda() { - this.jsiiCall("lambda", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void nonlocal() { - this.jsiiCall("nonlocal", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void not() { - this.jsiiCall("not", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void or() { - this.jsiiCall("or", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void pass() { - this.jsiiCall("pass", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void raise() { - this.jsiiCall("raise", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doReturn() { - this.jsiiCall("return", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doTry() { - this.jsiiCall("try", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void doWhile() { - this.jsiiCall("while", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void with() { - this.jsiiCall("with", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void yield() { - this.jsiiCall("yield", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java deleted file mode 100644 index b8e7d32ab4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java +++ /dev/null @@ -1,63 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * See awslabs/jsii#138. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReferenceEnumFromScopedPackage") -public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObject { - - protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ReferenceEnumFromScopedPackage() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule loadFoo() { - return this.jsiiCall("loadFoo", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void saveFoo(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { - this.jsiiCall("saveFoo", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule getFoo() { - return this.jsiiGet("foo", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setFoo(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { - this.jsiiSet("foo", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java deleted file mode 100644 index e889414de9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java +++ /dev/null @@ -1,40 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - *

- * EXPERIMENTAL - *

- * @return an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`. - * @see https://github.com/aws/jsii/issues/320 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReturnsPrivateImplementationOfInterface") -public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsii.JsiiObject { - - protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ReturnsPrivateImplementationOfInterface() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPrivatelyImplemented getPrivateImplementation() { - return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java deleted file mode 100644 index 3c4022e69e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java +++ /dev/null @@ -1,157 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - *

- * This is cheating with the (current) declared types, but this is the "more - * idiomatic" way for Pythonists. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStruct") -@software.amazon.jsii.Jsii.Proxy(RootStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface RootStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * May not be empty. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getStringProp(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { - return null; - } - - /** - * @return a {@link Builder} of {@link RootStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link RootStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String stringProp; - private software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; - - /** - * Sets the value of {@link RootStruct#getStringProp} - * @param stringProp May not be empty. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder stringProp(java.lang.String stringProp) { - this.stringProp = stringProp; - return this; - } - - /** - * Sets the value of {@link RootStruct#getNestedStruct} - * @param nestedStruct the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nestedStruct(software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { - this.nestedStruct = nestedStruct; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link RootStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public RootStruct build() { - return new Jsii$Proxy(stringProp, nestedStruct); - } - } - - /** - * An implementation for {@link RootStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootStruct { - private final java.lang.String stringProp; - private final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.stringProp = this.jsiiGet("stringProp", java.lang.String.class); - this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.NestedStruct.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.stringProp = java.util.Objects.requireNonNull(stringProp, "stringProp is required"); - this.nestedStruct = nestedStruct; - } - - @Override - public java.lang.String getStringProp() { - return this.stringProp; - } - - @Override - public software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { - return this.nestedStruct; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("stringProp", om.valueToTree(this.getStringProp())); - if (this.getNestedStruct() != null) { - data.set("nestedStruct", om.valueToTree(this.getNestedStruct())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.RootStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - RootStruct.Jsii$Proxy that = (RootStruct.Jsii$Proxy) o; - - if (!stringProp.equals(that.stringProp)) return false; - return this.nestedStruct != null ? this.nestedStruct.equals(that.nestedStruct) : that.nestedStruct == null; - } - - @Override - public int hashCode() { - int result = this.stringProp.hashCode(); - result = 31 * result + (this.nestedStruct != null ? this.nestedStruct.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java deleted file mode 100644 index d0eddb2d97..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java +++ /dev/null @@ -1,28 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStructValidator") -public class RootStructValidator extends software.amazon.jsii.JsiiObject { - - protected RootStructValidator(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected RootStructValidator(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param struct This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.RootStruct struct) { - software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java deleted file mode 100644 index 1b238c8ab0..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java +++ /dev/null @@ -1,113 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RuntimeTypeChecking") -public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { - - protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public RuntimeTypeChecking() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - * @param arg2 - * @param arg3 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2, arg3 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - * @param arg2 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2) { - this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2 }); - } - - /** - * EXPERIMENTAL - *

- * @param arg1 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1) { - this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1 }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithDefaultedArguments() { - this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - *

- * @param arg - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithOptionalAnyArgument(final @org.jetbrains.annotations.Nullable java.lang.Object arg) { - this.jsiiCall("methodWithOptionalAnyArgument", software.amazon.jsii.NativeType.VOID, new Object[] { arg }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithOptionalAnyArgument() { - this.jsiiCall("methodWithOptionalAnyArgument", software.amazon.jsii.NativeType.VOID); - } - - /** - * Used to verify verification of number of method arguments. - *

- * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 This parameter is required. - * @param arg3 - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - this.jsiiCall("methodWithOptionalArguments", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required"), arg3 }); - } - - /** - * Used to verify verification of number of method arguments. - *

- * EXPERIMENTAL - *

- * @param arg1 This parameter is required. - * @param arg2 This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { - this.jsiiCall("methodWithOptionalArguments", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java deleted file mode 100644 index cf36cab8d6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java +++ /dev/null @@ -1,154 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SecondLevelStruct") -@software.amazon.jsii.Jsii.Proxy(SecondLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * It's long and required. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getDeeperRequiredProp(); - - /** - * It's long, but you'll almost never pass it. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getDeeperOptionalProp() { - return null; - } - - /** - * @return a {@link Builder} of {@link SecondLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link SecondLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String deeperRequiredProp; - private java.lang.String deeperOptionalProp; - - /** - * Sets the value of {@link SecondLevelStruct#getDeeperRequiredProp} - * @param deeperRequiredProp It's long and required. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder deeperRequiredProp(java.lang.String deeperRequiredProp) { - this.deeperRequiredProp = deeperRequiredProp; - return this; - } - - /** - * Sets the value of {@link SecondLevelStruct#getDeeperOptionalProp} - * @param deeperOptionalProp It's long, but you'll almost never pass it. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder deeperOptionalProp(java.lang.String deeperOptionalProp) { - this.deeperOptionalProp = deeperOptionalProp; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link SecondLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public SecondLevelStruct build() { - return new Jsii$Proxy(deeperRequiredProp, deeperOptionalProp); - } - } - - /** - * An implementation for {@link SecondLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SecondLevelStruct { - private final java.lang.String deeperRequiredProp; - private final java.lang.String deeperOptionalProp; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.deeperRequiredProp = this.jsiiGet("deeperRequiredProp", java.lang.String.class); - this.deeperOptionalProp = this.jsiiGet("deeperOptionalProp", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String deeperRequiredProp, final java.lang.String deeperOptionalProp) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.deeperRequiredProp = java.util.Objects.requireNonNull(deeperRequiredProp, "deeperRequiredProp is required"); - this.deeperOptionalProp = deeperOptionalProp; - } - - @Override - public java.lang.String getDeeperRequiredProp() { - return this.deeperRequiredProp; - } - - @Override - public java.lang.String getDeeperOptionalProp() { - return this.deeperOptionalProp; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("deeperRequiredProp", om.valueToTree(this.getDeeperRequiredProp())); - if (this.getDeeperOptionalProp() != null) { - data.set("deeperOptionalProp", om.valueToTree(this.getDeeperOptionalProp())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.SecondLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - SecondLevelStruct.Jsii$Proxy that = (SecondLevelStruct.Jsii$Proxy) o; - - if (!deeperRequiredProp.equals(that.deeperRequiredProp)) return false; - return this.deeperOptionalProp != null ? this.deeperOptionalProp.equals(that.deeperOptionalProp) : that.deeperOptionalProp == null; - } - - @Override - public int hashCode() { - int result = this.deeperRequiredProp.hashCode(); - result = 31 * result + (this.deeperOptionalProp != null ? this.deeperOptionalProp.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java deleted file mode 100644 index 2f4069aa26..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java +++ /dev/null @@ -1,49 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Test that a single instance can be returned under two different FQNs. - *

- * JSII clients can instantiate 2 different strongly-typed wrappers for the same - * object. Unfortunately, this will break object equality, but if we didn't do - * this it would break runtime type checks in the JVM or CLR. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingleInstanceTwoTypes") -public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { - - protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SingleInstanceTwoTypes() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.InbetweenClass interface1() { - return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.InbetweenClass.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface interface2() { - return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.IPublicInterface.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java deleted file mode 100644 index ddfc60cac4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java +++ /dev/null @@ -1,32 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that singleton enums are handled correctly. - *

- * https://github.com/aws/jsii/issues/231 - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonInt") -public class SingletonInt extends software.amazon.jsii.JsiiObject { - - protected SingletonInt(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SingletonInt(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonInt(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - return this.jsiiCall("isSingletonInt", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java deleted file mode 100644 index 954ee14d05..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java +++ /dev/null @@ -1,19 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * A singleton integer. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonIntEnum") -public enum SingletonIntEnum { - /** - * Elite! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - SINGLETON_INT, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java deleted file mode 100644 index bb6c34c8d1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java +++ /dev/null @@ -1,32 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that singleton enums are handled correctly. - *

- * https://github.com/aws/jsii/issues/231 - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonString") -public class SingletonString extends software.amazon.jsii.JsiiObject { - - protected SingletonString(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SingletonString(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - return this.jsiiCall("isSingletonString", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java deleted file mode 100644 index eb528aa343..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java +++ /dev/null @@ -1,19 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * A singleton string. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonStringEnum") -public enum SingletonStringEnum { - /** - * 1337. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - SINGLETON_STRING, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java deleted file mode 100644 index f49b927e50..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java +++ /dev/null @@ -1,146 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SmellyStruct") -@software.amazon.jsii.Jsii.Proxy(SmellyStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getProperty(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getYetAnoterOne(); - - /** - * @return a {@link Builder} of {@link SmellyStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link SmellyStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String property; - private java.lang.Boolean yetAnoterOne; - - /** - * Sets the value of {@link SmellyStruct#getProperty} - * @param property the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder property(java.lang.String property) { - this.property = property; - return this; - } - - /** - * Sets the value of {@link SmellyStruct#getYetAnoterOne} - * @param yetAnoterOne the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder yetAnoterOne(java.lang.Boolean yetAnoterOne) { - this.yetAnoterOne = yetAnoterOne; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link SmellyStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public SmellyStruct build() { - return new Jsii$Proxy(property, yetAnoterOne); - } - } - - /** - * An implementation for {@link SmellyStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SmellyStruct { - private final java.lang.String property; - private final java.lang.Boolean yetAnoterOne; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.property = this.jsiiGet("property", java.lang.String.class); - this.yetAnoterOne = this.jsiiGet("yetAnoterOne", java.lang.Boolean.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String property, final java.lang.Boolean yetAnoterOne) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.property = java.util.Objects.requireNonNull(property, "property is required"); - this.yetAnoterOne = java.util.Objects.requireNonNull(yetAnoterOne, "yetAnoterOne is required"); - } - - @Override - public java.lang.String getProperty() { - return this.property; - } - - @Override - public java.lang.Boolean getYetAnoterOne() { - return this.yetAnoterOne; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("property", om.valueToTree(this.getProperty())); - data.set("yetAnoterOne", om.valueToTree(this.getYetAnoterOne())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.SmellyStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - SmellyStruct.Jsii$Proxy that = (SmellyStruct.Jsii$Proxy) o; - - if (!property.equals(that.property)) return false; - return this.yetAnoterOne.equals(that.yetAnoterOne); - } - - @Override - public int hashCode() { - int result = this.property.hashCode(); - result = 31 * result + (this.yetAnoterOne.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java deleted file mode 100644 index 71c82d8d9c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SomeTypeJsii976") -public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { - - protected SomeTypeJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SomeTypeJsii976(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SomeTypeJsii976() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Object returnAnonymous() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnJsii976 returnReturn() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.IReturnJsii976.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java deleted file mode 100644 index c98dd77ac2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java +++ /dev/null @@ -1,64 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableClass") -public class StableClass extends software.amazon.jsii.JsiiObject { - - protected StableClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected StableClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * @param readonlyString This parameter is required. - * @param mutableNumber - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); - } - - /** - * @param readonlyString This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public void method() { - this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet("mutableProperty", java.lang.Number.class); - } - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet("mutableProperty", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java deleted file mode 100644 index 7bc834ceba..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java +++ /dev/null @@ -1,17 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableEnum") -public enum StableEnum { - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - OPTION_A, - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - OPTION_B, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java deleted file mode 100644 index 53ff20b1f2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java +++ /dev/null @@ -1,115 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableStruct") -@software.amazon.jsii.Jsii.Proxy(StableStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -public interface StableStruct extends software.amazon.jsii.JsiiSerializable { - - /** - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty(); - - /** - * @return a {@link Builder} of {@link StableStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StableStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String readonlyProperty; - - /** - * Sets the value of {@link StableStruct#getReadonlyProperty} - * @param readonlyProperty the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public Builder readonlyProperty(java.lang.String readonlyProperty) { - this.readonlyProperty = readonlyProperty; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StableStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - @Override - public StableStruct build() { - return new Jsii$Proxy(readonlyProperty); - } - } - - /** - * An implementation for {@link StableStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StableStruct { - private final java.lang.String readonlyProperty; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String readonlyProperty) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); - } - - @Override - public java.lang.String getReadonlyProperty() { - return this.readonlyProperty; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StableStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StableStruct.Jsii$Proxy that = (StableStruct.Jsii$Proxy) o; - - return this.readonlyProperty.equals(that.readonlyProperty); - } - - @Override - public int hashCode() { - int result = this.readonlyProperty.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java deleted file mode 100644 index bd8decd15b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java +++ /dev/null @@ -1,46 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This is used to validate the ability to use `this` from within a static context. - *

- * https://github.com/awslabs/aws-cdk/issues/2304 - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StaticContext") -public class StaticContext extends software.amazon.jsii.JsiiObject { - - protected StaticContext(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean canAccessStaticContext() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean getStaticVariable() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.lang.Boolean.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setStaticVariable(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java deleted file mode 100644 index e6721a2d42..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java +++ /dev/null @@ -1,134 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Statics") -public class Statics extends software.amazon.jsii.JsiiObject { - - protected Statics(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Statics(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - static { - BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "BAR", java.lang.Number.class); - CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.DoubleTrouble.class); - FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "Foo", java.lang.String.class); - ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * Jsdocs for static method. - *

- * EXPERIMENTAL - *

- * @param name The name of the person to say hello to. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.String staticMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String justMethod() { - return this.jsiiCall("justMethod", java.lang.String.class); - } - - /** - * Constants may also use all-caps. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static java.lang.Number BAR; - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static software.amazon.jsii.tests.calculator.DoubleTrouble CONST_OBJ; - - /** - * Jsdocs for static property. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static java.lang.String FOO; - - /** - * Constants can also use camelCase. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static java.util.Map ZOO_BAR; - - /** - * Jsdocs for static getter. - *

- * Jsdocs for static setter. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics getInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "instance", software.amazon.jsii.tests.calculator.Statics.class); - } - - /** - * Jsdocs for static getter. - *

- * Jsdocs for static setter. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Number getNonConstStatic() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setNonConstStatic(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet("value", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java deleted file mode 100644 index 948d3e50f3..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java +++ /dev/null @@ -1,25 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StringEnum") -public enum StringEnum { - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - A, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - B, - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - C, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java deleted file mode 100644 index 4bcd0cf330..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StripInternal") -public class StripInternal extends software.amazon.jsii.JsiiObject { - - protected StripInternal(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected StripInternal(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public StripInternal() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getYouSeeMe() { - return this.jsiiGet("youSeeMe", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setYouSeeMe(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("youSeeMe", java.util.Objects.requireNonNull(value, "youSeeMe is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java deleted file mode 100644 index 6de4a0dd65..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java +++ /dev/null @@ -1,185 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * We can serialize and deserialize structs without silently ignoring optional fields. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructA") -@software.amazon.jsii.Jsii.Proxy(StructA.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface StructA extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getRequiredString(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Number getOptionalNumber() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getOptionalString() { - return null; - } - - /** - * @return a {@link Builder} of {@link StructA} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructA} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String requiredString; - private java.lang.Number optionalNumber; - private java.lang.String optionalString; - - /** - * Sets the value of {@link StructA#getRequiredString} - * @param requiredString the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder requiredString(java.lang.String requiredString) { - this.requiredString = requiredString; - return this; - } - - /** - * Sets the value of {@link StructA#getOptionalNumber} - * @param optionalNumber the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalNumber(java.lang.Number optionalNumber) { - this.optionalNumber = optionalNumber; - return this; - } - - /** - * Sets the value of {@link StructA#getOptionalString} - * @param optionalString the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalString(java.lang.String optionalString) { - this.optionalString = optionalString; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructA} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public StructA build() { - return new Jsii$Proxy(requiredString, optionalNumber, optionalString); - } - } - - /** - * An implementation for {@link StructA} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructA { - private final java.lang.String requiredString; - private final java.lang.Number optionalNumber; - private final java.lang.String optionalString; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); - this.optionalNumber = this.jsiiGet("optionalNumber", java.lang.Number.class); - this.optionalString = this.jsiiGet("optionalString", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Number optionalNumber, final java.lang.String optionalString) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); - this.optionalNumber = optionalNumber; - this.optionalString = optionalString; - } - - @Override - public java.lang.String getRequiredString() { - return this.requiredString; - } - - @Override - public java.lang.Number getOptionalNumber() { - return this.optionalNumber; - } - - @Override - public java.lang.String getOptionalString() { - return this.optionalString; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("requiredString", om.valueToTree(this.getRequiredString())); - if (this.getOptionalNumber() != null) { - data.set("optionalNumber", om.valueToTree(this.getOptionalNumber())); - } - if (this.getOptionalString() != null) { - data.set("optionalString", om.valueToTree(this.getOptionalString())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructA")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructA.Jsii$Proxy that = (StructA.Jsii$Proxy) o; - - if (!requiredString.equals(that.requiredString)) return false; - if (this.optionalNumber != null ? !this.optionalNumber.equals(that.optionalNumber) : that.optionalNumber != null) return false; - return this.optionalString != null ? this.optionalString.equals(that.optionalString) : that.optionalString == null; - } - - @Override - public int hashCode() { - int result = this.requiredString.hashCode(); - result = 31 * result + (this.optionalNumber != null ? this.optionalNumber.hashCode() : 0); - result = 31 * result + (this.optionalString != null ? this.optionalString.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java deleted file mode 100644 index b6f7ed1321..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java +++ /dev/null @@ -1,185 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructB") -@software.amazon.jsii.Jsii.Proxy(StructB.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface StructB extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getRequiredString(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Boolean getOptionalBoolean() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { - return null; - } - - /** - * @return a {@link Builder} of {@link StructB} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructB} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String requiredString; - private java.lang.Boolean optionalBoolean; - private software.amazon.jsii.tests.calculator.StructA optionalStructA; - - /** - * Sets the value of {@link StructB#getRequiredString} - * @param requiredString the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder requiredString(java.lang.String requiredString) { - this.requiredString = requiredString; - return this; - } - - /** - * Sets the value of {@link StructB#getOptionalBoolean} - * @param optionalBoolean the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalBoolean(java.lang.Boolean optionalBoolean) { - this.optionalBoolean = optionalBoolean; - return this; - } - - /** - * Sets the value of {@link StructB#getOptionalStructA} - * @param optionalStructA the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalStructA(software.amazon.jsii.tests.calculator.StructA optionalStructA) { - this.optionalStructA = optionalStructA; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructB} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public StructB build() { - return new Jsii$Proxy(requiredString, optionalBoolean, optionalStructA); - } - } - - /** - * An implementation for {@link StructB} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructB { - private final java.lang.String requiredString; - private final java.lang.Boolean optionalBoolean; - private final software.amazon.jsii.tests.calculator.StructA optionalStructA; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); - this.optionalBoolean = this.jsiiGet("optionalBoolean", java.lang.Boolean.class); - this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.StructA.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.StructA optionalStructA) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); - this.optionalBoolean = optionalBoolean; - this.optionalStructA = optionalStructA; - } - - @Override - public java.lang.String getRequiredString() { - return this.requiredString; - } - - @Override - public java.lang.Boolean getOptionalBoolean() { - return this.optionalBoolean; - } - - @Override - public software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { - return this.optionalStructA; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("requiredString", om.valueToTree(this.getRequiredString())); - if (this.getOptionalBoolean() != null) { - data.set("optionalBoolean", om.valueToTree(this.getOptionalBoolean())); - } - if (this.getOptionalStructA() != null) { - data.set("optionalStructA", om.valueToTree(this.getOptionalStructA())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructB")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructB.Jsii$Proxy that = (StructB.Jsii$Proxy) o; - - if (!requiredString.equals(that.requiredString)) return false; - if (this.optionalBoolean != null ? !this.optionalBoolean.equals(that.optionalBoolean) : that.optionalBoolean != null) return false; - return this.optionalStructA != null ? this.optionalStructA.equals(that.optionalStructA) : that.optionalStructA == null; - } - - @Override - public int hashCode() { - int result = this.requiredString.hashCode(); - result = 31 * result + (this.optionalBoolean != null ? this.optionalBoolean.hashCode() : 0); - result = 31 * result + (this.optionalStructA != null ? this.optionalStructA.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java deleted file mode 100644 index ccb9806098..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java +++ /dev/null @@ -1,154 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - *

- * See: https://github.com/aws/aws-cdk/issues/4302 - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructParameterType") -@software.amazon.jsii.Jsii.Proxy(StructParameterType.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface StructParameterType extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getScope(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Boolean getProps() { - return null; - } - - /** - * @return a {@link Builder} of {@link StructParameterType} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructParameterType} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String scope; - private java.lang.Boolean props; - - /** - * Sets the value of {@link StructParameterType#getScope} - * @param scope the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder scope(java.lang.String scope) { - this.scope = scope; - return this; - } - - /** - * Sets the value of {@link StructParameterType#getProps} - * @param props the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder props(java.lang.Boolean props) { - this.props = props; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructParameterType} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public StructParameterType build() { - return new Jsii$Proxy(scope, props); - } - } - - /** - * An implementation for {@link StructParameterType} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructParameterType { - private final java.lang.String scope; - private final java.lang.Boolean props; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.scope = this.jsiiGet("scope", java.lang.String.class); - this.props = this.jsiiGet("props", java.lang.Boolean.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String scope, final java.lang.Boolean props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.scope = java.util.Objects.requireNonNull(scope, "scope is required"); - this.props = props; - } - - @Override - public java.lang.String getScope() { - return this.scope; - } - - @Override - public java.lang.Boolean getProps() { - return this.props; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("scope", om.valueToTree(this.getScope())); - if (this.getProps() != null) { - data.set("props", om.valueToTree(this.getProps())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructParameterType")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructParameterType.Jsii$Proxy that = (StructParameterType.Jsii$Proxy) o; - - if (!scope.equals(that.scope)) return false; - return this.props != null ? this.props.equals(that.props) : that.props == null; - } - - @Override - public int hashCode() { - int result = this.scope.hashCode(); - result = 31 * result + (this.props != null ? this.props.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java deleted file mode 100644 index 9ef8213c0e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java +++ /dev/null @@ -1,45 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Just because we can. - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructPassing") -public class StructPassing extends software.amazon.jsii.JsiiObject { - - protected StructPassing(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected StructPassing(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public StructPassing() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * @param _positional This parameter is required. - * @param inputs This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct... inputs) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); - } - - /** - * @param _positional This parameter is required. - * @param input This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct input) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java deleted file mode 100644 index 045dac6713..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java +++ /dev/null @@ -1,38 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructUnionConsumer") -public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { - - protected StructUnionConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param struct This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructA(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param struct This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructB(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java deleted file mode 100644 index d7734da432..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java +++ /dev/null @@ -1,216 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructWithJavaReservedWords") -@software.amazon.jsii.Jsii.Proxy(StructWithJavaReservedWords.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getDefaultValue(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getAssertValue() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getResult() { - return null; - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getThat() { - return null; - } - - /** - * @return a {@link Builder} of {@link StructWithJavaReservedWords} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructWithJavaReservedWords} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String defaultValue; - private java.lang.String assertValue; - private java.lang.String result; - private java.lang.String that; - - /** - * Sets the value of {@link StructWithJavaReservedWords#getDefaultValue} - * @param defaultValue the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder defaultValue(java.lang.String defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - /** - * Sets the value of {@link StructWithJavaReservedWords#getAssertValue} - * @param assertValue the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder assertValue(java.lang.String assertValue) { - this.assertValue = assertValue; - return this; - } - - /** - * Sets the value of {@link StructWithJavaReservedWords#getResult} - * @param result the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder result(java.lang.String result) { - this.result = result; - return this; - } - - /** - * Sets the value of {@link StructWithJavaReservedWords#getThat} - * @param that the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder that(java.lang.String that) { - this.that = that; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructWithJavaReservedWords} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public StructWithJavaReservedWords build() { - return new Jsii$Proxy(defaultValue, assertValue, result, that); - } - } - - /** - * An implementation for {@link StructWithJavaReservedWords} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithJavaReservedWords { - private final java.lang.String defaultValue; - private final java.lang.String assertValue; - private final java.lang.String result; - private final java.lang.String that; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.defaultValue = this.jsiiGet("default", java.lang.String.class); - this.assertValue = this.jsiiGet("assert", java.lang.String.class); - this.result = this.jsiiGet("result", java.lang.String.class); - this.that = this.jsiiGet("that", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String defaultValue, final java.lang.String assertValue, final java.lang.String result, final java.lang.String that) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.defaultValue = java.util.Objects.requireNonNull(defaultValue, "defaultValue is required"); - this.assertValue = assertValue; - this.result = result; - this.that = that; - } - - @Override - public java.lang.String getDefaultValue() { - return this.defaultValue; - } - - @Override - public java.lang.String getAssertValue() { - return this.assertValue; - } - - @Override - public java.lang.String getResult() { - return this.result; - } - - @Override - public java.lang.String getThat() { - return this.that; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("default", om.valueToTree(this.getDefaultValue())); - if (this.getAssertValue() != null) { - data.set("assert", om.valueToTree(this.getAssertValue())); - } - if (this.getResult() != null) { - data.set("result", om.valueToTree(this.getResult())); - } - if (this.getThat() != null) { - data.set("that", om.valueToTree(this.getThat())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructWithJavaReservedWords")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructWithJavaReservedWords.Jsii$Proxy that = (StructWithJavaReservedWords.Jsii$Proxy) o; - - if (!defaultValue.equals(that.defaultValue)) return false; - if (this.assertValue != null ? !this.assertValue.equals(that.assertValue) : that.assertValue != null) return false; - if (this.result != null ? !this.result.equals(that.result) : that.result != null) return false; - return this.that != null ? this.that.equals(that.that) : that.that == null; - } - - @Override - public int hashCode() { - int result = this.defaultValue.hashCode(); - result = 31 * result + (this.assertValue != null ? this.assertValue.hashCode() : 0); - result = 31 * result + (this.result != null ? this.result.hashCode() : 0); - result = 31 * result + (this.that != null ? this.that.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java deleted file mode 100644 index 35332891e6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java +++ /dev/null @@ -1,62 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * An operation that sums multiple values. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Sum") -public class Sum extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { - - protected Sum(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Sum(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Sum() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * The expression that this operation consists of. - *

- * Must be implemented by derived classes. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * The parts to sum. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getParts() { - return java.util.Collections.unmodifiableList(this.jsiiGet("parts", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); - } - - /** - * The parts to sum. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setParts(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("parts", java.util.Objects.requireNonNull(value, "parts is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java deleted file mode 100644 index 23e8805787..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilder") -public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps { - - protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param id some identifier. This parameter is required. - * @param defaultBar the default value of `bar`. - * @param props some props once can provide. - * @param rest a variadic continuation. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, "id is required"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); - } - - /** - * some identifier. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getId() { - return this.jsiiGet("id", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getRest() { - return java.util.Collections.unmodifiableList(this.jsiiGet("rest", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - * @param id some identifier. This parameter is required. - * @param defaultBar the default value of `bar`. - * @param rest a variadic continuation. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { - return new Builder(id, defaultBar, rest); - } - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - * @param id some identifier. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final java.lang.Number id) { - return new Builder(id, null, null); - } - - private final java.lang.Number id; - private final java.lang.Number defaultBar; - private final java.lang.String[] rest; - private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; - - private Builder(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { - this.id = id; - this.defaultBar = defaultBar; - this.rest = rest; - } - - /** - * Some number, like 42. - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param bar Some number, like 42. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(final java.lang.Number bar) { - this.props().bar(bar); - return this; - } - - /** - * An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - *

- * But here we are, doing it like we didn't care. - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param id An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder id(final java.lang.String id) { - this.props().id(id); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder build() { - return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder( - this.id, - this.defaultBar, - this.props != null ? this.props.build() : null, - this.rest - ); - } - - private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props() { - if (this.props == null) { - this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); - } - return this.props; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java deleted file mode 100644 index e19a2da577..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java +++ /dev/null @@ -1,157 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderProps") -@software.amazon.jsii.Jsii.Proxy(SupportsNiceJavaBuilderProps.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiSerializable { - - /** - * Some number, like 42. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getBar(); - - /** - * An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - *

- * But here we are, doing it like we didn't care. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getId() { - return null; - } - - /** - * @return a {@link Builder} of {@link SupportsNiceJavaBuilderProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link SupportsNiceJavaBuilderProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number bar; - private java.lang.String id; - - /** - * Sets the value of {@link SupportsNiceJavaBuilderProps#getBar} - * @param bar Some number, like 42. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(java.lang.Number bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link SupportsNiceJavaBuilderProps#getId} - * @param id An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - * But here we are, doing it like we didn't care. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder id(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link SupportsNiceJavaBuilderProps} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public SupportsNiceJavaBuilderProps build() { - return new Jsii$Proxy(bar, id); - } - } - - /** - * An implementation for {@link SupportsNiceJavaBuilderProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SupportsNiceJavaBuilderProps { - private final java.lang.Number bar; - private final java.lang.String id; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.bar = this.jsiiGet("bar", java.lang.Number.class); - this.id = this.jsiiGet("id", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number bar, final java.lang.String id) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); - this.id = id; - } - - @Override - public java.lang.Number getBar() { - return this.bar; - } - - @Override - public java.lang.String getId() { - return this.id; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("bar", om.valueToTree(this.getBar())); - if (this.getId() != null) { - data.set("id", om.valueToTree(this.getId())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.SupportsNiceJavaBuilderProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - SupportsNiceJavaBuilderProps.Jsii$Proxy that = (SupportsNiceJavaBuilderProps.Jsii$Proxy) o; - - if (!bar.equals(that.bar)) return false; - return this.id != null ? this.id.equals(that.id) : that.id == null; - } - - @Override - public int hashCode() { - int result = this.bar.hashCode(); - result = 31 * result + (this.id != null ? this.id.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java deleted file mode 100644 index 72eb57758e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java +++ /dev/null @@ -1,125 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps") -public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.jsii.JsiiObject { - - protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param id some identifier of your choice. This parameter is required. - * @param props some properties. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getBar() { - return this.jsiiGet("bar", java.lang.Number.class); - } - - /** - * some identifier of your choice. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getId() { - return this.jsiiGet("id", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.String getPropId() { - return this.jsiiGet("propId", java.lang.String.class); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - * @param id some identifier of your choice. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final java.lang.Number id) { - return new Builder(id); - } - - private final java.lang.Number id; - private final software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; - - private Builder(final java.lang.Number id) { - this.id = id; - this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); - } - - /** - * Some number, like 42. - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param bar Some number, like 42. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(final java.lang.Number bar) { - this.props.bar(bar); - return this; - } - - /** - * An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. - *

- * But here we are, doing it like we didn't care. - *

- * EXPERIMENTAL - *

- * @return {@code this} - * @param id An `id` field here is terrible API design, because the constructor of `SupportsNiceJavaBuilder` already has a parameter named `id`. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder id(final java.lang.String id) { - this.props.id(id); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps build() { - return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps( - this.id, - this.props.build() - ); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java deleted file mode 100644 index e1d2e15c7b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java +++ /dev/null @@ -1,203 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SyncVirtualMethods") -public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { - - protected SyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected SyncVirtualMethods(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SyncVirtualMethods() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number callerIsAsync() { - return this.jsiiAsyncCall("callerIsAsync", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number callerIsMethod() { - return this.jsiiCall("callerIsMethod", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void modifyOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiCall("modifyOtherProperty", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void modifyValueOfTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiCall("modifyValueOfTheProperty", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number readA() { - return this.jsiiCall("readA", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String retrieveOtherProperty() { - return this.jsiiCall("retrieveOtherProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String retrieveReadOnlyProperty() { - return this.jsiiCall("retrieveReadOnlyProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String retrieveValueOfTheProperty() { - return this.jsiiCall("retrieveValueOfTheProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - *

- * @param n This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number virtualMethod(final @org.jetbrains.annotations.NotNull java.lang.Number n) { - return this.jsiiCall("virtualMethod", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(n, "n is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void writeA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall("writeA", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet("readonlyProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getA() { - return this.jsiiGet("a", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getCallerIsProperty() { - return this.jsiiGet("callerIsProperty", java.lang.Number.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setCallerIsProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet("callerIsProperty", java.util.Objects.requireNonNull(value, "callerIsProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getOtherProperty() { - return this.jsiiGet("otherProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("otherProperty", java.util.Objects.requireNonNull(value, "otherProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getTheProperty() { - return this.jsiiGet("theProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("theProperty", java.util.Objects.requireNonNull(value, "theProperty is required")); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getValueOfOtherProperty() { - return this.jsiiGet("valueOfOtherProperty", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setValueOfOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("valueOfOtherProperty", java.util.Objects.requireNonNull(value, "valueOfOtherProperty is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java deleted file mode 100644 index d38325ce53..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Thrower") -public class Thrower extends software.amazon.jsii.JsiiObject { - - protected Thrower(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Thrower(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Thrower() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void throwError() { - this.jsiiCall("throwError", software.amazon.jsii.NativeType.VOID); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java deleted file mode 100644 index d00c48a735..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java +++ /dev/null @@ -1,196 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.TopLevelStruct") -@software.amazon.jsii.Jsii.Proxy(TopLevelStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * This is a required field. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getRequired(); - - /** - * A union to really stress test our serialization. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Object getSecondLevel(); - - /** - * You don't have to pass this. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getOptional() { - return null; - } - - /** - * @return a {@link Builder} of {@link TopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link TopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String required; - private java.lang.Object secondLevel; - private java.lang.String optional; - - /** - * Sets the value of {@link TopLevelStruct#getRequired} - * @param required This is a required field. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder required(java.lang.String required) { - this.required = required; - return this; - } - - /** - * Sets the value of {@link TopLevelStruct#getSecondLevel} - * @param secondLevel A union to really stress test our serialization. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondLevel(java.lang.Number secondLevel) { - this.secondLevel = secondLevel; - return this; - } - - /** - * Sets the value of {@link TopLevelStruct#getSecondLevel} - * @param secondLevel A union to really stress test our serialization. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondLevel(software.amazon.jsii.tests.calculator.SecondLevelStruct secondLevel) { - this.secondLevel = secondLevel; - return this; - } - - /** - * Sets the value of {@link TopLevelStruct#getOptional} - * @param optional You don't have to pass this. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optional(java.lang.String optional) { - this.optional = optional; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link TopLevelStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public TopLevelStruct build() { - return new Jsii$Proxy(required, secondLevel, optional); - } - } - - /** - * An implementation for {@link TopLevelStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TopLevelStruct { - private final java.lang.String required; - private final java.lang.Object secondLevel; - private final java.lang.String optional; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.required = this.jsiiGet("required", java.lang.String.class); - this.secondLevel = this.jsiiGet("secondLevel", java.lang.Object.class); - this.optional = this.jsiiGet("optional", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String required, final java.lang.Object secondLevel, final java.lang.String optional) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.required = java.util.Objects.requireNonNull(required, "required is required"); - this.secondLevel = java.util.Objects.requireNonNull(secondLevel, "secondLevel is required"); - this.optional = optional; - } - - @Override - public java.lang.String getRequired() { - return this.required; - } - - @Override - public java.lang.Object getSecondLevel() { - return this.secondLevel; - } - - @Override - public java.lang.String getOptional() { - return this.optional; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("required", om.valueToTree(this.getRequired())); - data.set("secondLevel", om.valueToTree(this.getSecondLevel())); - if (this.getOptional() != null) { - data.set("optional", om.valueToTree(this.getOptional())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.TopLevelStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - TopLevelStruct.Jsii$Proxy that = (TopLevelStruct.Jsii$Proxy) o; - - if (!required.equals(that.required)) return false; - if (!secondLevel.equals(that.secondLevel)) return false; - return this.optional != null ? this.optional.equals(that.optional) : that.optional == null; - } - - @Override - public int hashCode() { - int result = this.required.hashCode(); - result = 31 * result + (this.secondLevel.hashCode()); - result = 31 * result + (this.optional != null ? this.optional.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java deleted file mode 100644 index e4709dc217..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java +++ /dev/null @@ -1,32 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Checks the current file permissions are cool (no funky UMASK down-scoping happened). - *

- * EXPERIMENTAL - *

- * @see https://github.com/aws/jsii/issues/1765 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck") -public class UmaskCheck extends software.amazon.jsii.JsiiObject { - - protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * This should return 0o644 (-rw-r--r--). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java deleted file mode 100644 index b521b6421a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java +++ /dev/null @@ -1,68 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * An operation on a single operand. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnaryOperation") -public abstract class UnaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation { - - protected UnaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UnaryOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param operand This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected UnaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, "operand is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getOperand() { - return this.jsiiGet("operand", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.UnaryOperation { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * The value. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java deleted file mode 100644 index 6406e8098c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java +++ /dev/null @@ -1,183 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnionProperties") -@software.amazon.jsii.Jsii.Proxy(UnionProperties.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Object getBar(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.Object getFoo() { - return null; - } - - /** - * @return a {@link Builder} of {@link UnionProperties} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link UnionProperties} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Object bar; - private java.lang.Object foo; - - /** - * Sets the value of {@link UnionProperties#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(java.lang.String bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link UnionProperties#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(java.lang.Number bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link UnionProperties#getBar} - * @param bar the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(software.amazon.jsii.tests.calculator.AllTypes bar) { - this.bar = bar; - return this; - } - - /** - * Sets the value of {@link UnionProperties#getFoo} - * @param foo the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.String foo) { - this.foo = foo; - return this; - } - - /** - * Sets the value of {@link UnionProperties#getFoo} - * @param foo the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.Number foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link UnionProperties} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public UnionProperties build() { - return new Jsii$Proxy(bar, foo); - } - } - - /** - * An implementation for {@link UnionProperties} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements UnionProperties { - private final java.lang.Object bar; - private final java.lang.Object foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.bar = this.jsiiGet("bar", java.lang.Object.class); - this.foo = this.jsiiGet("foo", java.lang.Object.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Object bar, final java.lang.Object foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); - this.foo = foo; - } - - @Override - public java.lang.Object getBar() { - return this.bar; - } - - @Override - public java.lang.Object getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("bar", om.valueToTree(this.getBar())); - if (this.getFoo() != null) { - data.set("foo", om.valueToTree(this.getFoo())); - } - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.UnionProperties")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - UnionProperties.Jsii$Proxy that = (UnionProperties.Jsii$Proxy) o; - - if (!bar.equals(that.bar)) return false; - return this.foo != null ? this.foo.equals(that.foo) : that.foo == null; - } - - @Override - public int hashCode() { - int result = this.bar.hashCode(); - result = 31 * result + (this.foo != null ? this.foo.hashCode() : 0); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java deleted file mode 100644 index e2e2ba4cdd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java +++ /dev/null @@ -1,50 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Ensures submodule-imported types from dependencies can be used correctly. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UpcasingReflectable") -public class UpcasingReflectable extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable { - - protected UpcasingReflectable(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UpcasingReflectable(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - static { - REFLECTOR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.UpcasingReflectable.class, "reflector", software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector.class); - } - - /** - * EXPERIMENTAL - *

- * @param delegate This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UpcasingReflectable(final @org.jetbrains.annotations.NotNull java.util.Map delegate) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector REFLECTOR; - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getEntries() { - return java.util.Collections.unmodifiableList(this.jsiiGet("entries", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java deleted file mode 100644 index 38e81822d2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseBundledDependency") -public class UseBundledDependency extends software.amazon.jsii.JsiiObject { - - protected UseBundledDependency(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UseBundledDependency(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UseBundledDependency() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object value() { - return this.jsiiCall("value", java.lang.Object.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java deleted file mode 100644 index 4506598b85..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseCalcBase") -public class UseCalcBase extends software.amazon.jsii.JsiiObject { - - protected UseCalcBase(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UseCalcBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UseCalcBase() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.base.Base hello() { - return this.jsiiCall("hello", software.amazon.jsii.tests.calculator.base.Base.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java deleted file mode 100644 index fc14df07e5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java +++ /dev/null @@ -1,65 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UsesInterfaceWithProperties") -public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject { - - protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param obj This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties obj) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String justRead() { - return this.jsiiCall("justRead", java.lang.String.class); - } - - /** - * EXPERIMENTAL - *

- * @param ext This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension ext) { - return this.jsiiCall("readStringAndNumber", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, "ext is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param value This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String writeAndRead(final @org.jetbrains.annotations.NotNull java.lang.String value) { - return this.jsiiCall("writeAndRead", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties getObj() { - return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java deleted file mode 100644 index 701f53dce1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java +++ /dev/null @@ -1,39 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicInvoker") -public class VariadicInvoker extends software.amazon.jsii.JsiiObject { - - protected VariadicInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected VariadicInvoker(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param method This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.VariadicMethod method) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, "method is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param values This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number... values) { - return java.util.Collections.unmodifiableList(this.jsiiCall("asArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.Arrays.stream(values).toArray(Object[]::new))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java deleted file mode 100644 index 2d61b3fa33..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java +++ /dev/null @@ -1,40 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicMethod") -public class VariadicMethod extends software.amazon.jsii.JsiiObject { - - protected VariadicMethod(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected VariadicMethod(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param prefix a prefix that will be use for all values returned by `#asArray`. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public VariadicMethod(final @org.jetbrains.annotations.NotNull java.lang.Number... prefix) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.Arrays.stream(prefix).toArray(Object[]::new)); - } - - /** - * EXPERIMENTAL - *

- * @param first the first element of the array to be returned (after the `prefix` provided at construction time). This parameter is required. - * @param others other elements to be included in the array. This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number first, final @org.jetbrains.annotations.NotNull java.lang.Number... others) { - return java.util.Collections.unmodifiableList(this.jsiiCall("asArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(first, "first is required") }), java.util.Arrays.stream(others)).toArray(Object[]::new))); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java deleted file mode 100644 index 000deed0cd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java +++ /dev/null @@ -1,77 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VirtualMethodPlayground") -public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { - - protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public VirtualMethodPlayground() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - *

- * @param index This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeAsync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { - return this.jsiiAsyncCall("overrideMeAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, "index is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param index This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeSync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { - return this.jsiiCall("overrideMeSync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, "index is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param count This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number parallelSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiAsyncCall("parallelSumAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param count This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number serialSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiAsyncCall("serialSumAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param count This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number sumSync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiCall("sumSync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java deleted file mode 100644 index 1fefe83028..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java +++ /dev/null @@ -1,75 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * This test is used to validate the runtimes can return correctly from a void callback. - *

- *

    - *
  • Implement overrideMe (method does not have to do anything).
  • - *
  • Invoke callMe
  • - *
  • Verify that methodWasCalled is true.
  • - *
- *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VoidCallback") -public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { - - protected VoidCallback(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected VoidCallback(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected VoidCallback() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void callMe() { - this.jsiiCall("callMe", software.amazon.jsii.NativeType.VOID); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - protected abstract void overrideMe(); - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getMethodWasCalled() { - return this.jsiiGet("methodWasCalled", java.lang.Boolean.class); - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.VoidCallback { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - protected void overrideMe() { - this.jsiiCall("overrideMe", software.amazon.jsii.NativeType.VOID); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java deleted file mode 100644 index 307ba31434..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java +++ /dev/null @@ -1,48 +0,0 @@ -package software.amazon.jsii.tests.calculator; - -/** - * Verifies that private property declarations in constructor arguments are hidden. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.WithPrivatePropertyInConstructor") -public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiObject { - - protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param privateField - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public WithPrivatePropertyInConstructor(final @org.jetbrains.annotations.Nullable java.lang.String privateField) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { privateField }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public WithPrivatePropertyInConstructor() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet("success", java.lang.Boolean.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java deleted file mode 100644 index 30ed985b1e..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java +++ /dev/null @@ -1,182 +0,0 @@ -package software.amazon.jsii.tests.calculator.composition; - -/** - * Abstract operation composed from an expression of other operations. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.composition.CompositeOperation") -public abstract class CompositeOperation extends software.amazon.jsii.tests.calculator.lib.Operation { - - protected CompositeOperation(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected CompositeOperation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - protected CompositeOperation() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * String representation of the value. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - - /** - * The expression that this operation consists of. - *

- * Must be implemented by derived classes. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression(); - - /** - * The value. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * A set of postfixes to include in a decorated .toString(). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getDecorationPostfixes() { - return java.util.Collections.unmodifiableList(this.jsiiGet("decorationPostfixes", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * A set of postfixes to include in a decorated .toString(). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setDecorationPostfixes(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("decorationPostfixes", java.util.Objects.requireNonNull(value, "decorationPostfixes is required")); - } - - /** - * A set of prefixes to include in a decorated .toString(). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.util.List getDecorationPrefixes() { - return java.util.Collections.unmodifiableList(this.jsiiGet("decorationPrefixes", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); - } - - /** - * A set of prefixes to include in a decorated .toString(). - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setDecorationPrefixes(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet("decorationPrefixes", java.util.Objects.requireNonNull(value, "decorationPrefixes is required")); - } - - /** - * The .toString() style. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle getStringStyle() { - return this.jsiiGet("stringStyle", software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class); - } - - /** - * The .toString() style. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setStringStyle(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle value) { - this.jsiiSet("stringStyle", java.util.Objects.requireNonNull(value, "stringStyle is required")); - } - /** - * Style of .toString() output for CompositeOperation. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.composition.CompositeOperation.CompositionStringStyle") - public enum CompositionStringStyle { - /** - * Normal string expression. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - NORMAL, - /** - * Decorated string expression. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - DECORATED, - } - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * The expression that this operation consists of. - *

- * Must be implemented by derived classes. - *

- * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); - } - - /** - * The value. - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet("value", java.lang.Number.class); - } - - /** - * String representation of the value. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) - @Deprecated - @Override - public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall("toString", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java deleted file mode 100644 index 1bded472f4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Base") -public class Base extends software.amazon.jsii.JsiiObject { - - protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Base(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Base() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getProp() { - return this.jsiiGet("prop", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet("prop", java.util.Objects.requireNonNull(value, "prop is required")); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java deleted file mode 100644 index 2d8d09c700..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java +++ /dev/null @@ -1,27 +0,0 @@ -package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Derived") -public class Derived extends software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base { - - protected Derived(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Derived(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Derived() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java deleted file mode 100644 index 7cd7e3a71c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java +++ /dev/null @@ -1,43 +0,0 @@ -package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo") -public class Foo extends software.amazon.jsii.JsiiObject { - - protected Foo(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Foo(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Foo() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable java.lang.String getBar() { - return this.jsiiGet("bar", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setBar(final @org.jetbrains.annotations.Nullable java.lang.String value) { - this.jsiiSet("bar", value); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java deleted file mode 100644 index 3de86d1e8b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello") -@software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface Hello extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); - - /** - * @return a {@link Builder} of {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number foo; - - /** - * Sets the value of {@link Hello#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.Number foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link Hello} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public Hello build() { - return new Jsii$Proxy(foo); - } - } - - /** - * An implementation for {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Hello { - private final java.lang.Number foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.foo = this.jsiiGet("foo", java.lang.Number.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.lang.Number getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Hello.Jsii$Proxy that = (Hello.Jsii$Proxy) o; - - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.foo.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java deleted file mode 100644 index 86288093e9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello") -@software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface Hello extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); - - /** - * @return a {@link Builder} of {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Number foo; - - /** - * Sets the value of {@link Hello#getFoo} - * @param foo the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder foo(java.lang.Number foo) { - this.foo = foo; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link Hello} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public Hello build() { - return new Jsii$Proxy(foo); - } - } - - /** - * An implementation for {@link Hello} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Hello { - private final java.lang.Number foo; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.foo = this.jsiiGet("foo", java.lang.Number.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Number foo) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); - } - - @Override - public java.lang.Number getFoo() { - return this.foo; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("foo", om.valueToTree(this.getFoo())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Hello.Jsii$Proxy that = (Hello.Jsii$Proxy) o; - - return this.foo.equals(that.foo); - } - - @Override - public int hashCode() { - int result = this.foo.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java deleted file mode 100644 index ccc370a233..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - *

jsii Calculator

- *

- * This library is used to demonstrate and test the features of JSII - *

- *

How to use running sum API:

- *

- * First, create a calculator: - *

- *

- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * Calculator calculator = new Calculator();
- * 
- *

- * Then call some operations: - *

- *

- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * calculator.add(10);
- * 
- *

- *

Code Samples

- *

- *

- * // Example automatically generated. See https://github.com/aws/jsii/issues/826
- * /* This is totes a magic comment in here, just you wait! *{@literal /}
- * String foo = "bar";
- * 
- */ -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -package software.amazon.jsii.tests.calculator; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java deleted file mode 100644 index 54b686b7ec..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java +++ /dev/null @@ -1,47 +0,0 @@ -package software.amazon.jsii.tests.calculator.python_self; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.ClassWithSelf") -public class ClassWithSelf extends software.amazon.jsii.JsiiObject { - - protected ClassWithSelf(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithSelf(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param self This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithSelf(final @org.jetbrains.annotations.NotNull java.lang.String self) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); - } - - /** - * EXPERIMENTAL - *

- * @param self This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { - return this.jsiiCall("method", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getSelf() { - return this.jsiiGet("self", java.lang.String.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java deleted file mode 100644 index b296f8e04b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java +++ /dev/null @@ -1,82 +0,0 @@ -package software.amazon.jsii.tests.calculator.python_self; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.ClassWithSelfKwarg") -public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { - - protected ClassWithSelfKwarg(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected ClassWithSelfKwarg(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param props This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ClassWithSelfKwarg(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf getProps() { - return this.jsiiGet("props", software.amazon.jsii.tests.calculator.python_self.StructWithSelf.class); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create() { - return new Builder(); - } - - private final software.amazon.jsii.tests.calculator.python_self.StructWithSelf.Builder props; - - private Builder() { - this.props = new software.amazon.jsii.tests.calculator.python_self.StructWithSelf.Builder(); - } - - /** - * EXPERIMENTAL - *

- * @return {@code this} - * @param self This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder self(final java.lang.String self) { - this.props.self(self); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg build() { - return new software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg( - this.props.build() - ); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java deleted file mode 100644 index ce0c0ce058..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java +++ /dev/null @@ -1,39 +0,0 @@ -package software.amazon.jsii.tests.calculator.python_self; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.IInterfaceWithSelf") -@software.amazon.jsii.Jsii.Proxy(IInterfaceWithSelf.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithSelf extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - *

- * @param self This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.python_self.IInterfaceWithSelf { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - *

- * @param self This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { - return this.jsiiCall("method", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java deleted file mode 100644 index 073c900821..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.python_self; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.StructWithSelf") -@software.amazon.jsii.Jsii.Proxy(StructWithSelf.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getSelf(); - - /** - * @return a {@link Builder} of {@link StructWithSelf} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link StructWithSelf} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String self; - - /** - * Sets the value of {@link StructWithSelf#getSelf} - * @param self the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder self(java.lang.String self) { - this.self = self; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link StructWithSelf} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public StructWithSelf build() { - return new Jsii$Proxy(self); - } - } - - /** - * An implementation for {@link StructWithSelf} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructWithSelf { - private final java.lang.String self; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.self = this.jsiiGet("self", java.lang.String.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String self) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.self = java.util.Objects.requireNonNull(self, "self is required"); - } - - @Override - public java.lang.String getSelf() { - return this.self; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("self", om.valueToTree(this.getSelf())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.PythonSelf.StructWithSelf")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - StructWithSelf.Jsii$Proxy that = (StructWithSelf.Jsii$Proxy) o; - - return this.self.equals(that.self); - } - - @Override - public int hashCode() { - int result = this.self.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java deleted file mode 100644 index 3768bf78bd..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java +++ /dev/null @@ -1,123 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.MyClass") -public class MyClass extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { - - protected MyClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected MyClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param props This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public MyClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct props) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Awesomeness getAwesomeness() { - return this.jsiiGet("awesomeness", software.amazon.jsii.tests.calculator.submodule.child.Awesomeness.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet("definedAt", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { - return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct getProps() { - return this.jsiiGet("props", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes getAllTypes() { - return this.jsiiGet("allTypes", software.amazon.jsii.tests.calculator.AllTypes.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) { - this.jsiiSet("allTypes", value); - } - - /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - /** - * EXPERIMENTAL - *

- * @return a new instance of {@link Builder}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create() { - return new Builder(); - } - - private final software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder props; - - private Builder() { - this.props = new software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder(); - } - - /** - * EXPERIMENTAL - *

- * @return {@code this} - * @param prop This parameter is required. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder prop(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { - this.props.prop(prop); - return this; - } - - /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.submodule.MyClass}. - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public software.amazon.jsii.tests.calculator.submodule.MyClass build() { - return new software.amazon.jsii.tests.calculator.submodule.MyClass( - this.props.build() - ); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java deleted file mode 100644 index 4d3d9bb8a4..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.back_references; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.back_references.MyClassReference") -@software.amazon.jsii.Jsii.Proxy(MyClassReference.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface MyClassReference extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.MyClass getReference(); - - /** - * @return a {@link Builder} of {@link MyClassReference} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link MyClassReference} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private software.amazon.jsii.tests.calculator.submodule.MyClass reference; - - /** - * Sets the value of {@link MyClassReference#getReference} - * @param reference the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder reference(software.amazon.jsii.tests.calculator.submodule.MyClass reference) { - this.reference = reference; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link MyClassReference} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public MyClassReference build() { - return new Jsii$Proxy(reference); - } - } - - /** - * An implementation for {@link MyClassReference} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MyClassReference { - private final software.amazon.jsii.tests.calculator.submodule.MyClass reference; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.reference = this.jsiiGet("reference", software.amazon.jsii.tests.calculator.submodule.MyClass.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.MyClass reference) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.reference = java.util.Objects.requireNonNull(reference, "reference is required"); - } - - @Override - public software.amazon.jsii.tests.calculator.submodule.MyClass getReference() { - return this.reference; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("reference", om.valueToTree(this.getReference())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.submodule.back_references.MyClassReference")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - MyClassReference.Jsii$Proxy that = (MyClassReference.Jsii$Proxy) o; - - return this.reference.equals(that.reference); - } - - @Override - public int hashCode() { - int result = this.reference.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java deleted file mode 100644 index 4821e33755..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java +++ /dev/null @@ -1,17 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Awesomeness") -public enum Awesomeness { - /** - * It was awesome! - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - AWESOME, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java deleted file mode 100644 index 7adb4c2f2c..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java +++ /dev/null @@ -1,31 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Goodness") -public enum Goodness { - /** - * It's pretty good. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - PRETTY_GOOD, - /** - * It's really good. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - REALLY_GOOD, - /** - * It's amazingly good. - *

- * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - AMAZINGLY_GOOD, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java deleted file mode 100644 index cc2dd9dea5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java +++ /dev/null @@ -1,37 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.InnerClass") -public class InnerClass extends software.amazon.jsii.JsiiObject { - - protected InnerClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected InnerClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - static { - STATIC_PROP = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class, "staticProp", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public InnerClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static software.amazon.jsii.tests.calculator.submodule.child.SomeStruct STATIC_PROP; -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java deleted file mode 100644 index 79d610089d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java +++ /dev/null @@ -1,144 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.KwargsProps") -@software.amazon.jsii.Jsii.Proxy(KwargsProps.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.submodule.child.SomeStruct { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable java.lang.String getExtra() { - return null; - } - - /** - * @return a {@link Builder} of {@link KwargsProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link KwargsProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.String extra; - private software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; - - /** - * Sets the value of {@link KwargsProps#getExtra} - * @param extra the value to be set. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder extra(java.lang.String extra) { - this.extra = extra; - return this; - } - - /** - * Sets the value of {@link KwargsProps#getProp} - * @param prop the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder prop(software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { - this.prop = prop; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link KwargsProps} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public KwargsProps build() { - return new Jsii$Proxy(extra, prop); - } - } - - /** - * An implementation for {@link KwargsProps} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements KwargsProps { - private final java.lang.String extra; - private final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.extra = this.jsiiGet("extra", java.lang.String.class); - this.prop = this.jsiiGet("prop", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.String extra, final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.extra = extra; - this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); - } - - @Override - public java.lang.String getExtra() { - return this.extra; - } - - @Override - public software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp() { - return this.prop; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - if (this.getExtra() != null) { - data.set("extra", om.valueToTree(this.getExtra())); - } - data.set("prop", om.valueToTree(this.getProp())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.KwargsProps")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - KwargsProps.Jsii$Proxy that = (KwargsProps.Jsii$Proxy) o; - - if (this.extra != null ? !this.extra.equals(that.extra) : that.extra != null) return false; - return this.prop.equals(that.prop); - } - - @Override - public int hashCode() { - int result = this.extra != null ? this.extra.hashCode() : 0; - result = 31 * result + (this.prop.hashCode()); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java deleted file mode 100644 index 9160005388..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java +++ /dev/null @@ -1,39 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * Checks that classes can self-reference during initialization. - *

- * EXPERIMENTAL - *

- * @see : https://github.com/aws/jsii/pull/1706 - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.OuterClass") -public class OuterClass extends software.amazon.jsii.JsiiObject { - - protected OuterClass(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected OuterClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OuterClass() { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.InnerClass getInnerClass() { - return this.jsiiGet("innerClass", software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java deleted file mode 100644 index ae633451ac..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java +++ /dev/null @@ -1,15 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.SomeEnum") -public enum SomeEnum { - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - SOME, -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java deleted file mode 100644 index eb39f07038..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.SomeStruct") -@software.amazon.jsii.Jsii.Proxy(SomeStruct.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp(); - - /** - * @return a {@link Builder} of {@link SomeStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link SomeStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; - - /** - * Sets the value of {@link SomeStruct#getProp} - * @param prop the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder prop(software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { - this.prop = prop; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link SomeStruct} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public SomeStruct build() { - return new Jsii$Proxy(prop); - } - } - - /** - * An implementation for {@link SomeStruct} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SomeStruct { - private final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.prop = this.jsiiGet("prop", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); - } - - @Override - public software.amazon.jsii.tests.calculator.submodule.child.SomeEnum getProp() { - return this.prop; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("prop", om.valueToTree(this.getProp())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.SomeStruct")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - SomeStruct.Jsii$Proxy that = (SomeStruct.Jsii$Proxy) o; - - return this.prop.equals(that.prop); - } - - @Override - public int hashCode() { - int result = this.prop.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java deleted file mode 100644 index 7dce6d9fe6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java +++ /dev/null @@ -1,117 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.child; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Structure") -@software.amazon.jsii.Jsii.Proxy(Structure.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface Structure extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.Boolean getBool(); - - /** - * @return a {@link Builder} of {@link Structure} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - static Builder builder() { - return new Builder(); - } - /** - * A builder for {@link Structure} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static final class Builder implements software.amazon.jsii.Builder { - private java.lang.Boolean bool; - - /** - * Sets the value of {@link Structure#getBool} - * @param bool the value to be set. This parameter is required. - * @return {@code this} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bool(java.lang.Boolean bool) { - this.bool = bool; - return this; - } - - /** - * Builds the configured instance. - * @return a new instance of {@link Structure} - * @throws NullPointerException if any required attribute was not provided - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @Override - public Structure build() { - return new Jsii$Proxy(bool); - } - } - - /** - * An implementation for {@link Structure} - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Structure { - private final java.lang.Boolean bool; - - /** - * Constructor that initializes the object based on values retrieved from the JsiiObject. - * @param objRef Reference to the JSII managed object. - */ - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - this.bool = this.jsiiGet("bool", java.lang.Boolean.class); - } - - /** - * Constructor that initializes the object based on literal property values passed by the {@link Builder}. - */ - private Jsii$Proxy(final java.lang.Boolean bool) { - super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); - } - - @Override - public java.lang.Boolean getBool() { - return this.bool; - } - - @Override - public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { - final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; - final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - - data.set("bool", om.valueToTree(this.getBool())); - - final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.Structure")); - struct.set("data", data); - - final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set("$jsii.struct", struct); - - return obj; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Structure.Jsii$Proxy that = (Structure.Jsii$Proxy) o; - - return this.bool.equals(that.bool); - } - - @Override - public int hashCode() { - int result = this.bool.hashCode(); - return result; - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java deleted file mode 100644 index f548ac3622..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java +++ /dev/null @@ -1,38 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.isolated; - -/** - * Ensures imports are correctly registered for kwargs lifted properties from super-structs. - *

- * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.isolated.Kwargs") -public class Kwargs extends software.amazon.jsii.JsiiObject { - - protected Kwargs(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Kwargs(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - *

- * @param props - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean method(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.submodule.child.KwargsProps props) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, "method", java.lang.Boolean.class, new Object[] { props }); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean method() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, "method", java.lang.Boolean.class); - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java deleted file mode 100644 index 55c46c15f1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java +++ /dev/null @@ -1,60 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.nested_submodule; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.Namespaced") -public abstract class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { - - protected Namespaced(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - protected Namespaced(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { - super(initializationMode); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet("definedAt", java.lang.String.class); - } - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { - return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet("definedAt", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java deleted file mode 100644 index bbd6b414c9..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java +++ /dev/null @@ -1,35 +0,0 @@ -package software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested; - -/** - * EXPERIMENTAL - */ -@javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced") -@software.amazon.jsii.Jsii.Proxy(INamespaced.Jsii$Proxy.class) -@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface INamespaced extends software.amazon.jsii.JsiiSerializable { - - /** - * EXPERIMENTAL - */ - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt(); - - /** - * A proxy class which represents a concrete javascript instance of this type. - */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { - protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { - super(objRef); - } - - /** - * EXPERIMENTAL - */ - @Override - @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet("definedAt", java.lang.String.class); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt deleted file mode 100644 index 73699cbe04..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt +++ /dev/null @@ -1,213 +0,0 @@ -jsii-calc.AbstractClass=software.amazon.jsii.tests.calculator.AbstractClass -jsii-calc.AbstractClassBase=software.amazon.jsii.tests.calculator.AbstractClassBase -jsii-calc.AbstractClassReturner=software.amazon.jsii.tests.calculator.AbstractClassReturner -jsii-calc.AbstractSuite=software.amazon.jsii.tests.calculator.AbstractSuite -jsii-calc.Add=software.amazon.jsii.tests.calculator.Add -jsii-calc.AllTypes=software.amazon.jsii.tests.calculator.AllTypes -jsii-calc.AllTypesEnum=software.amazon.jsii.tests.calculator.AllTypesEnum -jsii-calc.AllowedMethodNames=software.amazon.jsii.tests.calculator.AllowedMethodNames -jsii-calc.AmbiguousParameters=software.amazon.jsii.tests.calculator.AmbiguousParameters -jsii-calc.AnonymousImplementationProvider=software.amazon.jsii.tests.calculator.AnonymousImplementationProvider -jsii-calc.AsyncVirtualMethods=software.amazon.jsii.tests.calculator.AsyncVirtualMethods -jsii-calc.AugmentableClass=software.amazon.jsii.tests.calculator.AugmentableClass -jsii-calc.BaseJsii976=software.amazon.jsii.tests.calculator.BaseJsii976 -jsii-calc.Bell=software.amazon.jsii.tests.calculator.Bell -jsii-calc.BinaryOperation=software.amazon.jsii.tests.calculator.BinaryOperation -jsii-calc.Calculator=software.amazon.jsii.tests.calculator.Calculator -jsii-calc.CalculatorProps=software.amazon.jsii.tests.calculator.CalculatorProps -jsii-calc.ChildStruct982=software.amazon.jsii.tests.calculator.ChildStruct982 -jsii-calc.ClassThatImplementsTheInternalInterface=software.amazon.jsii.tests.calculator.ClassThatImplementsTheInternalInterface -jsii-calc.ClassThatImplementsThePrivateInterface=software.amazon.jsii.tests.calculator.ClassThatImplementsThePrivateInterface -jsii-calc.ClassWithCollections=software.amazon.jsii.tests.calculator.ClassWithCollections -jsii-calc.ClassWithDocs=software.amazon.jsii.tests.calculator.ClassWithDocs -jsii-calc.ClassWithJavaReservedWords=software.amazon.jsii.tests.calculator.ClassWithJavaReservedWords -jsii-calc.ClassWithMutableObjectLiteralProperty=software.amazon.jsii.tests.calculator.ClassWithMutableObjectLiteralProperty -jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties=software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties -jsii-calc.ConfusingToJackson=software.amazon.jsii.tests.calculator.ConfusingToJackson -jsii-calc.ConfusingToJacksonStruct=software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct -jsii-calc.ConstructorPassesThisOut=software.amazon.jsii.tests.calculator.ConstructorPassesThisOut -jsii-calc.Constructors=software.amazon.jsii.tests.calculator.Constructors -jsii-calc.ConsumePureInterface=software.amazon.jsii.tests.calculator.ConsumePureInterface -jsii-calc.ConsumerCanRingBell=software.amazon.jsii.tests.calculator.ConsumerCanRingBell -jsii-calc.ConsumersOfThisCrazyTypeSystem=software.amazon.jsii.tests.calculator.ConsumersOfThisCrazyTypeSystem -jsii-calc.DataRenderer=software.amazon.jsii.tests.calculator.DataRenderer -jsii-calc.DefaultedConstructorArgument=software.amazon.jsii.tests.calculator.DefaultedConstructorArgument -jsii-calc.Demonstrate982=software.amazon.jsii.tests.calculator.Demonstrate982 -jsii-calc.DeprecatedClass=software.amazon.jsii.tests.calculator.DeprecatedClass -jsii-calc.DeprecatedEnum=software.amazon.jsii.tests.calculator.DeprecatedEnum -jsii-calc.DeprecatedStruct=software.amazon.jsii.tests.calculator.DeprecatedStruct -jsii-calc.DerivedClassHasNoProperties.Base=software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base -jsii-calc.DerivedClassHasNoProperties.Derived=software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Derived -jsii-calc.DerivedStruct=software.amazon.jsii.tests.calculator.DerivedStruct -jsii-calc.DiamondInheritanceBaseLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct -jsii-calc.DiamondInheritanceFirstMidLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct -jsii-calc.DiamondInheritanceSecondMidLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct -jsii-calc.DiamondInheritanceTopLevelStruct=software.amazon.jsii.tests.calculator.DiamondInheritanceTopLevelStruct -jsii-calc.DisappointingCollectionSource=software.amazon.jsii.tests.calculator.DisappointingCollectionSource -jsii-calc.DoNotOverridePrivates=software.amazon.jsii.tests.calculator.DoNotOverridePrivates -jsii-calc.DoNotRecognizeAnyAsOptional=software.amazon.jsii.tests.calculator.DoNotRecognizeAnyAsOptional -jsii-calc.DocumentedClass=software.amazon.jsii.tests.calculator.DocumentedClass -jsii-calc.DontComplainAboutVariadicAfterOptional=software.amazon.jsii.tests.calculator.DontComplainAboutVariadicAfterOptional -jsii-calc.DoubleTrouble=software.amazon.jsii.tests.calculator.DoubleTrouble -jsii-calc.EnumDispenser=software.amazon.jsii.tests.calculator.EnumDispenser -jsii-calc.EraseUndefinedHashValues=software.amazon.jsii.tests.calculator.EraseUndefinedHashValues -jsii-calc.EraseUndefinedHashValuesOptions=software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions -jsii-calc.ExperimentalClass=software.amazon.jsii.tests.calculator.ExperimentalClass -jsii-calc.ExperimentalEnum=software.amazon.jsii.tests.calculator.ExperimentalEnum -jsii-calc.ExperimentalStruct=software.amazon.jsii.tests.calculator.ExperimentalStruct -jsii-calc.ExportedBaseClass=software.amazon.jsii.tests.calculator.ExportedBaseClass -jsii-calc.ExtendsInternalInterface=software.amazon.jsii.tests.calculator.ExtendsInternalInterface -jsii-calc.ExternalClass=software.amazon.jsii.tests.calculator.ExternalClass -jsii-calc.ExternalEnum=software.amazon.jsii.tests.calculator.ExternalEnum -jsii-calc.ExternalStruct=software.amazon.jsii.tests.calculator.ExternalStruct -jsii-calc.GiveMeStructs=software.amazon.jsii.tests.calculator.GiveMeStructs -jsii-calc.Greetee=software.amazon.jsii.tests.calculator.Greetee -jsii-calc.GreetingAugmenter=software.amazon.jsii.tests.calculator.GreetingAugmenter -jsii-calc.IAnonymousImplementationProvider=software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider -jsii-calc.IAnonymouslyImplementMe=software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe -jsii-calc.IAnotherPublicInterface=software.amazon.jsii.tests.calculator.IAnotherPublicInterface -jsii-calc.IBell=software.amazon.jsii.tests.calculator.IBell -jsii-calc.IBellRinger=software.amazon.jsii.tests.calculator.IBellRinger -jsii-calc.IConcreteBellRinger=software.amazon.jsii.tests.calculator.IConcreteBellRinger -jsii-calc.IDeprecatedInterface=software.amazon.jsii.tests.calculator.IDeprecatedInterface -jsii-calc.IExperimentalInterface=software.amazon.jsii.tests.calculator.IExperimentalInterface -jsii-calc.IExtendsPrivateInterface=software.amazon.jsii.tests.calculator.IExtendsPrivateInterface -jsii-calc.IExternalInterface=software.amazon.jsii.tests.calculator.IExternalInterface -jsii-calc.IFriendlier=software.amazon.jsii.tests.calculator.IFriendlier -jsii-calc.IFriendlyRandomGenerator=software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator -jsii-calc.IInterfaceImplementedByAbstractClass=software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass -jsii-calc.IInterfaceThatShouldNotBeADataType=software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType -jsii-calc.IInterfaceWithInternal=software.amazon.jsii.tests.calculator.IInterfaceWithInternal -jsii-calc.IInterfaceWithMethods=software.amazon.jsii.tests.calculator.IInterfaceWithMethods -jsii-calc.IInterfaceWithOptionalMethodArguments=software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments -jsii-calc.IInterfaceWithProperties=software.amazon.jsii.tests.calculator.IInterfaceWithProperties -jsii-calc.IInterfaceWithPropertiesExtension=software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension -jsii-calc.IJSII417Derived=software.amazon.jsii.tests.calculator.IJSII417Derived -jsii-calc.IJSII417PublicBaseOfBase=software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase -jsii-calc.IJsii487External=software.amazon.jsii.tests.calculator.IJsii487External -jsii-calc.IJsii487External2=software.amazon.jsii.tests.calculator.IJsii487External2 -jsii-calc.IJsii496=software.amazon.jsii.tests.calculator.IJsii496 -jsii-calc.IMutableObjectLiteral=software.amazon.jsii.tests.calculator.IMutableObjectLiteral -jsii-calc.INonInternalInterface=software.amazon.jsii.tests.calculator.INonInternalInterface -jsii-calc.IObjectWithProperty=software.amazon.jsii.tests.calculator.IObjectWithProperty -jsii-calc.IOptionalMethod=software.amazon.jsii.tests.calculator.IOptionalMethod -jsii-calc.IPrivatelyImplemented=software.amazon.jsii.tests.calculator.IPrivatelyImplemented -jsii-calc.IPublicInterface=software.amazon.jsii.tests.calculator.IPublicInterface -jsii-calc.IPublicInterface2=software.amazon.jsii.tests.calculator.IPublicInterface2 -jsii-calc.IRandomNumberGenerator=software.amazon.jsii.tests.calculator.IRandomNumberGenerator -jsii-calc.IReturnJsii976=software.amazon.jsii.tests.calculator.IReturnJsii976 -jsii-calc.IReturnsNumber=software.amazon.jsii.tests.calculator.IReturnsNumber -jsii-calc.IStableInterface=software.amazon.jsii.tests.calculator.IStableInterface -jsii-calc.IStructReturningDelegate=software.amazon.jsii.tests.calculator.IStructReturningDelegate -jsii-calc.ImplementInternalInterface=software.amazon.jsii.tests.calculator.ImplementInternalInterface -jsii-calc.Implementation=software.amazon.jsii.tests.calculator.Implementation -jsii-calc.ImplementsInterfaceWithInternal=software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal -jsii-calc.ImplementsInterfaceWithInternalSubclass=software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternalSubclass -jsii-calc.ImplementsPrivateInterface=software.amazon.jsii.tests.calculator.ImplementsPrivateInterface -jsii-calc.ImplictBaseOfBase=software.amazon.jsii.tests.calculator.ImplictBaseOfBase -jsii-calc.InbetweenClass=software.amazon.jsii.tests.calculator.InbetweenClass -jsii-calc.InterfaceCollections=software.amazon.jsii.tests.calculator.InterfaceCollections -jsii-calc.InterfaceInNamespaceIncludesClasses.Foo=software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Foo -jsii-calc.InterfaceInNamespaceIncludesClasses.Hello=software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Hello -jsii-calc.InterfaceInNamespaceOnlyInterface.Hello=software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface.Hello -jsii-calc.InterfacesMaker=software.amazon.jsii.tests.calculator.InterfacesMaker -jsii-calc.Isomorphism=software.amazon.jsii.tests.calculator.Isomorphism -jsii-calc.JSII417Derived=software.amazon.jsii.tests.calculator.JSII417Derived -jsii-calc.JSII417PublicBaseOfBase=software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase -jsii-calc.JSObjectLiteralForInterface=software.amazon.jsii.tests.calculator.JSObjectLiteralForInterface -jsii-calc.JSObjectLiteralToNative=software.amazon.jsii.tests.calculator.JSObjectLiteralToNative -jsii-calc.JSObjectLiteralToNativeClass=software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass -jsii-calc.JavaReservedWords=software.amazon.jsii.tests.calculator.JavaReservedWords -jsii-calc.Jsii487Derived=software.amazon.jsii.tests.calculator.Jsii487Derived -jsii-calc.Jsii496Derived=software.amazon.jsii.tests.calculator.Jsii496Derived -jsii-calc.JsiiAgent=software.amazon.jsii.tests.calculator.JsiiAgent -jsii-calc.JsonFormatter=software.amazon.jsii.tests.calculator.JsonFormatter -jsii-calc.LoadBalancedFargateServiceProps=software.amazon.jsii.tests.calculator.LoadBalancedFargateServiceProps -jsii-calc.MethodNamedProperty=software.amazon.jsii.tests.calculator.MethodNamedProperty -jsii-calc.Multiply=software.amazon.jsii.tests.calculator.Multiply -jsii-calc.Negate=software.amazon.jsii.tests.calculator.Negate -jsii-calc.NestedStruct=software.amazon.jsii.tests.calculator.NestedStruct -jsii-calc.NodeStandardLibrary=software.amazon.jsii.tests.calculator.NodeStandardLibrary -jsii-calc.NullShouldBeTreatedAsUndefined=software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefined -jsii-calc.NullShouldBeTreatedAsUndefinedData=software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData -jsii-calc.NumberGenerator=software.amazon.jsii.tests.calculator.NumberGenerator -jsii-calc.ObjectRefsInCollections=software.amazon.jsii.tests.calculator.ObjectRefsInCollections -jsii-calc.ObjectWithPropertyProvider=software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider -jsii-calc.Old=software.amazon.jsii.tests.calculator.Old -jsii-calc.OptionalArgumentInvoker=software.amazon.jsii.tests.calculator.OptionalArgumentInvoker -jsii-calc.OptionalConstructorArgument=software.amazon.jsii.tests.calculator.OptionalConstructorArgument -jsii-calc.OptionalStruct=software.amazon.jsii.tests.calculator.OptionalStruct -jsii-calc.OptionalStructConsumer=software.amazon.jsii.tests.calculator.OptionalStructConsumer -jsii-calc.OverridableProtectedMember=software.amazon.jsii.tests.calculator.OverridableProtectedMember -jsii-calc.OverrideReturnsObject=software.amazon.jsii.tests.calculator.OverrideReturnsObject -jsii-calc.ParentStruct982=software.amazon.jsii.tests.calculator.ParentStruct982 -jsii-calc.PartiallyInitializedThisConsumer=software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer -jsii-calc.Polymorphism=software.amazon.jsii.tests.calculator.Polymorphism -jsii-calc.Power=software.amazon.jsii.tests.calculator.Power -jsii-calc.PropertyNamedProperty=software.amazon.jsii.tests.calculator.PropertyNamedProperty -jsii-calc.PublicClass=software.amazon.jsii.tests.calculator.PublicClass -jsii-calc.PythonReservedWords=software.amazon.jsii.tests.calculator.PythonReservedWords -jsii-calc.PythonSelf.ClassWithSelf=software.amazon.jsii.tests.calculator.python_self.ClassWithSelf -jsii-calc.PythonSelf.ClassWithSelfKwarg=software.amazon.jsii.tests.calculator.python_self.ClassWithSelfKwarg -jsii-calc.PythonSelf.IInterfaceWithSelf=software.amazon.jsii.tests.calculator.python_self.IInterfaceWithSelf -jsii-calc.PythonSelf.StructWithSelf=software.amazon.jsii.tests.calculator.python_self.StructWithSelf -jsii-calc.ReferenceEnumFromScopedPackage=software.amazon.jsii.tests.calculator.ReferenceEnumFromScopedPackage -jsii-calc.ReturnsPrivateImplementationOfInterface=software.amazon.jsii.tests.calculator.ReturnsPrivateImplementationOfInterface -jsii-calc.RootStruct=software.amazon.jsii.tests.calculator.RootStruct -jsii-calc.RootStructValidator=software.amazon.jsii.tests.calculator.RootStructValidator -jsii-calc.RuntimeTypeChecking=software.amazon.jsii.tests.calculator.RuntimeTypeChecking -jsii-calc.SecondLevelStruct=software.amazon.jsii.tests.calculator.SecondLevelStruct -jsii-calc.SingleInstanceTwoTypes=software.amazon.jsii.tests.calculator.SingleInstanceTwoTypes -jsii-calc.SingletonInt=software.amazon.jsii.tests.calculator.SingletonInt -jsii-calc.SingletonIntEnum=software.amazon.jsii.tests.calculator.SingletonIntEnum -jsii-calc.SingletonString=software.amazon.jsii.tests.calculator.SingletonString -jsii-calc.SingletonStringEnum=software.amazon.jsii.tests.calculator.SingletonStringEnum -jsii-calc.SmellyStruct=software.amazon.jsii.tests.calculator.SmellyStruct -jsii-calc.SomeTypeJsii976=software.amazon.jsii.tests.calculator.SomeTypeJsii976 -jsii-calc.StableClass=software.amazon.jsii.tests.calculator.StableClass -jsii-calc.StableEnum=software.amazon.jsii.tests.calculator.StableEnum -jsii-calc.StableStruct=software.amazon.jsii.tests.calculator.StableStruct -jsii-calc.StaticContext=software.amazon.jsii.tests.calculator.StaticContext -jsii-calc.Statics=software.amazon.jsii.tests.calculator.Statics -jsii-calc.StringEnum=software.amazon.jsii.tests.calculator.StringEnum -jsii-calc.StripInternal=software.amazon.jsii.tests.calculator.StripInternal -jsii-calc.StructA=software.amazon.jsii.tests.calculator.StructA -jsii-calc.StructB=software.amazon.jsii.tests.calculator.StructB -jsii-calc.StructParameterType=software.amazon.jsii.tests.calculator.StructParameterType -jsii-calc.StructPassing=software.amazon.jsii.tests.calculator.StructPassing -jsii-calc.StructUnionConsumer=software.amazon.jsii.tests.calculator.StructUnionConsumer -jsii-calc.StructWithJavaReservedWords=software.amazon.jsii.tests.calculator.StructWithJavaReservedWords -jsii-calc.Sum=software.amazon.jsii.tests.calculator.Sum -jsii-calc.SupportsNiceJavaBuilder=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder -jsii-calc.SupportsNiceJavaBuilderProps=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps -jsii-calc.SupportsNiceJavaBuilderWithRequiredProps=software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps -jsii-calc.SyncVirtualMethods=software.amazon.jsii.tests.calculator.SyncVirtualMethods -jsii-calc.Thrower=software.amazon.jsii.tests.calculator.Thrower -jsii-calc.TopLevelStruct=software.amazon.jsii.tests.calculator.TopLevelStruct -jsii-calc.UmaskCheck=software.amazon.jsii.tests.calculator.UmaskCheck -jsii-calc.UnaryOperation=software.amazon.jsii.tests.calculator.UnaryOperation -jsii-calc.UnionProperties=software.amazon.jsii.tests.calculator.UnionProperties -jsii-calc.UpcasingReflectable=software.amazon.jsii.tests.calculator.UpcasingReflectable -jsii-calc.UseBundledDependency=software.amazon.jsii.tests.calculator.UseBundledDependency -jsii-calc.UseCalcBase=software.amazon.jsii.tests.calculator.UseCalcBase -jsii-calc.UsesInterfaceWithProperties=software.amazon.jsii.tests.calculator.UsesInterfaceWithProperties -jsii-calc.VariadicInvoker=software.amazon.jsii.tests.calculator.VariadicInvoker -jsii-calc.VariadicMethod=software.amazon.jsii.tests.calculator.VariadicMethod -jsii-calc.VirtualMethodPlayground=software.amazon.jsii.tests.calculator.VirtualMethodPlayground -jsii-calc.VoidCallback=software.amazon.jsii.tests.calculator.VoidCallback -jsii-calc.WithPrivatePropertyInConstructor=software.amazon.jsii.tests.calculator.WithPrivatePropertyInConstructor -jsii-calc.composition.CompositeOperation=software.amazon.jsii.tests.calculator.composition.CompositeOperation -jsii-calc.composition.CompositeOperation.CompositionStringStyle=software.amazon.jsii.tests.calculator.composition.CompositeOperation$CompositionStringStyle -jsii-calc.submodule.MyClass=software.amazon.jsii.tests.calculator.submodule.MyClass -jsii-calc.submodule.back_references.MyClassReference=software.amazon.jsii.tests.calculator.submodule.back_references.MyClassReference -jsii-calc.submodule.child.Awesomeness=software.amazon.jsii.tests.calculator.submodule.child.Awesomeness -jsii-calc.submodule.child.Goodness=software.amazon.jsii.tests.calculator.submodule.child.Goodness -jsii-calc.submodule.child.InnerClass=software.amazon.jsii.tests.calculator.submodule.child.InnerClass -jsii-calc.submodule.child.KwargsProps=software.amazon.jsii.tests.calculator.submodule.child.KwargsProps -jsii-calc.submodule.child.OuterClass=software.amazon.jsii.tests.calculator.submodule.child.OuterClass -jsii-calc.submodule.child.SomeEnum=software.amazon.jsii.tests.calculator.submodule.child.SomeEnum -jsii-calc.submodule.child.SomeStruct=software.amazon.jsii.tests.calculator.submodule.child.SomeStruct -jsii-calc.submodule.child.Structure=software.amazon.jsii.tests.calculator.submodule.child.Structure -jsii-calc.submodule.isolated.Kwargs=software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs -jsii-calc.submodule.nested_submodule.Namespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced -jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/js/jsii-calc@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc/js/jsii-calc@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/js/jsii-calc@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/MANIFEST.in b/packages/jsii-pacmak/test/expected.jsii-calc/python/MANIFEST.in deleted file mode 100644 index bec201fc83..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include pyproject.toml diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/README.md b/packages/jsii-pacmak/test/expected.jsii-calc/python/README.md deleted file mode 100644 index 310d26c590..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# jsii Calculator - -This library is used to demonstrate and test the features of JSII - -## How to use running sum API: - -First, create a calculator: - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -calculator = calc.Calculator() -``` - -Then call some operations: - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -calculator.add(10) -``` - -## Code Samples - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -# This is totes a magic comment in here, just you wait! -foo = "bar" -``` diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/pyproject.toml b/packages/jsii-pacmak/test/expected.jsii-calc/python/pyproject.toml deleted file mode 100644 index 34ba8ead4b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["setuptools >= 38.6.0", "wheel >= 0.31.0"] -build-backend = "setuptools.build_meta" diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py deleted file mode 100644 index f78328717b..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py +++ /dev/null @@ -1,71 +0,0 @@ -import json -import setuptools - -kwargs = json.loads( - """ -{ - "name": "jsii-calc", - "version": "0.0.0", - "description": "A simple calcuator built on JSII.", - "license": "Apache-2.0", - "url": "https://github.com/aws/jsii", - "long_description_content_type": "text/markdown", - "author": "Amazon Web Services", - "project_urls": { - "Source": "https://github.com/aws/jsii.git" - }, - "package_dir": { - "": "src" - }, - "packages": [ - "jsii_calc", - "jsii_calc._jsii", - "jsii_calc.composition", - "jsii_calc.derived_class_has_no_properties", - "jsii_calc.interface_in_namespace_includes_classes", - "jsii_calc.interface_in_namespace_only_interface", - "jsii_calc.python_self", - "jsii_calc.submodule", - "jsii_calc.submodule.back_references", - "jsii_calc.submodule.child", - "jsii_calc.submodule.isolated", - "jsii_calc.submodule.nested_submodule", - "jsii_calc.submodule.nested_submodule.deeply_nested" - ], - "package_data": { - "jsii_calc._jsii": [ - "jsii-calc@0.0.0.jsii.tgz" - ], - "jsii_calc": [ - "py.typed" - ] - }, - "python_requires": ">=3.6", - "install_requires": [ - "jsii>=0.0.0, <0.0.1", - "publication>=0.0.3", - "scope.jsii-calc-base>=0.0.0, <0.0.1", - "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1", - "scope.jsii-calc-lib>=0.0.0, <0.0.1" - ], - "classifiers": [ - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Programming Language :: JavaScript", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Typing :: Typed", - "Development Status :: 4 - Beta", - "License :: OSI Approved" - ] -} -""" -) - -with open("README.md") as fp: - kwargs["long_description"] = fp.read() - - -setuptools.setup(**kwargs) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py deleted file mode 100644 index f6b8ee36e5..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ /dev/null @@ -1,10091 +0,0 @@ -""" -# jsii Calculator - -This library is used to demonstrate and test the features of JSII - -## How to use running sum API: - -First, create a calculator: - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -calculator = calc.Calculator() -``` - -Then call some operations: - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -calculator.add(10) -``` - -## Code Samples - -```python -# Example automatically generated. See https://github.com/aws/jsii/issues/826 -# This is totes a magic comment in here, just you wait! -foo = "bar" -``` -""" -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ._jsii import * - -import scope.jsii_calc_base -import scope.jsii_calc_base_of_base -import scope.jsii_calc_lib -import scope.jsii_calc_lib.custom_submodule_name -from .composition import CompositeOperation as _CompositeOperation_1c4d123b - - -class AbstractClassBase( - metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase" -): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassBaseProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AbstractClassBase, self, []) - - @builtins.property - @jsii.member(jsii_name="abstractProperty") - @abc.abstractmethod - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _AbstractClassBaseProxy(AbstractClassBase): - @builtins.property - @jsii.member(jsii_name="abstractProperty") - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "abstractProperty") - - -class AbstractClassReturner( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AbstractClassReturner, self, []) - - @jsii.member(jsii_name="giveMeAbstract") - def give_me_abstract(self) -> "AbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeAbstract", []) - - @jsii.member(jsii_name="giveMeInterface") - def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeInterface", []) - - @builtins.property - @jsii.member(jsii_name="returnAbstractFromProperty") - def return_abstract_from_property(self) -> "AbstractClassBase": - """ - stability - :stability: experimental - """ - return jsii.get(self, "returnAbstractFromProperty") - - -class AbstractSuite( - metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite" -): - """Ensures abstract members implementations correctly register overrides in various languages. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractSuiteProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AbstractSuite, self, []) - - @jsii.member(jsii_name="someMethod") - @abc.abstractmethod - def _some_method(self, str: str) -> str: - """ - :param str: - - - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="workItAll") - def work_it_all(self, seed: str) -> str: - """Sets ``seed`` to ``this.property``, then calls ``someMethod`` with ``this.property`` and returns the result. - - :param seed: a ``string``. - - stability - :stability: experimental - """ - return jsii.invoke(self, "workItAll", [seed]) - - @builtins.property - @jsii.member(jsii_name="property") - @abc.abstractmethod - def _property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @_property.setter - @abc.abstractmethod - def _property(self, value: str) -> None: - ... - - -class _AbstractSuiteProxy(AbstractSuite): - @jsii.member(jsii_name="someMethod") - def _some_method(self, str: str) -> str: - """ - :param str: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "someMethod", [str]) - - @builtins.property - @jsii.member(jsii_name="property") - def _property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @_property.setter - def _property(self, value: str) -> None: - jsii.set(self, "property", value) - - -class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"): - """This class includes property for all types supported by jsii. - - The setters will validate - that the value set is of the expected type and throw otherwise. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AllTypes, self, []) - - @jsii.member(jsii_name="anyIn") - def any_in(self, inp: typing.Any) -> None: - """ - :param inp: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "anyIn", [inp]) - - @jsii.member(jsii_name="anyOut") - def any_out(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "anyOut", []) - - @jsii.member(jsii_name="enumMethod") - def enum_method(self, value: "StringEnum") -> "StringEnum": - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "enumMethod", [value]) - - @builtins.property - @jsii.member(jsii_name="enumPropertyValue") - def enum_property_value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumPropertyValue") - - @builtins.property - @jsii.member(jsii_name="anyArrayProperty") - def any_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyArrayProperty") - - @any_array_property.setter - def any_array_property(self, value: typing.List[typing.Any]) -> None: - jsii.set(self, "anyArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyMapProperty") - def any_map_property(self) -> typing.Mapping[str, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyMapProperty") - - @any_map_property.setter - def any_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: - jsii.set(self, "anyMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyProperty") - def any_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyProperty") - - @any_property.setter - def any_property(self, value: typing.Any) -> None: - jsii.set(self, "anyProperty", value) - - @builtins.property - @jsii.member(jsii_name="arrayProperty") - def array_property(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arrayProperty") - - @array_property.setter - def array_property(self, value: typing.List[str]) -> None: - jsii.set(self, "arrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="booleanProperty") - def boolean_property(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "booleanProperty") - - @boolean_property.setter - def boolean_property(self, value: bool) -> None: - jsii.set(self, "booleanProperty", value) - - @builtins.property - @jsii.member(jsii_name="dateProperty") - def date_property(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "dateProperty") - - @date_property.setter - def date_property(self, value: datetime.datetime) -> None: - jsii.set(self, "dateProperty", value) - - @builtins.property - @jsii.member(jsii_name="enumProperty") - def enum_property(self) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumProperty") - - @enum_property.setter - def enum_property(self, value: "AllTypesEnum") -> None: - jsii.set(self, "enumProperty", value) - - @builtins.property - @jsii.member(jsii_name="jsonProperty") - def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "jsonProperty") - - @json_property.setter - def json_property(self, value: typing.Mapping[typing.Any, typing.Any]) -> None: - jsii.set(self, "jsonProperty", value) - - @builtins.property - @jsii.member(jsii_name="mapProperty") - def map_property(self) -> typing.Mapping[str, scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mapProperty") - - @map_property.setter - def map_property( - self, value: typing.Mapping[str, scope.jsii_calc_lib.Number] - ) -> None: - jsii.set(self, "mapProperty", value) - - @builtins.property - @jsii.member(jsii_name="numberProperty") - def number_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProperty") - - @number_property.setter - def number_property(self, value: jsii.Number) -> None: - jsii.set(self, "numberProperty", value) - - @builtins.property - @jsii.member(jsii_name="stringProperty") - def string_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "stringProperty") - - @string_property.setter - def string_property(self, value: str) -> None: - jsii.set(self, "stringProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionArrayProperty") - def union_array_property( - self, - ) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionArrayProperty") - - @union_array_property.setter - def union_array_property( - self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]] - ) -> None: - jsii.set(self, "unionArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionMapProperty") - def union_map_property( - self, - ) -> typing.Mapping[ - str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] - ]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionMapProperty") - - @union_map_property.setter - def union_map_property( - self, - value: typing.Mapping[ - str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] - ], - ) -> None: - jsii.set(self, "unionMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property( - self, - ) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property( - self, - value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number], - ) -> None: - jsii.set(self, "unionProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownArrayProperty") - def unknown_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownArrayProperty") - - @unknown_array_property.setter - def unknown_array_property(self, value: typing.List[typing.Any]) -> None: - jsii.set(self, "unknownArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownMapProperty") - def unknown_map_property(self) -> typing.Mapping[str, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownMapProperty") - - @unknown_map_property.setter - def unknown_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: - jsii.set(self, "unknownMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownProperty") - def unknown_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownProperty") - - @unknown_property.setter - def unknown_property(self, value: typing.Any) -> None: - jsii.set(self, "unknownProperty", value) - - @builtins.property - @jsii.member(jsii_name="optionalEnumValue") - def optional_enum_value(self) -> typing.Optional["StringEnum"]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "optionalEnumValue") - - @optional_enum_value.setter - def optional_enum_value(self, value: typing.Optional["StringEnum"]) -> None: - jsii.set(self, "optionalEnumValue", value) - - -@jsii.enum(jsii_type="jsii-calc.AllTypesEnum") -class AllTypesEnum(enum.Enum): - """ - stability - :stability: experimental - """ - - MY_ENUM_VALUE = "MY_ENUM_VALUE" - """ - stability - :stability: experimental - """ - YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" - """ - stability - :stability: experimental - """ - THIS_IS_GREAT = "THIS_IS_GREAT" - """ - stability - :stability: experimental - """ - - -class AllowedMethodNames( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AllowedMethodNames, self, []) - - @jsii.member(jsii_name="getBar") - def get_bar(self, _p1: str, _p2: jsii.Number) -> None: - """ - :param _p1: - - :param _p2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getBar", [_p1, _p2]) - - @jsii.member(jsii_name="getFoo") - def get_foo(self, with_param: str) -> str: - """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. - - :param with_param: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getFoo", [with_param]) - - @jsii.member(jsii_name="setBar") - def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: - """ - :param _x: - - :param _y: - - :param _z: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setBar", [_x, _y, _z]) - - @jsii.member(jsii_name="setFoo") - def set_foo(self, _x: str, _y: jsii.Number) -> None: - """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - - :param _x: - - :param _y: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setFoo", [_x, _y]) - - -class AmbiguousParameters( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters" -): - """ - stability - :stability: experimental - """ - - def __init__( - self, scope_: "Bell", *, scope: str, props: typing.Optional[bool] = None - ) -> None: - """ - :param scope_: - - :param scope: - :param props: - - stability - :stability: experimental - """ - props_ = StructParameterType(scope=scope, props=props) - - jsii.create(AmbiguousParameters, self, [scope_, props_]) - - @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> "StructParameterType": - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") - - @builtins.property - @jsii.member(jsii_name="scope") - def scope(self) -> "Bell": - """ - stability - :stability: experimental - """ - return jsii.get(self, "scope") - - -class AsyncVirtualMethods( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AsyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe", []) - - @jsii.member(jsii_name="callMe2") - def call_me2(self) -> jsii.Number: - """Just calls "overrideMeToo". - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe2", []) - - @jsii.member(jsii_name="callMeDoublePromise") - def call_me_double_promise(self) -> jsii.Number: - """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - - This is a "double promise" situation, which - means that callbacks are not going to be available immediate, but only - after an "immediates" cycle. - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMeDoublePromise", []) - - @jsii.member(jsii_name="dontOverrideMe") - def dont_override_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "dontOverrideMe", []) - - @jsii.member(jsii_name="overrideMe") - def override_me(self, mult: jsii.Number) -> jsii.Number: - """ - :param mult: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMe", [mult]) - - @jsii.member(jsii_name="overrideMeToo") - def override_me_too(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeToo", []) - - -class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AugmentableClass"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AugmentableClass, self, []) - - @jsii.member(jsii_name="methodOne") - def method_one(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodOne", []) - - @jsii.member(jsii_name="methodTwo") - def method_two(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodTwo", []) - - -class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(BaseJsii976, self, []) - - -@jsii.implements(scope.jsii_calc_lib.IFriendly) -class BinaryOperation( - scope.jsii_calc_lib.Operation, - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.BinaryOperation", -): - """Represents an operation with two operands. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _BinaryOperationProxy - - def __init__( - self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value - ) -> None: - """Creates a BinaryOperation. - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. - - stability - :stability: experimental - """ - jsii.create(BinaryOperation, self, [lhs, rhs]) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @builtins.property - @jsii.member(jsii_name="lhs") - def lhs(self) -> scope.jsii_calc_lib.Value: - """Left-hand side operand. - - stability - :stability: experimental - """ - return jsii.get(self, "lhs") - - @builtins.property - @jsii.member(jsii_name="rhs") - def rhs(self) -> scope.jsii_calc_lib.Value: - """Right-hand side operand. - - stability - :stability: experimental - """ - return jsii.get(self, "rhs") - - -class _BinaryOperationProxy( - BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) -): - pass - - -class Calculator( - _CompositeOperation_1c4d123b, - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.Calculator", -): - """A calculator which maintains a current value and allows adding operations. - - Here's how you use it:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - - I will repeat this example again, but in an @example tag. - - stability - :stability: experimental - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - """ - - def __init__( - self, - *, - initial_value: typing.Optional[jsii.Number] = None, - maximum_value: typing.Optional[jsii.Number] = None, - ) -> None: - """Creates a Calculator object. - - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none - - stability - :stability: experimental - """ - props = CalculatorProps( - initial_value=initial_value, maximum_value=maximum_value - ) - - jsii.create(Calculator, self, [props]) - - @jsii.member(jsii_name="add") - def add(self, value: jsii.Number) -> None: - """Adds a number to the current value. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "add", [value]) - - @jsii.member(jsii_name="mul") - def mul(self, value: jsii.Number) -> None: - """Multiplies the current value by a number. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "mul", [value]) - - @jsii.member(jsii_name="neg") - def neg(self) -> None: - """Negates the current value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "neg", []) - - @jsii.member(jsii_name="pow") - def pow(self, value: jsii.Number) -> None: - """Raises the current value by a power. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "pow", [value]) - - @jsii.member(jsii_name="readUnionValue") - def read_union_value(self) -> jsii.Number: - """Returns teh value of the union property (if defined). - - stability - :stability: experimental - """ - return jsii.invoke(self, "readUnionValue", []) - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """Returns the expression. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="operationsLog") - def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: - """A log of all operations. - - stability - :stability: experimental - """ - return jsii.get(self, "operationsLog") - - @builtins.property - @jsii.member(jsii_name="operationsMap") - def operations_map( - self, - ) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]: - """A map of per operation name of all operations performed. - - stability - :stability: experimental - """ - return jsii.get(self, "operationsMap") - - @builtins.property - @jsii.member(jsii_name="curr") - def curr(self) -> scope.jsii_calc_lib.Value: - """The current value. - - stability - :stability: experimental - """ - return jsii.get(self, "curr") - - @curr.setter - def curr(self, value: scope.jsii_calc_lib.Value) -> None: - jsii.set(self, "curr", value) - - @builtins.property - @jsii.member(jsii_name="maxValue") - def max_value(self) -> typing.Optional[jsii.Number]: - """The maximum value allows in this calculator. - - stability - :stability: experimental - """ - return jsii.get(self, "maxValue") - - @max_value.setter - def max_value(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "maxValue", value) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property( - self, - ) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]: - """Example of a property that accepts a union of types. - - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property( - self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]] - ) -> None: - jsii.set(self, "unionProperty", value) - - -@jsii.data_type( - jsii_type="jsii-calc.CalculatorProps", - jsii_struct_bases=[], - name_mapping={"initial_value": "initialValue", "maximum_value": "maximumValue"}, -) -class CalculatorProps: - def __init__( - self, - *, - initial_value: typing.Optional[jsii.Number] = None, - maximum_value: typing.Optional[jsii.Number] = None, - ) -> None: - """Properties for Calculator. - - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none - - stability - :stability: experimental - """ - self._values = {} - if initial_value is not None: - self._values["initial_value"] = initial_value - if maximum_value is not None: - self._values["maximum_value"] = maximum_value - - @builtins.property - def initial_value(self) -> typing.Optional[jsii.Number]: - """The initial value of the calculator. - - NOTE: Any number works here, it's fine. - - default - :default: 0 - - stability - :stability: experimental - """ - return self._values.get("initial_value") - - @builtins.property - def maximum_value(self) -> typing.Optional[jsii.Number]: - """The maximum value the calculator can store. - - default - :default: none - - stability - :stability: experimental - """ - return self._values.get("maximum_value") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "CalculatorProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class ClassWithCollections( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections" -): - """ - stability - :stability: experimental - """ - - def __init__(self, map: typing.Mapping[str, str], array: typing.List[str]) -> None: - """ - :param map: - - :param array: - - - stability - :stability: experimental - """ - jsii.create(ClassWithCollections, self, [map, array]) - - @jsii.member(jsii_name="createAList") - @builtins.classmethod - def create_a_list(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAList", []) - - @jsii.member(jsii_name="createAMap") - @builtins.classmethod - def create_a_map(cls) -> typing.Mapping[str, str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAMap", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticArray") - def static_array(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticArray") - - @static_array.setter - def static_array(cls, value: typing.List[str]) -> None: - jsii.sset(cls, "staticArray", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticMap") - def static_map(cls) -> typing.Mapping[str, str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticMap") - - @static_map.setter - def static_map(cls, value: typing.Mapping[str, str]) -> None: - jsii.sset(cls, "staticMap", value) - - @builtins.property - @jsii.member(jsii_name="array") - def array(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "array") - - @array.setter - def array(self, value: typing.List[str]) -> None: - jsii.set(self, "array", value) - - @builtins.property - @jsii.member(jsii_name="map") - def map(self) -> typing.Mapping[str, str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "map") - - @map.setter - def map(self, value: typing.Mapping[str, str]) -> None: - jsii.set(self, "map", value) - - -class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs"): - """This class has docs. - - The docs are great. They're a bunch of tags. - - see - :see: https://aws.amazon.com/ - customAttribute: - :customAttribute:: hasAValue - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - def an_example(): - pass - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ClassWithDocs, self, []) - - -class ClassWithJavaReservedWords( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords" -): - """ - stability - :stability: experimental - """ - - def __init__(self, int: str) -> None: - """ - :param int: - - - stability - :stability: experimental - """ - jsii.create(ClassWithJavaReservedWords, self, [int]) - - @jsii.member(jsii_name="import") - def import_(self, assert_: str) -> str: - """ - :param assert_: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "import", [assert_]) - - @builtins.property - @jsii.member(jsii_name="int") - def int(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "int") - - -class ClassWithMutableObjectLiteralProperty( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ClassWithMutableObjectLiteralProperty, self, []) - - @builtins.property - @jsii.member(jsii_name="mutableObject") - def mutable_object(self) -> "IMutableObjectLiteral": - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableObject") - - @mutable_object.setter - def mutable_object(self, value: "IMutableObjectLiteral") -> None: - jsii.set(self, "mutableObject", value) - - -class ConfusingToJackson( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson" -): - """This tries to confuse Jackson by having overloaded property setters. - - see - :see: https://github.com/aws/aws-cdk/issues/4080 - stability - :stability: experimental - """ - - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "ConfusingToJackson": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="makeStructInstance") - @builtins.classmethod - def make_struct_instance(cls) -> "ConfusingToJacksonStruct": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeStructInstance", []) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property( - self, - ) -> typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]], - ] - ]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property( - self, - value: typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[ - typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"] - ], - ] - ], - ) -> None: - jsii.set(self, "unionProperty", value) - - -@jsii.data_type( - jsii_type="jsii-calc.ConfusingToJacksonStruct", - jsii_struct_bases=[], - name_mapping={"union_property": "unionProperty"}, -) -class ConfusingToJacksonStruct: - def __init__( - self, - *, - union_property: typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[ - typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"] - ], - ] - ] = None, - ) -> None: - """ - :param union_property: - - stability - :stability: experimental - """ - self._values = {} - if union_property is not None: - self._values["union_property"] = union_property - - @builtins.property - def union_property( - self, - ) -> typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]], - ] - ]: - """ - stability - :stability: experimental - """ - return self._values.get("union_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ConfusingToJacksonStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class ConstructorPassesThisOut( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut" -): - """ - stability - :stability: experimental - """ - - def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: - """ - :param consumer: - - - stability - :stability: experimental - """ - jsii.create(ConstructorPassesThisOut, self, [consumer]) - - -class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Constructors, self, []) - - @jsii.member(jsii_name="hiddenInterface") - @builtins.classmethod - def hidden_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterface", []) - - @jsii.member(jsii_name="hiddenInterfaces") - @builtins.classmethod - def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterfaces", []) - - @jsii.member(jsii_name="hiddenSubInterfaces") - @builtins.classmethod - def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - - @jsii.member(jsii_name="makeClass") - @builtins.classmethod - def make_class(cls) -> "PublicClass": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeClass", []) - - @jsii.member(jsii_name="makeInterface") - @builtins.classmethod - def make_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface", []) - - @jsii.member(jsii_name="makeInterface2") - @builtins.classmethod - def make_interface2(cls) -> "IPublicInterface2": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface2", []) - - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", []) - - -class ConsumePureInterface( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface" -): - """ - stability - :stability: experimental - """ - - def __init__(self, delegate: "IStructReturningDelegate") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(ConsumePureInterface, self, [delegate]) - - @jsii.member(jsii_name="workItBaby") - def work_it_baby(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "workItBaby", []) - - -class ConsumerCanRingBell( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell" -): - """Test calling back to consumers that implement interfaces. - - Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - the method on the argument that they're passed... - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ConsumerCanRingBell, self, []) - - @jsii.member(jsii_name="staticImplementedByObjectLiteral") - @builtins.classmethod - def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPrivateClass") - @builtins.classmethod - def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPublicClass") - @builtins.classmethod - def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="staticWhenTypedAsClass") - @builtins.classmethod - def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) - - @jsii.member(jsii_name="implementedByObjectLiteral") - def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="implementedByPrivateClass") - def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="implementedByPublicClass") - def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="whenTypedAsClass") - def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "whenTypedAsClass", [ringer]) - - -class ConsumersOfThisCrazyTypeSystem( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - - @jsii.member(jsii_name="consumeAnotherPublicInterface") - def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) - - @jsii.member(jsii_name="consumeNonInternalInterface") - def consume_non_internal_interface( - self, obj: "INonInternalInterface" - ) -> typing.Any: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeNonInternalInterface", [obj]) - - -class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): - """Verifies proper type handling through dynamic overrides. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DataRenderer, self, []) - - @jsii.member(jsii_name="render") - def render( - self, - *, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - ) -> str: - """ - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - data = scope.jsii_calc_lib.MyFirstStruct( - anumber=anumber, astring=astring, first_optional=first_optional - ) - - return jsii.invoke(self, "render", [data]) - - @jsii.member(jsii_name="renderArbitrary") - def render_arbitrary(self, data: typing.Mapping[str, typing.Any]) -> str: - """ - :param data: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderArbitrary", [data]) - - @jsii.member(jsii_name="renderMap") - def render_map(self, map: typing.Mapping[str, typing.Any]) -> str: - """ - :param map: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderMap", [map]) - - -class DefaultedConstructorArgument( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument" -): - """ - stability - :stability: experimental - """ - - def __init__( - self, - arg1: typing.Optional[jsii.Number] = None, - arg2: typing.Optional[str] = None, - arg3: typing.Optional[datetime.datetime] = None, - ) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - -class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate982"): - """1. - - call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Demonstrate982, self, []) - - @jsii.member(jsii_name="takeThis") - @builtins.classmethod - def take_this(cls) -> "ChildStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThis", []) - - @jsii.member(jsii_name="takeThisToo") - @builtins.classmethod - def take_this_too(cls) -> "ParentStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThisToo", []) - - -class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedClass"): - """ - deprecated - :deprecated: a pretty boring class - - stability - :stability: deprecated - """ - - def __init__( - self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None - ) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - deprecated - :deprecated: this constructor is "just" okay - - stability - :stability: deprecated - """ - jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: it was a bad idea - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - deprecated - :deprecated: this is not always "wazoo", be ready to be disappointed - - stability - :stability: deprecated - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: shouldn't have been mutable - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.DeprecatedEnum") -class DeprecatedEnum(enum.Enum): - """ - deprecated - :deprecated: your deprecated selection of bad options - - stability - :stability: deprecated - """ - - OPTION_A = "OPTION_A" - """ - deprecated - :deprecated: option A is not great - - stability - :stability: deprecated - """ - OPTION_B = "OPTION_B" - """ - deprecated - :deprecated: option B is kinda bad, too - - stability - :stability: deprecated - """ - - -@jsii.data_type( - jsii_type="jsii-calc.DeprecatedStruct", - jsii_struct_bases=[], - name_mapping={"readonly_property": "readonlyProperty"}, -) -class DeprecatedStruct: - def __init__(self, *, readonly_property: str) -> None: - """ - :param readonly_property: - - deprecated - :deprecated: it just wraps a string - - stability - :stability: deprecated - """ - self._values = { - "readonly_property": readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - deprecated - :deprecated: well, yeah - - stability - :stability: deprecated - """ - return self._values.get("readonly_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DeprecatedStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.DerivedStruct", - jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], - name_mapping={ - "anumber": "anumber", - "astring": "astring", - "first_optional": "firstOptional", - "another_required": "anotherRequired", - "bool": "bool", - "non_primitive": "nonPrimitive", - "another_optional": "anotherOptional", - "optional_any": "optionalAny", - "optional_array": "optionalArray", - }, -) -class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): - def __init__( - self, - *, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - another_required: datetime.datetime, - bool: bool, - non_primitive: "DoubleTrouble", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, - optional_any: typing.Any = None, - optional_array: typing.Optional[typing.List[str]] = None, - ) -> None: - """A struct which derives from another struct. - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - - stability - :stability: experimental - """ - self._values = { - "anumber": anumber, - "astring": astring, - "another_required": another_required, - "bool": bool, - "non_primitive": non_primitive, - } - if first_optional is not None: - self._values["first_optional"] = first_optional - if another_optional is not None: - self._values["another_optional"] = another_optional - if optional_any is not None: - self._values["optional_any"] = optional_any - if optional_array is not None: - self._values["optional_array"] = optional_array - - @builtins.property - def anumber(self) -> jsii.Number: - """An awesome number value. - - stability - :stability: deprecated - """ - return self._values.get("anumber") - - @builtins.property - def astring(self) -> str: - """A string value. - - stability - :stability: deprecated - """ - return self._values.get("astring") - - @builtins.property - def first_optional(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: deprecated - """ - return self._values.get("first_optional") - - @builtins.property - def another_required(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get("another_required") - - @builtins.property - def bool(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get("bool") - - @builtins.property - def non_primitive(self) -> "DoubleTrouble": - """An example of a non primitive property. - - stability - :stability: experimental - """ - return self._values.get("non_primitive") - - @builtins.property - def another_optional( - self, - ) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]: - """This is optional. - - stability - :stability: experimental - """ - return self._values.get("another_optional") - - @builtins.property - def optional_any(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get("optional_any") - - @builtins.property - def optional_array(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: experimental - """ - return self._values.get("optional_array") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DerivedStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", - jsii_struct_bases=[], - name_mapping={"base_level_property": "baseLevelProperty"}, -) -class DiamondInheritanceBaseLevelStruct: - def __init__(self, *, base_level_property: str) -> None: - """ - :param base_level_property: - - stability - :stability: experimental - """ - self._values = { - "base_level_property": base_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("base_level_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DiamondInheritanceBaseLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", - jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], - name_mapping={ - "base_level_property": "baseLevelProperty", - "first_mid_level_property": "firstMidLevelProperty", - }, -) -class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__( - self, *, base_level_property: str, first_mid_level_property: str - ) -> None: - """ - :param base_level_property: - :param first_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - "base_level_property": base_level_property, - "first_mid_level_property": first_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("base_level_property") - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("first_mid_level_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DiamondInheritanceFirstMidLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", - jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], - name_mapping={ - "base_level_property": "baseLevelProperty", - "second_mid_level_property": "secondMidLevelProperty", - }, -) -class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__( - self, *, base_level_property: str, second_mid_level_property: str - ) -> None: - """ - :param base_level_property: - :param second_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - "base_level_property": base_level_property, - "second_mid_level_property": second_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("base_level_property") - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("second_mid_level_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DiamondInheritanceSecondMidLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", - jsii_struct_bases=[ - DiamondInheritanceFirstMidLevelStruct, - DiamondInheritanceSecondMidLevelStruct, - ], - name_mapping={ - "base_level_property": "baseLevelProperty", - "first_mid_level_property": "firstMidLevelProperty", - "second_mid_level_property": "secondMidLevelProperty", - "top_level_property": "topLevelProperty", - }, -) -class DiamondInheritanceTopLevelStruct( - DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct -): - def __init__( - self, - *, - base_level_property: str, - first_mid_level_property: str, - second_mid_level_property: str, - top_level_property: str, - ) -> None: - """ - :param base_level_property: - :param first_mid_level_property: - :param second_mid_level_property: - :param top_level_property: - - stability - :stability: experimental - """ - self._values = { - "base_level_property": base_level_property, - "first_mid_level_property": first_mid_level_property, - "second_mid_level_property": second_mid_level_property, - "top_level_property": top_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("base_level_property") - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("first_mid_level_property") - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("second_mid_level_property") - - @builtins.property - def top_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("top_level_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "DiamondInheritanceTopLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class DisappointingCollectionSource( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource" -): - """Verifies that null/undefined can be returned for optional collections. - - This source of collections is disappointing - it'll always give you nothing :( - - stability - :stability: experimental - """ - - @jsii.python.classproperty - @jsii.member(jsii_name="maybeList") - def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: - """Some List of strings, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeList") - - @jsii.python.classproperty - @jsii.member(jsii_name="maybeMap") - def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str, jsii.Number]]: - """Some Map of strings to numbers, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeMap") - - -class DoNotOverridePrivates( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DoNotOverridePrivates, self, []) - - @jsii.member(jsii_name="changePrivatePropertyValue") - def change_private_property_value(self, new_value: str) -> None: - """ - :param new_value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) - - @jsii.member(jsii_name="privateMethodValue") - def private_method_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privateMethodValue", []) - - @jsii.member(jsii_name="privatePropertyValue") - def private_property_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privatePropertyValue", []) - - -class DoNotRecognizeAnyAsOptional( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional" -): - """jsii#284: do not recognize "any" as an optional argument. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DoNotRecognizeAnyAsOptional, self, []) - - @jsii.member(jsii_name="method") - def method( - self, - _required_any: typing.Any, - _optional_any: typing.Any = None, - _optional_string: typing.Optional[str] = None, - ) -> None: - """ - :param _required_any: - - :param _optional_any: - - :param _optional_string: - - - stability - :stability: experimental - """ - return jsii.invoke( - self, "method", [_required_any, _optional_any, _optional_string] - ) - - -class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"): - """Here's the first line of the TSDoc comment. - - This is the meat of the TSDoc comment. It may contain - multiple lines and multiple paragraphs. - - Multiple paragraphs are separated by an empty line. - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DocumentedClass, self, []) - - @jsii.member(jsii_name="greet") - def greet(self, *, name: typing.Optional[str] = None) -> jsii.Number: - """Greet the indicated person. - - This will print out a friendly greeting intended for - the indicated person. - - :param name: The name of the greetee. Default: world - - return - :return: A number that everyone knows very well - """ - greetee = Greetee(name=name) - - return jsii.invoke(self, "greet", [greetee]) - - @jsii.member(jsii_name="hola") - def hola(self) -> None: - """Say ¡Hola! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hola", []) - - -class DontComplainAboutVariadicAfterOptional( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DontComplainAboutVariadicAfterOptional, self, []) - - @jsii.member(jsii_name="optionalAndVariadic") - def optional_and_variadic( - self, optional: typing.Optional[str] = None, *things: str - ) -> str: - """ - :param optional: - - :param things: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) - - -class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser"): - """ - stability - :stability: experimental - """ - - @jsii.member(jsii_name="randomIntegerLikeEnum") - @builtins.classmethod - def random_integer_like_enum(cls) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) - - @jsii.member(jsii_name="randomStringLikeEnum") - @builtins.classmethod - def random_string_like_enum(cls) -> "StringEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomStringLikeEnum", []) - - -class EraseUndefinedHashValues( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(EraseUndefinedHashValues, self, []) - - @jsii.member(jsii_name="doesKeyExist") - @builtins.classmethod - def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: - """Returns ``true`` if ``key`` is defined in ``opts``. - - Used to check that undefined/null hash values - are being erased when sending values from native code to JS. - - :param opts: - - :param key: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) - - @jsii.member(jsii_name="prop1IsNull") - @builtins.classmethod - def prop1_is_null(cls) -> typing.Mapping[str, typing.Any]: - """We expect "prop1" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop1IsNull", []) - - @jsii.member(jsii_name="prop2IsUndefined") - @builtins.classmethod - def prop2_is_undefined(cls) -> typing.Mapping[str, typing.Any]: - """We expect "prop2" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop2IsUndefined", []) - - -@jsii.data_type( - jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", - jsii_struct_bases=[], - name_mapping={"option1": "option1", "option2": "option2"}, -) -class EraseUndefinedHashValuesOptions: - def __init__( - self, - *, - option1: typing.Optional[str] = None, - option2: typing.Optional[str] = None, - ) -> None: - """ - :param option1: - :param option2: - - stability - :stability: experimental - """ - self._values = {} - if option1 is not None: - self._values["option1"] = option1 - if option2 is not None: - self._values["option2"] = option2 - - @builtins.property - def option1(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("option1") - - @builtins.property - def option2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("option2") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "EraseUndefinedHashValuesOptions(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class ExperimentalClass( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass" -): - """ - stability - :stability: experimental - """ - - def __init__( - self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None - ) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - stability - :stability: experimental - """ - jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.ExperimentalEnum") -class ExperimentalEnum(enum.Enum): - """ - stability - :stability: experimental - """ - - OPTION_A = "OPTION_A" - """ - stability - :stability: experimental - """ - OPTION_B = "OPTION_B" - """ - stability - :stability: experimental - """ - - -@jsii.data_type( - jsii_type="jsii-calc.ExperimentalStruct", - jsii_struct_bases=[], - name_mapping={"readonly_property": "readonlyProperty"}, -) -class ExperimentalStruct: - def __init__(self, *, readonly_property: str) -> None: - """ - :param readonly_property: - - stability - :stability: experimental - """ - self._values = { - "readonly_property": readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("readonly_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ExperimentalStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class ExportedBaseClass( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass" -): - """ - stability - :stability: experimental - """ - - def __init__(self, success: bool) -> None: - """ - :param success: - - - stability - :stability: experimental - """ - jsii.create(ExportedBaseClass, self, [success]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.data_type( - jsii_type="jsii-calc.ExtendsInternalInterface", - jsii_struct_bases=[], - name_mapping={"boom": "boom", "prop": "prop"}, -) -class ExtendsInternalInterface: - def __init__(self, *, boom: bool, prop: str) -> None: - """ - :param boom: - :param prop: - - stability - :stability: experimental - """ - self._values = { - "boom": boom, - "prop": prop, - } - - @builtins.property - def boom(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get("boom") - - @builtins.property - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("prop") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ExtendsInternalInterface(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass"): - """ - stability - :stability: experimental - external: - :external:: true - """ - - def __init__( - self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None - ) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - stability - :stability: experimental - external: - :external:: true - """ - jsii.create(ExternalClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - external: - :external:: true - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - external: - :external:: true - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - external: - :external:: true - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.ExternalEnum") -class ExternalEnum(enum.Enum): - """ - stability - :stability: experimental - external: - :external:: true - """ - - OPTION_A = "OPTION_A" - """ - stability - :stability: experimental - external: - :external:: true - """ - OPTION_B = "OPTION_B" - """ - stability - :stability: experimental - external: - :external:: true - """ - - -@jsii.data_type( - jsii_type="jsii-calc.ExternalStruct", - jsii_struct_bases=[], - name_mapping={"readonly_property": "readonlyProperty"}, -) -class ExternalStruct: - def __init__(self, *, readonly_property: str) -> None: - """ - :param readonly_property: - - stability - :stability: experimental - external: - :external:: true - """ - self._values = { - "readonly_property": readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - stability - :stability: experimental - external: - :external:: true - """ - return self._values.get("readonly_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ExternalStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(GiveMeStructs, self, []) - - @jsii.member(jsii_name="derivedToFirst") - def derived_to_first( - self, - *, - another_required: datetime.datetime, - bool: bool, - non_primitive: "DoubleTrouble", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, - optional_any: typing.Any = None, - optional_array: typing.Optional[typing.List[str]] = None, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - ) -> scope.jsii_calc_lib.MyFirstStruct: - """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct( - another_required=another_required, - bool=bool, - non_primitive=non_primitive, - another_optional=another_optional, - optional_any=optional_any, - optional_array=optional_array, - anumber=anumber, - astring=astring, - first_optional=first_optional, - ) - - return jsii.invoke(self, "derivedToFirst", [derived]) - - @jsii.member(jsii_name="readDerivedNonPrimitive") - def read_derived_non_primitive( - self, - *, - another_required: datetime.datetime, - bool: bool, - non_primitive: "DoubleTrouble", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, - optional_any: typing.Any = None, - optional_array: typing.Optional[typing.List[str]] = None, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - ) -> "DoubleTrouble": - """Returns the boolean from a DerivedStruct struct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct( - another_required=another_required, - bool=bool, - non_primitive=non_primitive, - another_optional=another_optional, - optional_any=optional_any, - optional_array=optional_array, - anumber=anumber, - astring=astring, - first_optional=first_optional, - ) - - return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) - - @jsii.member(jsii_name="readFirstNumber") - def read_first_number( - self, - *, - anumber: jsii.Number, - astring: str, - first_optional: typing.Optional[typing.List[str]] = None, - ) -> jsii.Number: - """Returns the "anumber" from a MyFirstStruct struct; - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - first = scope.jsii_calc_lib.MyFirstStruct( - anumber=anumber, astring=astring, first_optional=first_optional - ) - - return jsii.invoke(self, "readFirstNumber", [first]) - - @builtins.property - @jsii.member(jsii_name="structLiteral") - def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: - """ - stability - :stability: experimental - """ - return jsii.get(self, "structLiteral") - - -@jsii.data_type( - jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={"name": "name"} -) -class Greetee: - def __init__(self, *, name: typing.Optional[str] = None) -> None: - """These are some arguments you can pass to a method. - - :param name: The name of the greetee. Default: world - - stability - :stability: experimental - """ - self._values = {} - if name is not None: - self._values["name"] = name - - @builtins.property - def name(self) -> typing.Optional[str]: - """The name of the greetee. - - default - :default: world - - stability - :stability: experimental - """ - return self._values.get("name") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "Greetee(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class GreetingAugmenter( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(GreetingAugmenter, self, []) - - @jsii.member(jsii_name="betterGreeting") - def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "betterGreeting", [friendly]) - - -@jsii.interface(jsii_type="jsii-calc.IAnonymousImplementationProvider") -class IAnonymousImplementationProvider(jsii.compat.Protocol): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymousImplementationProviderProxy - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - ... - - -class _IAnonymousImplementationProviderProxy: - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IAnonymousImplementationProvider" - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - -@jsii.interface(jsii_type="jsii-calc.IAnonymouslyImplementMe") -class IAnonymouslyImplementMe(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymouslyImplementMeProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IAnonymouslyImplementMeProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IAnonymouslyImplementMe" - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verb", []) - - -@jsii.interface(jsii_type="jsii-calc.IAnotherPublicInterface") -class IAnotherPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnotherPublicInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @a.setter - def a(self, value: str) -> None: - ... - - -class _IAnotherPublicInterfaceProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IAnotherPublicInterface" - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str) -> None: - jsii.set(self, "a", value) - - -@jsii.interface(jsii_type="jsii-calc.IBell") -class IBell(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellProxy - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IBellProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IBell" - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - -@jsii.interface(jsii_type="jsii-calc.IBellRinger") -class IBellRinger(jsii.compat.Protocol): - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - -class _IBellRingerProxy: - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IBellRinger" - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - -@jsii.interface(jsii_type="jsii-calc.IConcreteBellRinger") -class IConcreteBellRinger(jsii.compat.Protocol): - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IConcreteBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - -class _IConcreteBellRingerProxy: - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IConcreteBellRinger" - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - -@jsii.interface(jsii_type="jsii-calc.IDeprecatedInterface") -class IDeprecatedInterface(jsii.compat.Protocol): - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IDeprecatedInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - ... - - -class _IDeprecatedInterfaceProxy: - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - - __jsii_type__ = "jsii-calc.IDeprecatedInterface" - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.IExperimentalInterface") -class IExperimentalInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExperimentalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IExperimentalInterfaceProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IExperimentalInterface" - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.IExtendsPrivateInterface") -class IExtendsPrivateInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExtendsPrivateInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @private.setter - def private(self, value: str) -> None: - ... - - -class _IExtendsPrivateInterfaceProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IExtendsPrivateInterface" - - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "moreThings") - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str) -> None: - jsii.set(self, "private", value) - - -@jsii.interface(jsii_type="jsii-calc.IExternalInterface") -class IExternalInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - external: - :external:: true - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExternalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - external: - :external:: true - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - external: - :external:: true - """ - ... - - -class _IExternalInterfaceProxy: - """ - stability - :stability: experimental - external: - :external:: true - """ - - __jsii_type__ = "jsii-calc.IExternalInterface" - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - external: - :external:: true - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - external: - :external:: true - """ - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.IFriendlier") -class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): - """Even friendlier classes can implement this interface. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlierProxy - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. - - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. - - return - :return: A goodbye blessing. - - stability - :stability: experimental - """ - ... - - -class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): - """Even friendlier classes can implement this interface. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IFriendlier" - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. - - stability - :stability: experimental - """ - return jsii.invoke(self, "farewell", []) - - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. - - return - :return: A goodbye blessing. - - stability - :stability: experimental - """ - return jsii.invoke(self, "goodbye", []) - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceImplementedByAbstractClass") -class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceImplementedByAbstractClassProxy - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceImplementedByAbstractClassProxy: - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass" - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithInternal") -class IInterfaceWithInternal(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithInternalProxy - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithInternalProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceWithInternal" - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithMethods") -class IInterfaceWithMethods(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithMethodsProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithMethodsProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceWithMethods" - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "doThings", []) - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithOptionalMethodArguments") -class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithOptionalMethodArgumentsProxy - - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithOptionalMethodArgumentsProxy: - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments" - - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", [arg1, arg2]) - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithProperties") -class IInterfaceWithProperties(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesProxy - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @read_write_string.setter - def read_write_string(self, value: str) -> None: - ... - - -class _IInterfaceWithPropertiesProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceWithProperties" - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str) -> None: - jsii.set(self, "readWriteString", value) - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithPropertiesExtension") -class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesExtensionProxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @foo.setter - def foo(self, value: jsii.Number) -> None: - ... - - -class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension" - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo(self, value: jsii.Number) -> None: - jsii.set(self, "foo", value) - - -@jsii.interface(jsii_type="jsii-calc.IJSII417PublicBaseOfBase") -class IJSII417PublicBaseOfBase(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417PublicBaseOfBaseProxy - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IJSII417PublicBaseOfBaseProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase" - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - -@jsii.interface(jsii_type="jsii-calc.IJsii487External") -class IJsii487External(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487ExternalProxy - - pass - - -class _IJsii487ExternalProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IJsii487External" - pass - - -@jsii.interface(jsii_type="jsii-calc.IJsii487External2") -class IJsii487External2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487External2Proxy - - pass - - -class _IJsii487External2Proxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IJsii487External2" - pass - - -@jsii.interface(jsii_type="jsii-calc.IJsii496") -class IJsii496(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii496Proxy - - pass - - -class _IJsii496Proxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IJsii496" - pass - - -@jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral") -class IMutableObjectLiteral(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IMutableObjectLiteralProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @value.setter - def value(self, value: str) -> None: - ... - - -class _IMutableObjectLiteralProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IMutableObjectLiteral" - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @value.setter - def value(self, value: str) -> None: - jsii.set(self, "value", value) - - -@jsii.interface(jsii_type="jsii-calc.INonInternalInterface") -class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _INonInternalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @b.setter - def b(self, value: str) -> None: - ... - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @c.setter - def c(self, value: str) -> None: - ... - - -class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.INonInternalInterface" - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str) -> None: - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str) -> None: - jsii.set(self, "c", value) - - -@jsii.interface(jsii_type="jsii-calc.IObjectWithProperty") -class IObjectWithProperty(jsii.compat.Protocol): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IObjectWithPropertyProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @property.setter - def property(self, value: str) -> None: - ... - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IObjectWithPropertyProxy: - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IObjectWithProperty" - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @property.setter - def property(self, value: str) -> None: - jsii.set(self, "property", value) - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "wasSet", []) - - -@jsii.interface(jsii_type="jsii-calc.IOptionalMethod") -class IOptionalMethod(jsii.compat.Protocol): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IOptionalMethodProxy - - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - ... - - -class _IOptionalMethodProxy: - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IOptionalMethod" - - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "optional", []) - - -@jsii.interface(jsii_type="jsii-calc.IPrivatelyImplemented") -class IPrivatelyImplemented(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPrivatelyImplementedProxy - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IPrivatelyImplementedProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IPrivatelyImplemented" - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.interface(jsii_type="jsii-calc.IPublicInterface") -class IPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterfaceProxy - - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterfaceProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IPublicInterface" - - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bye", []) - - -@jsii.interface(jsii_type="jsii-calc.IPublicInterface2") -class IPublicInterface2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterface2Proxy - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterface2Proxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IPublicInterface2" - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - -@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") -class IRandomNumberGenerator(jsii.compat.Protocol): - """Generates random numbers. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IRandomNumberGeneratorProxy - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - return - :return: A random number. - - stability - :stability: experimental - """ - ... - - -class _IRandomNumberGeneratorProxy: - """Generates random numbers. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IRandomNumberGenerator" - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - return - :return: A random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - -@jsii.interface(jsii_type="jsii-calc.IReturnJsii976") -class IReturnJsii976(jsii.compat.Protocol): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnJsii976Proxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnJsii976Proxy: - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IReturnJsii976" - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - -@jsii.interface(jsii_type="jsii-calc.IReturnsNumber") -class IReturnsNumber(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnsNumberProxy - - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnsNumberProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IReturnsNumber" - - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProp") - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "obtainNumber", []) - - -@jsii.interface(jsii_type="jsii-calc.IStableInterface") -class IStableInterface(jsii.compat.Protocol): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStableInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - ... - - -class _IStableInterfaceProxy: - __jsii_type__ = "jsii-calc.IStableInterface" - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.IStructReturningDelegate") -class IStructReturningDelegate(jsii.compat.Protocol): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStructReturningDelegateProxy - - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - ... - - -class _IStructReturningDelegateProxy: - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IStructReturningDelegate" - - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnStruct", []) - - -class ImplementInternalInterface( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ImplementInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str) -> None: - jsii.set(self, "prop", value) - - -class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementation"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Implementation, self, []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.implements(IInterfaceWithInternal) -class ImplementsInterfaceWithInternal( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ImplementsInterfaceWithInternal, self, []) - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - -class ImplementsInterfaceWithInternalSubclass( - ImplementsInterfaceWithInternal, - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) - - -class ImplementsPrivateInterface( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ImplementsPrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str) -> None: - jsii.set(self, "private", value) - - -@jsii.data_type( - jsii_type="jsii-calc.ImplictBaseOfBase", - jsii_struct_bases=[scope.jsii_calc_base.BaseProps], - name_mapping={"foo": "foo", "bar": "bar", "goo": "goo"}, -) -class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): - def __init__( - self, - *, - foo: scope.jsii_calc_base_of_base.Very, - bar: str, - goo: datetime.datetime, - ) -> None: - """ - :param foo: - - :param bar: - - :param goo: - - stability - :stability: experimental - """ - self._values = { - "foo": foo, - "bar": bar, - "goo": goo, - } - - @builtins.property - def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get("foo") - - @builtins.property - def bar(self) -> str: - return self._values.get("bar") - - @builtins.property - def goo(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get("goo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ImplictBaseOfBase(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class InterfaceCollections( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections" -): - """Verifies that collections of interfaces or structs are correctly handled. - - See: https://github.com/aws/jsii/issues/1196 - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="listOfInterfaces") - @builtins.classmethod - def list_of_interfaces(cls) -> typing.List["IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfInterfaces", []) - - @jsii.member(jsii_name="listOfStructs") - @builtins.classmethod - def list_of_structs(cls) -> typing.List["StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfStructs", []) - - @jsii.member(jsii_name="mapOfInterfaces") - @builtins.classmethod - def map_of_interfaces(cls) -> typing.Mapping[str, "IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfInterfaces", []) - - @jsii.member(jsii_name="mapOfStructs") - @builtins.classmethod - def map_of_structs(cls) -> typing.Mapping[str, "StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfStructs", []) - - -class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMaker"): - """We can return arrays of interfaces See aws/aws-cdk#2362. - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces( - cls, count: jsii.Number - ) -> typing.List[scope.jsii_calc_lib.IDoublable]: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", [count]) - - -class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.Isomorphism"): - """Checks the "same instance" isomorphism is preserved within the constructor. - - Create a subclass of this, and assert that ``this.myself()`` actually returns - ``this`` from within the constructor. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IsomorphismProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Isomorphism, self, []) - - @jsii.member(jsii_name="myself") - def myself(self) -> "Isomorphism": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "myself", []) - - -class _IsomorphismProxy(Isomorphism): - pass - - -class JSII417PublicBaseOfBase( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JSII417PublicBaseOfBase, self, []) - - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "JSII417PublicBaseOfBase": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - -class JSObjectLiteralForInterface( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JSObjectLiteralForInterface, self, []) - - @jsii.member(jsii_name="giveMeFriendly") - def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendly", []) - - @jsii.member(jsii_name="giveMeFriendlyGenerator") - def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendlyGenerator", []) - - -class JSObjectLiteralToNative( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JSObjectLiteralToNative, self, []) - - @jsii.member(jsii_name="returnLiteral") - def return_literal(self) -> "JSObjectLiteralToNativeClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnLiteral", []) - - -class JSObjectLiteralToNativeClass( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JSObjectLiteralToNativeClass, self, []) - - @builtins.property - @jsii.member(jsii_name="propA") - def prop_a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propA") - - @prop_a.setter - def prop_a(self, value: str) -> None: - jsii.set(self, "propA", value) - - @builtins.property - @jsii.member(jsii_name="propB") - def prop_b(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propB") - - @prop_b.setter - def prop_b(self, value: jsii.Number) -> None: - jsii.set(self, "propB", value) - - -class JavaReservedWords( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JavaReservedWords, self, []) - - @jsii.member(jsii_name="abstract") - def abstract(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "abstract", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="boolean") - def boolean(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "boolean", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="byte") - def byte(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "byte", []) - - @jsii.member(jsii_name="case") - def case(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "case", []) - - @jsii.member(jsii_name="catch") - def catch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "catch", []) - - @jsii.member(jsii_name="char") - def char(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "char", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="const") - def const(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "const", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="default") - def default(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "default", []) - - @jsii.member(jsii_name="do") - def do(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "do", []) - - @jsii.member(jsii_name="double") - def double(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "double", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="enum") - def enum(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "enum", []) - - @jsii.member(jsii_name="extends") - def extends(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "extends", []) - - @jsii.member(jsii_name="false") - def false(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "false", []) - - @jsii.member(jsii_name="final") - def final(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "final", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="float") - def float(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "float", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="goto") - def goto(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "goto", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="implements") - def implements(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "implements", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="instanceof") - def instanceof(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "instanceof", []) - - @jsii.member(jsii_name="int") - def int(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "int", []) - - @jsii.member(jsii_name="interface") - def interface(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface", []) - - @jsii.member(jsii_name="long") - def long(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "long", []) - - @jsii.member(jsii_name="native") - def native(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "native", []) - - @jsii.member(jsii_name="new") - def new(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "new", []) - - @jsii.member(jsii_name="null") - def null(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "null", []) - - @jsii.member(jsii_name="package") - def package(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "package", []) - - @jsii.member(jsii_name="private") - def private(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "private", []) - - @jsii.member(jsii_name="protected") - def protected(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "protected", []) - - @jsii.member(jsii_name="public") - def public(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "public", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="short") - def short(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "short", []) - - @jsii.member(jsii_name="static") - def static(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "static", []) - - @jsii.member(jsii_name="strictfp") - def strictfp(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "strictfp", []) - - @jsii.member(jsii_name="super") - def super(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "super", []) - - @jsii.member(jsii_name="switch") - def switch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switch", []) - - @jsii.member(jsii_name="synchronized") - def synchronized(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "synchronized", []) - - @jsii.member(jsii_name="this") - def this(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "this", []) - - @jsii.member(jsii_name="throw") - def throw(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throw", []) - - @jsii.member(jsii_name="throws") - def throws(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throws", []) - - @jsii.member(jsii_name="transient") - def transient(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "transient", []) - - @jsii.member(jsii_name="true") - def true(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "true", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="void") - def void(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "void", []) - - @jsii.member(jsii_name="volatile") - def volatile(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "volatile", []) - - @builtins.property - @jsii.member(jsii_name="while") - def while_(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "while") - - @while_.setter - def while_(self, value: str) -> None: - jsii.set(self, "while", value) - - -@jsii.implements(IJsii487External2, IJsii487External) -class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derived"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Jsii487Derived, self, []) - - -@jsii.implements(IJsii496) -class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derived"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Jsii496Derived, self, []) - - -class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"): - """Host runtime version should be set via JSII_AGENT. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(JsiiAgent, self, []) - - @jsii.python.classproperty - @jsii.member(jsii_name="jsiiAgent") - def jsii_agent(cls) -> typing.Optional[str]: - """Returns the value of the JSII_AGENT environment variable. - - stability - :stability: experimental - """ - return jsii.sget(cls, "jsiiAgent") - - -class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter"): - """Make sure structs are un-decorated on the way in. - - see - :see: https://github.com/aws/aws-cdk/issues/5066 - stability - :stability: experimental - """ - - @jsii.member(jsii_name="anyArray") - @builtins.classmethod - def any_array(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyArray", []) - - @jsii.member(jsii_name="anyBooleanFalse") - @builtins.classmethod - def any_boolean_false(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanFalse", []) - - @jsii.member(jsii_name="anyBooleanTrue") - @builtins.classmethod - def any_boolean_true(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanTrue", []) - - @jsii.member(jsii_name="anyDate") - @builtins.classmethod - def any_date(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyDate", []) - - @jsii.member(jsii_name="anyEmptyString") - @builtins.classmethod - def any_empty_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyEmptyString", []) - - @jsii.member(jsii_name="anyFunction") - @builtins.classmethod - def any_function(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyFunction", []) - - @jsii.member(jsii_name="anyHash") - @builtins.classmethod - def any_hash(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyHash", []) - - @jsii.member(jsii_name="anyNull") - @builtins.classmethod - def any_null(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNull", []) - - @jsii.member(jsii_name="anyNumber") - @builtins.classmethod - def any_number(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNumber", []) - - @jsii.member(jsii_name="anyRef") - @builtins.classmethod - def any_ref(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyRef", []) - - @jsii.member(jsii_name="anyString") - @builtins.classmethod - def any_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyString", []) - - @jsii.member(jsii_name="anyUndefined") - @builtins.classmethod - def any_undefined(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyUndefined", []) - - @jsii.member(jsii_name="anyZero") - @builtins.classmethod - def any_zero(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyZero", []) - - @jsii.member(jsii_name="stringify") - @builtins.classmethod - def stringify(cls, value: typing.Any = None) -> typing.Optional[str]: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "stringify", [value]) - - -@jsii.data_type( - jsii_type="jsii-calc.LoadBalancedFargateServiceProps", - jsii_struct_bases=[], - name_mapping={ - "container_port": "containerPort", - "cpu": "cpu", - "memory_mib": "memoryMiB", - "public_load_balancer": "publicLoadBalancer", - "public_tasks": "publicTasks", - }, -) -class LoadBalancedFargateServiceProps: - def __init__( - self, - *, - container_port: typing.Optional[jsii.Number] = None, - cpu: typing.Optional[str] = None, - memory_mib: typing.Optional[str] = None, - public_load_balancer: typing.Optional[bool] = None, - public_tasks: typing.Optional[bool] = None, - ) -> None: - """jsii#298: show default values in sphinx documentation, and respect newlines. - - :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 - :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 - :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 - :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true - :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false - - stability - :stability: experimental - """ - self._values = {} - if container_port is not None: - self._values["container_port"] = container_port - if cpu is not None: - self._values["cpu"] = cpu - if memory_mib is not None: - self._values["memory_mib"] = memory_mib - if public_load_balancer is not None: - self._values["public_load_balancer"] = public_load_balancer - if public_tasks is not None: - self._values["public_tasks"] = public_tasks - - @builtins.property - def container_port(self) -> typing.Optional[jsii.Number]: - """The container port of the application load balancer attached to your Fargate service. - - Corresponds to container port mapping. - - default - :default: 80 - - stability - :stability: experimental - """ - return self._values.get("container_port") - - @builtins.property - def cpu(self) -> typing.Optional[str]: - """The number of cpu units used by the task. - - Valid values, which determines your range of valid values for the memory parameter: - 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 256 - - stability - :stability: experimental - """ - return self._values.get("cpu") - - @builtins.property - def memory_mib(self) -> typing.Optional[str]: - """The amount (in MiB) of memory used by the task. - - This field is required and you must use one of the following values, which determines your range of valid values - for the cpu parameter: - - 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - - 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - - 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - - Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - - Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 512 - - stability - :stability: experimental - """ - return self._values.get("memory_mib") - - @builtins.property - def public_load_balancer(self) -> typing.Optional[bool]: - """Determines whether the Application Load Balancer will be internet-facing. - - default - :default: true - - stability - :stability: experimental - """ - return self._values.get("public_load_balancer") - - @builtins.property - def public_tasks(self) -> typing.Optional[bool]: - """Determines whether your Fargate Service will be assigned a public IP address. - - default - :default: false - - stability - :stability: experimental - """ - return self._values.get("public_tasks") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "LoadBalancedFargateServiceProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class MethodNamedProperty( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(MethodNamedProperty, self, []) - - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "property", []) - - @builtins.property - @jsii.member(jsii_name="elite") - def elite(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "elite") - - -@jsii.implements(IFriendlier, IRandomNumberGenerator) -class Multiply( - BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply" -): - """The "*" binary operation. - - stability - :stability: experimental - """ - - def __init__( - self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value - ) -> None: - """Creates a BinaryOperation. - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. - - stability - :stability: experimental - """ - jsii.create(Multiply, self, [lhs, rhs]) - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. - - stability - :stability: experimental - """ - return jsii.invoke(self, "farewell", []) - - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. - - stability - :stability: experimental - """ - return jsii.invoke(self, "goodbye", []) - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.data_type( - jsii_type="jsii-calc.NestedStruct", - jsii_struct_bases=[], - name_mapping={"number_prop": "numberProp"}, -) -class NestedStruct: - def __init__(self, *, number_prop: jsii.Number) -> None: - """ - :param number_prop: When provided, must be > 0. - - stability - :stability: experimental - """ - self._values = { - "number_prop": number_prop, - } - - @builtins.property - def number_prop(self) -> jsii.Number: - """When provided, must be > 0. - - stability - :stability: experimental - """ - return self._values.get("number_prop") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "NestedStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class NodeStandardLibrary( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary" -): - """Test fixture to verify that jsii modules can use the node standard library. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(NodeStandardLibrary, self, []) - - @jsii.member(jsii_name="cryptoSha256") - def crypto_sha256(self) -> str: - """Uses node.js "crypto" module to calculate sha256 of a string. - - return - :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - - stability - :stability: experimental - """ - return jsii.invoke(self, "cryptoSha256", []) - - @jsii.member(jsii_name="fsReadFile") - def fs_read_file(self) -> str: - """Reads a local resource file (resource.txt) asynchronously. - - return - :return: "Hello, resource!" - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "fsReadFile", []) - - @jsii.member(jsii_name="fsReadFileSync") - def fs_read_file_sync(self) -> str: - """Sync version of fsReadFile. - - return - :return: "Hello, resource! SYNC!" - - stability - :stability: experimental - """ - return jsii.invoke(self, "fsReadFileSync", []) - - @builtins.property - @jsii.member(jsii_name="osPlatform") - def os_platform(self) -> str: - """Returns the current os.platform() from the "os" node module. - - stability - :stability: experimental - """ - return jsii.get(self, "osPlatform") - - -class NullShouldBeTreatedAsUndefined( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined" -): - """jsii#282, aws-cdk#157: null should be treated as "undefined". - - stability - :stability: experimental - """ - - def __init__(self, _param1: str, optional: typing.Any = None) -> None: - """ - :param _param1: - - :param optional: - - - stability - :stability: experimental - """ - jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) - - @jsii.member(jsii_name="giveMeUndefined") - def give_me_undefined(self, value: typing.Any = None) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeUndefined", [value]) - - @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") - def give_me_undefined_inside_an_object( - self, - *, - array_with_three_elements_and_undefined_as_second_argument: typing.List[ - typing.Any - ], - this_should_be_undefined: typing.Any = None, - ) -> None: - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - input = NullShouldBeTreatedAsUndefinedData( - array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, - this_should_be_undefined=this_should_be_undefined, - ) - - return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) - - @jsii.member(jsii_name="verifyPropertyIsUndefined") - def verify_property_is_undefined(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verifyPropertyIsUndefined", []) - - @builtins.property - @jsii.member(jsii_name="changeMeToUndefined") - def change_me_to_undefined(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "changeMeToUndefined") - - @change_me_to_undefined.setter - def change_me_to_undefined(self, value: typing.Optional[str]) -> None: - jsii.set(self, "changeMeToUndefined", value) - - -@jsii.data_type( - jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", - jsii_struct_bases=[], - name_mapping={ - "array_with_three_elements_and_undefined_as_second_argument": "arrayWithThreeElementsAndUndefinedAsSecondArgument", - "this_should_be_undefined": "thisShouldBeUndefined", - }, -) -class NullShouldBeTreatedAsUndefinedData: - def __init__( - self, - *, - array_with_three_elements_and_undefined_as_second_argument: typing.List[ - typing.Any - ], - this_should_be_undefined: typing.Any = None, - ) -> None: - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - self._values = { - "array_with_three_elements_and_undefined_as_second_argument": array_with_three_elements_and_undefined_as_second_argument, - } - if this_should_be_undefined is not None: - self._values["this_should_be_undefined"] = this_should_be_undefined - - @builtins.property - def array_with_three_elements_and_undefined_as_second_argument( - self, - ) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return self._values.get( - "array_with_three_elements_and_undefined_as_second_argument" - ) - - @builtins.property - def this_should_be_undefined(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get("this_should_be_undefined") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "NullShouldBeTreatedAsUndefinedData(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"): - """This allows us to test that a reference can be stored for objects that implement interfaces. - - stability - :stability: experimental - """ - - def __init__(self, generator: "IRandomNumberGenerator") -> None: - """ - :param generator: - - - stability - :stability: experimental - """ - jsii.create(NumberGenerator, self, [generator]) - - @jsii.member(jsii_name="isSameGenerator") - def is_same_generator(self, gen: "IRandomNumberGenerator") -> bool: - """ - :param gen: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSameGenerator", [gen]) - - @jsii.member(jsii_name="nextTimes100") - def next_times100(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nextTimes100", []) - - @builtins.property - @jsii.member(jsii_name="generator") - def generator(self) -> "IRandomNumberGenerator": - """ - stability - :stability: experimental - """ - return jsii.get(self, "generator") - - @generator.setter - def generator(self, value: "IRandomNumberGenerator") -> None: - jsii.set(self, "generator", value) - - -class ObjectRefsInCollections( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections" -): - """Verify that object references can be passed inside collections. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ObjectRefsInCollections, self, []) - - @jsii.member(jsii_name="sumFromArray") - def sum_from_array( - self, values: typing.List[scope.jsii_calc_lib.Value] - ) -> jsii.Number: - """Returns the sum of all values. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromArray", [values]) - - @jsii.member(jsii_name="sumFromMap") - def sum_from_map( - self, values: typing.Mapping[str, scope.jsii_calc_lib.Value] - ) -> jsii.Number: - """Returns the sum of all values in a map. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromMap", [values]) - - -class ObjectWithPropertyProvider( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider" -): - """ - stability - :stability: experimental - """ - - @jsii.member(jsii_name="provide") - @builtins.classmethod - def provide(cls) -> "IObjectWithProperty": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "provide", []) - - -class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"): - """Old class. - - deprecated - :deprecated: Use the new class - - stability - :stability: deprecated - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Old, self, []) - - @jsii.member(jsii_name="doAThing") - def do_a_thing(self) -> None: - """Doo wop that thing. - - stability - :stability: deprecated - """ - return jsii.invoke(self, "doAThing", []) - - -class OptionalArgumentInvoker( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker" -): - """ - stability - :stability: experimental - """ - - def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(OptionalArgumentInvoker, self, [delegate]) - - @jsii.member(jsii_name="invokeWithOptional") - def invoke_with_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithOptional", []) - - @jsii.member(jsii_name="invokeWithoutOptional") - def invoke_without_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithoutOptional", []) - - -class OptionalConstructorArgument( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument" -): - """ - stability - :stability: experimental - """ - - def __init__( - self, - arg1: jsii.Number, - arg2: str, - arg3: typing.Optional[datetime.datetime] = None, - ) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> typing.Optional[datetime.datetime]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - -@jsii.data_type( - jsii_type="jsii-calc.OptionalStruct", - jsii_struct_bases=[], - name_mapping={"field": "field"}, -) -class OptionalStruct: - def __init__(self, *, field: typing.Optional[str] = None) -> None: - """ - :param field: - - stability - :stability: experimental - """ - self._values = {} - if field is not None: - self._values["field"] = field - - @builtins.property - def field(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("field") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "OptionalStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class OptionalStructConsumer( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer" -): - """ - stability - :stability: experimental - """ - - def __init__(self, *, field: typing.Optional[str] = None) -> None: - """ - :param field: - - stability - :stability: experimental - """ - optional_struct = OptionalStruct(field=field) - - jsii.create(OptionalStructConsumer, self, [optional_struct]) - - @builtins.property - @jsii.member(jsii_name="parameterWasUndefined") - def parameter_was_undefined(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "parameterWasUndefined") - - @builtins.property - @jsii.member(jsii_name="fieldValue") - def field_value(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "fieldValue") - - -class OverridableProtectedMember( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember" -): - """ - see - :see: https://github.com/aws/jsii/issues/903 - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(OverridableProtectedMember, self, []) - - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - @jsii.member(jsii_name="switchModes") - def switch_modes(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switchModes", []) - - @jsii.member(jsii_name="valueFromProtected") - def value_from_protected(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "valueFromProtected", []) - - @builtins.property - @jsii.member(jsii_name="overrideReadOnly") - def _override_read_only(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadOnly") - - @builtins.property - @jsii.member(jsii_name="overrideReadWrite") - def _override_read_write(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadWrite") - - @_override_read_write.setter - def _override_read_write(self, value: str) -> None: - jsii.set(self, "overrideReadWrite", value) - - -class OverrideReturnsObject( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(OverrideReturnsObject, self, []) - - @jsii.member(jsii_name="test") - def test(self, obj: "IReturnsNumber") -> jsii.Number: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "test", [obj]) - - -@jsii.data_type( - jsii_type="jsii-calc.ParentStruct982", - jsii_struct_bases=[], - name_mapping={"foo": "foo"}, -) -class ParentStruct982: - def __init__(self, *, foo: str) -> None: - """https://github.com/aws/jsii/issues/982. - - :param foo: - - stability - :stability: experimental - """ - self._values = { - "foo": foo, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("foo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ParentStruct982(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class PartiallyInitializedThisConsumer( - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.PartiallyInitializedThisConsumer", -): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _PartiallyInitializedThisConsumerProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(PartiallyInitializedThisConsumer, self, []) - - @jsii.member(jsii_name="consumePartiallyInitializedThis") - @abc.abstractmethod - def consume_partially_initialized_this( - self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum" - ) -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - ... - - -class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): - @jsii.member(jsii_name="consumePartiallyInitializedThis") - def consume_partially_initialized_this( - self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum" - ) -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) - - -class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Polymorphism, self, []) - - @jsii.member(jsii_name="sayHello") - def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sayHello", [friendly]) - - -class Power( - _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power" -): - """The power operation. - - stability - :stability: experimental - """ - - def __init__( - self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value - ) -> None: - """Creates a Power operation. - - :param base: The base of the power. - :param pow: The number of times to multiply. - - stability - :stability: experimental - """ - jsii.create(Power, self, [base, pow]) - - @builtins.property - @jsii.member(jsii_name="base") - def base(self) -> scope.jsii_calc_lib.Value: - """The base of the power. - - stability - :stability: experimental - """ - return jsii.get(self, "base") - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="pow") - def pow(self) -> scope.jsii_calc_lib.Value: - """The number of times to multiply. - - stability - :stability: experimental - """ - return jsii.get(self, "pow") - - -class PropertyNamedProperty( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty" -): - """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(PropertyNamedProperty, self, []) - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @builtins.property - @jsii.member(jsii_name="yetAnoterOne") - def yet_anoter_one(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "yetAnoterOne") - - -class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(PublicClass, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - -class PythonReservedWords( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(PythonReservedWords, self, []) - - @jsii.member(jsii_name="and") - def and_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "and", []) - - @jsii.member(jsii_name="as") - def as_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "as", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="async") - def async_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "async", []) - - @jsii.member(jsii_name="await") - def await_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "await", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="def") - def def_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "def", []) - - @jsii.member(jsii_name="del") - def del_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "del", []) - - @jsii.member(jsii_name="elif") - def elif_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "elif", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="except") - def except_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "except", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="from") - def from_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "from", []) - - @jsii.member(jsii_name="global") - def global_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "global", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="in") - def in_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "in", []) - - @jsii.member(jsii_name="is") - def is_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "is", []) - - @jsii.member(jsii_name="lambda") - def lambda_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "lambda", []) - - @jsii.member(jsii_name="nonlocal") - def nonlocal_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonlocal", []) - - @jsii.member(jsii_name="not") - def not_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "not", []) - - @jsii.member(jsii_name="or") - def or_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "or", []) - - @jsii.member(jsii_name="pass") - def pass_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "pass", []) - - @jsii.member(jsii_name="raise") - def raise_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "raise", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="while") - def while_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "while", []) - - @jsii.member(jsii_name="with") - def with_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "with", []) - - @jsii.member(jsii_name="yield") - def yield_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "yield", []) - - -class ReferenceEnumFromScopedPackage( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage" -): - """See awslabs/jsii#138. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ReferenceEnumFromScopedPackage, self, []) - - @jsii.member(jsii_name="loadFoo") - def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "loadFoo", []) - - @jsii.member(jsii_name="saveFoo") - def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "saveFoo", [value]) - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo( - self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule] - ) -> None: - jsii.set(self, "foo", value) - - -class ReturnsPrivateImplementationOfInterface( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface", -): - """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - - return - :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. - - see - :see: https://github.com/aws/jsii/issues/320 - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ReturnsPrivateImplementationOfInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="privateImplementation") - def private_implementation(self) -> "IPrivatelyImplemented": - """ - stability - :stability: experimental - """ - return jsii.get(self, "privateImplementation") - - -@jsii.data_type( - jsii_type="jsii-calc.RootStruct", - jsii_struct_bases=[], - name_mapping={"string_prop": "stringProp", "nested_struct": "nestedStruct"}, -) -class RootStruct: - def __init__( - self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None - ) -> None: - """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - - This is cheating with the (current) declared types, but this is the "more - idiomatic" way for Pythonists. - - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - if isinstance(nested_struct, dict): - nested_struct = NestedStruct(**nested_struct) - self._values = { - "string_prop": string_prop, - } - if nested_struct is not None: - self._values["nested_struct"] = nested_struct - - @builtins.property - def string_prop(self) -> str: - """May not be empty. - - stability - :stability: experimental - """ - return self._values.get("string_prop") - - @builtins.property - def nested_struct(self) -> typing.Optional["NestedStruct"]: - """ - stability - :stability: experimental - """ - return self._values.get("nested_struct") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "RootStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class RootStructValidator( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator" -): - """ - stability - :stability: experimental - """ - - @jsii.member(jsii_name="validate") - @builtins.classmethod - def validate( - cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None - ) -> None: - """ - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) - - return jsii.sinvoke(cls, "validate", [struct]) - - -class RuntimeTypeChecking( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(RuntimeTypeChecking, self, []) - - @jsii.member(jsii_name="methodWithDefaultedArguments") - def method_with_defaulted_arguments( - self, - arg1: typing.Optional[jsii.Number] = None, - arg2: typing.Optional[str] = None, - arg3: typing.Optional[datetime.datetime] = None, - ) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) - - @jsii.member(jsii_name="methodWithOptionalAnyArgument") - def method_with_optional_any_argument(self, arg: typing.Any = None) -> None: - """ - :param arg: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) - - @jsii.member(jsii_name="methodWithOptionalArguments") - def method_with_optional_arguments( - self, - arg1: jsii.Number, - arg2: str, - arg3: typing.Optional[datetime.datetime] = None, - ) -> None: - """Used to verify verification of number of method arguments. - - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) - - -@jsii.data_type( - jsii_type="jsii-calc.SecondLevelStruct", - jsii_struct_bases=[], - name_mapping={ - "deeper_required_prop": "deeperRequiredProp", - "deeper_optional_prop": "deeperOptionalProp", - }, -) -class SecondLevelStruct: - def __init__( - self, - *, - deeper_required_prop: str, - deeper_optional_prop: typing.Optional[str] = None, - ) -> None: - """ - :param deeper_required_prop: It's long and required. - :param deeper_optional_prop: It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - self._values = { - "deeper_required_prop": deeper_required_prop, - } - if deeper_optional_prop is not None: - self._values["deeper_optional_prop"] = deeper_optional_prop - - @builtins.property - def deeper_required_prop(self) -> str: - """It's long and required. - - stability - :stability: experimental - """ - return self._values.get("deeper_required_prop") - - @builtins.property - def deeper_optional_prop(self) -> typing.Optional[str]: - """It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - return self._values.get("deeper_optional_prop") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "SecondLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class SingleInstanceTwoTypes( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes" -): - """Test that a single instance can be returned under two different FQNs. - - JSII clients can instantiate 2 different strongly-typed wrappers for the same - object. Unfortunately, this will break object equality, but if we didn't do - this it would break runtime type checks in the JVM or CLR. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(SingleInstanceTwoTypes, self, []) - - @jsii.member(jsii_name="interface1") - def interface1(self) -> "InbetweenClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface1", []) - - @jsii.member(jsii_name="interface2") - def interface2(self) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface2", []) - - -class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="isSingletonInt") - def is_singleton_int(self, value: jsii.Number) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonInt", [value]) - - -@jsii.enum(jsii_type="jsii-calc.SingletonIntEnum") -class SingletonIntEnum(enum.Enum): - """A singleton integer. - - stability - :stability: experimental - """ - - SINGLETON_INT = "SINGLETON_INT" - """Elite! - - stability - :stability: experimental - """ - - -class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="isSingletonString") - def is_singleton_string(self, value: str) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonString", [value]) - - -@jsii.enum(jsii_type="jsii-calc.SingletonStringEnum") -class SingletonStringEnum(enum.Enum): - """A singleton string. - - stability - :stability: experimental - """ - - SINGLETON_STRING = "SINGLETON_STRING" - """1337. - - stability - :stability: experimental - """ - - -@jsii.data_type( - jsii_type="jsii-calc.SmellyStruct", - jsii_struct_bases=[], - name_mapping={"property": "property", "yet_anoter_one": "yetAnoterOne"}, -) -class SmellyStruct: - def __init__(self, *, property: str, yet_anoter_one: bool) -> None: - """ - :param property: - :param yet_anoter_one: - - stability - :stability: experimental - """ - self._values = { - "property": property, - "yet_anoter_one": yet_anoter_one, - } - - @builtins.property - def property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("property") - - @builtins.property - def yet_anoter_one(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get("yet_anoter_one") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "SmellyStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(SomeTypeJsii976, self, []) - - @jsii.member(jsii_name="returnAnonymous") - @builtins.classmethod - def return_anonymous(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnAnonymous", []) - - @jsii.member(jsii_name="returnReturn") - @builtins.classmethod - def return_return(cls) -> "IReturnJsii976": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnReturn", []) - - -class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"): - def __init__( - self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None - ) -> None: - """ - :param readonly_string: - - :param mutable_number: - - """ - jsii.create(StableClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.StableEnum") -class StableEnum(enum.Enum): - OPTION_A = "OPTION_A" - OPTION_B = "OPTION_B" - - -@jsii.data_type( - jsii_type="jsii-calc.StableStruct", - jsii_struct_bases=[], - name_mapping={"readonly_property": "readonlyProperty"}, -) -class StableStruct: - def __init__(self, *, readonly_property: str) -> None: - """ - :param readonly_property: - """ - self._values = { - "readonly_property": readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - return self._values.get("readonly_property") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StableStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"): - """This is used to validate the ability to use ``this`` from within a static context. - - https://github.com/awslabs/aws-cdk/issues/2304 - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="canAccessStaticContext") - @builtins.classmethod - def can_access_static_context(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "canAccessStaticContext", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticVariable") - def static_variable(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticVariable") - - @static_variable.setter - def static_variable(cls, value: bool) -> None: - jsii.sset(cls, "staticVariable", value) - - -class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"): - """ - stability - :stability: experimental - """ - - def __init__(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - jsii.create(Statics, self, [value]) - - @jsii.member(jsii_name="staticMethod") - @builtins.classmethod - def static_method(cls, name: str) -> str: - """Jsdocs for static method. - - :param name: The name of the person to say hello to. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticMethod", [name]) - - @jsii.member(jsii_name="justMethod") - def just_method(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justMethod", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="BAR") - def BAR(cls) -> jsii.Number: - """Constants may also use all-caps. - - stability - :stability: experimental - """ - return jsii.sget(cls, "BAR") - - @jsii.python.classproperty - @jsii.member(jsii_name="ConstObj") - def CONST_OBJ(cls) -> "DoubleTrouble": - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "ConstObj") - - @jsii.python.classproperty - @jsii.member(jsii_name="Foo") - def FOO(cls) -> str: - """Jsdocs for static property. - - stability - :stability: experimental - """ - return jsii.sget(cls, "Foo") - - @jsii.python.classproperty - @jsii.member(jsii_name="zooBar") - def ZOO_BAR(cls) -> typing.Mapping[str, str]: - """Constants can also use camelCase. - - stability - :stability: experimental - """ - return jsii.sget(cls, "zooBar") - - @jsii.python.classproperty - @jsii.member(jsii_name="instance") - def instance(cls) -> "Statics": - """Jsdocs for static getter. - - Jsdocs for static setter. - - stability - :stability: experimental - """ - return jsii.sget(cls, "instance") - - @instance.setter - def instance(cls, value: "Statics") -> None: - jsii.sset(cls, "instance", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="nonConstStatic") - def non_const_static(cls) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "nonConstStatic") - - @non_const_static.setter - def non_const_static(cls, value: jsii.Number) -> None: - jsii.sset(cls, "nonConstStatic", value) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.enum(jsii_type="jsii-calc.StringEnum") -class StringEnum(enum.Enum): - """ - stability - :stability: experimental - """ - - A = "A" - """ - stability - :stability: experimental - """ - B = "B" - """ - stability - :stability: experimental - """ - C = "C" - """ - stability - :stability: experimental - """ - - -class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(StripInternal, self, []) - - @builtins.property - @jsii.member(jsii_name="youSeeMe") - def you_see_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "youSeeMe") - - @you_see_me.setter - def you_see_me(self, value: str) -> None: - jsii.set(self, "youSeeMe", value) - - -@jsii.data_type( - jsii_type="jsii-calc.StructA", - jsii_struct_bases=[], - name_mapping={ - "required_string": "requiredString", - "optional_number": "optionalNumber", - "optional_string": "optionalString", - }, -) -class StructA: - def __init__( - self, - *, - required_string: str, - optional_number: typing.Optional[jsii.Number] = None, - optional_string: typing.Optional[str] = None, - ) -> None: - """We can serialize and deserialize structs without silently ignoring optional fields. - - :param required_string: - :param optional_number: - :param optional_string: - - stability - :stability: experimental - """ - self._values = { - "required_string": required_string, - } - if optional_number is not None: - self._values["optional_number"] = optional_number - if optional_string is not None: - self._values["optional_string"] = optional_string - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("required_string") - - @builtins.property - def optional_number(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return self._values.get("optional_number") - - @builtins.property - def optional_string(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("optional_string") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructA(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.StructB", - jsii_struct_bases=[], - name_mapping={ - "required_string": "requiredString", - "optional_boolean": "optionalBoolean", - "optional_struct_a": "optionalStructA", - }, -) -class StructB: - def __init__( - self, - *, - required_string: str, - optional_boolean: typing.Optional[bool] = None, - optional_struct_a: typing.Optional["StructA"] = None, - ) -> None: - """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - - :param required_string: - :param optional_boolean: - :param optional_struct_a: - - stability - :stability: experimental - """ - if isinstance(optional_struct_a, dict): - optional_struct_a = StructA(**optional_struct_a) - self._values = { - "required_string": required_string, - } - if optional_boolean is not None: - self._values["optional_boolean"] = optional_boolean - if optional_struct_a is not None: - self._values["optional_struct_a"] = optional_struct_a - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("required_string") - - @builtins.property - def optional_boolean(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get("optional_boolean") - - @builtins.property - def optional_struct_a(self) -> typing.Optional["StructA"]: - """ - stability - :stability: experimental - """ - return self._values.get("optional_struct_a") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructB(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.StructParameterType", - jsii_struct_bases=[], - name_mapping={"scope": "scope", "props": "props"}, -) -class StructParameterType: - def __init__(self, *, scope: str, props: typing.Optional[bool] = None) -> None: - """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - - See: https://github.com/aws/aws-cdk/issues/4302 - - :param scope: - :param props: - - stability - :stability: experimental - """ - self._values = { - "scope": scope, - } - if props is not None: - self._values["props"] = props - - @builtins.property - def scope(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("scope") - - @builtins.property - def props(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get("props") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructParameterType(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"): - """Just because we can.""" - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(StructPassing, self, []) - - @jsii.member(jsii_name="howManyVarArgsDidIPass") - @builtins.classmethod - def how_many_var_args_did_i_pass( - cls, _positional: jsii.Number, *inputs: "TopLevelStruct" - ) -> jsii.Number: - """ - :param _positional: - - :param inputs: - - """ - return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) - - @jsii.member(jsii_name="roundTrip") - @builtins.classmethod - def round_trip( - cls, - _positional: jsii.Number, - *, - required: str, - second_level: typing.Union[jsii.Number, "SecondLevelStruct"], - optional: typing.Optional[str] = None, - ) -> "TopLevelStruct": - """ - :param _positional: - - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - """ - input = TopLevelStruct( - required=required, second_level=second_level, optional=optional - ) - - return jsii.sinvoke(cls, "roundTrip", [_positional, input]) - - -class StructUnionConsumer( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer" -): - """ - stability - :stability: experimental - """ - - @jsii.member(jsii_name="isStructA") - @builtins.classmethod - def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructA", [struct]) - - @jsii.member(jsii_name="isStructB") - @builtins.classmethod - def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructB", [struct]) - - -@jsii.data_type( - jsii_type="jsii-calc.StructWithJavaReservedWords", - jsii_struct_bases=[], - name_mapping={ - "default": "default", - "assert_": "assert", - "result": "result", - "that": "that", - }, -) -class StructWithJavaReservedWords: - def __init__( - self, - *, - default: str, - assert_: typing.Optional[str] = None, - result: typing.Optional[str] = None, - that: typing.Optional[str] = None, - ) -> None: - """ - :param default: - :param assert_: - :param result: - :param that: - - stability - :stability: experimental - """ - self._values = { - "default": default, - } - if assert_ is not None: - self._values["assert_"] = assert_ - if result is not None: - self._values["result"] = result - if that is not None: - self._values["that"] = that - - @builtins.property - def default(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("default") - - @builtins.property - def assert_(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("assert_") - - @builtins.property - def result(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("result") - - @builtins.property - def that(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("that") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructWithJavaReservedWords(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class Sum( - _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum" -): - """An operation that sums multiple values. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Sum, self, []) - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="parts") - def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: - """The parts to sum. - - stability - :stability: experimental - """ - return jsii.get(self, "parts") - - @parts.setter - def parts(self, value: typing.List[scope.jsii_calc_lib.Value]) -> None: - jsii.set(self, "parts", value) - - -@jsii.data_type( - jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", - jsii_struct_bases=[], - name_mapping={"bar": "bar", "id": "id"}, -) -class SupportsNiceJavaBuilderProps: - def __init__(self, *, bar: jsii.Number, id: typing.Optional[str] = None) -> None: - """ - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - self._values = { - "bar": bar, - } - if id is not None: - self._values["id"] = id - - @builtins.property - def bar(self) -> jsii.Number: - """Some number, like 42. - - stability - :stability: experimental - """ - return self._values.get("bar") - - @builtins.property - def id(self) -> typing.Optional[str]: - """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. - - But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - return self._values.get("id") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "SupportsNiceJavaBuilderProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class SupportsNiceJavaBuilderWithRequiredProps( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", -): - """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. - - stability - :stability: experimental - """ - - def __init__( - self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str] = None - ) -> None: - """ - :param id_: some identifier of your choice. - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - props = SupportsNiceJavaBuilderProps(bar=bar, id=id) - - jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) - - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier of your choice. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="propId") - def prop_id(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propId") - - -class SyncVirtualMethods( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(SyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callerIsAsync") - def caller_is_async(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callerIsAsync", []) - - @jsii.member(jsii_name="callerIsMethod") - def caller_is_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callerIsMethod", []) - - @jsii.member(jsii_name="modifyOtherProperty") - def modify_other_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyOtherProperty", [value]) - - @jsii.member(jsii_name="modifyValueOfTheProperty") - def modify_value_of_the_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyValueOfTheProperty", [value]) - - @jsii.member(jsii_name="readA") - def read_a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "readA", []) - - @jsii.member(jsii_name="retrieveOtherProperty") - def retrieve_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveOtherProperty", []) - - @jsii.member(jsii_name="retrieveReadOnlyProperty") - def retrieve_read_only_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveReadOnlyProperty", []) - - @jsii.member(jsii_name="retrieveValueOfTheProperty") - def retrieve_value_of_the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveValueOfTheProperty", []) - - @jsii.member(jsii_name="virtualMethod") - def virtual_method(self, n: jsii.Number) -> jsii.Number: - """ - :param n: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "virtualMethod", [n]) - - @jsii.member(jsii_name="writeA") - def write_a(self, value: jsii.Number) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeA", [value]) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: jsii.Number) -> None: - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="callerIsProperty") - def caller_is_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "callerIsProperty") - - @caller_is_property.setter - def caller_is_property(self, value: jsii.Number) -> None: - jsii.set(self, "callerIsProperty", value) - - @builtins.property - @jsii.member(jsii_name="otherProperty") - def other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherProperty") - - @other_property.setter - def other_property(self, value: str) -> None: - jsii.set(self, "otherProperty", value) - - @builtins.property - @jsii.member(jsii_name="theProperty") - def the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "theProperty") - - @the_property.setter - def the_property(self, value: str) -> None: - jsii.set(self, "theProperty", value) - - @builtins.property - @jsii.member(jsii_name="valueOfOtherProperty") - def value_of_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "valueOfOtherProperty") - - @value_of_other_property.setter - def value_of_other_property(self, value: str) -> None: - jsii.set(self, "valueOfOtherProperty", value) - - -class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Thrower, self, []) - - @jsii.member(jsii_name="throwError") - def throw_error(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throwError", []) - - -@jsii.data_type( - jsii_type="jsii-calc.TopLevelStruct", - jsii_struct_bases=[], - name_mapping={ - "required": "required", - "second_level": "secondLevel", - "optional": "optional", - }, -) -class TopLevelStruct: - def __init__( - self, - *, - required: str, - second_level: typing.Union[jsii.Number, "SecondLevelStruct"], - optional: typing.Optional[str] = None, - ) -> None: - """ - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - - stability - :stability: experimental - """ - self._values = { - "required": required, - "second_level": second_level, - } - if optional is not None: - self._values["optional"] = optional - - @builtins.property - def required(self) -> str: - """This is a required field. - - stability - :stability: experimental - """ - return self._values.get("required") - - @builtins.property - def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: - """A union to really stress test our serialization. - - stability - :stability: experimental - """ - return self._values.get("second_level") - - @builtins.property - def optional(self) -> typing.Optional[str]: - """You don't have to pass this. - - stability - :stability: experimental - """ - return self._values.get("optional") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "TopLevelStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UmaskCheck"): - """Checks the current file permissions are cool (no funky UMASK down-scoping happened). - - see - :see: https://github.com/aws/jsii/issues/1765 - stability - :stability: experimental - """ - - @jsii.member(jsii_name="mode") - @builtins.classmethod - def mode(cls) -> jsii.Number: - """This should return 0o644 (-rw-r--r--). - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mode", []) - - -class UnaryOperation( - scope.jsii_calc_lib.Operation, - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.UnaryOperation", -): - """An operation on a single operand. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _UnaryOperationProxy - - def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: - """ - :param operand: - - - stability - :stability: experimental - """ - jsii.create(UnaryOperation, self, [operand]) - - @builtins.property - @jsii.member(jsii_name="operand") - def operand(self) -> scope.jsii_calc_lib.Value: - """ - stability - :stability: experimental - """ - return jsii.get(self, "operand") - - -class _UnaryOperationProxy( - UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) -): - pass - - -@jsii.data_type( - jsii_type="jsii-calc.UnionProperties", - jsii_struct_bases=[], - name_mapping={"bar": "bar", "foo": "foo"}, -) -class UnionProperties: - def __init__( - self, - *, - bar: typing.Union[str, jsii.Number, "AllTypes"], - foo: typing.Optional[typing.Union[str, jsii.Number]] = None, - ) -> None: - """ - :param bar: - :param foo: - - stability - :stability: experimental - """ - self._values = { - "bar": bar, - } - if foo is not None: - self._values["foo"] = foo - - @builtins.property - def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: - """ - stability - :stability: experimental - """ - return self._values.get("bar") - - @builtins.property - def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]: - """ - stability - :stability: experimental - """ - return self._values.get("foo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "UnionProperties(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.implements(scope.jsii_calc_lib.custom_submodule_name.IReflectable) -class UpcasingReflectable( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable" -): - """Ensures submodule-imported types from dependencies can be used correctly. - - stability - :stability: experimental - """ - - def __init__(self, delegate: typing.Mapping[str, typing.Any]) -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(UpcasingReflectable, self, [delegate]) - - @jsii.python.classproperty - @jsii.member(jsii_name="reflector") - def REFLECTOR(cls) -> scope.jsii_calc_lib.custom_submodule_name.Reflector: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "reflector") - - @builtins.property - @jsii.member(jsii_name="entries") - def entries( - self, - ) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "entries") - - -class UseBundledDependency( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(UseBundledDependency, self, []) - - @jsii.member(jsii_name="value") - def value(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "value", []) - - -class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"): - """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(UseCalcBase, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> scope.jsii_calc_base.Base: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - -class UsesInterfaceWithProperties( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties" -): - """ - stability - :stability: experimental - """ - - def __init__(self, obj: "IInterfaceWithProperties") -> None: - """ - :param obj: - - - stability - :stability: experimental - """ - jsii.create(UsesInterfaceWithProperties, self, [obj]) - - @jsii.member(jsii_name="justRead") - def just_read(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justRead", []) - - @jsii.member(jsii_name="readStringAndNumber") - def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: - """ - :param ext: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "readStringAndNumber", [ext]) - - @jsii.member(jsii_name="writeAndRead") - def write_and_read(self, value: str) -> str: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeAndRead", [value]) - - @builtins.property - @jsii.member(jsii_name="obj") - def obj(self) -> "IInterfaceWithProperties": - """ - stability - :stability: experimental - """ - return jsii.get(self, "obj") - - -class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvoker"): - """ - stability - :stability: experimental - """ - - def __init__(self, method: "VariadicMethod") -> None: - """ - :param method: - - - stability - :stability: experimental - """ - jsii.create(VariadicInvoker, self, [method]) - - @jsii.member(jsii_name="asArray") - def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: - """ - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [*values]) - - -class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMethod"): - """ - stability - :stability: experimental - """ - - def __init__(self, *prefix: jsii.Number) -> None: - """ - :param prefix: a prefix that will be use for all values returned by ``#asArray``. - - stability - :stability: experimental - """ - jsii.create(VariadicMethod, self, [*prefix]) - - @jsii.member(jsii_name="asArray") - def as_array( - self, first: jsii.Number, *others: jsii.Number - ) -> typing.List[jsii.Number]: - """ - :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). - :param others: other elements to be included in the array. - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [first, *others]) - - -class VirtualMethodPlayground( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(VirtualMethodPlayground, self, []) - - @jsii.member(jsii_name="overrideMeAsync") - def override_me_async(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeAsync", [index]) - - @jsii.member(jsii_name="overrideMeSync") - def override_me_sync(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMeSync", [index]) - - @jsii.member(jsii_name="parallelSumAsync") - def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "parallelSumAsync", [count]) - - @jsii.member(jsii_name="serialSumAsync") - def serial_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "serialSumAsync", [count]) - - @jsii.member(jsii_name="sumSync") - def sum_sync(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumSync", [count]) - - -class VoidCallback( - metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback" -): - """This test is used to validate the runtimes can return correctly from a void callback. - - - Implement ``overrideMe`` (method does not have to do anything). - - Invoke ``callMe`` - - Verify that ``methodWasCalled`` is ``true``. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _VoidCallbackProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(VoidCallback, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callMe", []) - - @jsii.member(jsii_name="overrideMe") - @abc.abstractmethod - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="methodWasCalled") - def method_was_called(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "methodWasCalled") - - -class _VoidCallbackProxy(VoidCallback): - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - -class WithPrivatePropertyInConstructor( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor" -): - """Verifies that private property declarations in constructor arguments are hidden. - - stability - :stability: experimental - """ - - def __init__(self, private_field: typing.Optional[str] = None) -> None: - """ - :param private_field: - - - stability - :stability: experimental - """ - jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.implements(IInterfaceImplementedByAbstractClass) -class AbstractClass( - AbstractClassBase, - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.AbstractClass", -): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassProxy - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AbstractClass, self, []) - - @jsii.member(jsii_name="abstractMethod") - @abc.abstractmethod - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="nonAbstractMethod") - def non_abstract_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonAbstractMethod", []) - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - -class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): - @jsii.member(jsii_name="abstractMethod") - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "abstractMethod", [name]) - - -class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): - """The "+" binary operation. - - stability - :stability: experimental - """ - - def __init__( - self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value - ) -> None: - """Creates a BinaryOperation. - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. - - stability - :stability: experimental - """ - jsii.create(Add, self, [lhs, rhs]) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.implements(IAnonymousImplementationProvider) -class AnonymousImplementationProvider( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(AnonymousImplementationProvider, self, []) - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - -@jsii.implements(IBell) -class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Bell, self, []) - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - @builtins.property - @jsii.member(jsii_name="rung") - def rung(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rung") - - @rung.setter - def rung(self, value: bool) -> None: - jsii.set(self, "rung", value) - - -@jsii.data_type( - jsii_type="jsii-calc.ChildStruct982", - jsii_struct_bases=[ParentStruct982], - name_mapping={"foo": "foo", "bar": "bar"}, -) -class ChildStruct982(ParentStruct982): - def __init__(self, *, foo: str, bar: jsii.Number) -> None: - """ - :param foo: - :param bar: - - stability - :stability: experimental - """ - self._values = { - "foo": foo, - "bar": bar, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("foo") - - @builtins.property - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get("bar") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "ChildStruct982(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsTheInternalInterface( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ClassThatImplementsTheInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str) -> None: - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str) -> None: - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str) -> None: - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="d") - def d(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "d") - - @d.setter - def d(self, value: str) -> None: - jsii.set(self, "d", value) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsThePrivateInterface( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(ClassThatImplementsThePrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str) -> None: - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str) -> None: - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str) -> None: - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="e") - def e(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "e") - - @e.setter - def e(self, value: str) -> None: - jsii.set(self, "e", value) - - -@jsii.implements(IInterfaceWithProperties) -class ClassWithPrivateConstructorAndAutomaticProperties( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", -): - """Class that implements interface properties automatically, but using a private constructor. - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="create") - @builtins.classmethod - def create( - cls, read_only_string: str, read_write_string: str - ) -> "ClassWithPrivateConstructorAndAutomaticProperties": - """ - :param read_only_string: - - :param read_write_string: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str) -> None: - jsii.set(self, "readWriteString", value) - - -@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") -class IFriendlyRandomGenerator( - IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol -): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlyRandomGeneratorProxy - - pass - - -class _IFriendlyRandomGeneratorProxy( - jsii.proxy_for(IRandomNumberGenerator), - jsii.proxy_for(scope.jsii_calc_lib.IFriendly), -): - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" - pass - - -@jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType") -class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceThatShouldNotBeADataTypeProxy - - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType" - - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherValue") - - -@jsii.interface(jsii_type="jsii-calc.IJSII417Derived") -class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417DerivedProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.IJSII417Derived" - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - -@jsii.implements(IPublicInterface2) -class InbetweenClass( - PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(InbetweenClass, self, []) - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - -class JSII417Derived( - JSII417PublicBaseOfBase, - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.JSII417Derived", -): - """ - stability - :stability: experimental - """ - - def __init__(self, property: str) -> None: - """ - :param property: - - - stability - :stability: experimental - """ - jsii.create(JSII417Derived, self, [property]) - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - @builtins.property - @jsii.member(jsii_name="property") - def _property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - -@jsii.implements(IFriendlier) -class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negate"): - """The negation operation ("-value"). - - stability - :stability: experimental - """ - - def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: - """ - :param operand: - - - stability - :stability: experimental - """ - jsii.create(Negate, self, [operand]) - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. - - stability - :stability: experimental - """ - return jsii.invoke(self, "farewell", []) - - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. - - stability - :stability: experimental - """ - return jsii.invoke(self, "goodbye", []) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -class SupportsNiceJavaBuilder( - SupportsNiceJavaBuilderWithRequiredProps, - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.SupportsNiceJavaBuilder", -): - """ - stability - :stability: experimental - """ - - def __init__( - self, - id: jsii.Number, - default_bar: typing.Optional[jsii.Number] = None, - props: typing.Optional["SupportsNiceJavaBuilderProps"] = None, - *rest: str, - ) -> None: - """ - :param id: some identifier. - :param default_bar: the default value of ``bar``. - :param props: some props once can provide. - :param rest: a variadic continuation. - - stability - :stability: experimental - """ - jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="rest") - def rest(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rest") - - -@jsii.implements(IFriendlyRandomGenerator) -class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble"): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DoubleTrouble, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - -__all__ = [ - "AbstractClass", - "AbstractClassBase", - "AbstractClassReturner", - "AbstractSuite", - "Add", - "AllTypes", - "AllTypesEnum", - "AllowedMethodNames", - "AmbiguousParameters", - "AnonymousImplementationProvider", - "AsyncVirtualMethods", - "AugmentableClass", - "BaseJsii976", - "Bell", - "BinaryOperation", - "Calculator", - "CalculatorProps", - "ChildStruct982", - "ClassThatImplementsTheInternalInterface", - "ClassThatImplementsThePrivateInterface", - "ClassWithCollections", - "ClassWithDocs", - "ClassWithJavaReservedWords", - "ClassWithMutableObjectLiteralProperty", - "ClassWithPrivateConstructorAndAutomaticProperties", - "ConfusingToJackson", - "ConfusingToJacksonStruct", - "ConstructorPassesThisOut", - "Constructors", - "ConsumePureInterface", - "ConsumerCanRingBell", - "ConsumersOfThisCrazyTypeSystem", - "DataRenderer", - "DefaultedConstructorArgument", - "Demonstrate982", - "DeprecatedClass", - "DeprecatedEnum", - "DeprecatedStruct", - "DerivedStruct", - "DiamondInheritanceBaseLevelStruct", - "DiamondInheritanceFirstMidLevelStruct", - "DiamondInheritanceSecondMidLevelStruct", - "DiamondInheritanceTopLevelStruct", - "DisappointingCollectionSource", - "DoNotOverridePrivates", - "DoNotRecognizeAnyAsOptional", - "DocumentedClass", - "DontComplainAboutVariadicAfterOptional", - "DoubleTrouble", - "EnumDispenser", - "EraseUndefinedHashValues", - "EraseUndefinedHashValuesOptions", - "ExperimentalClass", - "ExperimentalEnum", - "ExperimentalStruct", - "ExportedBaseClass", - "ExtendsInternalInterface", - "ExternalClass", - "ExternalEnum", - "ExternalStruct", - "GiveMeStructs", - "Greetee", - "GreetingAugmenter", - "IAnonymousImplementationProvider", - "IAnonymouslyImplementMe", - "IAnotherPublicInterface", - "IBell", - "IBellRinger", - "IConcreteBellRinger", - "IDeprecatedInterface", - "IExperimentalInterface", - "IExtendsPrivateInterface", - "IExternalInterface", - "IFriendlier", - "IFriendlyRandomGenerator", - "IInterfaceImplementedByAbstractClass", - "IInterfaceThatShouldNotBeADataType", - "IInterfaceWithInternal", - "IInterfaceWithMethods", - "IInterfaceWithOptionalMethodArguments", - "IInterfaceWithProperties", - "IInterfaceWithPropertiesExtension", - "IJSII417Derived", - "IJSII417PublicBaseOfBase", - "IJsii487External", - "IJsii487External2", - "IJsii496", - "IMutableObjectLiteral", - "INonInternalInterface", - "IObjectWithProperty", - "IOptionalMethod", - "IPrivatelyImplemented", - "IPublicInterface", - "IPublicInterface2", - "IRandomNumberGenerator", - "IReturnJsii976", - "IReturnsNumber", - "IStableInterface", - "IStructReturningDelegate", - "ImplementInternalInterface", - "Implementation", - "ImplementsInterfaceWithInternal", - "ImplementsInterfaceWithInternalSubclass", - "ImplementsPrivateInterface", - "ImplictBaseOfBase", - "InbetweenClass", - "InterfaceCollections", - "InterfacesMaker", - "Isomorphism", - "JSII417Derived", - "JSII417PublicBaseOfBase", - "JSObjectLiteralForInterface", - "JSObjectLiteralToNative", - "JSObjectLiteralToNativeClass", - "JavaReservedWords", - "Jsii487Derived", - "Jsii496Derived", - "JsiiAgent", - "JsonFormatter", - "LoadBalancedFargateServiceProps", - "MethodNamedProperty", - "Multiply", - "Negate", - "NestedStruct", - "NodeStandardLibrary", - "NullShouldBeTreatedAsUndefined", - "NullShouldBeTreatedAsUndefinedData", - "NumberGenerator", - "ObjectRefsInCollections", - "ObjectWithPropertyProvider", - "Old", - "OptionalArgumentInvoker", - "OptionalConstructorArgument", - "OptionalStruct", - "OptionalStructConsumer", - "OverridableProtectedMember", - "OverrideReturnsObject", - "ParentStruct982", - "PartiallyInitializedThisConsumer", - "Polymorphism", - "Power", - "PropertyNamedProperty", - "PublicClass", - "PythonReservedWords", - "ReferenceEnumFromScopedPackage", - "ReturnsPrivateImplementationOfInterface", - "RootStruct", - "RootStructValidator", - "RuntimeTypeChecking", - "SecondLevelStruct", - "SingleInstanceTwoTypes", - "SingletonInt", - "SingletonIntEnum", - "SingletonString", - "SingletonStringEnum", - "SmellyStruct", - "SomeTypeJsii976", - "StableClass", - "StableEnum", - "StableStruct", - "StaticContext", - "Statics", - "StringEnum", - "StripInternal", - "StructA", - "StructB", - "StructParameterType", - "StructPassing", - "StructUnionConsumer", - "StructWithJavaReservedWords", - "Sum", - "SupportsNiceJavaBuilder", - "SupportsNiceJavaBuilderProps", - "SupportsNiceJavaBuilderWithRequiredProps", - "SyncVirtualMethods", - "Thrower", - "TopLevelStruct", - "UmaskCheck", - "UnaryOperation", - "UnionProperties", - "UpcasingReflectable", - "UseBundledDependency", - "UseCalcBase", - "UsesInterfaceWithProperties", - "VariadicInvoker", - "VariadicMethod", - "VirtualMethodPlayground", - "VoidCallback", - "WithPrivatePropertyInConstructor", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py deleted file mode 100644 index 5a3c3bd284..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -import scope.jsii_calc_base._jsii -import scope.jsii_calc_base_of_base._jsii -import scope.jsii_calc_lib._jsii - -__jsii_assembly__ = jsii.JSIIAssembly.load( - "jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz" -) - -__all__ = [ - "__jsii_assembly__", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz deleted file mode 100644 index eef7587bf2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz +++ /dev/null @@ -1,2 +0,0 @@ -Placeholder for the expected module tarball -The diff-test.sh harness will replace it with the real expected tarball diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py deleted file mode 100644 index 17356f0f91..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py +++ /dev/null @@ -1,152 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - -import scope.jsii_calc_lib - - -class CompositeOperation( - scope.jsii_calc_lib.Operation, - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.composition.CompositeOperation", -): - """Abstract operation composed from an expression of other operations. - - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _CompositeOperationProxy - - def __init__(self) -> None: - jsii.create(CompositeOperation, self, []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="expression") - @abc.abstractmethod - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @builtins.property - @jsii.member(jsii_name="decorationPostfixes") - def decoration_postfixes(self) -> typing.List[str]: - """A set of postfixes to include in a decorated .toString(). - - stability - :stability: experimental - """ - return jsii.get(self, "decorationPostfixes") - - @decoration_postfixes.setter - def decoration_postfixes(self, value: typing.List[str]) -> None: - jsii.set(self, "decorationPostfixes", value) - - @builtins.property - @jsii.member(jsii_name="decorationPrefixes") - def decoration_prefixes(self) -> typing.List[str]: - """A set of prefixes to include in a decorated .toString(). - - stability - :stability: experimental - """ - return jsii.get(self, "decorationPrefixes") - - @decoration_prefixes.setter - def decoration_prefixes(self, value: typing.List[str]) -> None: - jsii.set(self, "decorationPrefixes", value) - - @builtins.property - @jsii.member(jsii_name="stringStyle") - def string_style(self) -> "CompositionStringStyle": - """The .toString() style. - - stability - :stability: experimental - """ - return jsii.get(self, "stringStyle") - - @string_style.setter - def string_style(self, value: "CompositionStringStyle") -> None: - jsii.set(self, "stringStyle", value) - - @jsii.enum( - jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle" - ) - class CompositionStringStyle(enum.Enum): - """Style of .toString() output for CompositeOperation. - - stability - :stability: experimental - """ - - NORMAL = "NORMAL" - """Normal string expression. - - stability - :stability: experimental - """ - DECORATED = "DECORATED" - """Decorated string expression. - - stability - :stability: experimental - """ - - -class _CompositeOperationProxy( - CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) -): - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - -__all__ = [ - "CompositeOperation", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py deleted file mode 100644 index e381c602d6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py +++ /dev/null @@ -1,66 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - - -class Base( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Base, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str) -> None: - jsii.set(self, "prop", value) - - -class Derived( - Base, - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Derived, self, []) - - -__all__ = [ - "Base", - "Derived", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py deleted file mode 100644 index 5ffe5884aa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py +++ /dev/null @@ -1,86 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - - -class Foo( - metaclass=jsii.JSIIMeta, - jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Foo, self, []) - - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") - - @bar.setter - def bar(self, value: typing.Optional[str]) -> None: - jsii.set(self, "bar", value) - - -@jsii.data_type( - jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", - jsii_struct_bases=[], - name_mapping={"foo": "foo"}, -) -class Hello: - def __init__(self, *, foo: jsii.Number) -> None: - """ - :param foo: - - stability - :stability: experimental - """ - self._values = { - "foo": foo, - } - - @builtins.property - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get("foo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "Hello(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "Foo", - "Hello", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py deleted file mode 100644 index cda30a2163..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - - -@jsii.data_type( - jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", - jsii_struct_bases=[], - name_mapping={"foo": "foo"}, -) -class Hello: - def __init__(self, *, foo: jsii.Number) -> None: - """ - :param foo: - - stability - :stability: experimental - """ - self._values = { - "foo": foo, - } - - @builtins.property - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get("foo") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "Hello(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "Hello", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/py.typed b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/py.typed deleted file mode 100644 index 8b13789179..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/py.typed +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py deleted file mode 100644 index 5d63911e34..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py +++ /dev/null @@ -1,165 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - - -class ClassWithSelf( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf" -): - """ - stability - :stability: experimental - """ - - def __init__(self_, self: str) -> None: - """ - :param self: - - - stability - :stability: experimental - """ - jsii.create(ClassWithSelf, self_, [self]) - - @jsii.member(jsii_name="method") - def method(self_, self: jsii.Number) -> str: - """ - :param self: - - - stability - :stability: experimental - """ - return jsii.invoke(self_, "method", [self]) - - @builtins.property - @jsii.member(jsii_name="self") - def self(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "self") - - -class ClassWithSelfKwarg( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg" -): - """ - stability - :stability: experimental - """ - - def __init__(self_, *, self: str) -> None: - """ - :param self: - - stability - :stability: experimental - """ - props = StructWithSelf(self=self) - - jsii.create(ClassWithSelfKwarg, self_, [props]) - - @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> "StructWithSelf": - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") - - -@jsii.interface(jsii_type="jsii-calc.PythonSelf.IInterfaceWithSelf") -class IInterfaceWithSelf(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithSelfProxy - - @jsii.member(jsii_name="method") - def method(self_, self: jsii.Number) -> str: - """ - :param self: - - - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithSelfProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.PythonSelf.IInterfaceWithSelf" - - @jsii.member(jsii_name="method") - def method(self_, self: jsii.Number) -> str: - """ - :param self: - - - stability - :stability: experimental - """ - return jsii.invoke(self_, "method", [self]) - - -@jsii.data_type( - jsii_type="jsii-calc.PythonSelf.StructWithSelf", - jsii_struct_bases=[], - name_mapping={"self": "self"}, -) -class StructWithSelf: - def __init__(self_, *, self: str) -> None: - """ - :param self: - - stability - :stability: experimental - """ - self_._values = { - "self": self, - } - - @builtins.property - def self(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get("self") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "StructWithSelf(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "ClassWithSelf", - "ClassWithSelfKwarg", - "IInterfaceWithSelf", - "StructWithSelf", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py deleted file mode 100644 index dbfd234f69..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py +++ /dev/null @@ -1,95 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from .._jsii import * - -from .. import AllTypes as _AllTypes_b08307c5 -from .child import ( - SomeStruct as _SomeStruct_91627123, - SomeEnum as _SomeEnum_b2e41d92, - Awesomeness as _Awesomeness_d37a24df, - Goodness as _Goodness_2df26737, -) -from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad - - -@jsii.implements(_INamespaced_e2f386ad) -class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): - """ - stability - :stability: experimental - """ - - def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None: - """ - :param prop: - - stability - :stability: experimental - """ - props = _SomeStruct_91627123(prop=prop) - - jsii.create(MyClass, self, [props]) - - @builtins.property - @jsii.member(jsii_name="awesomeness") - def awesomeness(self) -> _Awesomeness_d37a24df: - """ - stability - :stability: experimental - """ - return jsii.get(self, "awesomeness") - - @builtins.property - @jsii.member(jsii_name="definedAt") - def defined_at(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "definedAt") - - @builtins.property - @jsii.member(jsii_name="goodness") - def goodness(self) -> _Goodness_2df26737: - """ - stability - :stability: experimental - """ - return jsii.get(self, "goodness") - - @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> _SomeStruct_91627123: - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") - - @builtins.property - @jsii.member(jsii_name="allTypes") - def all_types(self) -> typing.Optional[_AllTypes_b08307c5]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "allTypes") - - @all_types.setter - def all_types(self, value: typing.Optional[_AllTypes_b08307c5]) -> None: - jsii.set(self, "allTypes", value) - - -__all__ = [ - "MyClass", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py deleted file mode 100644 index 4e441e3685..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ..._jsii import * - -from .. import MyClass as _MyClass_a2fdc0b6 - - -@jsii.data_type( - jsii_type="jsii-calc.submodule.back_references.MyClassReference", - jsii_struct_bases=[], - name_mapping={"reference": "reference"}, -) -class MyClassReference: - def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None: - """ - :param reference: - - stability - :stability: experimental - """ - self._values = { - "reference": reference, - } - - @builtins.property - def reference(self) -> _MyClass_a2fdc0b6: - """ - stability - :stability: experimental - """ - return self._values.get("reference") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "MyClassReference(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "MyClassReference", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py deleted file mode 100644 index b602f3e215..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py +++ /dev/null @@ -1,256 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ..._jsii import * - - -@jsii.enum(jsii_type="jsii-calc.submodule.child.Awesomeness") -class Awesomeness(enum.Enum): - """ - stability - :stability: experimental - """ - - AWESOME = "AWESOME" - """It was awesome! - - stability - :stability: experimental - """ - - -@jsii.enum(jsii_type="jsii-calc.submodule.child.Goodness") -class Goodness(enum.Enum): - """ - stability - :stability: experimental - """ - - PRETTY_GOOD = "PRETTY_GOOD" - """It's pretty good. - - stability - :stability: experimental - """ - REALLY_GOOD = "REALLY_GOOD" - """It's really good. - - stability - :stability: experimental - """ - AMAZINGLY_GOOD = "AMAZINGLY_GOOD" - """It's amazingly good. - - stability - :stability: experimental - """ - - -class InnerClass( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass" -): - """ - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(InnerClass, self, []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticProp") - def STATIC_PROP(cls) -> "SomeStruct": - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticProp") - - -class OuterClass( - metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass" -): - """Checks that classes can self-reference during initialization. - - see - :see: : https://github.com/aws/jsii/pull/1706 - stability - :stability: experimental - """ - - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(OuterClass, self, []) - - @builtins.property - @jsii.member(jsii_name="innerClass") - def inner_class(self) -> "InnerClass": - """ - stability - :stability: experimental - """ - return jsii.get(self, "innerClass") - - -@jsii.enum(jsii_type="jsii-calc.submodule.child.SomeEnum") -class SomeEnum(enum.Enum): - """ - stability - :stability: experimental - """ - - SOME = "SOME" - """ - stability - :stability: experimental - """ - - -@jsii.data_type( - jsii_type="jsii-calc.submodule.child.SomeStruct", - jsii_struct_bases=[], - name_mapping={"prop": "prop"}, -) -class SomeStruct: - def __init__(self, *, prop: "SomeEnum") -> None: - """ - :param prop: - - stability - :stability: experimental - """ - self._values = { - "prop": prop, - } - - @builtins.property - def prop(self) -> "SomeEnum": - """ - stability - :stability: experimental - """ - return self._values.get("prop") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "SomeStruct(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.submodule.child.Structure", - jsii_struct_bases=[], - name_mapping={"bool": "bool"}, -) -class Structure: - def __init__(self, *, bool: bool) -> None: - """ - :param bool: - - stability - :stability: experimental - """ - self._values = { - "bool": bool, - } - - @builtins.property - def bool(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get("bool") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "Structure(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -@jsii.data_type( - jsii_type="jsii-calc.submodule.child.KwargsProps", - jsii_struct_bases=[SomeStruct], - name_mapping={"prop": "prop", "extra": "extra"}, -) -class KwargsProps(SomeStruct): - def __init__(self, *, prop: "SomeEnum", extra: typing.Optional[str] = None) -> None: - """ - :param prop: - :param extra: - - stability - :stability: experimental - """ - self._values = { - "prop": prop, - } - if extra is not None: - self._values["extra"] = extra - - @builtins.property - def prop(self) -> "SomeEnum": - """ - stability - :stability: experimental - """ - return self._values.get("prop") - - @builtins.property - def extra(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get("extra") - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return "KwargsProps(%s)" % ", ".join( - k + "=" + repr(v) for k, v in self._values.items() - ) - - -__all__ = [ - "Awesomeness", - "Goodness", - "InnerClass", - "KwargsProps", - "OuterClass", - "SomeEnum", - "SomeStruct", - "Structure", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/isolated/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/isolated/__init__.py deleted file mode 100644 index d579d8233d..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/isolated/__init__.py +++ /dev/null @@ -1,44 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ..._jsii import * - -from ..child import KwargsProps as _KwargsProps_c7855dcf, SomeEnum as _SomeEnum_b2e41d92 - - -class Kwargs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.isolated.Kwargs"): - """Ensures imports are correctly registered for kwargs lifted properties from super-structs. - - stability - :stability: experimental - """ - - @jsii.member(jsii_name="method") - @builtins.classmethod - def method( - cls, *, extra: typing.Optional[str] = None, prop: _SomeEnum_b2e41d92 - ) -> bool: - """ - :param extra: - :param prop: - - stability - :stability: experimental - """ - props = _KwargsProps_c7855dcf(extra=extra, prop=prop) - - return jsii.sinvoke(cls, "method", [props]) - - -__all__ = [ - "Kwargs", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py deleted file mode 100644 index efd2ae9d4a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py +++ /dev/null @@ -1,66 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ..._jsii import * - -from ..child import Goodness as _Goodness_2df26737 -from .deeply_nested import INamespaced as _INamespaced_e2f386ad - - -@jsii.implements(_INamespaced_e2f386ad) -class Namespaced( - metaclass=jsii.JSIIAbstractClass, - jsii_type="jsii-calc.submodule.nested_submodule.Namespaced", -): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _NamespacedProxy - - @builtins.property - @jsii.member(jsii_name="definedAt") - def defined_at(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "definedAt") - - @builtins.property - @jsii.member(jsii_name="goodness") - @abc.abstractmethod - def goodness(self) -> _Goodness_2df26737: - """ - stability - :stability: experimental - """ - ... - - -class _NamespacedProxy(Namespaced): - @builtins.property - @jsii.member(jsii_name="goodness") - def goodness(self) -> _Goodness_2df26737: - """ - stability - :stability: experimental - """ - return jsii.get(self, "goodness") - - -__all__ = [ - "Namespaced", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py deleted file mode 100644 index ee0b9ce2f2..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -import abc -import builtins -import datetime -import enum -import typing - -import jsii -import jsii.compat -import publication - -from ...._jsii import * - - -@jsii.interface( - jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" -) -class INamespaced(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - - @builtins.staticmethod - def __jsii_proxy_class__(): - return _INamespacedProxy - - @builtins.property - @jsii.member(jsii_name="definedAt") - def defined_at(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _INamespacedProxy: - """ - stability - :stability: experimental - """ - - __jsii_type__ = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" - - @builtins.property - @jsii.member(jsii_name="definedAt") - def defined_at(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "definedAt") - - -__all__ = [ - "INamespaced", -] - -publication.publish() diff --git a/packages/jsii-pacmak/test/jsii-pacmak.test.ts b/packages/jsii-pacmak/test/jsii-pacmak.test.ts new file mode 100644 index 0000000000..97ebd521cd --- /dev/null +++ b/packages/jsii-pacmak/test/jsii-pacmak.test.ts @@ -0,0 +1,169 @@ +#!/usr/bin/env node + +import { spawnSync } from 'child_process'; +import * as fs from 'fs-extra'; +import * as os from 'os'; +import * as path from 'path'; +import * as process from 'process'; + +const PACMAK_CLI = path.resolve(__dirname, '..', 'bin', 'jsii-pacmak'); + +const FILE = Symbol('file'); +const MISSING = Symbol('missing'); +const TARBALL = Symbol('tarball'); +const TREE = Symbol('tree'); + +// Custom serializers so we can see the source without escape sequences +expect.addSnapshotSerializer({ + test: (val) => val?.[TARBALL] != null, + serialize: (val) => `${val[TARBALL]} is a tarball`, +}); +expect.addSnapshotSerializer({ + test: (val) => val?.[TREE] != null, + serialize: (val) => { + return `\n${formatTree(val[TREE])}`; + }, +}); +expect.addSnapshotSerializer({ + test: (val) => val?.[MISSING] != null, + serialize: (val) => `${val[MISSING]} does not exist`, +}); +expect.addSnapshotSerializer({ + test: (val) => val?.[TARBALL] != null, + serialize: (val) => `${val[TARBALL]} is a tarball`, +}); + +let outDir: string; +beforeEach((done) => { + outDir = fs.mkdtempSync(path.join(os.tmpdir(), path.basename(__filename))); + + done(); +}); +afterEach((done) => { + fs.removeSync(outDir); + outDir = undefined as any; + + done(); +}); + +for (const pkg of [ + '@scope/jsii-calc-base-of-base', + '@scope/jsii-calc-base', + '@scope/jsii-calc-lib', + 'jsii-calc', +]) { + // Extend timeout, because this could be slow... + jest.setTimeout(60_000); + + test(`Generated code for ${JSON.stringify(pkg)}`, () => { + const pkgRoot = path.resolve(__dirname, '..', '..', pkg); + runPacmak(pkgRoot, outDir); + + expect({ [TREE]: checkTree(outDir) }).toMatchSnapshot('/'); + }); +} + +function checkTree( + file: string, + root: string = file, +): TreeStructure | undefined { + const stat = tryStat(file); + + // Normalizing paths so snapshots are identical in Windows, too... + const relativeFile = path.relative(root, file).replace(/\\/g, '/'); + const snapshotName = `/${relativeFile}`; + + if (stat == null) { + expect({ [MISSING]: relativeFile }).toMatchSnapshot(snapshotName); + return undefined; + } + + if (stat.isFile()) { + if (file.endsWith('.tgz')) { + // Special-cased to avoid binary differences being annoying + expect({ [TARBALL]: relativeFile }).toMatchSnapshot(snapshotName); + } else { + expect({ + [FILE]: fs.readFileSync(file, { encoding: 'utf-8' }), + }).toMatchSnapshot(snapshotName); + } + return path.basename(file); + } + + return fs + .readdirSync(file) + .map((entry) => ({ + entry, + subtree: checkTree(path.join(file, entry), root), + })) + .reduce((tree, { entry, subtree }) => { + tree[entry] = subtree!; + return tree; + }, {} as { [name: string]: TreeStructure }); + + function tryStat(at: string) { + try { + return fs.statSync(at); + } catch (e) { + if (e.code !== os.constants.errno.ENOENT) { + throw e; + } + return undefined; + } + } +} + +function runPacmak(root: string, outdir: string): void { + const result = spawnSync( + process.execPath, + [ + ...process.execArgv, + PACMAK_CLI, + `--code-only`, + `--no-fingerprint`, + `--outdir=${outdir}`, + root, + ], + { + cwd: root, + stdio: ['inherit', 'pipe', 'pipe'], + }, + ); + + expect(result.error).toBeUndefined(); + + if (result.status !== 0) { + console.error(`#### PACMAK STDOUT:\n${result.stdout.toString('utf-8')}`); + console.error(`#### PACMAK STDERR:\n${result.stdout.toString('utf-8')}`); + } + + expect(result.signal).toBeNull(); + expect(result.status).toBe(0); +} + +type TreeStructure = string | { [name: string]: TreeStructure }; + +function formatTree(tree: TreeStructure): string { + if (typeof tree === 'string') { + return `┗━ 📄 ${tree}`; + } + + // Sort the entries by name to minimize differences. + const entries = Object.entries(tree).sort(([l], [r]) => l.localeCompare(r)); + + const lastIndex = entries.length - 1; + return entries + .map(([name, children], index) => { + const box = index < lastIndex ? ' ┣' : ' ┗'; + if (typeof children === 'string') { + return `${box}━ 📄 ${name}`; + } + + const subtree = formatTree(children) + .split('\n') + .map((line) => ` ${index < lastIndex ? '┃' : ' '} ${line}`) + .join('\n'); + return `${box}━ 📁 ${name}\n${subtree}`; + }) + .join('\n'); +} diff --git a/packages/jsii-pacmak/test/npm-modules.test.ts b/packages/jsii-pacmak/test/npm-modules.test.ts index 807e096ce9..e7bf234cce 100644 --- a/packages/jsii-pacmak/test/npm-modules.test.ts +++ b/packages/jsii-pacmak/test/npm-modules.test.ts @@ -1,65 +1,67 @@ import * as mockfs from 'mock-fs'; import { findJsiiModules } from '../lib/npm-modules'; -test('findJsiiModules is sorted topologically', async () => { - mockfs({ - '/packageA/package.json': JSON.stringify({ - name: 'packageA', - jsii: { - outdir: 'dist', - targets: { - python: {}, +describe(findJsiiModules, () => { + afterEach((done) => { + mockfs.restore(); + done(); + }); + + // Increase the timeout - those are crazy slow on CI/CI for some reason. + jest.setTimeout(30_000); + + test('is sorted topologically', async () => { + mockfs({ + '/packageA/package.json': JSON.stringify({ + name: 'packageA', + jsii: { + outdir: 'dist', + targets: { + python: {}, + }, }, - }, - dependencies: { - packageB: '*', - }, - }), - '/packageB/package.json': JSON.stringify({ - name: 'packageB', - jsii: { - outdir: 'dist', - targets: { - python: {}, + dependencies: { + packageB: '*', }, - }, - }), - }); + }), + '/packageB/package.json': JSON.stringify({ + name: 'packageB', + jsii: { + outdir: 'dist', + targets: { + python: {}, + }, + }, + }), + }); - try { const mods = await findJsiiModules(['/packageA', '/packageB'], false); expect(mods.map((m) => m.name)).toEqual(['packageB', 'packageA']); - } finally { - mockfs.restore(); - } -}); + }); -test('findJsiiModules without deps loads packages in given order', async () => { - mockfs({ - '/packageA/package.json': JSON.stringify({ - name: 'packageA', - jsii: { - outdir: 'dist', - targets: { - python: {}, + test('without deps loads packages in given order', async () => { + mockfs({ + '/packageA/package.json': JSON.stringify({ + name: 'packageA', + jsii: { + outdir: 'dist', + targets: { + python: {}, + }, }, - }, - }), - '/packageB/package.json': JSON.stringify({ - name: 'packageB', - jsii: { - outdir: 'dist', - targets: { - python: {}, + }), + '/packageB/package.json': JSON.stringify({ + name: 'packageB', + jsii: { + outdir: 'dist', + targets: { + python: {}, + }, }, - }, - }), - }); + }), + }); - try { const mods = await findJsiiModules(['/packageA', '/packageB'], false); expect(mods.map((m) => m.name)).toEqual(['packageA', 'packageB']); - } finally { - mockfs.restore(); - } + }); }); diff --git a/packages/jsii-pacmak/test/targets/python.test.ts b/packages/jsii-pacmak/test/targets/python.test.ts index c7316b9714..2009f4195f 100644 --- a/packages/jsii-pacmak/test/targets/python.test.ts +++ b/packages/jsii-pacmak/test/targets/python.test.ts @@ -13,12 +13,12 @@ describe('python', () => { let homedir: string; let python: Python; - beforeEach(async () => { + beforeEach((done) => { // eslint-disable-next-line no-import-assign Object.defineProperty(util, 'shell', { value: shellMock }); // eslint-disable-next-line no-import-assign Object.defineProperty(os, 'homedir', { value: homedirMock }); - homedir = await fs.mkdtemp(path.join(os.tmpdir(), 'jsii-pacmak-black-')); + homedir = fs.mkdtempSync(path.join(os.tmpdir(), 'jsii-pacmak-black-')); homedirMock.mockImplementation(() => homedir); python = new Python({ targetName: 'python', @@ -27,12 +27,16 @@ describe('python', () => { rosetta: new Rosetta(), arguments: {}, }); + + done(); }); - afterEach(async () => { + afterEach((done) => { shellMock.mockClear(); homedirMock.mockClear(); - await fs.remove(homedir); + fs.removeSync(homedir); + + done(); }); test('black is installed globally', async () => { @@ -45,7 +49,7 @@ describe('python', () => { badShellCommand = `Unexpected call to shell [${cmd} ${args.join( ' ', )}]`; - ko(badShellCommand); + ko(new Error(badShellCommand)); } }); }); @@ -59,21 +63,47 @@ describe('python', () => { shellMock.mockImplementation((cmd: string, args: string[], _) => { return new Promise((ok, ko) => { if (cmd === 'which' && args[0] === 'black') { - ko('black not found'); + ko(new Error('black not found')); } else if ( /pip.?$/.test(cmd) && args[0] === 'show' && args[1] === 'black' ) { - ko(); + ko(new Error()); + } else if ( + /pip.?$/.test(cmd) && + args[0] === 'install' && + args[1] === '--no-input' && + args[2] === 'black' + ) { + fs.mkdirpSync( + path.join( + homedir, + '.jsii-cache', + 'python-black', + 'venv', + process.platform === 'win32' ? 'Scripts' : 'bin', + `black${process.platform === 'win32' ? '.exe' : ''}`, + ), + ); + ok(); } else { ok(); } }); }); - const path = await (python as any).blackPath(); // call private method blackPath() - expect(path).toBe(`${homedir}/.jsii-cache/python-black/.env/bin/black`); + const blackPath = await (python as any).blackPath(); // call private method blackPath() + expect(blackPath).toBe( + path.join( + homedir, + '.jsii-cache', + 'python-black', + 'venv', + process.platform === 'win32' ? 'Scripts' : 'bin', + `black${process.platform === 'win32' ? '.exe' : ''}`, + ), + ); }); test('local cache is reused', async () => { @@ -81,19 +111,30 @@ describe('python', () => { shellMock.mockImplementation((cmd: string, args: string[], _) => { return new Promise((ok, ko) => { if (cmd === 'which' && args[0] === 'black') { - ko('black not found'); + ko(new Error('black not found')); } else if ( /pip.?$/.test(cmd) && args[0] === 'show' && args[1] === 'black' ) { - ko(); + ko(new Error()); } else if ( /pip.?$/.test(cmd) && args[0] === 'install' && - args[1] === 'black' + args[1] === '--no-input' && + args[2] === 'black' ) { installCount++; + fs.mkdirpSync( + path.join( + homedir, + '.jsii-cache', + 'python-black', + 'venv', + process.platform === 'win32' ? 'Scripts' : 'bin', + `black${process.platform === 'win32' ? '.bat' : ''}`, + ), + ); ok(); } else { ok(); diff --git a/packages/jsii-reflect/bin/jsii-tree b/packages/jsii-reflect/bin/jsii-tree index 2eebca3506..971e297137 100755 --- a/packages/jsii-reflect/bin/jsii-tree +++ b/packages/jsii-reflect/bin/jsii-tree @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('./jsii-tree.js'); \ No newline at end of file +require('./jsii-tree.js'); diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 3ccd8916b5..892b8f591a 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -54,7 +54,7 @@ "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^2.0.5", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "jest": { "collectCoverage": true, diff --git a/packages/jsii-reflect/test/jsii-tree.test.ts b/packages/jsii-reflect/test/jsii-tree.test.ts index 83af061c6e..5e2112a0a3 100644 --- a/packages/jsii-reflect/test/jsii-tree.test.ts +++ b/packages/jsii-reflect/test/jsii-tree.test.ts @@ -23,6 +23,8 @@ test('jsii-tree --signatures', () => async function jsiiTree(...args: string[]) { const command = [ + process.execPath, + ...process.execArgv, path.join(__dirname, '..', 'bin', 'jsii-tree'), args.join(' '), '--no-colors', diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 65087f525a..925c6a2573 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -30,16 +30,15 @@ "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", "mock-fs": "^4.12.0", - "prettier": "^2.0.5", - "typescript": "~3.9.6" + "prettier": "^2.0.5" }, "dependencies": { "@jsii/spec": "^0.0.0", "commonmark": "^0.29.1", "fs-extra": "^9.0.1", - "typescript": "~3.9.6", + "typescript": "~3.9.7", "xmldom": "^0.3.0", - "yargs": "^15.4.0" + "yargs": "^15.4.1" }, "jest": { "moduleFileExtensions": [ diff --git a/packages/jsii/package.json b/packages/jsii/package.json index ad529e6b66..f1e6f03047 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -44,8 +44,8 @@ "semver-intersect": "^1.4.0", "sort-json": "^2.0.0", "spdx-license-list": "^6.2.0", - "typescript": "~3.9.6", - "yargs": "^15.4.0" + "typescript": "~3.9.7", + "yargs": "^15.4.1" }, "devDependencies": { "@types/clone": "^0.1.30", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 63333f6a7d..786c9affce 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -39,7 +39,7 @@ "jest": "^26.2.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", - "typescript": "~3.9.6" + "typescript": "~3.9.7" }, "jest": { "collectCoverage": true, diff --git a/tools/jsii-build-tools/bin/diff-test b/tools/jsii-build-tools/bin/diff-test index ca2c62d0f2..645a49871c 100755 --- a/tools/jsii-build-tools/bin/diff-test +++ b/tools/jsii-build-tools/bin/diff-test @@ -1,31 +1,72 @@ -#!/bin/bash -# Compares two jsii assemblies and fails if they are different -# Versions in the expected assembly are updated to match this repo -# Usage: diff-test -set -euo pipefail - -resolve-path() { - echo "$(cd $(dirname $1) && pwd)/$(basename $1)" -} +#!/usr/bin/env node + +// Compares two jsii assemblies and fails if they are different +// Versions in the expected assembly are updated to match this repo +// Usage: diff-test + +const chalk = require('chalk'); +const { structuredPatch } = require('diff'); +const { readFile, writeFile } = require('fs').promises; +const { resolve } = require('path'); +const process = require('process'); + +async function main() { + const [, script, expectedPath, actualPath, ...rest] = process.argv; + + if (rest.length > 0 || actualPath == null || expectedPath == null) { + console.error(`Error: Illegal arguments.`); + console.error(`Received: ${script} ${expectedPath} ${actualPath} ${rest.join(' ')}`) + console.error(`Correct usage: ${script} `); + return 3; + } -expected="$(resolve-path $1)" -actual="$(resolve-path $2)" - -diff ${actual} ${expected} || { - echo - echo "=========================================================================" - - if [ -n "${UPDATE_DIFF:-}" ]; then - echo "⚡️ UPDATE_DIFF is set, overwriting ${expected}" - cp ${actual} ${expected} - exit 0 - else - echo "test failed. to update:" - echo " cp ${actual} ${expected}" - echo - echo "or, execute again with:" - echo " UPDATE_DIFF=1" - echo - exit 1 - fi + const expected = readFile(resolve(expectedPath), { encoding: 'utf-8' }); + const actual = readFile(resolve(actualPath), { encoding: 'utf-8' }); + + const patch = structuredPatch(actualPath, expectedPath, await actual, await expected); + if (patch.hunks.length === 0) { + // All good, no difference! + return 0; + } + + console.log(chalk.grey(`--- ${patch.oldFileName}`)); + console.log(chalk.grey(`+++ ${patch.newFileName}`)); + for (const hunk of patch.hunks) { + console.log(chalk.grey(`@@ -${hunk.oldStart},${hunk.oldLines} +${hunk.newStart},${hunk.newLines} @@`)); + for (const line of hunk.lines) { + let color; + switch (line[0]) { + case '-': + color = chalk.redBright; + break; + case '+': + color = chalk.greenBright; + break; + default: + color = chalk.grey; + } + console.log(color(line)); + } + } + + console.error("========================================================================="); + if (process.env.UPDATE_DIFF) { + console.error(chalk.yellowBright(`UPDATE_DIFF is set, overwriting ${expectedPath}`)); + await writeFile(expectedPath, await actual, { encoding: 'utf-8' }); + return 0; + } + console.error('test failed. to update:'); + console.error(chalk.blueBright(` cp ${actualPath} ${expectedPath}`)); + console.error(); + console.error('or, execute again with:'); + console.error(chalk.blueBright(' UPDATE_DIFF=1')); + return 1; } + +main().then( + (code) => process.exit(code), + (err) => { + console.error('Unexpected error:', err); + process.exit(-1); + } +) diff --git a/tools/jsii-build-tools/package.json b/tools/jsii-build-tools/package.json index 95efb25f83..b822287acf 100644 --- a/tools/jsii-build-tools/package.json +++ b/tools/jsii-build-tools/package.json @@ -31,5 +31,9 @@ }, "scripts": { "build": "chmod +x bin/*" + }, + "dependencies": { + "chalk": "^4.1.0", + "diff": "^4.0.2" } } diff --git a/yarn.lock b/yarn.lock index b9a350dfcd..e42f7b5e2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -144,9 +144,9 @@ js-tokens "^4.0.0" "@babel/parser@^7.1.0", "@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1": - version "7.11.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.1.tgz#d91a387990b21e5d20047b336bb19b0553f02ff5" - integrity sha512-u9QMIRdKVF7hfEkb3nu2LgZDIzCQPv+yHD9Eg6ruoJLjkrQ9fFz4IBSlF/9XwoNri9+2F1IY+dYuOfZrXq8t3w== + version "7.11.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.2.tgz#0882ab8a455df3065ea2dcb4c753b2460a24bead" + integrity sha512-Vuj/+7vLo6l1Vi7uuO+1ngCDNeVmNbTngcJFKCR/oEtz8tKz0CJxZEGmPt9KcIloZhOZ3Zit6xbpXT2MDlS9Vw== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -1552,6 +1552,11 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= +"@types/lockfile@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/lockfile/-/lockfile-1.0.1.tgz#434a3455e89843312f01976e010c60f1bcbd56f7" + integrity sha512-65WZedEm4AnOsBDdsapJJG42MhROu3n4aSSiu87JXF/pSdlubxZxp3S1yz3kTfkJ2KBPud4CpjoHVAptOm9Zmw== + "@types/minimatch@*": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -2057,6 +2062,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -3541,6 +3551,11 @@ diff-sequences@^26.0.0: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.0.0.tgz#0760059a5c287637b842bd7085311db7060e88a6" integrity sha512-JC/eHYEC3aSS0vZGjuoc4vHA0yAQTzhQQldXMeMF+JlxLGJlCO38Gma82NV9gk1jGFz8mDzUMeaKXvjRRdJ2dg== +diff@^4.0.1, diff@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" @@ -3973,9 +3988,9 @@ estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== estraverse@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642" - integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw== + version "5.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== esutils@^2.0.2: version "2.0.3" @@ -6118,6 +6133,13 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +lockfile@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lockfile/-/lockfile-1.0.4.tgz#07f819d25ae48f87e538e6578b6964a4981a5609" + integrity sha512-cvbTwETRfsFh4nHsL1eGWapU1XFi5Ot9E85sWAwia7Y7EgB7vfqcZhTKZ+l7hCGxSPoushMv5GKhT5PdLv03WA== + dependencies: + signal-exit "^3.0.2" + lodash._reinterpolate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" @@ -6231,6 +6253,11 @@ make-dir@^3.0.0: dependencies: semver "^6.0.0" +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + make-fetch-happen@^5.0.0: version "5.0.2" resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-5.0.2.tgz#aa8387104f2687edca01c8687ee45013d02d19bd" @@ -8300,7 +8327,7 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.6, source-map-support@~0.5.12: +source-map-support@^0.5.17, source-map-support@^0.5.6, source-map-support@~0.5.12: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== @@ -8959,6 +8986,17 @@ trim-off-newlines@^1.0.0: resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== + dependencies: + arg "^4.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + tsconfig-paths@^3.9.0: version "3.9.0" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b" @@ -9065,7 +9103,7 @@ typescript-json-schema@^0.42.0: typescript "^3.5.3" yargs "^14.0.0" -typescript@^3.5.3, typescript@~3.9.6: +typescript@^3.5.3, typescript@~3.9.7: version "3.9.7" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== @@ -9692,7 +9730,7 @@ yargs@^14.0.0, yargs@^14.2.2: y18n "^4.0.0" yargs-parser "^15.0.1" -yargs@^15.3.1, yargs@^15.4.0: +yargs@^15.3.1, yargs@^15.4.0, yargs@^15.4.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== @@ -9708,3 +9746,8 @@ yargs@^15.3.1, yargs@^15.4.0: which-module "^2.0.0" y18n "^4.0.0" yargs-parser "^18.1.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== From 4a791d79cd1cc9f547b5a6348664b04d580ec105 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2020 10:18:16 +0200 Subject: [PATCH 06/45] chore(deps): bump xunit.runner.visualstudio (#1848) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.2 to 2.4.3. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/v2.4.2...v2.4.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index fa275347d3..02eb38b854 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -10,7 +10,7 @@ - + From 5f1e58d8bfceaf7065d822ee21b441ea6cf2413d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2020 10:18:31 +0200 Subject: [PATCH 07/45] chore(deps): bump Microsoft.CodeAnalysis.CSharp.Workspaces (#1858) Bumps [Microsoft.CodeAnalysis.CSharp.Workspaces](https://github.com/dotnet/roslyn) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/dotnet/roslyn/releases) - [Changelog](https://github.com/dotnet/roslyn/blob/master/docs/Breaking%20API%20Changes.md) - [Commits](https://github.com/dotnet/roslyn/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 02eb38b854..923c13074c 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -2,7 +2,7 @@ - + From f26e3d3d660ea620e244c13ea2f13fc9d236c905 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2020 10:18:50 +0200 Subject: [PATCH 08/45] chore(deps): bump Microsoft.NET.Test.Sdk (#1859) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.1 to 16.7.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.6.1...v16.7.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 923c13074c..589b285307 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -7,7 +7,7 @@ - + From 71a4d8e08c39031e5ffba4b93323a966e8fab2d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2020 10:19:48 +0200 Subject: [PATCH 09/45] chore(deps-dev): bump @types/clone from 0.1.30 to 2.1.0 (#1863) Bumps [@types/clone](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/clone) from 0.1.30 to 2.1.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/clone) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/jsii-pacmak/package.json | 2 +- packages/jsii/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index a0fbc9b086..a71475f3e1 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -53,7 +53,7 @@ "@jsii/dotnet-runtime": "^0.0.0", "@jsii/java-runtime": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", - "@types/clone": "^0.1.30", + "@types/clone": "^2.1.0", "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.9", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index f1e6f03047..082f0275ad 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -48,7 +48,7 @@ "yargs": "^15.4.1" }, "devDependencies": { - "@types/clone": "^0.1.30", + "@types/clone": "^2.1.0", "@types/deep-equal": "^1.0.1", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.9", diff --git a/yarn.lock b/yarn.lock index e42f7b5e2f..72e242a473 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1445,10 +1445,10 @@ dependencies: "@babel/types" "^7.3.0" -"@types/clone@^0.1.30": - version "0.1.30" - resolved "https://registry.yarnpkg.com/@types/clone/-/clone-0.1.30.tgz#e7365648c1b42136a59c7d5040637b3b5c83b614" - integrity sha1-5zZWSMG0ITalnH1QQGN7O1yDthQ= +"@types/clone@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@types/clone/-/clone-2.1.0.tgz#cb888a3fe5319275b566ae3a9bc606e310c533d4" + integrity sha512-d/aS/lPOnUSruPhgNtT8jW39fHRVTLQy9sodysP1kkG8EdAtdZu1vt8NJaYA8w/6Z9j8izkAsx1A/yJhcYR1CA== "@types/color-name@^1.1.1": version "1.1.1" From c236307c7837dcd4bb1d058eef9f4531b633115b Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 10 Aug 2020 10:22:03 +0200 Subject: [PATCH 10/45] chore(pacmak): improve error messaging (#1817) When a shelled-out process fails (either on a non-0 status, or killed by a signal), the error message did not include the command that just failed, causing ambiguity with respects to what happened. Additionally, the output included STDOUT and STDERR concatenated (in this order) without any way to distinguishe which is which... This adds a prefix string to each line of those to denote whether STDOUT or STDERR. --- .eslintrc.yaml | 3 +++ packages/jsii-pacmak/lib/util.ts | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.yaml diff --git a/.eslintrc.yaml b/.eslintrc.yaml new file mode 100644 index 0000000000..13d919e42c --- /dev/null +++ b/.eslintrc.yaml @@ -0,0 +1,3 @@ +--- +extends: ./eslint-config.yaml +root: true diff --git a/packages/jsii-pacmak/lib/util.ts b/packages/jsii-pacmak/lib/util.ts index 2d85818cb8..f97c115c38 100644 --- a/packages/jsii-pacmak/lib/util.ts +++ b/packages/jsii-pacmak/lib/util.ts @@ -73,9 +73,20 @@ export async function shell( const command = `${cmd} ${args.join(' ')}`; return ko( new Error( - `Command exited with ${reason}:\n- Command: ${command}\n- STDOUT:\n${out}\n- STDERR:\n${err}`, + [ + `Command (${command}) failed with ${reason}:`, + prefix(out, '#STDOUT> '), + prefix(err, '#STDERR> '), + ].join('\n'), ), ); + + function prefix(text: string, add: string): string { + return text + .split('\n') + .map((line) => `${add}${line}`) + .join('\n'); + } }); }); } From 31ec095c8c5e23bebf52a458ca296074cd000edc Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 10 Aug 2020 16:52:00 +0200 Subject: [PATCH 11/45] chore(jsii): better errors around use of hidden types (#1861) When a hidden (that is, `@internal` or not exported) type is used in a visible (`public` or `protected` on an exported type) API, the error produced would refer to the unusable type, but would not give any indication of where it was being used from. This makes several enhancements to this process: - Qualify the kind of use for the type (return, parameter, ...) - Attach the error to the resolving node (usage location) - Provide a related message with the unusable type's declaration - Specifically message around "this" (used or inferred as a return type) This is going to particularly enhance the experience of folks extending internal base types, where those internal base types declare members that return hidden types (or "this"). Fixes #1860 --- packages/jsii/lib/assembler.ts | 251 ++++++-- .../test/__snapshots__/negatives.test.js.snap | 581 ++++++++++++++++++ packages/jsii/test/negatives.test.ts | 69 +-- .../neg.behavior-requires-iprefix.ts | 2 - .../jsii/test/negatives/neg.class-name.1.ts | 6 +- .../jsii/test/negatives/neg.class-name.ts | 6 +- .../test/negatives/neg.compilation-error.ts | 5 +- .../jsii/test/negatives/neg.const-enum.ts | 6 +- .../neg.double-interface-members-deeper.ts | 6 +- .../neg.double-interface-members-method.ts | 3 - .../negatives/neg.double-interface-members.ts | 2 - .../jsii/test/negatives/neg.enum-members.1.ts | 6 +- .../jsii/test/negatives/neg.enum-name.1.ts | 6 +- .../jsii/test/negatives/neg.enum-name.2.ts | 6 +- .../neg.expose-unexported-type-external.ts | 4 +- ...e-unexported-type-internal-in-namespace.ts | 7 +- .../neg.expose-unexported-type-internal.ts | 8 +- .../neg.expose-unexported-type-this.ts | 13 + .../jsii/test/negatives/neg.extend-struct.ts | 2 - .../test/negatives/neg.implement-struct.ts | 2 - .../neg.implementation-changes-types.1.ts | 10 +- .../neg.implementation-changes-types.2.ts | 10 +- .../neg.implementation-changes-types.3.ts | 10 +- .../neg.implementation-changes-types.4.ts | 6 +- .../neg.implementation-changes-types.5.ts | 10 +- ...plementing-method-changes-optionality.1.ts | 2 - ...plementing-method-changes-optionality.2.ts | 2 - ...implementing-method-changes-optionality.ts | 2 - ...ementing-property-changes-optionality.1.ts | 2 - ...ementing-property-changes-optionality.2.ts | 2 - ...plementing-property-changes-optionality.ts | 2 - .../test/negatives/neg.implements-class.ts | 14 +- .../neg.inheritance-changes-types.1.ts | 14 +- .../neg.inheritance-changes-types.2.ts | 14 +- .../neg.inheritance-changes-types.3.ts | 14 +- .../neg.inheritance-changes-types.4.ts | 6 +- .../neg.inheritance-changes-types.5.ts | 10 +- .../neg.internal-underscore-class.5.ts | 2 - .../neg.internal-underscore-class.6.ts | 2 - .../neg.internal-underscore-class.7.ts | 6 +- .../neg.internal-underscore-class.8.ts | 4 +- .../neg.internal-underscore-interface.1.ts | 2 - .../neg.internal-underscore-interface.2.ts | 2 - .../neg.internal-underscore-interface.3.ts | 2 - .../neg.internal-underscore-interface.4.ts | 2 - .../jsii/test/negatives/neg.method-name.1.ts | 8 +- .../jsii/test/negatives/neg.method-name.2.ts | 8 +- .../jsii/test/negatives/neg.method-name.3.ts | 8 +- .../jsii/test/negatives/neg.method-name.4.ts | 8 +- .../neg.mix-datatype-and-arg-name.ts | 8 +- .../test/negatives/neg.mutable-datatype.ts | 2 - .../neg.non-optional-after-optional-ctor.ts | 8 +- .../neg.non-optional-after-optional-method.ts | 8 +- packages/jsii/test/negatives/neg.omit.1.ts | 2 - packages/jsii/test/negatives/neg.omit.2.ts | 2 - packages/jsii/test/negatives/neg.omit.3.ts | 2 - packages/jsii/test/negatives/neg.omit.4.ts | 2 - .../test/negatives/neg.property-name.1.ts | 4 +- .../test/negatives/neg.property-name.2.ts | 4 +- .../test/negatives/neg.property-name.3.ts | 4 +- .../negatives/neg.reserved.emits-warning.ts | 7 +- .../test/negatives/neg.static-const-name.ts | 4 +- .../negatives/neg.static-member-mixing.1.ts | 4 +- .../negatives/neg.static-member-mixing.2.ts | 4 +- .../negatives/neg.static-method-name.1.ts | 8 +- .../test/negatives/neg.static-method-name.ts | 8 +- .../test/negatives/neg.static-prop-name.1.ts | 8 +- .../test/negatives/neg.static-prop-name.2.ts | 8 +- .../negatives/neg.struct-extends-interface.ts | 2 - ....submodules-cannot-have-colliding-names.ts | 4 +- .../neg.submodules-cannot-share-symbols.ts | 2 - .../neg.submodules-must-be-camel-cased.ts | 2 - 72 files changed, 927 insertions(+), 355 deletions(-) create mode 100644 packages/jsii/test/__snapshots__/negatives.test.js.snap create mode 100644 packages/jsii/test/negatives/neg.expose-unexported-type-this.ts diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 08e816da90..fa8bed0f3b 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -376,11 +376,21 @@ export class Assembler implements Emitter { * computed for the type, a marker is returned instead, and an ``ts.DiagnosticCategory.Error`` diagnostic is * inserted in the assembler context. * - * @param type the type for which a JSII fully qualified name is neede. + * @param type the type for which a JSII fully qualified name is needed. + * @param typeAnnotationNode the type annotation for which this FQN is generated. This is used for attaching the error + * marker. When there is no explicit type annotation (e.g: inferred method return type), the + * preferred substitute is the "type-inferred" element's name. + * @param typeUse the reason why this type was resolved (e.g: "return type") + * @param isThisType whether this type was specified or inferred as "this" or not * * @returns the FQN of the type, or some "unknown" marker. */ - private async _getFQN(type: ts.Type): Promise { + private async _getFQN( + type: ts.Type, + typeAnnotationNode: ts.Node, + typeUse: TypeUseKind, + isThisType: boolean, + ): Promise { const singleValuedEnum = isSingleValuedEnum(type, this._typeChecker); const tsFullName = this._typeChecker.getFullyQualifiedName(type.symbol); @@ -389,31 +399,57 @@ export class Assembler implements Emitter { tsFullName.replace(/\.[^.]+$/, '') : tsFullName; - let node = singleValuedEnum + let typeDeclaration = singleValuedEnum ? // If it's a single-valued enum, we need to move to the parent to have the enum declaration type.symbol.valueDeclaration.parent : type.symbol.valueDeclaration; - if (!node && type.symbol.declarations.length > 0) { - node = type.symbol.declarations[0]; + if (!typeDeclaration && type.symbol.declarations.length > 0) { + typeDeclaration = type.symbol.declarations[0]; } - const groups = /^"([^"]+)"\.(.*)$/.exec(tsName); - if (!groups) { + // Set to true to prevent further adding of Error diagnostics for known-bad reference + let hasError = false; + + if (this._isPrivateOrInternal(type.symbol)) { + // Check if this type is "this" (explicit or inferred method return type). + const commonMessage = `cannot be used as the ${typeUse} because it is private or @internal`; this._diagnostic( - node, + typeAnnotationNode, ts.DiagnosticCategory.Error, - `Cannot use private type ${tsName} in exported declarations`, + isThisType + ? `Type "this" (aka: "${type.symbol.name}") ${commonMessage}` + : `Type "${type.symbol.name}" ${commonMessage}`, + makeCause(typeDeclaration), ); + + hasError = true; + } + + const groups = /^"([^"]+)"\.(.*)$/.exec(tsName); + if (!groups) { + if (!hasError) { + this._diagnostic( + typeAnnotationNode, + ts.DiagnosticCategory.Error, + `Cannot use internal type ${tsName} as a ${typeUse} in exported declarations`, + makeCause(typeDeclaration), + ); + hasError = true; + } return tsName; } const [, modulePath, typeName] = groups; const pkg = await findPackageInfo(modulePath); if (!pkg) { - this._diagnostic( - node, - ts.DiagnosticCategory.Error, - `Could not find module for ${modulePath}`, - ); + if (!hasError) { + this._diagnostic( + typeAnnotationNode, + ts.DiagnosticCategory.Error, + `Could not find module corresponding to ${modulePath}`, + makeCause(typeDeclaration), + ); + hasError = true; + } return `unknown.${typeName}`; } @@ -428,13 +464,38 @@ export class Assembler implements Emitter { pkg.name !== this.projectInfo.name && !this._dereference({ fqn }, type.symbol.valueDeclaration) ) { - this._diagnostic( - node, - ts.DiagnosticCategory.Error, - `Use of foreign type not present in the ${pkg.name}'s assembly: ${fqn}`, - ); + if (!hasError) { + this._diagnostic( + typeAnnotationNode, + ts.DiagnosticCategory.Error, + `Type "${fqn}" cannot be used as a ${typeUse} because it is not exported from ${pkg.name}`, + makeCause(typeDeclaration), + ); + hasError = true; + } } return fqn; + + function makeCause(node: ts.Node): ts.DiagnosticRelatedInformation[] { + const declNode = + ts.isClassDeclaration(node) || + ts.isEnumDeclaration(node) || + ts.isInterfaceDeclaration(node) || + ts.isTypeAliasDeclaration(node) + ? node.name ?? node + : node; + return [ + { + category: ts.DiagnosticCategory.Message, + code: JSII_DIAGNOSTICS_CODE, + file: declNode.getSourceFile(), + start: declNode.getStart(declNode.getSourceFile()), + length: + declNode.getEnd() - declNode.getStart(declNode.getSourceFile()), + messageText: `The referenced type is declared here`, + }, + ]; + } } /** @@ -560,7 +621,7 @@ export class Assembler implements Emitter { symbol.name !== Case.snake(symbol.name) ) { this._diagnostic( - declaration, + declaration.name, ts.DiagnosticCategory.Error, `Submodule namespaces must be camelCased or snake_cased. Consider renaming to "${Case.camel( symbol.name, @@ -645,25 +706,39 @@ export class Assembler implements Emitter { if (currNs.name !== ns.name) { const currNsDecl = currNs.valueDeclaration ?? currNs.declarations[0]; const nsDecl = ns.valueDeclaration ?? ns.declarations[0]; + + // Make sure the error message always lists causes in the same order + const refs = [ + [currNs.name, currNsDecl] as const, + [ns.name, nsDecl] as const, + ].sort(([l], [r]) => l.localeCompare(r)); + this._diagnostic( - symbol.valueDeclaration, + (symbol.valueDeclaration as { name?: ts.Node }).name ?? + symbol.valueDeclaration, ts.DiagnosticCategory.Error, - `Symbol is re-exported under two distinct submodules (${currNs.name} and ${ns.name})`, + `Symbol is re-exported under two distinct submodules (${refs + .map(([name]) => name) + .join(' and ')})`, [ { category: ts.DiagnosticCategory.Warning, - file: currNsDecl.getSourceFile(), - length: currNsDecl.getStart() - currNsDecl.getEnd(), - messageText: `Symbol is exported under the "${currNs.name}" submodule`, - start: currNsDecl.getStart(), + file: refs[0][1].getSourceFile(), + length: + refs[0][1].getEnd() - + refs[0][1].getStart(refs[0][1].getSourceFile()), + messageText: `Symbol is exported under the "${refs[0][0]}" submodule`, + start: refs[0][1].getStart(refs[0][1].getSourceFile()), code: JSII_DIAGNOSTICS_CODE, }, { category: ts.DiagnosticCategory.Warning, - file: nsDecl.getSourceFile(), - length: nsDecl.getStart() - nsDecl.getEnd(), - messageText: `Symbol is exported under the "${ns.name}" submodule`, - start: nsDecl.getStart(), + file: refs[1][1].getSourceFile(), + length: + refs[1][1].getEnd() - + refs[1][1].getStart(refs[1][1].getSourceFile()), + messageText: `Symbol is exported under the "${refs[1][0]}" submodule`, + start: refs[1][1].getStart(refs[1][1].getSourceFile()), code: JSII_DIAGNOSTICS_CODE, }, ], @@ -861,8 +936,10 @@ export class Assembler implements Emitter { if (colliding != null) { const submoduleDecl = submodule.valueDeclaration ?? submodule.declarations[0]; + const submoduleDeclName = + (submoduleDecl as { name?: ts.Node }).name ?? submoduleDecl; this._diagnostic( - node, + (node as { name?: ts.Node }).name ?? node, ts.DiagnosticCategory.Error, `Submodule "${submodule.name}" conflicts with "${ jsiiType.name @@ -871,10 +948,10 @@ export class Assembler implements Emitter { { category: ts.DiagnosticCategory.Warning, code: JSII_DIAGNOSTICS_CODE, - file: submoduleDecl.getSourceFile(), - length: submoduleDecl.getEnd() - submoduleDecl.getStart(), + file: submoduleDeclName.getSourceFile(), + length: submoduleDeclName.getEnd() - submoduleDeclName.getStart(), messageText: 'This is the conflicting submodule declaration.', - start: submoduleDecl.getStart(), + start: submoduleDeclName.getStart(), }, ], ); @@ -993,7 +1070,7 @@ export class Assembler implements Emitter { const typeRefs = Array.from(baseInterfaces).map(async (iface) => { const decl = iface.symbol.valueDeclaration; - const typeRef = await this._typeReference(iface, decl); + const typeRef = await this._typeReference(iface, decl, 'base interface'); return { decl, typeRef }; }); for (const { decl, typeRef } of await Promise.all(typeRefs)) { @@ -1096,7 +1173,11 @@ export class Assembler implements Emitter { } // eslint-disable-next-line no-await-in-loop - const ref = await this._typeReference(base, type.symbol.valueDeclaration); + const ref = await this._typeReference( + base, + type.symbol.valueDeclaration, + 'base class', + ); if (!spec.isNamedTypeReference(ref)) { this._diagnostic( @@ -1214,7 +1295,7 @@ export class Assembler implements Emitter { } for (const memberDecl of classDecl.members) { - // The "??" is to get to the __constructor symbol (getSymbolAtLocation wouldn't work there...) + // The "??" is to get to the __constructor symbol (getSymbolAtLocation wouldn't work there..) const member = this._typeChecker.getSymbolAtLocation(memberDecl.name!) ?? ((memberDecl as any).symbol as ts.Symbol); @@ -1227,7 +1308,7 @@ export class Assembler implements Emitter { continue; } - if (this._isPrivateOrInternal(member, memberDecl)) { + if (this._isPrivateOrInternal(member, memberDecl as ts.ClassElement)) { continue; } @@ -1463,7 +1544,7 @@ export class Assembler implements Emitter { */ private _isPrivateOrInternal( symbol: ts.Symbol, - validateDeclaration?: ts.Declaration, + validateDeclaration?: ts.Declaration & { name?: ts.Node }, ): boolean { const hasInternalJsDocTag = _hasInternalJsDocTag(symbol); const hasUnderscorePrefix = @@ -1486,7 +1567,7 @@ export class Assembler implements Emitter { if (validateDeclaration) { if (!hasUnderscorePrefix) { this._diagnostic( - validateDeclaration, + validateDeclaration.name ?? validateDeclaration, ts.DiagnosticCategory.Error, `${colors.cyan( symbol.name, @@ -1496,7 +1577,7 @@ export class Assembler implements Emitter { if (!hasInternalJsDocTag) { this._diagnostic( - validateDeclaration, + validateDeclaration.name ?? validateDeclaration, ts.DiagnosticCategory.Error, `${colors.cyan( symbol.name, @@ -1660,7 +1741,12 @@ export class Assembler implements Emitter { continue; } - if (this._isPrivateOrInternal(member, member.valueDeclaration)) { + if ( + this._isPrivateOrInternal( + member, + member.valueDeclaration as ts.PropertyDeclaration, + ) + ) { continue; } @@ -1699,10 +1785,12 @@ export class Assembler implements Emitter { // Calculate datatype based on the datatypeness of this interface and all of its parents // To keep the spec minimal the actual values of the attribute are "true" or "undefined" (to represent "false"). + const declaration = + type.symbol.valueDeclaration ?? type.symbol.declarations[0]; this._deferUntilTypesAvailable( fqn, jsiiType.interfaces ?? [], - type.symbol.valueDeclaration, + declaration, (...bases: spec.Type[]) => { if ((jsiiType.methods ?? []).length === 0) { jsiiType.datatype = true; @@ -1719,7 +1807,7 @@ export class Assembler implements Emitter { // If it's not a datatype the name must start with an "I". if (!jsiiType.datatype && !interfaceName) { this._diagnostic( - type.symbol.declarations[0], + (declaration as { name?: ts.Node }).name ?? declaration, ts.DiagnosticCategory.Error, `Interface contains behavior: name should be "I${jsiiType.name}"`, ); @@ -1727,7 +1815,7 @@ export class Assembler implements Emitter { // If the name starts with an "I" it is not intended as a datatype, so switch that off. if (jsiiType.datatype && interfaceName) { - jsiiType.datatype = undefined; + delete jsiiType.datatype; } // Okay, this is a data type, check that all properties are readonly @@ -1749,7 +1837,7 @@ export class Assembler implements Emitter { // This is *NOT* a data type, so it may not extend something that is one. for (const base of bases) { if (!spec.isInterfaceType(base)) { - // Invalid type we already warned about earlier, just ignoring it here... + // Invalid type we already warned about earlier, just ignoring it here.. continue; } if (base.datatype) { @@ -1851,7 +1939,11 @@ export class Assembler implements Emitter { protected: _isProtected(symbol) || undefined, returns: _isVoid(returnType) ? undefined - : await this._optionalValue(returnType, declaration), + : await this._optionalValue( + returnType, + declaration.name, + 'return type', + ), async: _isPromise(returnType) || undefined, static: _isStatic(symbol) || undefined, locationInModule: this.declarationLocation(declaration), @@ -1974,7 +2066,8 @@ export class Assembler implements Emitter { const property: spec.Property = { ...(await this._optionalValue( this._typeChecker.getTypeOfSymbolAtLocation(symbol, signature), - signature, + signature.name, + 'property type', )), abstract: _isAbstract(symbol, type) || undefined, name: symbol.name, @@ -2038,8 +2131,9 @@ export class Assembler implements Emitter { const parameter: spec.Parameter = { ...(await this._optionalValue( - this._typeChecker.getTypeAtLocation(paramSymbol.valueDeclaration), - paramSymbol.valueDeclaration, + this._typeChecker.getTypeAtLocation(paramDeclaration), + paramDeclaration.name, + 'parameter type', )), name: paramSymbol.name, variadic: paramDeclaration.dotDotDotToken && true, @@ -2063,9 +2157,10 @@ export class Assembler implements Emitter { private async _typeReference( type: ts.Type, - declaration: ts.Declaration, + declaration: ts.Node, + purpose: TypeUseKind, ): Promise { - const optionalValue = await this._optionalValue(type, declaration); + const optionalValue = await this._optionalValue(type, declaration, purpose); if (optionalValue.optional) { this._diagnostic( declaration, @@ -2078,8 +2173,11 @@ export class Assembler implements Emitter { private async _optionalValue( type: ts.Type, - declaration: ts.Declaration, + declaration: ts.Node, + purpose: TypeUseKind, ): Promise { + const isThisType = _isThisType(type, this._typeChecker); + if (type.isLiteral() && _isEnumLike(type)) { type = this._typeChecker.getBaseTypeOfLiteralType(type); } else { @@ -2123,11 +2221,17 @@ export class Assembler implements Emitter { return { type: spec.CANONICAL_ANY }; } return { - type: await this._typeReference(typeRef.typeArguments[0], declaration), + type: await this._typeReference( + typeRef.typeArguments[0], + declaration, + purpose, + ), }; } - return { type: { fqn: await this._getFQN(type) } }; + return { + type: { fqn: await this._getFQN(type, declaration, purpose, isThisType) }, + }; async function _arrayType( this: Assembler, @@ -2139,6 +2243,7 @@ export class Assembler implements Emitter { elementtype = await this._typeReference( typeRef.typeArguments[0], declaration, + 'list element type', ); } else { const count = typeRef.typeArguments @@ -2166,7 +2271,11 @@ export class Assembler implements Emitter { let elementtype: spec.TypeReference; const objectType = type.getStringIndexType(); if (objectType) { - elementtype = await this._typeReference(objectType, declaration); + elementtype = await this._typeReference( + objectType, + declaration, + 'map element type', + ); } else { this._diagnostic( declaration, @@ -2230,7 +2339,11 @@ export class Assembler implements Emitter { continue; } // eslint-disable-next-line no-await-in-loop - const resolvedType = await this._typeReference(subType, declaration); + const resolvedType = await this._typeReference( + subType, + declaration, + purpose, + ); if (types.find((ref) => deepEqual(ref, resolvedType)) != null) { continue; } @@ -2806,3 +2919,27 @@ async function findPackageInfo(fromDir: string): Promise { } return findPackageInfo(parent); } + +/** + * Checks is the provided type is "this" (as a type annotation). + * + * @param type the validated type. + * @param typeChecker the type checker. + * + * @returns `true` iif the type is `this` + */ +function _isThisType(type: ts.Type, typeChecker: ts.TypeChecker): boolean { + return typeChecker.typeToTypeNode(type)?.kind === ts.SyntaxKind.ThisKeyword; +} + +/** + * A location where a type can be used. + */ +type TypeUseKind = + | 'base class' + | 'base interface' + | 'list element type' + | 'map element type' + | 'parameter type' + | 'property type' + | 'return type'; diff --git a/packages/jsii/test/__snapshots__/negatives.test.js.snap b/packages/jsii/test/__snapshots__/negatives.test.js.snap new file mode 100644 index 0000000000..d42c6919fc --- /dev/null +++ b/packages/jsii/test/__snapshots__/negatives.test.js.snap @@ -0,0 +1,581 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`behavior-requires-iprefix 1`] = ` +"neg.behavior-requires-iprefix.ts:1:18 - error TS9999: JSII: Interface contains behavior: name should be \\"ISomething\\" + +1 export interface Something { + ~~~~~~~~~ +" +`; + +exports[`class-name 1`] = ` +"error TS0: Type names must use PascalCase: myclass +" +`; + +exports[`class-name.1 1`] = ` +"error TS0: Type names must use PascalCase: My_class +" +`; + +exports[`compilation-error 1`] = ` +"neg.compilation-error.ts:1:1 - error TS2304: Cannot find name 'boom'. + +1 boom! > CompilerErrorIsHere; + ~~~~ +neg.compilation-error.ts:1:9 - error TS2304: Cannot find name 'CompilerErrorIsHere'. + +1 boom! > CompilerErrorIsHere; + ~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`const-enum 1`] = ` +"neg.const-enum.ts:1:1 - error TS9999: JSII: Exported enum cannot be declared 'const' + + 1 export const enum NotAllowed { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 2 ThisEnum, + ~~~~~~~~~~~ +... + 5 ForJsii, + ~~~~~~~~~~ + 6 } + ~ +" +`; + +exports[`double-interface-members 1`] = ` +"neg.double-interface-members.ts:2:3 - error TS9999: JSII: The property 'foo' in data type 'A' must be 'readonly' since data is passed by-value + +2 foo: number; + ~~~~~~~~~~~~ +neg.double-interface-members.ts:4:1 - error TS9999: JSII: Interface declares same member as inherited interface: foo + +4 export interface B extends A { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +5 foo: number; + ~~~~~~~~~~~~~~ +6 } + ~ +neg.double-interface-members.ts:5:3 - error TS9999: JSII: The property 'foo' in data type 'B' must be 'readonly' since data is passed by-value + +5 foo: number; + ~~~~~~~~~~~~ +" +`; + +exports[`double-interface-members-deeper 1`] = ` +"neg.double-interface-members-deeper.ts:9:1 - error TS9999: JSII: Interface declares same member as inherited interface: foo + + 9 export interface IC extends IB { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 foo(): void; + ~~~~~~~~~~~~~~ +11 } + ~ +" +`; + +exports[`double-interface-members-method 1`] = ` +"neg.double-interface-members-method.ts:4:1 - error TS9999: JSII: Interface declares same member as inherited interface: foo + +4 export interface IB extends IA { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +5 foo(): void; + ~~~~~~~~~~~~~~ +6 } + ~ +" +`; + +exports[`downgrade-to-readonly 1`] = ` +"error TS0: jsii.Implementation#property changes immutability of property when implementing jsii.IInterface +" +`; + +exports[`enum-members.1 1`] = ` +"error TS0: Enum members must use ALL_CAPS: Goo +" +`; + +exports[`enum-name.1 1`] = ` +"error TS0: Type names must use PascalCase: myEnum +" +`; + +exports[`enum-name.2 1`] = ` +"error TS0: Type names must use PascalCase: My_Enum +" +`; + +exports[`expose-unexported-type-external 1`] = ` +"error TS0: Exported APIs cannot use un-exported type jsii.UnexportedType +" +`; + +exports[`expose-unexported-type-internal 1`] = ` +"neg.expose-unexported-type-internal.ts:7:10 - error TS9999: JSII: Type \\"UnexportedType\\" cannot be used as the property type because it is private or @internal + +7 public p?: UnexportedType; + ~ + + neg.expose-unexported-type-internal.ts:4:7 + 4 class UnexportedType {} + ~~~~~~~~~~~~~~ + The referenced type is declared here +" +`; + +exports[`expose-unexported-type-internal-in-namespace 1`] = ` +"neg.expose-unexported-type-internal-in-namespace.ts:9:10 - error TS9999: JSII: Cannot use internal type MyNamespace.UnexportedType as a property type in exported declarations + +9 public p?: MyNamespace.UnexportedType; + ~ + + neg.expose-unexported-type-internal-in-namespace.ts:5:16 + 5 export class UnexportedType {} + ~~~~~~~~~~~~~~ + The referenced type is declared here +" +`; + +exports[`expose-unexported-type-this 1`] = ` +"neg.expose-unexported-type-this.ts:10:38 - warning TS9999: JSII: 'boolean' is a reserved word in Java. Using this name may cause problems when generating language bindings. Consider using a different name. + +10 public constructor(public readonly boolean = true) { + ~~~~~~~ +neg.expose-unexported-type-this.ts:10:38 - warning TS9999: JSII: 'boolean' is a reserved word in Java. Using this name may cause problems when generating language bindings. Consider using a different name. + +10 public constructor(public readonly boolean = true) { + ~~~~~~~ +neg.expose-unexported-type-this.ts:4:10 - error TS9999: JSII: Type \\"this\\" (aka: \\"HiddenBaseClass\\") cannot be used as the return type because it is private or @internal + +4 public returnsThis() { + ~~~~~~~~~~~ + + neg.expose-unexported-type-this.ts:3:16 + 3 abstract class HiddenBaseClass { + ~~~~~~~~~~~~~~~ + The referenced type is declared here +" +`; + +exports[`extend-struct 1`] = ` +"error TS9999: JSII: Attempted to extend struct jsii.Struct from regular interface jsii.IIllegal +" +`; + +exports[`implement-struct 1`] = ` +"neg.implement-struct.ts:6:1 - error TS9999: JSII: Attempted to implement struct jsii.Struct from class jsii.Illegal + + 6 export class Illegal implements Struct { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 7 public readonly field: string = 'foo'; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + 11 } + ~~~ + 12 } + ~ +" +`; + +exports[`implementation-changes-types.1 1`] = ` +"error TS0: jsii.Something#returnSomething changes the return type when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`implementation-changes-types.2 1`] = ` +"error TS0: jsii.ISomethingElse#returnSomething changes the return type when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`implementation-changes-types.3 1`] = ` +"error TS0: jsii.Something#takeSomething changes type of argument _argument when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass +" +`; + +exports[`implementation-changes-types.4 1`] = ` +"error TS0: jsii.Something#something changes the type of property when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`implementation-changes-types.5 1`] = ` +"error TS0: jsii.ISomethingElse#something changes the type of property when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`implementing-method-changes-optionality 1`] = ` +"error TS0: jsii.Implementor#method changes the optionality of paramerter _optional when implementing jsii.IInterface (expected true, found false) +" +`; + +exports[`implementing-method-changes-optionality.1 1`] = ` +"error TS0: jsii.Implementor#method changes the optionality of paramerter _optional when overriding jsii.AbstractClass (expected true, found false) +" +`; + +exports[`implementing-method-changes-optionality.2 1`] = ` +"error TS0: jsii.Implementor#method changes the optionality of paramerter _optional when overriding jsii.ParentClass (expected true, found false) +" +`; + +exports[`implementing-property-changes-optionality 1`] = ` +"error TS0: jsii.Implementor#property changes optionality of property when implementing jsii.IInterface +" +`; + +exports[`implementing-property-changes-optionality.1 1`] = ` +"error TS0: jsii.Implementor#property changes optionality of property when overriding jsii.AbstractClass +" +`; + +exports[`implementing-property-changes-optionality.2 1`] = ` +"error TS0: jsii.Implementor#property changes optionality of property when overriding jsii.ParentClass +" +`; + +exports[`implements-class 1`] = ` +"neg.implements-class.ts:1:1 - error TS9999: JSII: Inheritance clause of jsii.TryingToImplementClass uses jsii.NotAnInterface as an interface + + 1 export class NotAnInterface { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 2 public meaningOfTheUniverse() { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + 4 } + ~~~ + 5 } + ~ +" +`; + +exports[`inheritance-changes-types.1 1`] = ` +"error TS0: jsii.SomethingSpecific#returnSomething changes the return type when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`inheritance-changes-types.2 1`] = ` +"error TS0: jsii.SomethingSpecific#returnSomething changes the return type when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`inheritance-changes-types.3 1`] = ` +"error TS0: jsii.SomethingSpecific#takeSomething changes type of argument _argument when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass +" +`; + +exports[`inheritance-changes-types.4 1`] = ` +"error TS0: jsii.SomethingSpecific#something changes the type of property when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`inheritance-changes-types.5 1`] = ` +"error TS0: jsii.SomethingElse#something changes the type of property when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) +" +`; + +exports[`internal-underscore-class.5 1`] = ` +"neg.internal-underscore-class.5.ts:3:10 - error TS9999: JSII: propertyWithInternalButNotUnderscorePrefix: the name of members marked as @internal must begin with an underscore + +3 public propertyWithInternalButNotUnderscorePrefix?: string; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-class.6 1`] = ` +"neg.internal-underscore-class.6.ts:2:10 - error TS9999: JSII: _propertyWithUnderscoreButNoInternal: members with names that begin with an underscore must be marked as @internal via a JSDoc tag + +2 public _propertyWithUnderscoreButNoInternal?: string; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-class.7 1`] = ` +"neg.internal-underscore-class.7.ts:3:10 - error TS9999: JSII: methodWithInternalButNoUnderscore: the name of members marked as @internal must begin with an underscore + +3 public methodWithInternalButNoUnderscore(): string { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-class.8 1`] = ` +"neg.internal-underscore-class.8.ts:2:3 - error TS9999: JSII: _methodWithUnderscoreButNoInternal: members with names that begin with an underscore must be marked as @internal via a JSDoc tag + +2 _methodWithUnderscoreButNoInternal(): void; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-interface.1 1`] = ` +"neg.internal-underscore-interface.1.ts:3:3 - error TS9999: JSII: propertyWithInternalButNotUnderscorePrefix: the name of members marked as @internal must begin with an underscore + +3 propertyWithInternalButNotUnderscorePrefix: string; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-interface.2 1`] = ` +"neg.internal-underscore-interface.2.ts:2:3 - error TS9999: JSII: _propertyWithUnderscoreButNoInternal: members with names that begin with an underscore must be marked as @internal via a JSDoc tag + +2 _propertyWithUnderscoreButNoInternal: string; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-interface.3 1`] = ` +"neg.internal-underscore-interface.3.ts:3:3 - error TS9999: JSII: methodWithInternalButNoUnderscore: the name of members marked as @internal must begin with an underscore + +3 methodWithInternalButNoUnderscore(): string; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`internal-underscore-interface.4 1`] = ` +"neg.internal-underscore-interface.4.ts:2:10 - error TS9999: JSII: _methodWithUnderscoreButNoInternal: members with names that begin with an underscore must be marked as @internal via a JSDoc tag + +2 public _methodWithUnderscoreButNoInternal() { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`method-name.1 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: METHOD +" +`; + +exports[`method-name.2 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: hello_world +" +`; + +exports[`method-name.3 1`] = ` +"error TS0: Methods and properties cannot have names like getXxx() - those conflict with Java property getters by the same name +" +`; + +exports[`method-name.4 1`] = ` +"error TS0: Methods and properties cannot have names like setXxx() - those conflict with Java property setters by the same name +" +`; + +exports[`mix-datatype-and-arg-name 1`] = ` +"neg.mix-datatype-and-arg-name.ts:10:3 - error TS9999: JSII: Name occurs in both function arguments and in datatype properties, rename one: dontWorry + +10 public dance(dontWorry: string, lyrics: Lyrics) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 return \`\${dontWorry}: \${lyrics.beHappy}\`; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } + ~~~ +" +`; + +exports[`mutable-datatype 1`] = ` +"neg.mutable-datatype.ts:3:3 - error TS9999: JSII: The property 'notOkay' in data type 'DataType' must be 'readonly' since data is passed by-value + +3 notOkay: number; // properties should be \\"readonly\\" + ~~~~~~~~~~~~~~~~ +" +`; + +exports[`non-optional-after-optional-ctor 1`] = ` +"neg.non-optional-after-optional-ctor.ts:2:3 - error TS9999: JSII: Parameter _arg2 cannot be optional, as it precedes non-optional parameter _arg3 + +2 constructor(_arg1: string, _arg2 = 'hello', _arg3: string) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 return; + ~~~~~~~~~~~ +4 } + ~~~ +" +`; + +exports[`non-optional-after-optional-method 1`] = ` +"neg.non-optional-after-optional-method.ts:2:3 - error TS9999: JSII: Parameter _arg2 cannot be optional, as it precedes non-optional parameter _argX + +2 public foo(_arg1: string, _arg2 = 'hello', _argX: string, _arg4?: boolean) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 return; + ~~~~~~~~~~~ +4 } + ~~~ +" +`; + +exports[`omit.1 1`] = ` +"neg.omit.1.ts:7:33 - error TS9999: JSII: Illegal \\"extends\\" value for an exported API: MappedType + +7 export interface BarBaz extends Omit { + ~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`omit.2 1`] = ` +"neg.omit.2.ts:7:32 - error TS9999: JSII: Illegal \\"implements\\" value for an exported API: MappedType + +7 export class BarBaz implements Omit { + ~~~~~~~~~~~~~~~~~~~ +" +`; + +exports[`omit.3 1`] = ` +"neg.omit.3.ts:8:3 - error TS9999: JSII: Only string-indexed map types are supported + +8 bar(): Omit; + ~~~ +" +`; + +exports[`omit.4 1`] = ` +"neg.omit.4.ts:8:7 - error TS9999: JSII: Only string-indexed map types are supported + +8 bar(opts: Omit): void; + ~~~~ +" +`; + +exports[`prohibited-member-name 1`] = ` +"neg.prohibited-member-name.ts:4:3 - error TS9999: JSII: Prohibited member name: equals + +4 public equals(): boolean { + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +5 return true; + ~~~~~~~~~~~~~~~~ +6 } + ~~~ +" +`; + +exports[`property-name.1 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: PROP +" +`; + +exports[`property-name.2 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: my_Prop +" +`; + +exports[`property-name.3 1`] = ` +"error TS0: Methods and properties cannot have names like getXxx() - those conflict with Java property getters by the same name +" +`; + +exports[`reserved.emits-warning 1`] = ` +"neg.reserved.emits-warning.ts:2:14 - warning TS9999: JSII: 'None' is a reserved word in Python. Using this name may cause problems when generating language bindings. Consider using a different name. + +2 export class None { + ~~~~ +neg.reserved.emits-warning.ts:3:19 - warning TS9999: JSII: 'do' is a reserved word in C#, Java. Using this name may cause problems when generating language bindings. Consider using a different name. + +3 public readonly do: boolean = true; + ~~ +neg.reserved.emits-warning.ts:5:10 - warning TS9999: JSII: 'assert' is a reserved word in Java, Python. Using this name may cause problems when generating language bindings. Consider using a different name. + +5 public assert(_internal: boolean): void { + ~~~~~~ +" +`; + +exports[`static-const-name 1`] = ` +"error TS0: Static constant names must use TRUMP_CASE, PascalCase or camelCase: snake_case +" +`; + +exports[`static-member-mixing.1 1`] = ` +"neg.static-member-mixing.1.ts:11:1 - error TS9999: JSII: non-static member 'funFunction' of class 'Sub' conflicts with static member in ancestor 'SuperDuper' + + 11 export class Sub extends Super { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 12 public funFunction() { + ~~~~~~~~~~~~~~~~~~~~~~~~ +... + 14 } + ~~~ + 15 } + ~ +" +`; + +exports[`static-member-mixing.2 1`] = ` +"neg.static-member-mixing.2.ts:1:1 - error TS9999: JSII: member 'funFunction' of class 'TheClass' cannot be declared both statically and non-statically + + 1 export class TheClass { + ~~~~~~~~~~~~~~~~~~~~~~~ + 2 public static funFunction() { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + 8 } + ~~~ + 9 } + ~ +" +`; + +exports[`static-method-name 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: METHOD +" +`; + +exports[`static-method-name.1 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: MethodIsNotCamelCase +" +`; + +exports[`static-prop-name.1 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: Prop +" +`; + +exports[`static-prop-name.2 1`] = ` +"error TS0: Method and non-static non-readonly property names must use camelCase: PROP +" +`; + +exports[`struct-extends-interface 1`] = ` +"neg.struct-extends-interface.ts:6:18 - error TS9999: JSII: Interface contains behavior: name should be \\"IStruct\\" + +6 export interface Struct extends IInterface { + ~~~~~~ +" +`; + +exports[`submodules-cannot-have-colliding-names 1`] = ` +"neg.submodules-cannot-have-colliding-names.ts:3:14 - error TS9999: JSII: Submodule \\"ns1\\" conflicts with \\"Ns1\\". Restricted names are: ns1, Ns1 + +3 export class Ns1 { + ~~~ + + neg.submodules-cannot-have-colliding-names.ts:1:13 + 1 export * as ns1 from './namespaced'; + ~~~ + This is the conflicting submodule declaration. +" +`; + +exports[`submodules-cannot-share-symbols 1`] = ` +"namespaced/index.ts:1:14 - error TS9999: JSII: Symbol is re-exported under two distinct submodules (ns1 and ns2) + +1 export class Declaration { + ~~~~~~~~~~~ + + neg.submodules-cannot-share-symbols.ts:1:8 + 1 export * as ns1 from './namespaced'; + ~~~~~~~~ + Symbol is exported under the \\"ns1\\" submodule + neg.submodules-cannot-share-symbols.ts:2:8 + 2 export * as ns2 from './namespaced'; + ~~~~~~~~ + Symbol is exported under the \\"ns2\\" submodule +" +`; + +exports[`submodules-must-be-camel-cased 1`] = ` +"neg.submodules-must-be-camel-cased.ts:1:13 - error TS9999: JSII: Submodule namespaces must be camelCased or snake_cased. Consider renaming to \\"ns1\\". + +1 export * as Ns1 from './namespaced'; + ~~~ +" +`; diff --git a/packages/jsii/test/negatives.test.ts b/packages/jsii/test/negatives.test.ts index 50d98f3442..a370b78e78 100644 --- a/packages/jsii/test/negatives.test.ts +++ b/packages/jsii/test/negatives.test.ts @@ -6,6 +6,12 @@ import { ProjectInfo } from '../lib/project-info'; const SOURCE_DIR = path.join(__dirname, 'negatives'); +const formatHost: ts.FormatDiagnosticsHost = { + getCanonicalFileName: ts.sys.realpath ?? ts.sys.resolvePath, + getCurrentDirectory: () => SOURCE_DIR, + getNewLine: () => '\n', +}; + for (const source of fs.readdirSync(SOURCE_DIR)) { if ( !source.startsWith('neg.') || @@ -18,30 +24,33 @@ for (const source of fs.readdirSync(SOURCE_DIR)) { test( source.replace(/neg\.(.+)\.ts/, '$1'), async () => { - const [expectations, strict] = await _getExpectedErrorMessage(filePath); - expect( - expectations.length, - `Expected error messages should be specified using ${MATCH_ERROR_MARKER}`, - ).toBeGreaterThan(0); + const { strict } = await _getPragmas(filePath); const compiler = new Compiler({ projectInfo: _makeProjectInfo(source), failOnWarnings: strict, }); const emitResult = await compiler.emit(path.join(SOURCE_DIR, source)); + expect(emitResult.emitSkipped).toBeTruthy(); - const errors = emitResult.diagnostics.filter( - (diag) => - diag.category === ts.DiagnosticCategory.Error || - (strict && diag.category === ts.DiagnosticCategory.Warning), - ); - for (const expectation of expectations) { - expect( - errors.find((e) => _messageText(e).includes(expectation)), - `No error contained: ${expectation}. Errors: \n${errors - .map((e, i) => `[${i}] ${e.messageText.toString()}`) - .join('\n')}`, - ).toBeDefined(); - } + + const diagnostics = emitResult.diagnostics + .filter( + // Remove suggestion diagnostics, we don't care much for those for now... + (diag) => diag.category !== ts.DiagnosticCategory.Suggestion, + ) + .map((diag) => + ts.formatDiagnosticsWithColorAndContext([diag], formatHost), + ) + .sort(); + + expect(diagnostics.length).toBeGreaterThan(0); + expect( + diagnostics + // Remove ANSI color codes from the message so it's nicer in the snapshots file + // eslint-disable-next-line no-control-regex + .map((diag) => diag.replace(/\x1B\[[0-9;]*[a-z]/gi, '')) + .join(''), + ).toMatchSnapshot(); // Cleaning up... return Promise.all( @@ -65,32 +74,12 @@ for (const source of fs.readdirSync(SOURCE_DIR)) { ); } -const MATCH_ERROR_MARKER = '///!MATCH_ERROR:'; const STRICT_MARKER = '///!STRICT!'; -async function _getExpectedErrorMessage( - file: string, -): Promise<[string[], boolean]> { +async function _getPragmas(file: string): Promise<{ strict: boolean }> { const data = await fs.readFile(file, { encoding: 'utf8' }); const lines = data.split('\n'); - const matches = lines - .filter((line) => line.startsWith(MATCH_ERROR_MARKER)) - .map((line) => line.substr(MATCH_ERROR_MARKER.length).trim()); const strict = lines.some((line) => line.startsWith(STRICT_MARKER)); - return [matches, strict]; -} - -function _messageText( - diagnostic: ts.Diagnostic | ts.DiagnosticMessageChain, -): string { - if (typeof diagnostic.messageText === 'string') { - return diagnostic.messageText; - } - if (diagnostic.messageText.next) { - return `${diagnostic.messageText.messageText}|${_messageText( - diagnostic.messageText.next[0], - )}`; - } - return diagnostic.messageText.messageText; + return { strict }; } function _makeProjectInfo(types: string): ProjectInfo { diff --git a/packages/jsii/test/negatives/neg.behavior-requires-iprefix.ts b/packages/jsii/test/negatives/neg.behavior-requires-iprefix.ts index 031db1b155..faaa251d7b 100644 --- a/packages/jsii/test/negatives/neg.behavior-requires-iprefix.ts +++ b/packages/jsii/test/negatives/neg.behavior-requires-iprefix.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Interface contains behavior: name should be "ISomething" - export interface Something { // The presence of this method requires an I prefix on the interface doSomething(): void; diff --git a/packages/jsii/test/negatives/neg.class-name.1.ts b/packages/jsii/test/negatives/neg.class-name.1.ts index b22415587a..692f1c0dc5 100644 --- a/packages/jsii/test/negatives/neg.class-name.1.ts +++ b/packages/jsii/test/negatives/neg.class-name.1.ts @@ -1,5 +1 @@ -///!MATCH_ERROR: Type names must use PascalCase: My_class - -export class My_class { - -} +export class My_class {} diff --git a/packages/jsii/test/negatives/neg.class-name.ts b/packages/jsii/test/negatives/neg.class-name.ts index 8f43e7ef2f..8b09276b97 100644 --- a/packages/jsii/test/negatives/neg.class-name.ts +++ b/packages/jsii/test/negatives/neg.class-name.ts @@ -1,5 +1 @@ -///!MATCH_ERROR: Type names must use PascalCase: myclass - -export class myclass { - -} +export class myclass {} diff --git a/packages/jsii/test/negatives/neg.compilation-error.ts b/packages/jsii/test/negatives/neg.compilation-error.ts index fd5f792fb2..b60962138a 100644 --- a/packages/jsii/test/negatives/neg.compilation-error.ts +++ b/packages/jsii/test/negatives/neg.compilation-error.ts @@ -1,4 +1 @@ -///!MATCH_ERROR: Cannot find name 'boom'. -///!MATCH_ERROR: Cannot find name 'CompilerErrorIsHere'. - -boom! >CompilerErrorIsHere +boom! > CompilerErrorIsHere; diff --git a/packages/jsii/test/negatives/neg.const-enum.ts b/packages/jsii/test/negatives/neg.const-enum.ts index bc3a792ba4..c1137e7ae5 100644 --- a/packages/jsii/test/negatives/neg.const-enum.ts +++ b/packages/jsii/test/negatives/neg.const-enum.ts @@ -1,8 +1,6 @@ -///!MATCH_ERROR: Exported enum cannot be declared 'const' - export const enum NotAllowed { ThisEnum, GetsInlined, AndSoItGetsLost, - ForJsii -} \ No newline at end of file + ForJsii, +} diff --git a/packages/jsii/test/negatives/neg.double-interface-members-deeper.ts b/packages/jsii/test/negatives/neg.double-interface-members-deeper.ts index bfebb2015f..7190be0a71 100644 --- a/packages/jsii/test/negatives/neg.double-interface-members-deeper.ts +++ b/packages/jsii/test/negatives/neg.double-interface-members-deeper.ts @@ -1,15 +1,11 @@ -///!MATCH_ERROR: Interface declares same member as inherited interface: foo - export interface IA { foo(): void; } export interface IB extends IA { - bar(): void; + bar(): void; } export interface IC extends IB { foo(): void; } - - diff --git a/packages/jsii/test/negatives/neg.double-interface-members-method.ts b/packages/jsii/test/negatives/neg.double-interface-members-method.ts index 2d0dee3c44..90b33cc817 100644 --- a/packages/jsii/test/negatives/neg.double-interface-members-method.ts +++ b/packages/jsii/test/negatives/neg.double-interface-members-method.ts @@ -1,9 +1,6 @@ -///!MATCH_ERROR: Interface declares same member as inherited interface: foo - export interface IA { foo(): void; } export interface IB extends IA { foo(): void; } - diff --git a/packages/jsii/test/negatives/neg.double-interface-members.ts b/packages/jsii/test/negatives/neg.double-interface-members.ts index d15eedaabb..6862bded37 100644 --- a/packages/jsii/test/negatives/neg.double-interface-members.ts +++ b/packages/jsii/test/negatives/neg.double-interface-members.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Interface declares same member as inherited interface: foo - export interface A { foo: number; } diff --git a/packages/jsii/test/negatives/neg.enum-members.1.ts b/packages/jsii/test/negatives/neg.enum-members.1.ts index 5e3eae81a0..c303f93d8b 100644 --- a/packages/jsii/test/negatives/neg.enum-members.1.ts +++ b/packages/jsii/test/negatives/neg.enum-members.1.ts @@ -1,6 +1,4 @@ -///!MATCH_ERROR: Enum members must use ALL_CAPS: Goo - export enum MyEnum { - FOO, - Goo + FOO, + Goo, } diff --git a/packages/jsii/test/negatives/neg.enum-name.1.ts b/packages/jsii/test/negatives/neg.enum-name.1.ts index 6b7732ee76..4fb81db58f 100644 --- a/packages/jsii/test/negatives/neg.enum-name.1.ts +++ b/packages/jsii/test/negatives/neg.enum-name.1.ts @@ -1,6 +1,4 @@ -///!MATCH_ERROR: Type names must use PascalCase: myEnum - export enum myEnum { - FOO, - GOO + FOO, + GOO, } diff --git a/packages/jsii/test/negatives/neg.enum-name.2.ts b/packages/jsii/test/negatives/neg.enum-name.2.ts index 096cf4b267..e6ac3be88b 100644 --- a/packages/jsii/test/negatives/neg.enum-name.2.ts +++ b/packages/jsii/test/negatives/neg.enum-name.2.ts @@ -1,6 +1,4 @@ -///!MATCH_ERROR: Type names must use PascalCase: My_Enum - export enum My_Enum { - FOO, - GOO + FOO, + GOO, } diff --git a/packages/jsii/test/negatives/neg.expose-unexported-type-external.ts b/packages/jsii/test/negatives/neg.expose-unexported-type-external.ts index 00da931f53..6187a30c64 100644 --- a/packages/jsii/test/negatives/neg.expose-unexported-type-external.ts +++ b/packages/jsii/test/negatives/neg.expose-unexported-type-external.ts @@ -1,10 +1,8 @@ -///!MATCH_ERROR: Exported APIs cannot use un-exported type jsii.UnexportedType - // Attempt to expose an unexported type defined in another file should fial // because that type will not be available in the module spec. import { UnexportedType } from './mylib'; export class ExportedType { - public p?: UnexportedType; + public p?: UnexportedType; } diff --git a/packages/jsii/test/negatives/neg.expose-unexported-type-internal-in-namespace.ts b/packages/jsii/test/negatives/neg.expose-unexported-type-internal-in-namespace.ts index 4f35f327d7..825ee4268b 100644 --- a/packages/jsii/test/negatives/neg.expose-unexported-type-internal-in-namespace.ts +++ b/packages/jsii/test/negatives/neg.expose-unexported-type-internal-in-namespace.ts @@ -1,13 +1,10 @@ -///!MATCH_ERROR: Cannot use private type MyNamespace.UnexportedType in exported declarations - // Attempt to expose an unexported type defined in this file should fail // because that type will not be available in the module spec. namespace MyNamespace { - export class UnexportedType { - } + export class UnexportedType {} } export class ExportedType { - public p?: MyNamespace.UnexportedType; + public p?: MyNamespace.UnexportedType; } diff --git a/packages/jsii/test/negatives/neg.expose-unexported-type-internal.ts b/packages/jsii/test/negatives/neg.expose-unexported-type-internal.ts index eadab9e429..57270a153f 100644 --- a/packages/jsii/test/negatives/neg.expose-unexported-type-internal.ts +++ b/packages/jsii/test/negatives/neg.expose-unexported-type-internal.ts @@ -1,12 +1,8 @@ -///!MATCH_ERROR: Cannot use private type UnexportedType in exported declarations - // Attempt to expose an unexported type defined in this file should fail // because that type will not be available in the module spec. -class UnexportedType { - -} +class UnexportedType {} export class ExportedType { - public p?: UnexportedType; + public p?: UnexportedType; } diff --git a/packages/jsii/test/negatives/neg.expose-unexported-type-this.ts b/packages/jsii/test/negatives/neg.expose-unexported-type-this.ts new file mode 100644 index 0000000000..84cbd5db4f --- /dev/null +++ b/packages/jsii/test/negatives/neg.expose-unexported-type-this.ts @@ -0,0 +1,13 @@ +// Attempt to return "this" from a hidden base class + +abstract class HiddenBaseClass { + public returnsThis() { + return this; + } +} + +export class PublicClass extends HiddenBaseClass { + public constructor(public readonly boolean = true) { + super(); + } +} diff --git a/packages/jsii/test/negatives/neg.extend-struct.ts b/packages/jsii/test/negatives/neg.extend-struct.ts index 0dcb43b9a0..6c307ddcea 100644 --- a/packages/jsii/test/negatives/neg.extend-struct.ts +++ b/packages/jsii/test/negatives/neg.extend-struct.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Attempted to extend struct jsii.Struct from regular interface jsii.IIllegal - // Attempt to extend a Struct (aka data type) from a regular interface will fail. export interface Struct { readonly field: string; diff --git a/packages/jsii/test/negatives/neg.implement-struct.ts b/packages/jsii/test/negatives/neg.implement-struct.ts index 7276beca8c..f50b71174c 100644 --- a/packages/jsii/test/negatives/neg.implement-struct.ts +++ b/packages/jsii/test/negatives/neg.implement-struct.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Attempted to implement struct jsii.Struct from class jsii.Illegal - // Attempt to implement a Struct (aka data type) will fail. export interface Struct { readonly field: string; diff --git a/packages/jsii/test/negatives/neg.implementation-changes-types.1.ts b/packages/jsii/test/negatives/neg.implementation-changes-types.1.ts index 08bb19794f..65b5fe96b1 100644 --- a/packages/jsii/test/negatives/neg.implementation-changes-types.1.ts +++ b/packages/jsii/test/negatives/neg.implementation-changes-types.1.ts @@ -1,14 +1,12 @@ -///!MATCH_ERROR: jsii.Something#returnSomething changes the return type when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export interface ISomething { - returnSomething(): Superclass; + returnSomething(): Superclass; } export class Something implements ISomething { - public returnSomething(): Subclass { - return 5; - } + public returnSomething(): Subclass { + return 5; + } } diff --git a/packages/jsii/test/negatives/neg.implementation-changes-types.2.ts b/packages/jsii/test/negatives/neg.implementation-changes-types.2.ts index eb82aaa4bc..947e53dddd 100644 --- a/packages/jsii/test/negatives/neg.implementation-changes-types.2.ts +++ b/packages/jsii/test/negatives/neg.implementation-changes-types.2.ts @@ -1,14 +1,12 @@ -///!MATCH_ERROR: jsii.ISomethingElse#returnSomething changes the return type when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export interface ISomething { - returnSomething(): Superclass; + returnSomething(): Superclass; } export class ISomethingElse implements ISomething { - public returnSomething(): Subclass { - return new Subclass(); - } + public returnSomething(): Subclass { + return new Subclass(); + } } diff --git a/packages/jsii/test/negatives/neg.implementation-changes-types.3.ts b/packages/jsii/test/negatives/neg.implementation-changes-types.3.ts index 5902488f74..ab1e2dd32d 100644 --- a/packages/jsii/test/negatives/neg.implementation-changes-types.3.ts +++ b/packages/jsii/test/negatives/neg.implementation-changes-types.3.ts @@ -1,14 +1,12 @@ -///!MATCH_ERROR: jsii.Something#takeSomething changes type of argument _argument when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass - export class Superclass {} export class Subclass extends Superclass {} export interface ISomething { - takeSomething(argument: Superclass): void; + takeSomething(argument: Superclass): void; } export class Something implements ISomething { - public takeSomething(_argument: Subclass): void { - // Nothing - } + public takeSomething(_argument: Subclass): void { + // Nothing + } } diff --git a/packages/jsii/test/negatives/neg.implementation-changes-types.4.ts b/packages/jsii/test/negatives/neg.implementation-changes-types.4.ts index 6e1b25470f..0d3c9ad79e 100644 --- a/packages/jsii/test/negatives/neg.implementation-changes-types.4.ts +++ b/packages/jsii/test/negatives/neg.implementation-changes-types.4.ts @@ -1,12 +1,10 @@ -///!MATCH_ERROR: jsii.Something#something changes the type of property when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export interface ISomething { - something: Superclass; + something: Superclass; } export class Something implements ISomething { - public something: Subclass = new Subclass(); + public something: Subclass = new Subclass(); } diff --git a/packages/jsii/test/negatives/neg.implementation-changes-types.5.ts b/packages/jsii/test/negatives/neg.implementation-changes-types.5.ts index bd249d7c77..395d364a9b 100644 --- a/packages/jsii/test/negatives/neg.implementation-changes-types.5.ts +++ b/packages/jsii/test/negatives/neg.implementation-changes-types.5.ts @@ -1,18 +1,16 @@ -///!MATCH_ERROR: jsii.ISomethingElse#something changes the type of property when implementing jsii.ISomething (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export interface ISomething { - something: Superclass; + something: Superclass; } export interface ISomethingElse extends ISomething { - addUnrelatedMember: number; + addUnrelatedMember: number; } // Should still fail even though 2-level inheritance export class Something implements ISomethingElse { - public something: Subclass = new Subclass(); - public addUnrelatedMember: number = 1; + public something: Subclass = new Subclass(); + public addUnrelatedMember: number = 1; } diff --git a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.1.ts b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.1.ts index 074f252d80..8371bf6a10 100644 --- a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.1.ts +++ b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#method changes the optionality of paramerter _optional when overriding jsii.AbstractClass (expected true, found false) - // Attempt to change optionality of method parameter export abstract class AbstractClass { public abstract method(required: string, optional?: number): void; diff --git a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.2.ts b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.2.ts index 339e2af13a..7e756b2926 100644 --- a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.2.ts +++ b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#method changes the optionality of paramerter _optional when overriding jsii.ParentClass (expected true, found false) - // Attempt to change optionality of method parameter export class ParentClass { public method(_required: string, _optional?: number): void { diff --git a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.ts b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.ts index a74446855f..ce03d1a737 100644 --- a/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.ts +++ b/packages/jsii/test/negatives/neg.implementing-method-changes-optionality.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#method changes the optionality of paramerter _optional when implementing jsii.IInterface (expected true, found false) - // Attempt to change optionality of method parameter export interface IInterface { method(required: string, optional?: number): void; diff --git a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.1.ts b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.1.ts index 2ec19a1b65..7e599c7409 100644 --- a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.1.ts +++ b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#property changes optionality of property when overriding jsii.AbstractClass - // Attempt to change optionality of method parameter export abstract class AbstractClass { public abstract property?: string; diff --git a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.2.ts b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.2.ts index 6ff5c4ec36..6610056884 100644 --- a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.2.ts +++ b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#property changes optionality of property when overriding jsii.ParentClass - // Attempt to change optionality of method parameter export class ParentClass { public property?: string = undefined; diff --git a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.ts b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.ts index 469ab2cd69..20c04d7370 100644 --- a/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.ts +++ b/packages/jsii/test/negatives/neg.implementing-property-changes-optionality.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: jsii.Implementor#property changes optionality of property when implementing jsii.IInterface - // Attempt to change optionality of method parameter export interface IInterface { property?: string; diff --git a/packages/jsii/test/negatives/neg.implements-class.ts b/packages/jsii/test/negatives/neg.implements-class.ts index 225708a81b..ca6ce620b6 100644 --- a/packages/jsii/test/negatives/neg.implements-class.ts +++ b/packages/jsii/test/negatives/neg.implements-class.ts @@ -1,14 +1,12 @@ -///!MATCH_ERROR: Inheritance clause of jsii.TryingToImplementClass uses jsii.NotAnInterface as an interface - export class NotAnInterface { - public meaningOfTheUniverse() { - return 42; - } + public meaningOfTheUniverse() { + return 42; + } } // While valid typescript, this is illegal in the vast majority of languages export class TryingToImplementClass implements NotAnInterface { - public meaningOfTheUniverse() { - return 1337; - } + public meaningOfTheUniverse() { + return 1337; + } } diff --git a/packages/jsii/test/negatives/neg.inheritance-changes-types.1.ts b/packages/jsii/test/negatives/neg.inheritance-changes-types.1.ts index 87e6757ed2..34e4c438b2 100644 --- a/packages/jsii/test/negatives/neg.inheritance-changes-types.1.ts +++ b/packages/jsii/test/negatives/neg.inheritance-changes-types.1.ts @@ -1,16 +1,14 @@ -///!MATCH_ERROR: jsii.SomethingSpecific#returnSomething changes the return type when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export class Something { - public returnSomething(): Superclass { - return new Superclass(); - } + public returnSomething(): Superclass { + return new Superclass(); + } } export class SomethingSpecific extends Something { - public returnSomething(): Subclass { - return 5; - } + public returnSomething(): Subclass { + return 5; + } } diff --git a/packages/jsii/test/negatives/neg.inheritance-changes-types.2.ts b/packages/jsii/test/negatives/neg.inheritance-changes-types.2.ts index 94ad417df5..5c8cc2660d 100644 --- a/packages/jsii/test/negatives/neg.inheritance-changes-types.2.ts +++ b/packages/jsii/test/negatives/neg.inheritance-changes-types.2.ts @@ -1,16 +1,14 @@ -///!MATCH_ERROR: jsii.SomethingSpecific#returnSomething changes the return type when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export class Something { - public returnSomething(): Superclass { - return new Superclass(); - } + public returnSomething(): Superclass { + return new Superclass(); + } } export class SomethingSpecific extends Something { - public returnSomething(): Subclass { - return new Subclass(); - } + public returnSomething(): Subclass { + return new Subclass(); + } } diff --git a/packages/jsii/test/negatives/neg.inheritance-changes-types.3.ts b/packages/jsii/test/negatives/neg.inheritance-changes-types.3.ts index c03ef34ae7..49168b1266 100644 --- a/packages/jsii/test/negatives/neg.inheritance-changes-types.3.ts +++ b/packages/jsii/test/negatives/neg.inheritance-changes-types.3.ts @@ -1,16 +1,14 @@ -///!MATCH_ERROR: jsii.SomethingSpecific#takeSomething changes type of argument _argument when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass - export class Superclass {} export class Subclass extends Superclass {} export class Something { - public takeSomething(_argument: Superclass): void { - // Nothing - } + public takeSomething(_argument: Superclass): void { + // Nothing + } } export class SomethingSpecific extends Something { - public takeSomething(_argument: Subclass): void { - // Nothing - } + public takeSomething(_argument: Subclass): void { + // Nothing + } } diff --git a/packages/jsii/test/negatives/neg.inheritance-changes-types.4.ts b/packages/jsii/test/negatives/neg.inheritance-changes-types.4.ts index 0fa29aa081..ecad08428a 100644 --- a/packages/jsii/test/negatives/neg.inheritance-changes-types.4.ts +++ b/packages/jsii/test/negatives/neg.inheritance-changes-types.4.ts @@ -1,12 +1,10 @@ -///!MATCH_ERROR: jsii.SomethingSpecific#something changes the type of property when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export class Something { - public something: Superclass; + public something = new Superclass(); } export class SomethingSpecific extends Something { - public something: Subclass = new Subclass(); + public something: Subclass = new Subclass(); } diff --git a/packages/jsii/test/negatives/neg.inheritance-changes-types.5.ts b/packages/jsii/test/negatives/neg.inheritance-changes-types.5.ts index 5b55e4d00a..2ace670740 100644 --- a/packages/jsii/test/negatives/neg.inheritance-changes-types.5.ts +++ b/packages/jsii/test/negatives/neg.inheritance-changes-types.5.ts @@ -1,18 +1,16 @@ -///!MATCH_ERROR: jsii.SomethingElse#something changes the type of property when overriding jsii.Something (expected jsii.Superclass, found jsii.Subclass) - export class Superclass {} export class Subclass extends Superclass {} export class Something { - public something: Superclass; + public something: Superclass = new Superclass(); } export class SomethingElse extends Something { - public addUnrelatedMember: number; + public addUnrelatedMember: number = 3; } // Should still fail even though 2-level inheritance export class SomethingDifferent extends SomethingElse { - public something: Subclass = new Subclass(); - public addUnrelatedMember: number = 1; + public something: Subclass = new Subclass(); + public addUnrelatedMember: number = 1; } diff --git a/packages/jsii/test/negatives/neg.internal-underscore-class.5.ts b/packages/jsii/test/negatives/neg.internal-underscore-class.5.ts index f6e220556c..9524f29799 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-class.5.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-class.5.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: the name of members marked as @internal must begin with an underscore - export class MyClass { /** @internal */ public propertyWithInternalButNotUnderscorePrefix?: string; diff --git a/packages/jsii/test/negatives/neg.internal-underscore-class.6.ts b/packages/jsii/test/negatives/neg.internal-underscore-class.6.ts index 0f96a89f5e..3b59e3922a 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-class.6.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-class.6.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: members with names that begin with an underscore must be marked as @internal via a JSDoc tag - export class MyClass { public _propertyWithUnderscoreButNoInternal?: string; } diff --git a/packages/jsii/test/negatives/neg.internal-underscore-class.7.ts b/packages/jsii/test/negatives/neg.internal-underscore-class.7.ts index 43f4ecb8eb..a92955307b 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-class.7.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-class.7.ts @@ -1,6 +1,6 @@ -///!MATCH_ERROR: the name of members marked as @internal must begin with an underscore - export class MyClass { /** @internal */ - public methodWithInternalButNoUnderscore(): string { return 'hi'; } + public methodWithInternalButNoUnderscore(): string { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.internal-underscore-class.8.ts b/packages/jsii/test/negatives/neg.internal-underscore-class.8.ts index e7b5afd433..4582d4b585 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-class.8.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-class.8.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: members with names that begin with an underscore must be marked as @internal via a JSDoc tag - export interface IMyInterface { - _methodWithUnderscoreButNoInternal(); + _methodWithUnderscoreButNoInternal(): void; } diff --git a/packages/jsii/test/negatives/neg.internal-underscore-interface.1.ts b/packages/jsii/test/negatives/neg.internal-underscore-interface.1.ts index 9edd58ae90..aaa6036003 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-interface.1.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-interface.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: the name of members marked as @internal must begin with an underscore - export interface IMyInterface { /** @internal */ propertyWithInternalButNotUnderscorePrefix: string; diff --git a/packages/jsii/test/negatives/neg.internal-underscore-interface.2.ts b/packages/jsii/test/negatives/neg.internal-underscore-interface.2.ts index f025d1d9b1..792a0c4e64 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-interface.2.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-interface.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: members with names that begin with an underscore must be marked as @internal via a JSDoc tag - export interface IMyInterface { _propertyWithUnderscoreButNoInternal: string; } diff --git a/packages/jsii/test/negatives/neg.internal-underscore-interface.3.ts b/packages/jsii/test/negatives/neg.internal-underscore-interface.3.ts index 62a744501c..2ec5c13221 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-interface.3.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-interface.3.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: the name of members marked as @internal must begin with an underscore - export interface IMyInterface { /** @internal */ methodWithInternalButNoUnderscore(): string; diff --git a/packages/jsii/test/negatives/neg.internal-underscore-interface.4.ts b/packages/jsii/test/negatives/neg.internal-underscore-interface.4.ts index 8d33518242..cef0748026 100644 --- a/packages/jsii/test/negatives/neg.internal-underscore-interface.4.ts +++ b/packages/jsii/test/negatives/neg.internal-underscore-interface.4.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: members with names that begin with an underscore must be marked as @internal via a JSDoc tag - export class MyClass { public _methodWithUnderscoreButNoInternal() { return; diff --git a/packages/jsii/test/negatives/neg.method-name.1.ts b/packages/jsii/test/negatives/neg.method-name.1.ts index 904d6afed6..ac2a4b1e8e 100644 --- a/packages/jsii/test/negatives/neg.method-name.1.ts +++ b/packages/jsii/test/negatives/neg.method-name.1.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: METHOD - export class MyClass { - public METHOD() { - return "hi"; - } + public METHOD() { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.method-name.2.ts b/packages/jsii/test/negatives/neg.method-name.2.ts index 1afff6517d..ed97c29bdd 100644 --- a/packages/jsii/test/negatives/neg.method-name.2.ts +++ b/packages/jsii/test/negatives/neg.method-name.2.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: hello_world - export class MyClass { - public hello_world() { - return "hi"; - } + public hello_world() { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.method-name.3.ts b/packages/jsii/test/negatives/neg.method-name.3.ts index 280f233b81..2bfcee43f6 100644 --- a/packages/jsii/test/negatives/neg.method-name.3.ts +++ b/packages/jsii/test/negatives/neg.method-name.3.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Methods and properties cannot have names like getXxx() - those conflict with Java property getters by the same name - export class MyClass { - public getFoo() { - return "hi"; - } + public getFoo() { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.method-name.4.ts b/packages/jsii/test/negatives/neg.method-name.4.ts index b0334729fc..7135900a04 100644 --- a/packages/jsii/test/negatives/neg.method-name.4.ts +++ b/packages/jsii/test/negatives/neg.method-name.4.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Methods and properties cannot have names like setXxx() - those conflict with Java property setters by the same name - export class MyClass { - public setFoo(_value: string) { - return "hi"; - } + public setFoo(_value: string) { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.mix-datatype-and-arg-name.ts b/packages/jsii/test/negatives/neg.mix-datatype-and-arg-name.ts index 243ebd5a69..ed35dc8269 100644 --- a/packages/jsii/test/negatives/neg.mix-datatype-and-arg-name.ts +++ b/packages/jsii/test/negatives/neg.mix-datatype-and-arg-name.ts @@ -1,8 +1,6 @@ -///!MATCH_ERROR: Name occurs in both function arguments and in datatype properties, rename one: dontWorry - export interface Lyrics { - dontWorry: string; - beHappy: string; + readonly dontWorry: string; + readonly beHappy: string; } export class MyClass { @@ -12,4 +10,4 @@ export class MyClass { public dance(dontWorry: string, lyrics: Lyrics) { return `${dontWorry}: ${lyrics.beHappy}`; } -} \ No newline at end of file +} diff --git a/packages/jsii/test/negatives/neg.mutable-datatype.ts b/packages/jsii/test/negatives/neg.mutable-datatype.ts index 58bdb689f9..17e7a9b227 100644 --- a/packages/jsii/test/negatives/neg.mutable-datatype.ts +++ b/packages/jsii/test/negatives/neg.mutable-datatype.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: The property 'notOkay' in data type 'DataType' must be 'readonly' since data is passed by-value - export interface DataType { readonly okay: string; notOkay: number; // properties should be "readonly" diff --git a/packages/jsii/test/negatives/neg.non-optional-after-optional-ctor.ts b/packages/jsii/test/negatives/neg.non-optional-after-optional-ctor.ts index bb320ef620..8bcd05c7f6 100644 --- a/packages/jsii/test/negatives/neg.non-optional-after-optional-ctor.ts +++ b/packages/jsii/test/negatives/neg.non-optional-after-optional-ctor.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Parameter _arg2 cannot be optional, as it precedes non-optional parameter _arg3 - export class NonOptionalAfterOptional { - constructor(_arg1: string, _arg2 = 'hello', _arg3: string) { - return; - } + constructor(_arg1: string, _arg2 = 'hello', _arg3: string) { + return; + } } diff --git a/packages/jsii/test/negatives/neg.non-optional-after-optional-method.ts b/packages/jsii/test/negatives/neg.non-optional-after-optional-method.ts index 25e8f0bb7d..222a1370e5 100644 --- a/packages/jsii/test/negatives/neg.non-optional-after-optional-method.ts +++ b/packages/jsii/test/negatives/neg.non-optional-after-optional-method.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Parameter _arg2 cannot be optional, as it precedes non-optional parameter _argX - export class NonOptionalAfterOptional { - public foo(_arg1: string, _arg2 = 'hello', _argX: string, _arg4?: boolean) { - return; - } + public foo(_arg1: string, _arg2 = 'hello', _argX: string, _arg4?: boolean) { + return; + } } diff --git a/packages/jsii/test/negatives/neg.omit.1.ts b/packages/jsii/test/negatives/neg.omit.1.ts index 694b3416a7..4627ca8dad 100644 --- a/packages/jsii/test/negatives/neg.omit.1.ts +++ b/packages/jsii/test/negatives/neg.omit.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Illegal "extends" value for an exported API - export interface FooBar { readonly foo: string; readonly bar: string; diff --git a/packages/jsii/test/negatives/neg.omit.2.ts b/packages/jsii/test/negatives/neg.omit.2.ts index 9ac411f164..20fe33b89f 100644 --- a/packages/jsii/test/negatives/neg.omit.2.ts +++ b/packages/jsii/test/negatives/neg.omit.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Illegal "implements" value for an exported API - export interface FooBar { readonly foo: string; readonly bar: string; diff --git a/packages/jsii/test/negatives/neg.omit.3.ts b/packages/jsii/test/negatives/neg.omit.3.ts index 80da33d44c..a9dc0e21a5 100644 --- a/packages/jsii/test/negatives/neg.omit.3.ts +++ b/packages/jsii/test/negatives/neg.omit.3.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Only string-indexed map types are supported - export interface FooBar { readonly foo: string; readonly bar: string; diff --git a/packages/jsii/test/negatives/neg.omit.4.ts b/packages/jsii/test/negatives/neg.omit.4.ts index b8365c48a8..1051cbc64e 100644 --- a/packages/jsii/test/negatives/neg.omit.4.ts +++ b/packages/jsii/test/negatives/neg.omit.4.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Only string-indexed map types are supported - export interface FooBar { readonly foo: string; readonly bar: string; diff --git a/packages/jsii/test/negatives/neg.property-name.1.ts b/packages/jsii/test/negatives/neg.property-name.1.ts index 97bb30e64a..2c78658577 100644 --- a/packages/jsii/test/negatives/neg.property-name.1.ts +++ b/packages/jsii/test/negatives/neg.property-name.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: PROP - export class MyClass { - public PROP?: number; + public PROP?: number; } diff --git a/packages/jsii/test/negatives/neg.property-name.2.ts b/packages/jsii/test/negatives/neg.property-name.2.ts index 43e07eeec0..8bf905b004 100644 --- a/packages/jsii/test/negatives/neg.property-name.2.ts +++ b/packages/jsii/test/negatives/neg.property-name.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: my_Prop - export class MyClass { - public my_Prop?: number; + public my_Prop?: number; } diff --git a/packages/jsii/test/negatives/neg.property-name.3.ts b/packages/jsii/test/negatives/neg.property-name.3.ts index 94f4fb0fd1..1b979db1e1 100644 --- a/packages/jsii/test/negatives/neg.property-name.3.ts +++ b/packages/jsii/test/negatives/neg.property-name.3.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Methods and properties cannot have names like getXxx() - those conflict with Java property getters by the same name - export class MyClass { - public getFoo?: number; + public getFoo?: number; } diff --git a/packages/jsii/test/negatives/neg.reserved.emits-warning.ts b/packages/jsii/test/negatives/neg.reserved.emits-warning.ts index f85a874575..1e84a02292 100644 --- a/packages/jsii/test/negatives/neg.reserved.emits-warning.ts +++ b/packages/jsii/test/negatives/neg.reserved.emits-warning.ts @@ -1,13 +1,8 @@ ///!STRICT! -///!MATCH_ERROR: 'None' is a reserved word in Python. -///!MATCH_ERROR: 'assert' is a reserved word in Java, Python. -///!MATCH_ERROR: 'do' is a reserved word in C#, Java. -///!MATCH_ERROR: 'internal' is a reserved word in C#. - export class None { public readonly do: boolean = true; - public assert(internal: boolean): void { + public assert(_internal: boolean): void { throw new Error(); } } diff --git a/packages/jsii/test/negatives/neg.static-const-name.ts b/packages/jsii/test/negatives/neg.static-const-name.ts index 31fa921f16..5dd63e1c2e 100644 --- a/packages/jsii/test/negatives/neg.static-const-name.ts +++ b/packages/jsii/test/negatives/neg.static-const-name.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Static constant names must use TRUMP_CASE, PascalCase or camelCase: snake_case - export class MyClass { - static readonly snake_case = 123; + static readonly snake_case = 123; } diff --git a/packages/jsii/test/negatives/neg.static-member-mixing.1.ts b/packages/jsii/test/negatives/neg.static-member-mixing.1.ts index 3116d61a04..373112595a 100644 --- a/packages/jsii/test/negatives/neg.static-member-mixing.1.ts +++ b/packages/jsii/test/negatives/neg.static-member-mixing.1.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: non-static member 'funFunction' of class 'Sub' conflicts with static member in ancestor 'SuperDuper' - export class SuperDuper { public static funFunction() { // Empty @@ -14,4 +12,4 @@ export class Sub extends Super { public funFunction() { // Oops } -} \ No newline at end of file +} diff --git a/packages/jsii/test/negatives/neg.static-member-mixing.2.ts b/packages/jsii/test/negatives/neg.static-member-mixing.2.ts index 82370197d3..f31bcc850d 100644 --- a/packages/jsii/test/negatives/neg.static-member-mixing.2.ts +++ b/packages/jsii/test/negatives/neg.static-member-mixing.2.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: member 'funFunction' of class 'TheClass' cannot be declared both statically and non-statically - export class TheClass { public static funFunction() { // Empty @@ -8,4 +6,4 @@ export class TheClass { public funFunction() { // Empty } -} \ No newline at end of file +} diff --git a/packages/jsii/test/negatives/neg.static-method-name.1.ts b/packages/jsii/test/negatives/neg.static-method-name.1.ts index 4e90570bac..a6a77d1dcb 100644 --- a/packages/jsii/test/negatives/neg.static-method-name.1.ts +++ b/packages/jsii/test/negatives/neg.static-method-name.1.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: MethodIsNotCamelCase - export class MyClass { - MethodIsNotCamelCase() { - return "hi"; - } + MethodIsNotCamelCase() { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.static-method-name.ts b/packages/jsii/test/negatives/neg.static-method-name.ts index 2d07c4eeee..f3237f9302 100644 --- a/packages/jsii/test/negatives/neg.static-method-name.ts +++ b/packages/jsii/test/negatives/neg.static-method-name.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: METHOD - export class MyClass { - METHOD() { - return "hi"; - } + METHOD() { + return 'hi'; + } } diff --git a/packages/jsii/test/negatives/neg.static-prop-name.1.ts b/packages/jsii/test/negatives/neg.static-prop-name.1.ts index a576492047..9ad726d104 100644 --- a/packages/jsii/test/negatives/neg.static-prop-name.1.ts +++ b/packages/jsii/test/negatives/neg.static-prop-name.1.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: Prop - export class MyClass { - static get Prop() { - return 123; - } + static get Prop() { + return 123; + } } diff --git a/packages/jsii/test/negatives/neg.static-prop-name.2.ts b/packages/jsii/test/negatives/neg.static-prop-name.2.ts index b22b20a14a..2d51f9f9ee 100644 --- a/packages/jsii/test/negatives/neg.static-prop-name.2.ts +++ b/packages/jsii/test/negatives/neg.static-prop-name.2.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Method and non-static non-readonly property names must use camelCase: PROP - export class MyClass { - static get PROP() { - return 123; - } + static get PROP() { + return 123; + } } diff --git a/packages/jsii/test/negatives/neg.struct-extends-interface.ts b/packages/jsii/test/negatives/neg.struct-extends-interface.ts index 04e152eba9..d1c99342bb 100644 --- a/packages/jsii/test/negatives/neg.struct-extends-interface.ts +++ b/packages/jsii/test/negatives/neg.struct-extends-interface.ts @@ -1,5 +1,3 @@ -///!MATCH_ERROR: Interface contains behavior: name should be "IStruct" - // Attempt to extend an interface from a struct (aka data type) export interface IInterface { readonly field: string; diff --git a/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts b/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts index b92063f8e3..48427628aa 100644 --- a/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts +++ b/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts @@ -1,7 +1,5 @@ -///!MATCH_ERROR: Submodule "ns1" conflicts with "Ns1". - export * as ns1 from './namespaced'; export class Ns1 { - private constructor() { } + private constructor() {} } diff --git a/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts index 61b34bd37c..807d747553 100644 --- a/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts +++ b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts @@ -1,4 +1,2 @@ -///!MATCH_ERROR: Symbol is re-exported under two distinct submodules - export * as ns1 from './namespaced'; export * as ns2 from './namespaced'; diff --git a/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts b/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts index 0b2d93899c..6cda27662c 100644 --- a/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts +++ b/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts @@ -1,3 +1 @@ -///!MATCH_ERROR: Submodule namespaces must be camelCased or snake_cased. Consider renaming to "ns1" - export * as Ns1 from './namespaced'; From 5431262a1b0ad47315c732bbf0028d6c0dc65057 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 10 Aug 2020 16:55:38 +0200 Subject: [PATCH 12/45] chore: fix mergify configuration (#1865) The Python test matcher was not working because Python is currently last in the test chain, and hence the version is not followed by a white space. --- .mergify/config.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.mergify/config.yml b/.mergify/config.yml index 8fc821ee23..21aad1efb1 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -43,9 +43,9 @@ pull_request_rules: - status-success~=^Test \(.* java 8 .*$ - status-success~=^Test \(.* java 11 .*$ # One test for Python 3.6, 3.7, and 3.8 - - status-success~=^Test \(.* python 3\.6 .*$ - - status-success~=^Test \(.* python 3\.7 .*$ - - status-success~=^Test \(.* python 3\.8 .*$ + - status-success~=^Test \(.* python 3\.6[ )].*$ + - status-success~=^Test \(.* python 3\.7[ )].*$ + - status-success~=^Test \(.* python 3\.8[ )].*$ - name: Synchronize that PR to upstream and merge it (squash) actions: @@ -88,9 +88,9 @@ pull_request_rules: - status-success~=^Test \(.* java 8 .*$ - status-success~=^Test \(.* java 11 .*$ # One test for Python 3.6, 3.7, and 3.8 - - status-success~=^Test \(.* python 3\.6 .*$ - - status-success~=^Test \(.* python 3\.7 .*$ - - status-success~=^Test \(.* python 3\.8 .*$ + - status-success~=^Test \(.* python 3\.6[ )].*$ + - status-success~=^Test \(.* python 3\.7[ )].*$ + - status-success~=^Test \(.* python 3\.8[ )].*$ - name: Synchronize that PR to upstream and merge it (no-squash) actions: @@ -133,9 +133,9 @@ pull_request_rules: - status-success~=^Test \(.* java 8 .*$ - status-success~=^Test \(.* java 11 .*$ # One test for Python 3.6, 3.7, and 3.8 - - status-success~=^Test \(.* python 3\.6 .*$ - - status-success~=^Test \(.* python 3\.7 .*$ - - status-success~=^Test \(.* python 3\.8 .*$ + - status-success~=^Test \(.* python 3\.6[ )].*$ + - status-success~=^Test \(.* python 3\.7[ )].*$ + - status-success~=^Test \(.* python 3\.8[ )].*$ - name: Clean branch up actions: From 2b9d07cf6d812c4df42d40a9b9b05803a5e87868 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 10 Aug 2020 17:23:40 +0200 Subject: [PATCH 13/45] chore: stop running generated Python though `black` (#1864) Running `black` on the generated source is slow... And generating *properly* formatted code is faster. This removes `black` invocations and instead tries to generate Python that is closer to the prescriptions of PEP8 (more specifically, closer to the output of `black`). There are some minor changes introduced by this change in the generated Python files, compared to when `black` was post-processing, which are hopefully acceptable degradations: - Some long type signatures are single-lined now where `black` would have broken them down into multiple lines. Reproducing the `black` behavior is too close to requiring a full blown python parser. - Certain lines that `black` chose not to break down into multiple lines are now split. I could not understand the mechanisms `black` uses to make it's choice and decided the broken down lines are readable enough. - Some `pass` statements used to be generated in proxies when there were no members, although there existed a synthetic member. Those statements were not sparking joy and were gently disposed of. - Alphanumerically ordered elements in piecemeal import declarations, so as to reduce the likelyhood of fake changes if the order of processing changes (resulting in a different creation/registration order). Fixes #1856 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/codemaker/lib/codemaker.ts | 28 +- packages/jsii-pacmak/lib/targets/python.ts | 574 ++++++++++++------ packages/jsii-pacmak/package.json | 10 +- ....test.js.snap => jsii-pacmak.test.ts.snap} | 109 ++-- packages/jsii-pacmak/test/jsii-pacmak.test.ts | 2 +- .../jsii-pacmak/test/targets/python.test.ts | 151 ----- yarn.lock | 90 +-- 7 files changed, 503 insertions(+), 461 deletions(-) rename packages/jsii-pacmak/test/__snapshots__/{jsii-pacmak.test.js.snap => jsii-pacmak.test.ts.snap} (99%) delete mode 100644 packages/jsii-pacmak/test/targets/python.test.ts diff --git a/packages/codemaker/lib/codemaker.ts b/packages/codemaker/lib/codemaker.ts index 9e50dd1766..2ecb1183d3 100644 --- a/packages/codemaker/lib/codemaker.ts +++ b/packages/codemaker/lib/codemaker.ts @@ -16,6 +16,10 @@ export class CodeMaker { private readonly files = new Array(); private readonly excludes = new Array(); + public get currentIndentLength(): number { + return this.currIndent * this.indentation; + } + /** * Formats an block open statement. */ @@ -24,7 +28,7 @@ export class CodeMaker { /** * Formats a block close statement. */ - public closeBlockFormatter: (s?: string) => string = () => '}'; + public closeBlockFormatter: (s?: string) => string | false = () => '}'; /** * Saves all the files created in this code maker. @@ -102,7 +106,7 @@ export class CodeMaker { /** * Same as `close`. */ - public unindent(textAfter?: string) { + public unindent(textAfter?: string | false) { this.close(textAfter); } @@ -118,10 +122,14 @@ export class CodeMaker { /** * Decreases the indentation level by `indentation` for the next line. * @param textAfter Text to emit in the line after indentation was decreased. + * If `false` no line will be emitted at all, but the indent + * counter will be decremented. */ - public close(textAfter?: string) { + public close(textAfter?: string | false) { this.currIndent--; - this.line(textAfter); + if (textAfter !== false) { + this.line(textAfter); + } } /** @@ -170,13 +178,11 @@ export class CodeMaker { return caseutils.toSnakeCase(s, sep); } - private makeIndent() { - let spaces = ''; - for (let i = 0; i < this.currIndent; ++i) { - for (let j = 0; j < this.indentation; ++j) { - spaces += ' '; - } + private makeIndent(): string { + const length = this.currentIndentLength; + if (length <= 0) { + return ''; } - return spaces; + return ' '.repeat(length); } } diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 16e6feb547..49d61ccf54 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -1,13 +1,10 @@ import * as spec from '@jsii/spec'; import { CodeMaker, toSnakeCase } from 'codemaker'; import * as escapeStringRegexp from 'escape-string-regexp'; -import * as fs from 'fs-extra'; import * as reflect from 'jsii-reflect'; -import * as lockfile from 'lockfile'; -import * as os from 'os'; import * as path from 'path'; import { Generator, GeneratorOptions } from '../generator'; -import { info, warn } from '../logging'; +import { warn } from '../logging'; import { md2rst } from '../markdown'; import { Target, TargetOptions } from '../target'; import { shell } from '../util'; @@ -33,11 +30,7 @@ import { die, toPythonIdentifier } from './python/util'; // eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-require-imports const spdxLicenseList = require('spdx-license-list'); -const VENV_BIN = process.platform === 'win32' ? 'Scripts' : 'bin'; - export default class Python extends Target { - private static BLACK_PATH?: Promise; - protected readonly generator: PythonGenerator; public constructor(options: TargetOptions) { @@ -48,16 +41,6 @@ export default class Python extends Target { public async generateCode(outDir: string, tarball: string): Promise { await super.generateCode(outDir, tarball); - - // Using a static variable as a lock to prevent racing. Since blackPath() uses - // Promise APIs from fs and os modules (that use libuv), an additional lock is required. - if (Python.BLACK_PATH === undefined) { - Python.BLACK_PATH = this.blackPath(); - } - // We'll just run "black" on that now, to make the generated code a little more readable. - await shell(await Python.BLACK_PATH, ['--py36', outDir], { - cwd: outDir, - }); } public async build(sourceDir: string, outDir: string): Promise { @@ -79,60 +62,6 @@ export default class Python extends Target { ); } } - - private async blackPath(): Promise { - if (await isPresent('black')) { - return 'black'; - } - - const blackInstallDir = path.join( - os.homedir(), - '.jsii-cache', - 'python-black', - ); - const venvRoot = path.join(blackInstallDir, 'venv'); - const black = path.join(venvRoot, VENV_BIN, 'black'); - - await fs.mkdirp(blackInstallDir); - const lockFile = path.join(blackInstallDir, 'busy.lock'); - - await lock(lockFile); - - try { - const existing = await cachedBlackPath(); - if (existing != null) { - return existing; - } - - info( - `No existing black installations. install afresh at ${blackInstallDir}...`, - ); - - await shell('python3', ['-m', 'venv', venvRoot], { - cwd: blackInstallDir, - }); - await shell( - path.join(venvRoot, VENV_BIN, 'pip'), - ['install', '--no-input', 'black'], - { cwd: blackInstallDir }, - ); - } finally { - await unlock(lockFile); - } - - return (await cachedBlackPath())!; - - async function cachedBlackPath() { - const suffixes = process.platform === 'win32' ? ['.exe', '.bat'] : ['']; - for (const suffix of suffixes) { - // eslint-disable-next-line no-await-in-loop - if (await fs.pathExists(`${black}${suffix}`)) { - return `${black}${suffix}`; - } - } - return undefined; - } - } } // Approximating existence check using `which`, falling back on `pip3 show`. @@ -307,6 +236,7 @@ interface PythonTypeOpts { abstract class BasePythonClassType implements PythonType, ISortableType { protected bases: spec.TypeReference[]; protected members: PythonBase[]; + protected readonly separateMembers: boolean = true; public constructor( protected readonly generator: PythonGenerator, @@ -369,21 +299,29 @@ abstract class BasePythonClassType implements PythonType, ISortableType { context = { ...context, nestingScope: this.fqn! }; const classParams = this.getClassParams(context); - const bases = classParams.length > 0 ? `(${classParams.join(', ')})` : ''; + openSignature(code, 'class', this.pythonName, classParams); - code.openBlock(`class ${this.pythonName}${bases}`); this.generator.emitDocString(code, this.docs, { documentableItem: `class-${this.pythonName}`, + trailingNewLine: true, }); - this.emitPreamble(code, context); + const preamble = this.emitPreamble; + if (preamble) { + preamble(code, context); + } if (this.members.length > 0) { const resolver = this.boundResolver(context.resolver); + let shouldSeparate = preamble != null; for (const member of sortMembers(this.members, resolver)) { + if (shouldSeparate) { + code.line(); + } + shouldSeparate = this.separateMembers; member.emit(code, { ...context, resolver }); } - } else { + } else if (!preamble) { code.line('pass'); } @@ -399,9 +337,10 @@ abstract class BasePythonClassType implements PythonType, ISortableType { protected abstract getClassParams(context: EmitContext): string[]; - protected emitPreamble(_code: CodeMaker, _context: EmitContext) { - return; - } + protected abstract readonly emitPreamble?: ( + code: CodeMaker, + context: EmitContext, + ) => void; } interface BaseMethodOpts { @@ -505,7 +444,7 @@ abstract class BaseMethod implements PythonBase { ); const paramType = toTypeName(param).pythonType(context); - const paramDefault = param.optional ? '=None' : ''; + const paramDefault = param.optional ? ' = None' : ''; pythonParams.push(`${paramName}: ${paramType}${paramDefault}`); } @@ -537,7 +476,7 @@ abstract class BaseMethod implements PythonBase { for (const prop of liftedProperties) { const paramName = toPythonParameterName(prop.name); const paramType = toTypeName(prop).pythonType(context); - const paramDefault = prop.optional ? '=None' : ''; + const paramDefault = prop.optional ? ' = None' : ''; pythonParams.push(`${paramName}: ${paramType}${paramDefault}`); } @@ -580,8 +519,13 @@ abstract class BaseMethod implements PythonBase { ), ); - code.openBlock( - `def ${this.pythonName}(${pythonParams.join(', ')}) -> ${returnType}`, + openSignature( + code, + 'def', + this.pythonName, + pythonParams, + false, + returnType, ); this.generator.emitDocString(code, this.docs, { arguments: documentableArgs, @@ -646,7 +590,7 @@ abstract class BaseMethod implements PythonBase { .map((p) => p.pythonName) .map((v) => `${v}=${v}`); - code.line(`${argName} = ${typeName}(${assignments.join(', ')})`); + assignCallResult(code, argName, typeName, assignments); code.line(); } @@ -773,8 +717,13 @@ abstract class BaseProperty implements PythonBase { if (renderAbstract && this.abstract) { code.line('@abc.abstractmethod'); } - code.openBlock( - `def ${this.pythonName}(${this.implicitParameter}) -> ${pythonType}`, + openSignature( + code, + 'def', + this.pythonName, + [this.implicitParameter], + true, + pythonType, ); this.generator.emitDocString(code, this.docs, { documentableItem: `prop-${this.pythonName}`, @@ -792,12 +741,18 @@ abstract class BaseProperty implements PythonBase { code.closeBlock(); if (!this.immutable) { + code.line(); code.line(`@${this.pythonName}.setter`); if (renderAbstract && this.abstract) { code.line('@abc.abstractmethod'); } - code.openBlock( - `def ${this.pythonName}(${this.implicitParameter}, value: ${pythonType}) -> None`, + openSignature( + code, + 'def', + this.pythonName, + [this.implicitParameter, `value: ${pythonType}`], + false, + 'None', ); if ( (this.shouldEmitBody || forceEmitBody) && @@ -817,11 +772,14 @@ abstract class BaseProperty implements PythonBase { class Interface extends BasePythonClassType { public emit(code: CodeMaker, context: EmitContext) { context = { ...context, nestingScope: this.fqn! }; - code.line(`@jsii.interface(jsii_type="${this.fqn}")`); + emitList(code, '@jsii.interface(', [`jsii_type="${this.fqn}"`], ')'); // First we do our normal class logic for emitting our members. super.emit(code, context); + code.line(); + code.line(); + // Then, we have to emit a Proxy class which implements our proxy interface. const proxyBases: string[] = this.bases.map( (b) => @@ -830,16 +788,18 @@ class Interface extends BasePythonClassType { typeAnnotation: false, })})`, ); - code.openBlock( - `class ${this.getProxyClassName()}(${proxyBases.join(', ')})`, - ); + openSignature(code, 'class', this.getProxyClassName(), proxyBases); this.generator.emitDocString(code, this.docs, { documentableItem: `class-${this.pythonName}`, + trailingNewLine: true, }); code.line(`__jsii_type__ = "${this.fqn}"`); if (this.members.length > 0) { for (const member of this.members) { + if (this.separateMembers) { + code.line(); + } member.emit(code, context, { forceEmitBody: true }); } } else { @@ -859,12 +819,15 @@ class Interface extends BasePythonClassType { return params; } - protected emitPreamble(code: CodeMaker, _context: EmitContext) { + protected readonly emitPreamble = ( + code: CodeMaker, + _context: EmitContext, + ) => { code.line('@builtins.staticmethod'); code.openBlock('def __jsii_proxy_class__()'); code.line(`return ${this.getProxyClassName()}`); code.closeBlock(); - } + }; private getProxyClassName(): string { return `_${this.pythonName}Proxy`; @@ -886,6 +849,7 @@ class InterfaceProperty extends BaseProperty { } class Struct extends BasePythonClassType { + protected readonly emitPreamble = undefined; protected directMembers = new Array(); public addMember(member: PythonBase): void { @@ -899,17 +863,16 @@ class Struct extends BasePythonClassType { context = { ...context, nestingScope: this.fqn! }; const baseInterfaces = this.getClassParams(context); - code.line( - `@jsii.data_type(jsii_type="${ - this.fqn - }", jsii_struct_bases=[${baseInterfaces.join( - ', ', - )}], name_mapping=${this.propertyMap()})`, - ); - code.openBlock(`class ${this.pythonName}(${baseInterfaces.join(', ')})`); + code.indent('@jsii.data_type('); + code.line(`jsii_type=${JSON.stringify(this.fqn)},`); + emitList(code, 'jsii_struct_bases=[', baseInterfaces, '],'); + assignDictionary(code, 'name_mapping', this.propertyMap(), ',', true); + code.unindent(')'); + openSignature(code, 'class', this.pythonName, baseInterfaces); this.emitConstructor(code, context); for (const member of this.allMembers) { + code.line(); this.emitGetter(member, code, context); } @@ -961,7 +924,7 @@ class Struct extends BasePythonClassType { ? [implicitParameter, '*', ...kwargs] : [implicitParameter]; - code.openBlock(`def __init__(${constructorArguments.join(', ')}) -> None`); + openSignature(code, 'def', '__init__', constructorArguments, false, 'None'); this.emitConstructorDocstring(code); // Re-type struct arguments that were passed as "dict" @@ -971,23 +934,30 @@ class Struct extends BasePythonClassType { ...context, typeAnnotation: false, }); - code.line( - `if isinstance(${member.pythonName}, dict): ${member.pythonName} = ${typeName}(**${member.pythonName})`, - ); + code.openBlock(`if isinstance(${member.pythonName}, dict)`); + code.line(`${member.pythonName} = ${typeName}(**${member.pythonName})`); + code.closeBlock(); } // Required properties, those will always be put into the dict - code.line(`${implicitParameter}._values = {`); - for (const member of members.filter((m) => !m.optional)) { - code.line(` '${member.pythonName}': ${member.pythonName},`); - } - code.line('}'); + assignDictionary( + code, + `${implicitParameter}._values`, + members + .filter((m) => !m.optional) + .map( + (member) => + `${JSON.stringify(member.pythonName)}: ${member.pythonName}`, + ), + ); // Optional properties, will only be put into the dict if they're not None for (const member of members.filter((m) => m.optional)) { + code.openBlock(`if ${member.pythonName} is not None`); code.line( - `if ${member.pythonName} is not None: ${implicitParameter}._values["${member.pythonName}"] = ${member.pythonName}`, + `${implicitParameter}._values["${member.pythonName}"] = ${member.pythonName}`, ); + code.closeBlock(); } code.closeBlock(); @@ -1010,38 +980,50 @@ class Struct extends BasePythonClassType { context: EmitContext, ) { code.line('@builtins.property'); - code.openBlock( - `def ${member.pythonName}(self) -> ${member.typeAnnotation(context)}`, + openSignature( + code, + 'def', + member.pythonName, + ['self'], + true, + member.typeAnnotation(context), ); member.emitDocString(code); - code.line(`return self._values.get('${member.pythonName}')`); + code.line(`return self._values.get(${JSON.stringify(member.pythonName)})`); code.closeBlock(); } private emitMagicMethods(code: CodeMaker) { + code.line(); code.openBlock('def __eq__(self, rhs) -> bool'); code.line( 'return isinstance(rhs, self.__class__) and rhs._values == self._values', ); code.closeBlock(); + code.line(); code.openBlock('def __ne__(self, rhs) -> bool'); code.line('return not (rhs == self)'); code.closeBlock(); + code.line(); code.openBlock('def __repr__(self) -> str'); - code.line( - `return '${this.pythonName}(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())`, - ); + code.indent(`return "${this.pythonName}(%s)" % ", ".join(`); + code.line('k + "=" + repr(v) for k, v in self._values.items()'); + code.unindent(')'); code.closeBlock(); } private propertyMap() { const ret = new Array(); for (const member of this.allMembers) { - ret.push(`'${member.pythonName}': '${member.jsiiName}'`); + ret.push( + `${JSON.stringify(member.pythonName)}: ${JSON.stringify( + member.jsiiName, + )}`, + ); } - return `{${ret.join(', ')}}`; + return ret; } } @@ -1074,7 +1056,7 @@ class StructField implements PythonBase { } public constructorDecl(context: EmitContext) { - const opt = this.optional ? '=None' : ''; + const opt = this.optional ? ' = None' : ''; return `${this.pythonName}: ${this.typeAnnotation(context)}${opt}`; } @@ -1193,9 +1175,9 @@ class Class extends BasePythonClassType implements ISortableType { ); } - code.openBlock( - `class ${this.getProxyClassName()}(${proxyBases.join(', ')})`, - ); + code.line(); + code.line(); + openSignature(code, 'class', this.getProxyClassName(), proxyBases); // Filter our list of members to *only* be abstract members, and not any // other types. @@ -1204,7 +1186,15 @@ class Class extends BasePythonClassType implements ISortableType { (m instanceof BaseMethod || m instanceof BaseProperty) && m.abstract, ); if (abstractMembers.length > 0) { + let first = true; for (const member of abstractMembers) { + if (this.separateMembers) { + if (first) { + first = false; + } else { + code.line(); + } + } member.emit(code, context, { renderAbstract: false }); } } else { @@ -1215,13 +1205,14 @@ class Class extends BasePythonClassType implements ISortableType { } } - protected emitPreamble(code: CodeMaker, _context: EmitContext) { - if (this.abstract) { + protected get emitPreamble() { + if (!this.abstract) return undefined; + return (code: CodeMaker, _context: EmitContext) => { code.line('@builtins.staticmethod'); code.openBlock('def __jsii_proxy_class__()'); code.line(`return ${this.getProxyClassName()}`); code.closeBlock(); - } + }; } protected getClassParams(context: EmitContext): string[] { @@ -1279,9 +1270,12 @@ class Property extends BaseProperty { } class Enum extends BasePythonClassType { + protected readonly emitPreamble = undefined; + protected readonly separateMembers = false; + public emit(code: CodeMaker, context: EmitContext) { context = { ...context, nestingScope: this.fqn! }; - code.line(`@jsii.enum(jsii_type="${this.fqn}")`); + emitList(code, '@jsii.enum(', [`jsii_type="${this.fqn}"`], ')'); return super.emit(code, context); } @@ -1385,14 +1379,16 @@ class PythonModule implements PythonType { this.emitDependencyImports(code); code.line(); - const params = [ - `"${this.assembly.name}"`, - `"${this.assembly.version}"`, - '__name__[0:-6]', // Removing the "._jsii" from the tail! - `"${this.assemblyFilename}"`, - ]; - code.line( - `__jsii_assembly__ = jsii.JSIIAssembly.load(${params.join(', ')})`, + emitList( + code, + '__jsii_assembly__ = jsii.JSIIAssembly.load(', + [ + JSON.stringify(this.assembly.name), + JSON.stringify(this.assembly.version), + '__name__[0:-6]', + `${JSON.stringify(this.assemblyFilename)}`, + ], + ')', ); } else { // Then we must import the ._jsii subpackage. @@ -1410,13 +1406,10 @@ class PythonModule implements PythonType { this.emitRequiredImports(code, context); } - code.line(); - if (this.members.length > 0) { - code.line(); - } - // Emit all of our members. for (const member of sortMembers(this.members, resolver)) { + code.line(); + code.line(); member.emit(code, context); } @@ -1427,6 +1420,10 @@ class PythonModule implements PythonType { } // Declare the list of "public" members this module exports + if (this.members.length > 0) { + code.line(); + } + code.line(); code.indent('__all__ = ['); for (const member of exportedMembers.sort()) { // Writing one by line might be _a lot_ of lines, but it'll make reviewing changes to the list easier. Trust me. @@ -1479,37 +1476,62 @@ class PythonModule implements PythonType { const requiredImports = this.requiredImports(context); const statements = Object.entries(requiredImports) .map(([sourcePackage, items]) => toImportStatements(sourcePackage, items)) - .reduce((acc, elt) => [...acc, ...elt], new Array()) + .reduce( + (acc, elt) => [...acc, ...elt], + new Array<{ emit: () => void; comparisonBase: string }>(), + ) .sort(importComparator); if (statements.length > 0) { code.line(); } for (const statement of statements) { - code.line(statement); + statement.emit(code); } function toImportStatements( sourcePkg: string, items: ReadonlySet, - ): string[] { - const result = new Array(); + ): Array<{ emit: (code: CodeMaker) => void; comparisonBase: string }> { + const result = new Array<{ + emit: (code: CodeMaker) => void; + comparisonBase: string; + }>(); if (items.has('')) { - result.push(`import ${sourcePkg}`); + result.push({ + comparisonBase: `import ${sourcePkg}`, + emit(code) { + code.line(this.comparisonBase); + }, + }); } - const pieceMeal = Array.from(items).filter((i) => i !== ''); + const pieceMeal = Array.from(items) + .filter((i) => i !== '') + .sort(); if (pieceMeal.length > 0) { - result.push(`from ${sourcePkg} import (${pieceMeal.join(', ')})`); + result.push({ + comparisonBase: `from ${sourcePkg} import`, + emit: (code) => + emitList(code, `from ${sourcePkg} import `, pieceMeal, '', { + ifMulti: ['(', ')'], + }), + }); } return result; } - function importComparator(left: string, right: string) { - if (left.startsWith('import') === right.startsWith('import')) { - return left.localeCompare(right); + function importComparator( + left: { comparisonBase: string }, + right: { comparisonBase: string }, + ) { + if ( + left.comparisonBase.startsWith('import') === + right.comparisonBase.startsWith('import') + ) { + return left.comparisonBase.localeCompare(right.comparisonBase); } // We want "from .foo import (...)" to be *after* "import bar" - return right.localeCompare(left); + return right.comparisonBase.localeCompare(left.comparisonBase); } } } @@ -1678,14 +1700,17 @@ class Package { code.line('import json'); code.line('import setuptools'); code.line(); - code.line('kwargs = json.loads("""'); + code.line('kwargs = json.loads('); + code.line(' """'); code.line(JSON.stringify(setupKwargs, null, 4)); - code.line('""")'); + code.line('"""'); + code.line(')'); code.line(); - code.openBlock("with open('README.md') as fp"); - code.line("kwargs['long_description'] = fp.read()"); + code.openBlock('with open("README.md") as fp'); + code.line('kwargs["long_description"] = fp.read()'); code.closeBlock(); code.line(); + code.line(); code.line('setuptools.setup(**kwargs)'); code.closeFile('setup.py'); @@ -1850,7 +1875,7 @@ class PythonGenerator extends Generator { super(options); this.code.openBlockFormatter = (s) => `${s}:`; - this.code.closeBlockFormatter = (_s) => ''; + this.code.closeBlockFormatter = (_s) => false; this.types = new Map(); } @@ -1862,6 +1887,7 @@ class PythonGenerator extends Generator { options: { arguments?: DocumentableArgument[]; documentableItem?: string; + trailingNewLine?: boolean; } = {}, ) { if ((!docs || Object.keys(docs).length === 0) && !options.arguments) { @@ -1973,17 +1999,19 @@ class PythonGenerator extends Generator { if (lines.length === 1) { code.line(`"""${lines[0]}"""`); - return; - } + } else { + code.line(`"""${lines[0]}`); + lines.splice(0, 1); - code.line(`"""${lines[0]}`); - lines.splice(0, 1); + for (const line of lines) { + code.line(line); + } - for (const line of lines) { - code.line(line); + code.line('"""'); + } + if (options.trailingNewLine) { + code.line(); } - - code.line('"""'); } public convertExample(example: string): string { @@ -2448,26 +2476,204 @@ function slugifyAsNeeded(name: string, inUse: readonly string[]): string { return name; } -async function lock(path: string, opts: lockfile.Options = { stale: 60_000 }) { - return new Promise((ok, ko) => - lockfile.lock(path, opts, (error) => { - if (error != null) { - ko(error); - } else { - ok(); - } - }), - ); +//////////////////////////////////////////////////////////////////////////////// +// BEHOLD: Helpers to output code that looks like what Black would format into... +// +// @see https://black.readthedocs.io/en/stable/the_black_code_style.html + +const TARGET_LINE_LENGTH = 88; + +function openSignature( + code: CodeMaker, + keyword: 'class', + name: string, + params: readonly string[], +): void; +function openSignature( + code: CodeMaker, + keyword: 'def', + name: string, + params: readonly string[], + trailingComma: boolean, + returnType: string, +): void; +function openSignature( + code: CodeMaker, + keyword: 'class' | 'def', + name: string, + params: readonly string[], + trailingComma = false, + returnType?: string, +) { + const prefix = `${keyword} ${name}`; + const suffix = returnType ? ` -> ${returnType}` : ''; + if (params.length === 0) { + code.openBlock(`${prefix}${returnType ? '()' : ''}${suffix}`); + return; + } + + const join = ', '; + const { elementsSize, joinSize } = totalSizeOf(params, join); + + if ( + TARGET_LINE_LENGTH > + code.currentIndentLength + + prefix.length + + elementsSize + + joinSize + + suffix.length + + 2 + ) { + code.openBlock(`${prefix}(${params.join(join)})${suffix}`); + return; + } + + code.indent(`${prefix}(`); + if ( + TARGET_LINE_LENGTH > + code.currentIndentLength + elementsSize + joinSize + (trailingComma ? 1 : 0) + ) { + code.line(`${params.join(join)}${trailingComma ? ',' : ''}`); + } else { + for (const param of params) { + code.line(`${param},`); + } + } + code.unindent(false); + code.openBlock(`)${suffix}`); } -async function unlock(path: string) { - return new Promise((ok, ko) => - lockfile.unlock(path, (error) => { - if (error != null) { - ko(error); - } else { - ok(); +function assignCallResult( + code: CodeMaker, + variable: string, + funct: string, + params: readonly string[], +) { + const prefix = `${variable} = ${funct}(`; + const suffix = ')'; + + if (params.length === 0) { + code.line(`${prefix}${suffix}`); + return; + } + + const join = ', '; + const { elementsSize, joinSize } = totalSizeOf(params, join); + + if ( + TARGET_LINE_LENGTH > + code.currentIndentLength + + prefix.length + + elementsSize + + joinSize + + suffix.length + ) { + code.line(`${prefix}${params.join(join)}${suffix}`); + return; + } + + code.indent(prefix); + if (TARGET_LINE_LENGTH > code.currentIndentLength + elementsSize + joinSize) { + code.line(params.join(join)); + } else { + for (const param of params) { + code.line(`${param},`); + } + } + code.unindent(suffix); +} + +function assignDictionary( + code: CodeMaker, + variable: string, + elements: readonly string[], + trailing?: string, + compact = false, +): void { + const space = compact ? '' : ' '; + + const prefix = `${variable}${space}=${space}{`; + const suffix = `}${trailing ?? ''}`; + + if (elements.length === 0) { + code.line(`${prefix}${suffix}`); + return; + } + + if (compact) { + const join = ', '; + const { elementsSize, joinSize } = totalSizeOf(elements, join); + if ( + TARGET_LINE_LENGTH > + prefix.length + + code.currentIndentLength + + elementsSize + + joinSize + + suffix.length + ) { + code.line(`${prefix}${elements.join(join)}${suffix}`); + return; + } + } + + code.indent(prefix); + for (const elt of elements) { + code.line(`${elt},`); + } + code.unindent(suffix); +} + +function emitList( + code: CodeMaker, + prefix: string, + elements: readonly string[], + suffix: string, + opts?: { ifMulti: [string, string] }, +) { + if (elements.length === 0) { + code.line(`${prefix}${suffix}`); + return; + } + + const join = ', '; + const { elementsSize, joinSize } = totalSizeOf(elements, join); + if ( + TARGET_LINE_LENGTH > + code.currentIndentLength + + prefix.length + + elementsSize + + joinSize + + suffix.length + ) { + code.line(`${prefix}${elements.join(join)}${suffix}`); + return; + } + + const [before, after] = opts?.ifMulti ?? ['', '']; + + code.indent(`${prefix}${before}`); + if (elements.length === 1) { + code.line(elements[0]); + } else { + if ( + TARGET_LINE_LENGTH > + code.currentIndentLength + elementsSize + joinSize + ) { + code.line(elements.join(join)); + } else { + for (const elt of elements) { + code.line(`${elt},`); } - }), - ); + } + } + code.unindent(`${after}${suffix}`); +} + +function totalSizeOf(strings: readonly string[], join: string) { + return { + elementsSize: strings + .map((str) => str.length) + .reduce((acc, elt) => acc + elt, 0), + joinSize: strings.length > 1 ? join.length * (strings.length - 1) : 0, + }; } diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index a71475f3e1..2b7ba113a3 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -43,7 +43,6 @@ "fs-extra": "^9.0.1", "jsii-reflect": "^0.0.0", "jsii-rosetta": "^0.0.0", - "lockfile": "^1.0.4", "semver": "^7.3.2", "spdx-license-list": "^6.2.0", "xmlbuilder": "^15.1.1", @@ -57,7 +56,6 @@ "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.9", - "@types/lockfile": "^1.0.1", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/semver": "^7.3.1", @@ -70,6 +68,7 @@ "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", "prettier": "^2.0.5", + "ts-jest": "^26.1.4", "typescript": "~3.9.7" }, "keywords": [ @@ -89,7 +88,10 @@ "errorOnDeprecated": true, "testEnvironment": "node", "testMatch": [ - "**/?(*.)+(spec|test).js" - ] + "**/?(*.)+(spec|test).ts" + ], + "transform": { + "\\.tsx?$": "ts-jest" + } } } diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap similarity index 99% rename from packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap rename to packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap index 204f67e395..96df49deac 100644 --- a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.js.snap +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap @@ -56971,9 +56971,7 @@ class AllTypes(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllTypes\\"): @jsii.member(jsii_name=\\"unionMapProperty\\") def union_map_property( self, - ) -> typing.Mapping[ - str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] - ]: + ) -> typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: \\"\\"\\" stability :stability: experimental @@ -56983,9 +56981,7 @@ class AllTypes(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllTypes\\"): @union_map_property.setter def union_map_property( self, - value: typing.Mapping[ - str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number] - ], + value: typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]], ) -> None: jsii.set(self, \\"unionMapProperty\\", value) @@ -57764,7 +57760,8 @@ class ClassWithJavaReservedWords( class ClassWithMutableObjectLiteralProperty( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithMutableObjectLiteralProperty\\" + metaclass=jsii.JSIIMeta, + jsii_type=\\"jsii-calc.ClassWithMutableObjectLiteralProperty\\", ): \\"\\"\\" stability @@ -57825,12 +57822,7 @@ class ConfusingToJackson( @jsii.member(jsii_name=\\"unionProperty\\") def union_property( self, - ) -> typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]], - ] - ]: + ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]]: \\"\\"\\" stability :stability: experimental @@ -57840,14 +57832,7 @@ class ConfusingToJackson( @union_property.setter def union_property( self, - value: typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[ - typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"] - ], - ] - ], + value: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]], ) -> None: jsii.set(self, \\"unionProperty\\", value) @@ -57861,14 +57846,7 @@ class ConfusingToJacksonStruct: def __init__( self, *, - union_property: typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[ - typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"] - ], - ] - ] = None, + union_property: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]] = None, ) -> None: \\"\\"\\" :param union_property: @@ -57883,12 +57861,7 @@ class ConfusingToJacksonStruct: @builtins.property def union_property( self, - ) -> typing.Optional[ - typing.Union[ - scope.jsii_calc_lib.IFriendly, - typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]], - ] - ]: + ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]]: \\"\\"\\" stability :stability: experimental @@ -58501,9 +58474,7 @@ class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): another_required: datetime.datetime, bool: bool, non_primitive: \\"DoubleTrouble\\", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, + another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, ) -> None: @@ -58772,8 +58743,7 @@ class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): @jsii.data_type( jsii_type=\\"jsii-calc.DiamondInheritanceTopLevelStruct\\", jsii_struct_bases=[ - DiamondInheritanceFirstMidLevelStruct, - DiamondInheritanceSecondMidLevelStruct, + DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct ], name_mapping={ \\"base_level_property\\": \\"baseLevelProperty\\", @@ -58962,9 +58932,7 @@ class DoNotRecognizeAnyAsOptional( stability :stability: experimental \\"\\"\\" - return jsii.invoke( - self, \\"method\\", [_required_any, _optional_any, _optional_string] - ) + return jsii.invoke(self, \\"method\\", [_required_any, _optional_any, _optional_string]) class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DocumentedClass\\"): @@ -59495,9 +59463,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct another_required: datetime.datetime, bool: bool, non_primitive: \\"DoubleTrouble\\", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, + another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, anumber: jsii.Number, @@ -59540,9 +59506,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct another_required: datetime.datetime, bool: bool, non_primitive: \\"DoubleTrouble\\", - another_optional: typing.Optional[ - typing.Mapping[str, scope.jsii_calc_lib.Value] - ] = None, + another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, anumber: jsii.Number, @@ -59612,7 +59576,9 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct @jsii.data_type( - jsii_type=\\"jsii-calc.Greetee\\", jsii_struct_bases=[], name_mapping={\\"name\\": \\"name\\"} + jsii_type=\\"jsii-calc.Greetee\\", + jsii_struct_bases=[], + name_mapping={\\"name\\": \\"name\\"}, ) class Greetee: def __init__(self, *, name: typing.Optional[str] = None) -> None: @@ -60662,8 +60628,6 @@ class IJsii487External(jsii.compat.Protocol): def __jsii_proxy_class__(): return _IJsii487ExternalProxy - pass - class _IJsii487ExternalProxy: \\"\\"\\" @@ -60686,8 +60650,6 @@ class IJsii487External2(jsii.compat.Protocol): def __jsii_proxy_class__(): return _IJsii487External2Proxy - pass - class _IJsii487External2Proxy: \\"\\"\\" @@ -60710,8 +60672,6 @@ class IJsii496(jsii.compat.Protocol): def __jsii_proxy_class__(): return _IJsii496Proxy - pass - class _IJsii496Proxy: \\"\\"\\" @@ -62718,9 +62678,7 @@ class NullShouldBeTreatedAsUndefined( def give_me_undefined_inside_an_object( self, *, - array_with_three_elements_and_undefined_as_second_argument: typing.List[ - typing.Any - ], + array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any = None, ) -> None: \\"\\"\\" @@ -62771,9 +62729,7 @@ class NullShouldBeTreatedAsUndefinedData: def __init__( self, *, - array_with_three_elements_and_undefined_as_second_argument: typing.List[ - typing.Any - ], + array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any = None, ) -> None: \\"\\"\\" @@ -62797,9 +62753,7 @@ class NullShouldBeTreatedAsUndefinedData: stability :stability: experimental \\"\\"\\" - return self._values.get( - \\"array_with_three_elements_and_undefined_as_second_argument\\" - ) + return self._values.get(\\"array_with_three_elements_and_undefined_as_second_argument\\") @builtins.property def this_should_be_undefined(self) -> typing.Any: @@ -63269,7 +63223,10 @@ class PartiallyInitializedThisConsumer( @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") @abc.abstractmethod def consume_partially_initialized_this( - self, obj: \\"ConstructorPassesThisOut\\", dt: datetime.datetime, ev: \\"AllTypesEnum\\" + self, + obj: \\"ConstructorPassesThisOut\\", + dt: datetime.datetime, + ev: \\"AllTypesEnum\\", ) -> str: \\"\\"\\" :param obj: - @@ -63285,7 +63242,10 @@ class PartiallyInitializedThisConsumer( class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") def consume_partially_initialized_this( - self, obj: \\"ConstructorPassesThisOut\\", dt: datetime.datetime, ev: \\"AllTypesEnum\\" + self, + obj: \\"ConstructorPassesThisOut\\", + dt: datetime.datetime, + ev: \\"AllTypesEnum\\", ) -> str: \\"\\"\\" :param obj: - @@ -63795,7 +63755,10 @@ class ReturnsPrivateImplementationOfInterface( ) class RootStruct: def __init__( - self, *, string_prop: str, nested_struct: typing.Optional[\\"NestedStruct\\"] = None + self, + *, + string_prop: str, + nested_struct: typing.Optional[\\"NestedStruct\\"] = None, ) -> None: \\"\\"\\"This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. @@ -66093,8 +66056,6 @@ class IFriendlyRandomGenerator( def __jsii_proxy_class__(): return _IFriendlyRandomGeneratorProxy - pass - class _IFriendlyRandomGeneratorProxy( jsii.proxy_for(IRandomNumberGenerator), @@ -67241,10 +67202,10 @@ from .._jsii import * from .. import AllTypes as _AllTypes_b08307c5 from .child import ( - SomeStruct as _SomeStruct_91627123, - SomeEnum as _SomeEnum_b2e41d92, Awesomeness as _Awesomeness_d37a24df, Goodness as _Goodness_2df26737, + SomeEnum as _SomeEnum_b2e41d92, + SomeStruct as _SomeStruct_91627123, ) from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad @@ -67665,7 +67626,9 @@ import publication from ..._jsii import * -from ..child import KwargsProps as _KwargsProps_c7855dcf, SomeEnum as _SomeEnum_b2e41d92 +from ..child import ( + KwargsProps as _KwargsProps_c7855dcf, SomeEnum as _SomeEnum_b2e41d92 +) class Kwargs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.isolated.Kwargs\\"): diff --git a/packages/jsii-pacmak/test/jsii-pacmak.test.ts b/packages/jsii-pacmak/test/jsii-pacmak.test.ts index 97ebd521cd..a83ab003b0 100644 --- a/packages/jsii-pacmak/test/jsii-pacmak.test.ts +++ b/packages/jsii-pacmak/test/jsii-pacmak.test.ts @@ -134,7 +134,7 @@ function runPacmak(root: string, outdir: string): void { if (result.status !== 0) { console.error(`#### PACMAK STDOUT:\n${result.stdout.toString('utf-8')}`); - console.error(`#### PACMAK STDERR:\n${result.stdout.toString('utf-8')}`); + console.error(`#### PACMAK STDERR:\n${result.stderr.toString('utf-8')}`); } expect(result.signal).toBeNull(); diff --git a/packages/jsii-pacmak/test/targets/python.test.ts b/packages/jsii-pacmak/test/targets/python.test.ts deleted file mode 100644 index 2009f4195f..0000000000 --- a/packages/jsii-pacmak/test/targets/python.test.ts +++ /dev/null @@ -1,151 +0,0 @@ -import * as util from '../../lib/util'; -import * as os from 'os'; -import * as path from 'path'; -import * as fs from 'fs-extra'; -import Python from '../../lib/targets/python'; -import { Assembly } from 'jsii-reflect'; -import { Rosetta } from 'jsii-rosetta'; - -describe('python', () => { - describe('blackPath', () => { - const shellMock = jest.fn(); - const homedirMock = jest.fn(); - let homedir: string; - let python: Python; - - beforeEach((done) => { - // eslint-disable-next-line no-import-assign - Object.defineProperty(util, 'shell', { value: shellMock }); - // eslint-disable-next-line no-import-assign - Object.defineProperty(os, 'homedir', { value: homedirMock }); - homedir = fs.mkdtempSync(path.join(os.tmpdir(), 'jsii-pacmak-black-')); - homedirMock.mockImplementation(() => homedir); - python = new Python({ - targetName: 'python', - packageDir: '/dir', - assembly: {} as Assembly, - rosetta: new Rosetta(), - arguments: {}, - }); - - done(); - }); - - afterEach((done) => { - shellMock.mockClear(); - homedirMock.mockClear(); - fs.removeSync(homedir); - - done(); - }); - - test('black is installed globally', async () => { - let badShellCommand: string | undefined; - shellMock.mockImplementation((cmd: string, args: string[], _) => { - return new Promise((ok, ko) => { - if (cmd === 'which' && args[0] === 'black') { - ok('/path/to/black'); - } else { - badShellCommand = `Unexpected call to shell [${cmd} ${args.join( - ' ', - )}]`; - ko(new Error(badShellCommand)); - } - }); - }); - - const path = await (python as any).blackPath(); // call private method blackPath() - expect(badShellCommand).toBeUndefined(); - expect(path).toBe('black'); - }); - - test('black is installed if not found globally', async () => { - shellMock.mockImplementation((cmd: string, args: string[], _) => { - return new Promise((ok, ko) => { - if (cmd === 'which' && args[0] === 'black') { - ko(new Error('black not found')); - } else if ( - /pip.?$/.test(cmd) && - args[0] === 'show' && - args[1] === 'black' - ) { - ko(new Error()); - } else if ( - /pip.?$/.test(cmd) && - args[0] === 'install' && - args[1] === '--no-input' && - args[2] === 'black' - ) { - fs.mkdirpSync( - path.join( - homedir, - '.jsii-cache', - 'python-black', - 'venv', - process.platform === 'win32' ? 'Scripts' : 'bin', - `black${process.platform === 'win32' ? '.exe' : ''}`, - ), - ); - ok(); - } else { - ok(); - } - }); - }); - - const blackPath = await (python as any).blackPath(); // call private method blackPath() - expect(blackPath).toBe( - path.join( - homedir, - '.jsii-cache', - 'python-black', - 'venv', - process.platform === 'win32' ? 'Scripts' : 'bin', - `black${process.platform === 'win32' ? '.exe' : ''}`, - ), - ); - }); - - test('local cache is reused', async () => { - let installCount = 0; - shellMock.mockImplementation((cmd: string, args: string[], _) => { - return new Promise((ok, ko) => { - if (cmd === 'which' && args[0] === 'black') { - ko(new Error('black not found')); - } else if ( - /pip.?$/.test(cmd) && - args[0] === 'show' && - args[1] === 'black' - ) { - ko(new Error()); - } else if ( - /pip.?$/.test(cmd) && - args[0] === 'install' && - args[1] === '--no-input' && - args[2] === 'black' - ) { - installCount++; - fs.mkdirpSync( - path.join( - homedir, - '.jsii-cache', - 'python-black', - 'venv', - process.platform === 'win32' ? 'Scripts' : 'bin', - `black${process.platform === 'win32' ? '.bat' : ''}`, - ), - ); - ok(); - } else { - ok(); - } - }); - }); - - await (python as any).blackPath(); - await (python as any).blackPath(); - await (python as any).blackPath(); - expect(installCount).toEqual(1); - }); - }); -}); diff --git a/yarn.lock b/yarn.lock index 72e242a473..965e6ba062 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1552,11 +1552,6 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= -"@types/lockfile@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@types/lockfile/-/lockfile-1.0.1.tgz#434a3455e89843312f01976e010c60f1bcbd56f7" - integrity sha512-65WZedEm4AnOsBDdsapJJG42MhROu3n4aSSiu87JXF/pSdlubxZxp3S1yz3kTfkJ2KBPud4CpjoHVAptOm9Zmw== - "@types/minimatch@*": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -2478,6 +2473,13 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + bser@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" @@ -2490,7 +2492,7 @@ btoa-lite@^1.0.0: resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" integrity sha1-M3dm2hWAEhD92VbCLpxokaudAzc= -buffer-from@^1.0.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -4160,7 +4162,7 @@ fast-glob@^2.2.6: merge2 "^1.2.3" micromatch "^3.1.10" -fast-json-stable-stringify@^2.0.0: +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== @@ -5769,7 +5771,7 @@ jest-snapshot@^26.2.2: pretty-format "^26.2.0" semver "^7.3.2" -jest-util@^26.2.0: +jest-util@26.x, jest-util@^26.2.0: version "26.2.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.2.0.tgz#0597d2a27c559340957609f106c408c17c1d88ac" integrity sha512-YmDwJxLZ1kFxpxPfhSJ0rIkiZOM0PQbRcfH0TzJOhqCisCAsI1WcmoQqO83My9xeVA2k4n+rzg2UuexVKzPpig== @@ -5911,6 +5913,13 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= +json5@2.x, json5@^2.1.2: + version "2.1.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" + integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== + dependencies: + minimist "^1.2.5" + json5@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -5918,13 +5927,6 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" -json5@^2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" - integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== - dependencies: - minimist "^1.2.5" - jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -6133,13 +6135,6 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" -lockfile@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lockfile/-/lockfile-1.0.4.tgz#07f819d25ae48f87e538e6578b6964a4981a5609" - integrity sha512-cvbTwETRfsFh4nHsL1eGWapU1XFi5Ot9E85sWAwia7Y7EgB7vfqcZhTKZ+l7hCGxSPoushMv5GKhT5PdLv03WA== - dependencies: - signal-exit "^3.0.2" - lodash._reinterpolate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" @@ -6160,6 +6155,11 @@ lodash.ismatch@^4.4.0: resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc= +lodash.memoize@4.x: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + lodash.set@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" @@ -6253,7 +6253,7 @@ make-dir@^3.0.0: dependencies: semver "^6.0.0" -make-error@^1.1.1: +make-error@1.x, make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== @@ -6568,7 +6568,7 @@ mkdirp-promise@^5.0.1: dependencies: mkdirp "*" -mkdirp@*, mkdirp@^1.0.3: +mkdirp@*, mkdirp@1.x, mkdirp@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -8101,16 +8101,16 @@ semver-intersect@^1.4.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== +semver@7.x, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2: + version "7.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.1.1, semver@^7.2.1, semver@^7.3.2: - version "7.3.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" - integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== - serialize-javascript@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-3.1.0.tgz#8bf3a9170712664ef2561b44b691eafe399214ea" @@ -8986,6 +8986,22 @@ trim-off-newlines@^1.0.0: resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= +ts-jest@^26.1.4: + version "26.1.4" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.1.4.tgz#87d41a96016a8efe4b8cc14501d3785459af6fa6" + integrity sha512-Nd7diUX6NZWfWq6FYyvcIPR/c7GbEF75fH1R6coOp3fbNzbRJBZZAn0ueVS0r8r9ral1VcrpneAFAwB3TsVS1Q== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + jest-util "26.x" + json5 "2.x" + lodash.memoize "4.x" + make-error "1.x" + mkdirp "1.x" + semver "7.x" + yargs-parser "18.x" + ts-node@^8.10.2: version "8.10.2" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" @@ -9673,6 +9689,14 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yargs-parser@18.x, yargs-parser@^18.1.2, yargs-parser@^18.1.3: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + yargs-parser@^13.1.2: version "13.1.2" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" @@ -9689,14 +9713,6 @@ yargs-parser@^15.0.1: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^18.1.2, yargs-parser@^18.1.3: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - yargs@^13.3.2: version "13.3.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" From 37b9fd02cc838445594f60130459a98a82c2a8af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2020 10:01:37 +0200 Subject: [PATCH 14/45] chore(deps): bump jest from 26.2.2 to 26.3.0 (#1868) Bumps [jest](https://github.com/facebook/jest) from 26.2.2 to 26.3.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.2.2...v26.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 688 +++++++++++++------------ 13 files changed, 371 insertions(+), 341 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 29c6a67fbd..b563f818dd 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -20,7 +20,7 @@ "@octokit/rest": "^18.0.3", "dotenv": "^8.2.0", "fs-extra": "^9.0.1", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index b037733e92..32c242c40a 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -47,7 +47,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index de6341cabf..3896f357ed 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -45,7 +45,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^1.19.1", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 68bfa89254..c1c47c4aae 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -39,7 +39,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii-build-tools": "^0.0.0", "prettier": "^1.19.1", "typescript": "~3.9.7", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index d7fda28ab4..840e795451 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -42,7 +42,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "prettier": "^2.0.5", "typescript": "~3.9.7" }, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 3627067f02..c4419a046b 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -27,7 +27,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index d4d93dc2c0..dd401583a3 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -50,7 +50,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 2b7ba113a3..ff187ae1a0 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -63,7 +63,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 892b8f591a..610bf2a112 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -49,7 +49,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 925c6a2573..61c069427a 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -25,7 +25,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 082f0275ad..7410f5a735 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -60,7 +60,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5" diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 786c9affce..89c19879d3 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -36,7 +36,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.2.2", + "jest": "^26.3.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/yarn.lock b/yarn.lock index 965e6ba062..06e29d1984 100644 --- a/yarn.lock +++ b/yarn.lock @@ -364,93 +364,93 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== -"@jest/console@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.2.0.tgz#d18f2659b90930e7ec3925fb7209f1ba2cf463f0" - integrity sha512-mXQfx3nSLwiHm1i7jbu+uvi+vvpVjNGzIQYLCfsat9rapC+MJkS4zBseNrgJE0vU921b3P67bQzhduphjY3Tig== +"@jest/console@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.3.0.tgz#ed04063efb280c88ba87388b6f16427c0a85c856" + integrity sha512-/5Pn6sJev0nPUcAdpJHMVIsA8sKizL2ZkcKPE5+dJrCccks7tcM7c9wbgHudBJbxXLoTbqsHkG1Dofoem4F09w== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^26.2.0" - jest-util "^26.2.0" + jest-message-util "^26.3.0" + jest-util "^26.3.0" slash "^3.0.0" -"@jest/core@^26.2.2": - version "26.2.2" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.2.2.tgz#63de01ffce967618003dd7a0164b05c8041b81a9" - integrity sha512-UwA8gNI8aeV4FHGfGAUfO/DHjrFVvlBravF1Tm9Kt6qFE+6YHR47kFhgdepOFpADEKstyO+MVdPvkV6/dyt9sA== +"@jest/core@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.3.0.tgz#da496913ce7385b5e597b527078bf4ca12d2b627" + integrity sha512-WAAqGMpc+U+GS0oSr/ikI1JdRyPQyTZSVOr1xjnVcfvfUTZCK+wGoN0Cb7dm7HVdpbMQr/NvtM6vBVChctmzHA== dependencies: - "@jest/console" "^26.2.0" - "@jest/reporters" "^26.2.2" - "@jest/test-result" "^26.2.0" - "@jest/transform" "^26.2.2" - "@jest/types" "^26.2.0" + "@jest/console" "^26.3.0" + "@jest/reporters" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/transform" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" - jest-changed-files "^26.2.0" - jest-config "^26.2.2" - jest-haste-map "^26.2.2" - jest-message-util "^26.2.0" + jest-changed-files "^26.3.0" + jest-config "^26.3.0" + jest-haste-map "^26.3.0" + jest-message-util "^26.3.0" jest-regex-util "^26.0.0" - jest-resolve "^26.2.2" - jest-resolve-dependencies "^26.2.2" - jest-runner "^26.2.2" - jest-runtime "^26.2.2" - jest-snapshot "^26.2.2" - jest-util "^26.2.0" - jest-validate "^26.2.0" - jest-watcher "^26.2.0" + jest-resolve "^26.3.0" + jest-resolve-dependencies "^26.3.0" + jest-runner "^26.3.0" + jest-runtime "^26.3.0" + jest-snapshot "^26.3.0" + jest-util "^26.3.0" + jest-validate "^26.3.0" + jest-watcher "^26.3.0" micromatch "^4.0.2" p-each-series "^2.1.0" rimraf "^3.0.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.2.0.tgz#f6faee1630fcc2fad208953164bccb31dbe0e45f" - integrity sha512-oCgp9NmEiJ5rbq9VI/v/yYLDpladAAVvFxZgNsnJxOETuzPZ0ZcKKHYjKYwCtPOP1WCrM5nmyuOhMStXFGHn+g== +"@jest/environment@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.3.0.tgz#e6953ab711ae3e44754a025f838bde1a7fd236a0" + integrity sha512-EW+MFEo0DGHahf83RAaiqQx688qpXgl99wdb8Fy67ybyzHwR1a58LHcO376xQJHfmoXTu89M09dH3J509cx2AA== dependencies: - "@jest/fake-timers" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/fake-timers" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" - jest-mock "^26.2.0" + jest-mock "^26.3.0" -"@jest/fake-timers@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.2.0.tgz#b485c57dc4c74d61406a339807a9af4bac74b75a" - integrity sha512-45Gfe7YzYTKqTayBrEdAF0qYyAsNRBzfkV0IyVUm3cx7AsCWlnjilBM4T40w7IXT5VspOgMPikQlV0M6gHwy/g== +"@jest/fake-timers@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.3.0.tgz#f515d4667a6770f60ae06ae050f4e001126c666a" + integrity sha512-ZL9ytUiRwVP8ujfRepffokBvD2KbxbqMhrXSBhSdAhISCw3gOkuntisiSFv+A6HN0n0fF4cxzICEKZENLmW+1A== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@sinonjs/fake-timers" "^6.0.1" "@types/node" "*" - jest-message-util "^26.2.0" - jest-mock "^26.2.0" - jest-util "^26.2.0" + jest-message-util "^26.3.0" + jest-mock "^26.3.0" + jest-util "^26.3.0" -"@jest/globals@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.2.0.tgz#ad78f1104f250c1a4bf5184a2ba51facc59b23f6" - integrity sha512-Hoc6ScEIPaym7RNytIL2ILSUWIGKlwEv+JNFof9dGYOdvPjb2evEURSslvCMkNuNg1ECEClTE8PH7ULlMJntYA== +"@jest/globals@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.3.0.tgz#41a931c5bce4572b437dffab7146850044c7d359" + integrity sha512-oPe30VG9zor2U3Ev7khCM2LkjO3D+mgAv6s5D3Ed0sxfELxoRZwR8d1VgYWVQljcpumMwe9tDrKNuzgVjbEt7g== dependencies: - "@jest/environment" "^26.2.0" - "@jest/types" "^26.2.0" - expect "^26.2.0" + "@jest/environment" "^26.3.0" + "@jest/types" "^26.3.0" + expect "^26.3.0" -"@jest/reporters@^26.2.2": - version "26.2.2" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.2.2.tgz#5a8632ab410f4fc57782bc05dcf115e91818e869" - integrity sha512-7854GPbdFTAorWVh+RNHyPO9waRIN6TcvCezKVxI1khvFq9YjINTW7J3WU+tbR038Ynn6WjYred6vtT0YmIWVQ== +"@jest/reporters@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.3.0.tgz#12112cc0a073a92e7205d7ceee4de7cfac232105" + integrity sha512-MfLJOUPxhGb3sRT/wFjHXd6gyVQ1Fb1XxbEwY+gqdDBpg3pq5qAB5eiBUvcTheFRHmhu3gOv3UZ/gtxmqGBA+Q== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.2.0" - "@jest/test-result" "^26.2.0" - "@jest/transform" "^26.2.2" - "@jest/types" "^26.2.0" + "@jest/console" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/transform" "^26.3.0" + "@jest/types" "^26.3.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" @@ -461,63 +461,63 @@ istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.0.2" - jest-haste-map "^26.2.2" - jest-resolve "^26.2.2" - jest-util "^26.2.0" - jest-worker "^26.2.1" + jest-haste-map "^26.3.0" + jest-resolve "^26.3.0" + jest-util "^26.3.0" + jest-worker "^26.3.0" slash "^3.0.0" source-map "^0.6.0" string-length "^4.0.1" terminal-link "^2.0.0" - v8-to-istanbul "^4.1.3" + v8-to-istanbul "^5.0.1" optionalDependencies: node-notifier "^7.0.0" -"@jest/source-map@^26.1.0": - version "26.1.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.1.0.tgz#a6a020d00e7d9478f4b690167c5e8b77e63adb26" - integrity sha512-XYRPYx4eEVX15cMT9mstnO7hkHP3krNtKfxUYd8L7gbtia8JvZZ6bMzSwa6IQJENbudTwKMw5R1BePRD+bkEmA== +"@jest/source-map@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.3.0.tgz#0e646e519883c14c551f7b5ae4ff5f1bfe4fc3d9" + integrity sha512-hWX5IHmMDWe1kyrKl7IhFwqOuAreIwHhbe44+XH2ZRHjrKIh0LO5eLQ/vxHFeAfRwJapmxuqlGAEYLadDq6ZGQ== dependencies: callsites "^3.0.0" graceful-fs "^4.2.4" source-map "^0.6.0" -"@jest/test-result@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.2.0.tgz#51c9b165c8851cfcf7a3466019114785e154f76b" - integrity sha512-kgPlmcVafpmfyQEu36HClK+CWI6wIaAWDHNxfQtGuKsgoa2uQAYdlxjMDBEa3CvI40+2U3v36gQF6oZBkoKatw== +"@jest/test-result@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.3.0.tgz#46cde01fa10c0aaeb7431bf71e4a20d885bc7fdb" + integrity sha512-a8rbLqzW/q7HWheFVMtghXV79Xk+GWwOK1FrtimpI5n1la2SY0qHri3/b0/1F0Ve0/yJmV8pEhxDfVwiUBGtgg== dependencies: - "@jest/console" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/console" "^26.3.0" + "@jest/types" "^26.3.0" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^26.2.2": - version "26.2.2" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.2.2.tgz#5e8091f2e6c61fdf242af566cb820a4eadc6c4af" - integrity sha512-SliZWon5LNqV/lVXkeowSU6L8++FGOu3f43T01L1Gv6wnFDP00ER0utV9jyK9dVNdXqfMNCN66sfcyar/o7BNw== +"@jest/test-sequencer@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.3.0.tgz#f22b4927f8eef391ebaba6205d6aba328af9fda9" + integrity sha512-G7TA0Z85uj5l1m9UKZ/nXbArn0y+MeLKbojNLDHgjb1PpNNFDAOO6FJhk9We34m/hadcciMcJFnxV94dV2TX+w== dependencies: - "@jest/test-result" "^26.2.0" + "@jest/test-result" "^26.3.0" graceful-fs "^4.2.4" - jest-haste-map "^26.2.2" - jest-runner "^26.2.2" - jest-runtime "^26.2.2" + jest-haste-map "^26.3.0" + jest-runner "^26.3.0" + jest-runtime "^26.3.0" -"@jest/transform@^26.2.2": - version "26.2.2" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.2.2.tgz#86c005c8d5d749ac54d8df53ea58675fffe7a97e" - integrity sha512-c1snhvi5wRVre1XyoO3Eef5SEWpuBCH/cEbntBUd9tI5sNYiBDmO0My/lc5IuuGYKp/HFIHV1eZpSx5yjdkhKw== +"@jest/transform@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.3.0.tgz#c393e0e01459da8a8bfc6d2a7c2ece1a13e8ba55" + integrity sha512-Isj6NB68QorGoFWvcOjlUhpkT56PqNIsXKR7XfvoDlCANn/IANlh8DrKAA2l2JKC3yWSMH5wS0GwuQM20w3b2A== dependencies: "@babel/core" "^7.1.0" - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" babel-plugin-istanbul "^6.0.0" chalk "^4.0.0" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.2.4" - jest-haste-map "^26.2.2" + jest-haste-map "^26.3.0" jest-regex-util "^26.0.0" - jest-util "^26.2.0" + jest-util "^26.3.0" micromatch "^4.0.2" pirates "^4.0.1" slash "^3.0.0" @@ -545,6 +545,17 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" +"@jest/types@^26.3.0": + version "26.3.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.3.0.tgz#97627bf4bdb72c55346eef98e3b3f7ddc4941f71" + integrity sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@lerna/add@3.21.0": version "3.21.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-3.21.0.tgz#27007bde71cc7b0a2969ab3c2f0ae41578b4577b" @@ -1527,6 +1538,13 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" +"@types/istanbul-reports@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz#508b13aa344fa4976234e75dddcc34925737d821" + integrity sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA== + dependencies: + "@types/istanbul-lib-report" "*" + "@types/jest-expect-message@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@types/jest-expect-message/-/jest-expect-message-1.0.2.tgz#5e354d78f01db717ff280fdca5bc48be19eccce0" @@ -2234,16 +2252,16 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2" integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA== -babel-jest@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.2.2.tgz#70f618f2d7016ed71b232241199308985462f812" - integrity sha512-JmLuePHgA+DSOdOL8lPxCgD2LhPPm+rdw1vnxR73PpIrnmKCS2/aBhtkAcxQWuUcW2hBrH8MJ3LKXE7aWpNZyA== +babel-jest@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.3.0.tgz#10d0ca4b529ca3e7d1417855ef7d7bd6fc0c3463" + integrity sha512-sxPnQGEyHAOPF8NcUsD0g7hDCnvLL2XyblRBcgrzTWBB/mAIpWow3n1bEL+VghnnZfreLhFSBsFluRoK2tRK4g== dependencies: - "@jest/transform" "^26.2.2" - "@jest/types" "^26.2.0" + "@jest/transform" "^26.3.0" + "@jest/types" "^26.3.0" "@types/babel__core" "^7.1.7" babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.2.0" + babel-preset-jest "^26.3.0" chalk "^4.0.0" graceful-fs "^4.2.4" slash "^3.0.0" @@ -2269,7 +2287,7 @@ babel-plugin-jest-hoist@^26.2.0: "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" -babel-preset-current-node-syntax@^0.1.2: +babel-preset-current-node-syntax@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.3.tgz#b4b547acddbf963cba555ba9f9cbbb70bfd044da" integrity sha512-uyexu1sVwcdFnyq9o8UQYsXwXflIh8LvrF5+cKrYam93ned1CStffB3+BEcsxGSgagoA3GEyjDqO4a/58hyPYQ== @@ -2286,13 +2304,13 @@ babel-preset-current-node-syntax@^0.1.2: "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -babel-preset-jest@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.2.0.tgz#f198201a4e543a43eb40bc481e19736e095fd3e0" - integrity sha512-R1k8kdP3R9phYQugXeNnK/nvCGlBzG4m3EoIIukC80GXb6wCv2XiwPhK6K9MAkQcMszWBYvl2Wm+yigyXFQqXg== +babel-preset-jest@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.3.0.tgz#ed6344506225c065fd8a0b53e191986f74890776" + integrity sha512-5WPdf7nyYi2/eRxCbVrE1kKCWxgWY4RsPEbdJWFm7QsesFGqjdkyLeu1zRkwM1cxK6EPIlNd6d2AxLk7J+t4pw== dependencies: babel-plugin-jest-hoist "^26.2.0" - babel-preset-current-node-syntax "^0.1.2" + babel-preset-current-node-syntax "^0.1.3" babylon@^7.0.0-beta.39: version "7.0.0-beta.47" @@ -3548,10 +3566,10 @@ diff-sequences@^25.2.6: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd" integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg== -diff-sequences@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.0.0.tgz#0760059a5c287637b842bd7085311db7060e88a6" - integrity sha512-JC/eHYEC3aSS0vZGjuoc4vHA0yAQTzhQQldXMeMF+JlxLGJlCO38Gma82NV9gk1jGFz8mDzUMeaKXvjRRdJ2dg== +diff-sequences@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.3.0.tgz#62a59b1b29ab7fd27cef2a33ae52abe73042d0a2" + integrity sha512-5j5vdRcw3CNctePNYN0Wy2e/JbWT6cAYnXv5OuqPhDpyCGc0uLu2TK0zOCJWNB9kOIfYMSpIulRaDgIi4HJ6Ig== diff@^4.0.1, diff@^4.0.2: version "4.0.2" @@ -4075,16 +4093,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.2.0.tgz#0140dd9cc7376d7833852e9cda88c05414f1efba" - integrity sha512-8AMBQ9UVcoUXt0B7v+5/U5H6yiUR87L6eKCfjE3spx7Ya5lF+ebUo37MCFBML2OiLfkX1sxmQOZhIDonyVTkcw== +expect@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.3.0.tgz#6145b4999a2c9bd64a644360d0c781c44d369c54" + integrity sha512-3tC0dpPgkTGkycM9H+mMjzIhm8I3ZAOV+y1Cj3xmF9iKxDeHBCAB64hf1OY//bMzQ/AftfodNy2pQWMKpTIV8Q== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" ansi-styles "^4.0.0" - jest-get-type "^26.0.0" - jest-matcher-utils "^26.2.0" - jest-message-util "^26.2.0" + jest-get-type "^26.3.0" + jest-matcher-utils "^26.3.0" + jest-message-util "^26.3.0" jest-regex-util "^26.0.0" extend-shallow@^2.0.1: @@ -5436,57 +5454,57 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.2.0.tgz#b4946201defe0c919a2f3d601e9f98cb21dacc15" - integrity sha512-+RyJb+F1K/XBLIYiL449vo5D+CvlHv29QveJUWNPXuUicyZcq+tf1wNxmmFeRvAU1+TzhwqczSjxnCCFt7+8iA== +jest-changed-files@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.3.0.tgz#68fb2a7eb125f50839dab1f5a17db3607fe195b1" + integrity sha512-1C4R4nijgPltX6fugKxM4oQ18zimS7LqQ+zTTY8lMCMFPrxqBFb7KJH0Z2fRQJvw2Slbaipsqq7s1mgX5Iot+g== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" execa "^4.0.0" throat "^5.0.0" -jest-cli@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.2.2.tgz#4c273e5474baafac1eb15fd25aaafb4703f5ffbc" - integrity sha512-vVcly0n/ijZvdy6gPQiQt0YANwX2hLTPQZHtW7Vi3gcFdKTtif7YpI85F8R8JYy5DFSWz4x1OW0arnxlziu5Lw== +jest-cli@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.3.0.tgz#046164f0b8194234aaa76bb58e867f5d6e3fcf53" + integrity sha512-vrlDluEjnNTJNpmw+lJ1Dvjhc+2o7QG0dG8n+iDu3NaoQ9OzqNeZsZZ0a9KP7SdtD5BXgvGSpCWTlLH5SqtxcA== dependencies: - "@jest/core" "^26.2.2" - "@jest/test-result" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/core" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/types" "^26.3.0" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" import-local "^3.0.2" is-ci "^2.0.0" - jest-config "^26.2.2" - jest-util "^26.2.0" - jest-validate "^26.2.0" + jest-config "^26.3.0" + jest-util "^26.3.0" + jest-validate "^26.3.0" prompts "^2.0.1" yargs "^15.3.1" -jest-config@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.2.2.tgz#f3ebc7e2bc3f49de8ed3f8007152f345bb111917" - integrity sha512-2lhxH0y4YFOijMJ65usuf78m7+9/8+hAb1PZQtdRdgnQpAb4zP6KcVDDktpHEkspBKnc2lmFu+RQdHukUUbiTg== +jest-config@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.3.0.tgz#adb776fa88fc45ea719287cc09e4f0f5d5b3ce00" + integrity sha512-xzvmhKYOXOc/JjGabUUXoi7Nxu6QpY5zJxND85wdqFrdP7raJT5wqlrVJbp6Bv4Sj1e83Z8bkxjsZCpwPASaPw== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.2.2" - "@jest/types" "^26.2.0" - babel-jest "^26.2.2" + "@jest/test-sequencer" "^26.3.0" + "@jest/types" "^26.3.0" + babel-jest "^26.3.0" chalk "^4.0.0" deepmerge "^4.2.2" glob "^7.1.1" graceful-fs "^4.2.4" - jest-environment-jsdom "^26.2.0" - jest-environment-node "^26.2.0" - jest-get-type "^26.0.0" - jest-jasmine2 "^26.2.2" + jest-environment-jsdom "^26.3.0" + jest-environment-node "^26.3.0" + jest-get-type "^26.3.0" + jest-jasmine2 "^26.3.0" jest-regex-util "^26.0.0" - jest-resolve "^26.2.2" - jest-util "^26.2.0" - jest-validate "^26.2.0" + jest-resolve "^26.3.0" + jest-util "^26.3.0" + jest-validate "^26.3.0" micromatch "^4.0.2" - pretty-format "^26.2.0" + pretty-format "^26.3.0" jest-diff@^25.2.1: version "25.5.0" @@ -5498,15 +5516,15 @@ jest-diff@^25.2.1: jest-get-type "^25.2.6" pretty-format "^25.5.0" -jest-diff@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.2.0.tgz#dee62c771adbb23ae585f3f1bd289a6e8ef4f298" - integrity sha512-Wu4Aopi2nzCsHWLBlD48TgRy3Z7OsxlwvHNd1YSnHc7q1NJfrmyCPoUXrTIrydQOG5ApaYpsAsdfnMbJqV1/wQ== +jest-diff@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.3.0.tgz#485eea87b7003d34628c960c6c625ffe4de8ab04" + integrity sha512-q5OZAtnr5CbHzrhjANzc3wvROk7+rcjCUI5uqM4cjOjtscNKfbJKBs3YhsWWhsdsIZzI3gc6wOpm49r6S61beg== dependencies: chalk "^4.0.0" - diff-sequences "^26.0.0" - jest-get-type "^26.0.0" - pretty-format "^26.2.0" + diff-sequences "^26.3.0" + jest-get-type "^26.3.0" + pretty-format "^26.3.0" jest-docblock@^26.0.0: version "26.0.0" @@ -5515,41 +5533,41 @@ jest-docblock@^26.0.0: dependencies: detect-newline "^3.0.0" -jest-each@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.2.0.tgz#aec8efa01d072d7982c900e74940863385fa884e" - integrity sha512-gHPCaho1twWHB5bpcfnozlc6mrMi+VAewVPNgmwf81x2Gzr6XO4dl+eOrwPWxbkYlgjgrYjWK2xgKnixbzH3Ew== +jest-each@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.3.0.tgz#f70192d59f6a8d72b4ccfe8e9a39ddf667b1263e" + integrity sha512-OSAnLv0Eo/sDVhV0ifT2u6Q4aYUBoZ97R4k9cQshUFLTco0iRDbViJiW3Y6ySZjW95Tb83/xMYCppBih/7sW/A== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" chalk "^4.0.0" - jest-get-type "^26.0.0" - jest-util "^26.2.0" - pretty-format "^26.2.0" - -jest-environment-jsdom@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.2.0.tgz#6443a6f3569297dcaa4371dddf93acaf167302dc" - integrity sha512-sDG24+5M4NuIGzkI3rJW8XUlrpkvIdE9Zz4jhD8OBnVxAw+Y1jUk9X+lAOD48nlfUTlnt3lbAI3k2Ox+WF3S0g== - dependencies: - "@jest/environment" "^26.2.0" - "@jest/fake-timers" "^26.2.0" - "@jest/types" "^26.2.0" + jest-get-type "^26.3.0" + jest-util "^26.3.0" + pretty-format "^26.3.0" + +jest-environment-jsdom@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.3.0.tgz#3b749ba0f3a78e92ba2c9ce519e16e5dd515220c" + integrity sha512-zra8He2btIMJkAzvLaiZ9QwEPGEetbxqmjEBQwhH3CA+Hhhu0jSiEJxnJMbX28TGUvPLxBt/zyaTLrOPF4yMJA== + dependencies: + "@jest/environment" "^26.3.0" + "@jest/fake-timers" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" - jest-mock "^26.2.0" - jest-util "^26.2.0" + jest-mock "^26.3.0" + jest-util "^26.3.0" jsdom "^16.2.2" -jest-environment-node@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.2.0.tgz#fee89e06bdd4bed3f75ee2978d73ede9bb57a681" - integrity sha512-4M5ExTYkJ19efBzkiXtBi74JqKLDciEk4CEsp5tTjWGYMrlKFQFtwIVG3tW1OGE0AlXhZjuHPwubuRYY4j4uOw== +jest-environment-node@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.3.0.tgz#56c6cfb506d1597f94ee8d717072bda7228df849" + integrity sha512-c9BvYoo+FGcMj5FunbBgtBnbR5qk3uky8PKyRVpSfe2/8+LrNQMiXX53z6q2kY+j15SkjQCOSL/6LHnCPLVHNw== dependencies: - "@jest/environment" "^26.2.0" - "@jest/fake-timers" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/environment" "^26.3.0" + "@jest/fake-timers" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" - jest-mock "^26.2.0" - jest-util "^26.2.0" + jest-mock "^26.3.0" + jest-util "^26.3.0" jest-expect-message@^1.0.2: version "1.0.2" @@ -5561,81 +5579,81 @@ jest-get-type@^25.2.6: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-25.2.6.tgz#0b0a32fab8908b44d508be81681487dbabb8d877" integrity sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig== -jest-get-type@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.0.0.tgz#381e986a718998dbfafcd5ec05934be538db4039" - integrity sha512-zRc1OAPnnws1EVfykXOj19zo2EMw5Hi6HLbFCSjpuJiXtOWAYIjNsHVSbpQ8bDX7L5BGYGI8m+HmKdjHYFF0kg== +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== -jest-haste-map@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.2.2.tgz#6d4267b1903854bfdf6a871419f35a82f03ae71e" - integrity sha512-3sJlMSt+NHnzCB+0KhJ1Ut4zKJBiJOlbrqEYNdRQGlXTv8kqzZWjUKQRY3pkjmlf+7rYjAV++MQ4D6g4DhAyOg== +jest-haste-map@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.3.0.tgz#c51a3b40100d53ab777bfdad382d2e7a00e5c726" + integrity sha512-DHWBpTJgJhLLGwE5Z1ZaqLTYqeODQIZpby0zMBsCU9iRFHYyhklYqP4EiG73j5dkbaAdSZhgB938mL51Q5LeZA== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@types/graceful-fs" "^4.1.2" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.4" jest-regex-util "^26.0.0" - jest-serializer "^26.2.0" - jest-util "^26.2.0" - jest-worker "^26.2.1" + jest-serializer "^26.3.0" + jest-util "^26.3.0" + jest-worker "^26.3.0" micromatch "^4.0.2" sane "^4.0.3" walker "^1.0.7" optionalDependencies: fsevents "^2.1.2" -jest-jasmine2@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.2.2.tgz#d82b1721fac2b153a4f8b3f0c95e81e702812de2" - integrity sha512-Q8AAHpbiZMVMy4Hz9j1j1bg2yUmPa1W9StBvcHqRaKa9PHaDUMwds8LwaDyzP/2fkybcTQE4+pTMDOG9826tEw== +jest-jasmine2@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.3.0.tgz#5c9d365d3032342801cfd15abd2cdcccc7fb01ff" + integrity sha512-ZPkkA2XfH/fcLOp0SjeR4uDrMoNFilcwxLHORpjfMrcU0BFHNNRaF3DnslCdmewzqaERqtmHpYo8jj34RT+m2g== dependencies: "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.2.0" - "@jest/source-map" "^26.1.0" - "@jest/test-result" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/environment" "^26.3.0" + "@jest/source-map" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - expect "^26.2.0" + expect "^26.3.0" is-generator-fn "^2.0.0" - jest-each "^26.2.0" - jest-matcher-utils "^26.2.0" - jest-message-util "^26.2.0" - jest-runtime "^26.2.2" - jest-snapshot "^26.2.2" - jest-util "^26.2.0" - pretty-format "^26.2.0" + jest-each "^26.3.0" + jest-matcher-utils "^26.3.0" + jest-message-util "^26.3.0" + jest-runtime "^26.3.0" + jest-snapshot "^26.3.0" + jest-util "^26.3.0" + pretty-format "^26.3.0" throat "^5.0.0" -jest-leak-detector@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.2.0.tgz#073ee6d8db7a9af043e7ce99d8eea17a4fb0cc50" - integrity sha512-aQdzTX1YiufkXA1teXZu5xXOJgy7wZQw6OJ0iH5CtQlOETe6gTSocaYKUNui1SzQ91xmqEUZ/WRavg9FD82rtQ== +jest-leak-detector@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.3.0.tgz#74c077a243585cc1d2cfd50d231d373100dd6e6f" + integrity sha512-8C2Bur0S6n2xgW5kx22bDbe+Jjz9sM7/abr7DRQ48ww6q4w7vVzEpDEZiY7KatjTHtUloLTAqwTXEXg+tuETTg== dependencies: - jest-get-type "^26.0.0" - pretty-format "^26.2.0" + jest-get-type "^26.3.0" + pretty-format "^26.3.0" -jest-matcher-utils@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.2.0.tgz#b107af98c2b8c557ffd46c1adf06f794aa52d622" - integrity sha512-2cf/LW2VFb3ayPHrH36ZDjp9+CAeAe/pWBAwsV8t3dKcrINzXPVxq8qMWOxwt5BaeBCx4ZupVGH7VIgB8v66vQ== +jest-matcher-utils@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.3.0.tgz#41dfecac8e7a38e38330c159789711a50edffaed" + integrity sha512-M5ZRSp6qpyzZyrLwXD2Sop7xaxm6qu/mKvqWU+BOSPTa4Y0ZEoKUYBzus/emg6kaVt7Ov9xMDLLZR1SrC8FxCw== dependencies: chalk "^4.0.0" - jest-diff "^26.2.0" - jest-get-type "^26.0.0" - pretty-format "^26.2.0" + jest-diff "^26.3.0" + jest-get-type "^26.3.0" + pretty-format "^26.3.0" -jest-message-util@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.2.0.tgz#757fbc1323992297092bb9016a71a2eb12fd22ea" - integrity sha512-g362RhZaJuqeqG108n1sthz5vNpzTNy926eNDszo4ncRbmmcMRIUAZibnd6s5v2XSBCChAxQtCoN25gnzp7JbQ== +jest-message-util@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.3.0.tgz#3bdb538af27bb417f2d4d16557606fd082d5841a" + integrity sha512-xIavRYqr4/otGOiLxLZGj3ieMmjcNE73Ui+LdSW/Y790j5acqCsAdDiLIbzHCZMpN07JOENRWX5DcU+OQ+TjTA== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@types/stack-utils" "^1.0.1" chalk "^4.0.0" graceful-fs "^4.2.4" @@ -5643,12 +5661,12 @@ jest-message-util@^26.2.0: slash "^3.0.0" stack-utils "^2.0.2" -jest-mock@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.2.0.tgz#a1b3303ab38c34aa1dbbc16ab57cdc1a59ed50d1" - integrity sha512-XeC7yWtWmWByoyVOHSsE7NYsbXJLtJNgmhD7z4MKumKm6ET0si81bsSLbQ64L5saK3TgsHo2B/UqG5KNZ1Sp/Q== +jest-mock@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.3.0.tgz#ee62207c3c5ebe5f35b760e1267fee19a1cfdeba" + integrity sha512-PeaRrg8Dc6mnS35gOo/CbZovoDPKAeB1FICZiuagAgGvbWdNNyjQjkOaGUa/3N3JtpQ/Mh9P4A2D4Fv51NnP8Q== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@types/node" "*" jest-pnp-resolver@^1.2.2: @@ -5661,117 +5679,117 @@ jest-regex-util@^26.0.0: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -jest-resolve-dependencies@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.2.2.tgz#2ad3cd9281730e9a5c487cd846984c5324e47929" - integrity sha512-S5vufDmVbQXnpP7435gr710xeBGUFcKNpNswke7RmFvDQtmqPjPVU/rCeMlEU0p6vfpnjhwMYeaVjKZAy5QYJA== +jest-resolve-dependencies@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.3.0.tgz#98e4a2d17ffa352e6be72a3d180f2260d9d4f473" + integrity sha512-j5rZ2BUh8vVjJZ7bpgCre0t6mbFLm5BWfVhYb1H35A3nbPN3kepzMqkMnKXPhwyLIVwn25uYkv6LHc2/Xa1sGw== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" jest-regex-util "^26.0.0" - jest-snapshot "^26.2.2" + jest-snapshot "^26.3.0" -jest-resolve@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.2.2.tgz#324a20a516148d61bffa0058ed0c77c510ecfd3e" - integrity sha512-ye9Tj/ILn/0OgFPE/3dGpQPUqt4dHwIocxt5qSBkyzxQD8PbL0bVxBogX2FHxsd3zJA7V2H/cHXnBnNyyT9YoQ== +jest-resolve@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.3.0.tgz#c497cded13714b9ec98848837525323184fb4c95" + integrity sha512-+oKVWDkXjdZ4Xciuxv+M5e5v/Z3RLjrKIzen9tq3IO6HpzsLf9Mk3rET5du1uU8iVUCvz4/1PmjzNF50Uc7l2A== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" chalk "^4.0.0" graceful-fs "^4.2.4" jest-pnp-resolver "^1.2.2" - jest-util "^26.2.0" + jest-util "^26.3.0" read-pkg-up "^7.0.1" resolve "^1.17.0" slash "^3.0.0" -jest-runner@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.2.2.tgz#6d03d057886e9c782e10b2cf37443f902fe0e39e" - integrity sha512-/qb6ptgX+KQ+aNMohJf1We695kaAfuu3u3ouh66TWfhTpLd9WbqcF6163d/tMoEY8GqPztXPLuyG0rHRVDLxCA== +jest-runner@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.3.0.tgz#30093549b31659e64e987728a6ef601f464916b6" + integrity sha512-eiPKgbhTM4q6A7RBh4qzKf6hwFDJMfqoFJubFvWSrHdZUsvSiBWYDqQI+FUXDFxDAOn/AfZjKURACAH3fUDjwA== dependencies: - "@jest/console" "^26.2.0" - "@jest/environment" "^26.2.0" - "@jest/test-result" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/console" "^26.3.0" + "@jest/environment" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" chalk "^4.0.0" emittery "^0.7.1" exit "^0.1.2" graceful-fs "^4.2.4" - jest-config "^26.2.2" + jest-config "^26.3.0" jest-docblock "^26.0.0" - jest-haste-map "^26.2.2" - jest-leak-detector "^26.2.0" - jest-message-util "^26.2.0" - jest-resolve "^26.2.2" - jest-runtime "^26.2.2" - jest-util "^26.2.0" - jest-worker "^26.2.1" + jest-haste-map "^26.3.0" + jest-leak-detector "^26.3.0" + jest-message-util "^26.3.0" + jest-resolve "^26.3.0" + jest-runtime "^26.3.0" + jest-util "^26.3.0" + jest-worker "^26.3.0" source-map-support "^0.5.6" throat "^5.0.0" -jest-runtime@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.2.2.tgz#2480ff79320680a643031dd21998d7c63d83ab68" - integrity sha512-a8VXM3DxCDnCIdl9+QucWFfQ28KdqmyVFqeKLigHdErtsx56O2ZIdQkhFSuP1XtVrG9nTNHbKxjh5XL1UaFDVQ== - dependencies: - "@jest/console" "^26.2.0" - "@jest/environment" "^26.2.0" - "@jest/fake-timers" "^26.2.0" - "@jest/globals" "^26.2.0" - "@jest/source-map" "^26.1.0" - "@jest/test-result" "^26.2.0" - "@jest/transform" "^26.2.2" - "@jest/types" "^26.2.0" +jest-runtime@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.3.0.tgz#2f2d030b8a3d6c7653cb9c40544d687a1a5c09af" + integrity sha512-cqCz+S76qwZcPnddkLCjuNw9O8/lB+i1odjz2hpvpDogXLp0qSMs+Slh1gBjB5V4feUyBHav/550Mr3FeTdmnA== + dependencies: + "@jest/console" "^26.3.0" + "@jest/environment" "^26.3.0" + "@jest/fake-timers" "^26.3.0" + "@jest/globals" "^26.3.0" + "@jest/source-map" "^26.3.0" + "@jest/test-result" "^26.3.0" + "@jest/transform" "^26.3.0" + "@jest/types" "^26.3.0" "@types/yargs" "^15.0.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.2.4" - jest-config "^26.2.2" - jest-haste-map "^26.2.2" - jest-message-util "^26.2.0" - jest-mock "^26.2.0" + jest-config "^26.3.0" + jest-haste-map "^26.3.0" + jest-message-util "^26.3.0" + jest-mock "^26.3.0" jest-regex-util "^26.0.0" - jest-resolve "^26.2.2" - jest-snapshot "^26.2.2" - jest-util "^26.2.0" - jest-validate "^26.2.0" + jest-resolve "^26.3.0" + jest-snapshot "^26.3.0" + jest-util "^26.3.0" + jest-validate "^26.3.0" slash "^3.0.0" strip-bom "^4.0.0" yargs "^15.3.1" -jest-serializer@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.2.0.tgz#92dcae5666322410f4bf50211dd749274959ddac" - integrity sha512-V7snZI9IVmyJEu0Qy0inmuXgnMWDtrsbV2p9CRAcmlmPVwpC2ZM8wXyYpiugDQnwLHx0V4+Pnog9Exb3UO8M6Q== +jest-serializer@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.3.0.tgz#1c9d5e1b74d6e5f7e7f9627080fa205d976c33ef" + integrity sha512-IDRBQBLPlKa4flg77fqg0n/pH87tcRKwe8zxOVTWISxGpPHYkRZ1dXKyh04JOja7gppc60+soKVZ791mruVdow== dependencies: "@types/node" "*" graceful-fs "^4.2.4" -jest-snapshot@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.2.2.tgz#9d2eda083a4a1017b157e351868749bd63211799" - integrity sha512-NdjD8aJS7ePu268Wy/n/aR1TUisG0BOY+QOW4f6h46UHEKOgYmmkvJhh2BqdVZQ0BHSxTMt04WpCf9njzx8KtA== +jest-snapshot@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.3.0.tgz#8bec08bda1133ad0a7fa0184b1c385f801e3b1df" + integrity sha512-tHVUIeOTN/0SZN2ZjBZHzPG5txs/6uEQx2mwjxIT7QRE7pddPLd8jktXthyIz6bV+3GKetWXSV4YAoPUQwrfMA== dependencies: "@babel/types" "^7.0.0" - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" "@types/prettier" "^2.0.0" chalk "^4.0.0" - expect "^26.2.0" + expect "^26.3.0" graceful-fs "^4.2.4" - jest-diff "^26.2.0" - jest-get-type "^26.0.0" - jest-haste-map "^26.2.2" - jest-matcher-utils "^26.2.0" - jest-message-util "^26.2.0" - jest-resolve "^26.2.2" + jest-diff "^26.3.0" + jest-get-type "^26.3.0" + jest-haste-map "^26.3.0" + jest-matcher-utils "^26.3.0" + jest-message-util "^26.3.0" + jest-resolve "^26.3.0" natural-compare "^1.4.0" - pretty-format "^26.2.0" + pretty-format "^26.3.0" semver "^7.3.2" -jest-util@26.x, jest-util@^26.2.0: +jest-util@26.x: version "26.2.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.2.0.tgz#0597d2a27c559340957609f106c408c17c1d88ac" integrity sha512-YmDwJxLZ1kFxpxPfhSJ0rIkiZOM0PQbRcfH0TzJOhqCisCAsI1WcmoQqO83My9xeVA2k4n+rzg2UuexVKzPpig== @@ -5783,48 +5801,60 @@ jest-util@26.x, jest-util@^26.2.0: is-ci "^2.0.0" micromatch "^4.0.2" -jest-validate@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.2.0.tgz#97fedf3e7984b7608854cbf925b9ca6ebcbdb78a" - integrity sha512-8XKn3hM6VIVmLNuyzYLCPsRCT83o8jMZYhbieh4dAyKLc4Ypr36rVKC+c8WMpWkfHHpGnEkvWUjjIAyobEIY/Q== +jest-util@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.3.0.tgz#a8974b191df30e2bf523ebbfdbaeb8efca535b3e" + integrity sha512-4zpn6bwV0+AMFN0IYhH/wnzIQzRaYVrz1A8sYnRnj4UXDXbOVtWmlaZkO9mipFqZ13okIfN87aDoJWB7VH6hcw== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" + "@types/node" "*" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + +jest-validate@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.3.0.tgz#751c3f8e20a15b9d7ada8d1a361d0975ba793249" + integrity sha512-oIJWqkIdgh1Q1O7ku4kDGkQoFKUOtZyDMbfYs4DsBi6r+FDY37xKTyZ30nM8F6yGZfB72qc7XB+3qKRgokwoXg== + dependencies: + "@jest/types" "^26.3.0" camelcase "^6.0.0" chalk "^4.0.0" - jest-get-type "^26.0.0" + jest-get-type "^26.3.0" leven "^3.1.0" - pretty-format "^26.2.0" + pretty-format "^26.3.0" -jest-watcher@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.2.0.tgz#45bdf2fecadd19c0a501f3b071a474dca636825b" - integrity sha512-674Boco4Joe0CzgKPL6K4Z9LgyLx+ZvW2GilbpYb8rFEUkmDGgsZdv1Hv5rxsRpb1HLgKUOL/JfbttRCuFdZXQ== +jest-watcher@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.3.0.tgz#f8ef3068ddb8af160ef868400318dc4a898eed08" + integrity sha512-XnLdKmyCGJ3VoF6G/p5ohbJ04q/vv5aH9ENI+i6BL0uu9WWB6Z7Z2lhQQk0d2AVZcRGp1yW+/TsoToMhBFPRdQ== dependencies: - "@jest/test-result" "^26.2.0" - "@jest/types" "^26.2.0" + "@jest/test-result" "^26.3.0" + "@jest/types" "^26.3.0" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" - jest-util "^26.2.0" + jest-util "^26.3.0" string-length "^4.0.1" -jest-worker@^26.2.1: - version "26.2.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.2.1.tgz#5d630ab93f666b53f911615bc13e662b382bd513" - integrity sha512-+XcGMMJDTeEGncRb5M5Zq9P7K4sQ1sirhjdOxsN1462h6lFo9w59bl2LVQmdGEEeU3m+maZCkS2Tcc9SfCHO4A== +jest-worker@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.3.0.tgz#7c8a97e4f4364b4f05ed8bca8ca0c24de091871f" + integrity sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw== dependencies: "@types/node" "*" merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.2.2: - version "26.2.2" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.2.2.tgz#a022303887b145147204c5f66e6a5c832333c7e7" - integrity sha512-EkJNyHiAG1+A8pqSz7cXttoVa34hOEzN/MrnJhYnfp5VHxflVcf2pu3oJSrhiy6LfIutLdWo+n6q63tjcoIeig== +jest@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.3.0.tgz#366e25827831e65743a324bc476de54f41f2e07b" + integrity sha512-LFCry7NS6bTa4BUGUHC+NvZ3B9WG7Jv8F+Lb96dAJFM23LMwSsL5RiJcw9S+nejsh8lS1VxHq+RSH4Xa9tujpA== dependencies: - "@jest/core" "^26.2.2" + "@jest/core" "^26.3.0" import-local "^3.0.2" - jest-cli "^26.2.2" + jest-cli "^26.3.0" js-tokens@^4.0.0: version "4.0.0" @@ -7423,12 +7453,12 @@ pretty-format@^25.2.1, pretty-format@^25.5.0: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-format@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.2.0.tgz#83ecc8d7de676ff224225055e72bd64821cec4f1" - integrity sha512-qi/8IuBu2clY9G7qCXgCdD1Bf9w+sXakdHTRToknzMtVy0g7c4MBWaZy7MfB7ndKZovRO6XRwJiAYqq+MC7SDA== +pretty-format@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.3.0.tgz#d9a7b4bb2948cabc646e6a7729b12f686f3fed36" + integrity sha512-24kRw4C2Ok8+SHquydTZZCZPF2fvANI7rChGs8sNu784+1Jkq5jVFMvNAJSLuLy6XUcP3Fnw+SscLIQag/CG8Q== dependencies: - "@jest/types" "^26.2.0" + "@jest/types" "^26.3.0" ansi-regex "^5.0.0" ansi-styles "^4.0.0" react-is "^16.12.0" @@ -9264,10 +9294,10 @@ v8-compile-cache@^2.0.3, v8-compile-cache@^2.1.1: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745" integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ== -v8-to-istanbul@^4.1.3: - version "4.1.4" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-4.1.4.tgz#b97936f21c0e2d9996d4985e5c5156e9d4e49cd6" - integrity sha512-Rw6vJHj1mbdK8edjR7+zuJrpDtKIgNdAvTSAcpYfgMIw+u2dPDntD3dgN4XQFLU2/fvFQdzj+EeSGfd/jnY5fQ== +v8-to-istanbul@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-5.0.1.tgz#0608f5b49a481458625edb058488607f25498ba5" + integrity sha512-mbDNjuDajqYe3TXFk5qxcQy8L1msXNE37WTlLoqqpBfRsimbNcrlhQlDPntmECEcUvdC+AQ8CyMMf6EUx1r74Q== dependencies: "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^1.6.0" From a68b06406e51acdea8cb918212fd52913b34e855 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2020 10:55:26 +0200 Subject: [PATCH 15/45] chore(deps-dev): bump @typescript-eslint/parser from 3.8.0 to 3.9.0 (#1869) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.8.0 to 3.9.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.9.0/packages/parser) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4c93c3e5b7..05a3952da9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^3.8.0", - "@typescript-eslint/parser": "^3.8.0", + "@typescript-eslint/parser": "^3.9.0", "eslint": "^7.6.0", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.2.0", diff --git a/yarn.lock b/yarn.lock index 06e29d1984..f21fed0037 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1691,15 +1691,26 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.8.0.tgz#8e1dcd404299bf79492409c81c415fa95a7c622b" - integrity sha512-u5vjOBaCsnMVQOvkKCXAmmOhyyMmFFf5dbkM3TIbg3MZ2pyv5peE4gj81UAbTHwTOXEwf7eCQTUMKrDl/+qGnA== +"@typescript-eslint/experimental-utils@3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.9.0.tgz#3171d8ddba0bf02a8c2034188593630914fcf5ee" + integrity sha512-/vSHUDYizSOhrOJdjYxPNGfb4a3ibO8zd4nUKo/QBFOmxosT3cVUV7KIg8Dwi6TXlr667G7YPqFK9+VSZOorNA== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/types" "3.9.0" + "@typescript-eslint/typescript-estree" "3.9.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@^3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.9.0.tgz#344978a265d9a5c7c8f13e62c78172a4374dabea" + integrity sha512-rDHOKb6uW2jZkHQniUQVZkixQrfsZGUCNWWbKWep4A5hGhN5dLHMUCNAWnC4tXRlHedXkTDptIpxs6e4Pz8UfA== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.8.0" - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/typescript-estree" "3.8.0" + "@typescript-eslint/experimental-utils" "3.9.0" + "@typescript-eslint/types" "3.9.0" + "@typescript-eslint/typescript-estree" "3.9.0" eslint-visitor-keys "^1.1.0" "@typescript-eslint/types@3.8.0": @@ -1707,6 +1718,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.8.0.tgz#58581dd863f86e0cd23353d94362bb90b4bea796" integrity sha512-8kROmEQkv6ss9kdQ44vCN1dTrgu4Qxrd2kXr10kz2NP5T8/7JnEfYNxCpPkArbLIhhkGLZV3aVMplH1RXQRF7Q== +"@typescript-eslint/types@3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.9.0.tgz#be9d0aa451e1bf3ce99f2e6920659e5b2e6bfe18" + integrity sha512-rb6LDr+dk9RVVXO/NJE8dT1pGlso3voNdEIN8ugm4CWM5w5GimbThCMiMl4da1t5u3YwPWEwOnKAULCZgBtBHg== + "@typescript-eslint/typescript-estree@3.8.0": version "3.8.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.8.0.tgz#0606d19f629f813dbdd5a34c7a1e895d6191cac6" @@ -1721,6 +1737,20 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.0.tgz#c6abbb50fa0d715cab46fef67ca6378bf2eaca13" + integrity sha512-N+158NKgN4rOmWVfvKOMoMFV5n8XxAliaKkArm/sOypzQ0bUL8MSnOEBW3VFIeffb/K5ce/cAV0yYhR7U4ALAA== + dependencies: + "@typescript-eslint/types" "3.9.0" + "@typescript-eslint/visitor-keys" "3.9.0" + debug "^4.1.1" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + "@typescript-eslint/visitor-keys@3.8.0": version "3.8.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.8.0.tgz#ad35110249fb3fc30a36bfcbfeea93e710cfaab1" @@ -1728,6 +1758,13 @@ dependencies: eslint-visitor-keys "^1.1.0" +"@typescript-eslint/visitor-keys@3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.0.tgz#44de8e1b1df67adaf3b94d6b60b80f8faebc8dd3" + integrity sha512-O1qeoGqDbu0EZUC/MZ6F1WHTIzcBVhGqDj3LhTnj65WUA548RXVxUHbYhAW9bZWfb2rnX9QsbbP5nmeJ5Z4+ng== + dependencies: + eslint-visitor-keys "^1.1.0" + "@webassemblyjs/ast@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964" From cc9489a9b05a64dc6666959a733cc9455c198ea8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2020 11:59:34 +0200 Subject: [PATCH 16/45] chore(deps-dev): bump @typescript-eslint/eslint-plugin (#1867) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.8.0 to 3.9.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.9.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 47 +++++------------------------------------------ 2 files changed, 6 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index 05a3952da9..09555159e0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test:update": "lerna run test:update --concurrency=1 --stream" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^3.8.0", + "@typescript-eslint/eslint-plugin": "^3.9.0", "@typescript-eslint/parser": "^3.9.0", "eslint": "^7.6.0", "eslint-import-resolver-node": "^0.3.4", diff --git a/yarn.lock b/yarn.lock index f21fed0037..3874bce9b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1668,29 +1668,18 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.8.0.tgz#f82947bcdd9a4e42be7ad80dfd61f1dc411dd1df" - integrity sha512-lFb4VCDleFSR+eo4Ew+HvrJ37ZH1Y9ZyE+qyP7EiwBpcCVxwmUc5PAqhShCQ8N8U5vqYydm74nss+a0wrrCErw== +"@typescript-eslint/eslint-plugin@^3.9.0": + version "3.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.9.0.tgz#0fe529b33d63c9a94f7503ca2bb12c84b9477ff3" + integrity sha512-UD6b4p0/hSe1xdTvRCENSx7iQ+KR6ourlZFfYuPC7FlXEzdHuLPrEmuxZ23b2zW96KJX9Z3w05GE/wNOiEzrVg== dependencies: - "@typescript-eslint/experimental-utils" "3.8.0" + "@typescript-eslint/experimental-utils" "3.9.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.8.0.tgz#ac1f7c88322dcfb7635ece6f0441516dd951099a" - integrity sha512-o8T1blo1lAJE0QDsW7nSyvZHbiDzQDjINJKyB44Z3sSL39qBy5L10ScI/XwDtaiunoyKGLiY9bzRk4YjsUZl8w== - dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/typescript-estree" "3.8.0" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" - "@typescript-eslint/experimental-utils@3.9.0": version "3.9.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.9.0.tgz#3171d8ddba0bf02a8c2034188593630914fcf5ee" @@ -1713,30 +1702,11 @@ "@typescript-eslint/typescript-estree" "3.9.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/types@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.8.0.tgz#58581dd863f86e0cd23353d94362bb90b4bea796" - integrity sha512-8kROmEQkv6ss9kdQ44vCN1dTrgu4Qxrd2kXr10kz2NP5T8/7JnEfYNxCpPkArbLIhhkGLZV3aVMplH1RXQRF7Q== - "@typescript-eslint/types@3.9.0": version "3.9.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.9.0.tgz#be9d0aa451e1bf3ce99f2e6920659e5b2e6bfe18" integrity sha512-rb6LDr+dk9RVVXO/NJE8dT1pGlso3voNdEIN8ugm4CWM5w5GimbThCMiMl4da1t5u3YwPWEwOnKAULCZgBtBHg== -"@typescript-eslint/typescript-estree@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.8.0.tgz#0606d19f629f813dbdd5a34c7a1e895d6191cac6" - integrity sha512-MTv9nPDhlKfclwnplRNDL44mP2SY96YmPGxmMbMy6x12I+pERcxpIUht7DXZaj4mOKKtet53wYYXU0ABaiXrLw== - dependencies: - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/visitor-keys" "3.8.0" - debug "^4.1.1" - glob "^7.1.6" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" - "@typescript-eslint/typescript-estree@3.9.0": version "3.9.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.0.tgz#c6abbb50fa0d715cab46fef67ca6378bf2eaca13" @@ -1751,13 +1721,6 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.8.0.tgz#ad35110249fb3fc30a36bfcbfeea93e710cfaab1" - integrity sha512-gfqQWyVPpT9NpLREXNR820AYwgz+Kr1GuF3nf1wxpHD6hdxI62tq03ToomFnDxY0m3pUB39IF7sil7D5TQexLA== - dependencies: - eslint-visitor-keys "^1.1.0" - "@typescript-eslint/visitor-keys@3.9.0": version "3.9.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.0.tgz#44de8e1b1df67adaf3b94d6b60b80f8faebc8dd3" From 00024c2e50a9ec944ac9754d2677883c13e7dcf5 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 11 Aug 2020 12:35:06 +0200 Subject: [PATCH 17/45] chore: run integration tests as part of workflow (#1870) --- .github/workflows/main.yml | 88 ++++++++++++++++++++++++++++++++++++++ .mergify/config.yml | 6 +++ 2 files changed, 94 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2094a02ac5..978175bb11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,7 @@ env: # - build : Builds the source tree as-is # - test : Runs all unit tests against the build result # - create-release-package : Prepares a release package with the "real" version +# - integ-test : Runs integration tests against the release package jobs: build: @@ -289,3 +290,90 @@ jobs: - name: Test run: |- yarn test + + integ-test: + name: Integration Test + needs: create-release-package + runs-on: ubuntu-latest + + steps: + # Set up all of our standard runtimes + - name: Set up .NET 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.x' + - name: Set up Java 8 + uses: actions/setup-java@v1 + with: + java-version: '8' + - name: Set up Node 12 + uses: actions/setup-node@v2.1.1 + with: + node-version: '12' + - name: Set up Python 3.6 + uses: actions/setup-python@v2 + with: + python-version: '3.6' + - name: Install python3-venv + run: sudo apt install -y python3-venv + - name: Checkout aws/aws-cdk + uses: actions/checkout@v2 + with: + path: aws-cdk + ref: release + repository: aws/aws-cdk + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: release-package + path: ${{ runner.temp }} + - name: Locate Caches + id: cache-locations + run: |- + echo "::group::Upgrade pip" + # Need to have PIP >= 20.1 for "pip cache dir" to work + python3 -m pip install --upgrade pip + echo "::endgroup" + + echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" + echo "::set-output name=yarn-cache::$(yarn cache dir)" + - name: Cache + uses: actions/cache@v2 + with: + path: |- + ${{ steps.cache-locations.outputs.pip-cache }} + ${{ steps.cache-locations.outputs.yarn-cache }} + ~/.m2/repository + ~/.nuget/packages + key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '${{ runner.temp }}/build.json') }} + restore-keys: |- + ${{ runner.os }}-node@12-python@3.6- + ${{ runner.os }}-node@12- + ${{ runner.os }}- + # Run the integration test + - name: Install Dependencies + run: |- + yarn install --frozen-lockfile + working-directory: aws-cdk + - name: Install Tested Packages + run: |- + npm install --no-save ${{ runner.temp }}/js/*.tgz + npm install --no-save ${{ runner.temp }}/private/*.tgz --only=prod + - name: Integration Test + run: |- + npx lerna run build + ./pack.sh + env: + CDK_BUILD_JSII: ${{ github.workspace }}/node_modules/.bin/jsii + CDK_PACKAGE_JSII_PACMAK: ${{ github.workspace }}/node_modules/.bin/jsii-pacmak + CDK_PACKAGE_JSII_ROSETTA: ${{ github.workspace }}/node_modules/.bin/jsii-rosetta + # Alternative environment variables: + JSII: ${{ github.workspace }}/node_modules/.bin/jsii + PACMAK: ${{ github.workspace }}/node_modules/.bin/jsii-pacmak + ROSETTA: ${{ github.workspace }}/node_modules/.bin/jsii-rosetta + working-directory: aws-cdk + - name: Upload Result + uses: actions/upload-artifact@v2 + with: + name: integ-test-result + path: ${{ github.workspace }}/aws-cdk/dist/ diff --git a/.mergify/config.yml b/.mergify/config.yml index 21aad1efb1..d24b7522b1 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -31,6 +31,8 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # Integration Tests + - status-success=Integration Test # One test for each OS - status-success~=^Test \(ubuntu-.*$ - status-success~=^Test \(macos-.*$ @@ -76,6 +78,8 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # Integration Tests + - status-success=Integration Test # One test for each OS - status-success~=^Test \(ubuntu-.*$ - status-success~=^Test \(macos-.*$ @@ -121,6 +125,8 @@ pull_request_rules: - status-success~=AWS CodeBuild us-east-1 - status-success=continuous-integration/travis-ci/pr - status-success=Semantic Pull Request + # Integration Tests + - status-success=Integration Test # One test for each OS - status-success~=^Test \(ubuntu-.*$ - status-success~=^Test \(macos-.*$ From 41d79e7f31a8e7c59c7274c91f17dcd23187757f Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 11 Aug 2020 15:59:33 +0200 Subject: [PATCH 18/45] fix(dotnet): "Could not infer JSII type for .NET type 'AnonymousObject'" (#1718) When obtained through an untyped way (e.g: as part of an opaque object for example), instances of `AnonymousObject` could not be cast back to their Kernel form, because the converter lacked a code path to handle this type. Instead, it insisted on trying to infer a "better" run-time type for it. This adds the necessary code path to handle this condition and properly return the reverse conversion. Fixes aws/aws-cdk#7977 --- packages/@jsii/dotnet-runtime-test/.gitignore | 2 +- packages/@jsii/dotnet-runtime-test/.npmignore | 1 - .../@jsii/dotnet-runtime-test/generate.sh | 2 +- .../ComplianceTests.cs | 16 +- .../dotnet-runtime-test/test/NuGet.Config | 11 + .../dotnet-runtime-test/test/NuGet.config | 9 - .../Services/Converters/ValueConverter.cs | 12 +- packages/jsii-calc/lib/compliance.ts | 24 ++ packages/jsii-calc/test/assembly.jsii | 68 +++- .../__snapshots__/jsii-pacmak.test.ts.snap | 306 +++++++++++++++++- .../test/__snapshots__/jsii-tree.test.js.snap | 18 ++ .../__snapshots__/type-system.test.js.snap | 1 + 12 files changed, 454 insertions(+), 16 deletions(-) create mode 100644 packages/@jsii/dotnet-runtime-test/test/NuGet.Config delete mode 100644 packages/@jsii/dotnet-runtime-test/test/NuGet.config diff --git a/packages/@jsii/dotnet-runtime-test/.gitignore b/packages/@jsii/dotnet-runtime-test/.gitignore index 17aeeae9e5..18ef3033c8 100644 --- a/packages/@jsii/dotnet-runtime-test/.gitignore +++ b/packages/@jsii/dotnet-runtime-test/.gitignore @@ -21,4 +21,4 @@ obj/ node_modules/ .nyc_output/ coverage/ - +.nuget/ diff --git a/packages/@jsii/dotnet-runtime-test/.npmignore b/packages/@jsii/dotnet-runtime-test/.npmignore index 1a99b60185..d756651093 100644 --- a/packages/@jsii/dotnet-runtime-test/.npmignore +++ b/packages/@jsii/dotnet-runtime-test/.npmignore @@ -5,4 +5,3 @@ !*.nupkg !package.json !index.js - diff --git a/packages/@jsii/dotnet-runtime-test/generate.sh b/packages/@jsii/dotnet-runtime-test/generate.sh index 52ec7d0498..39f4dfc412 100644 --- a/packages/@jsii/dotnet-runtime-test/generate.sh +++ b/packages/@jsii/dotnet-runtime-test/generate.sh @@ -3,7 +3,7 @@ set -euo pipefail test="./test" # Generate NuGet packages for jsii-calc and its dependencies. -jsii-pacmak -vv -t dotnet --recurse -o ${test}/generated ../../jsii-calc +jsii-pacmak -t dotnet --recurse -o ${test}/generated ../../jsii-calc # Generate Directory.Build.props /usr/bin/env node ./Directory.Build.props.t.js > ${test}/Directory.Build.props diff --git a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs index 04d7d2be59..4cf03e3e80 100644 --- a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs +++ b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs @@ -34,7 +34,7 @@ public RuntimeException(string message) const string Prefix = nameof(IntegrationTests) + ".Compliance."; private readonly IDisposable _serviceContainerFixture; - + public ComplianceTests(ITestOutputHelper outputHelper, ServiceContainerFixture serviceContainerFixture) { serviceContainerFixture.SetOverride(outputHelper); @@ -1475,5 +1475,19 @@ public void CollectionOfInterfaces_MapOfInterfaces() Assert.IsAssignableFrom(elt); } } + + [Fact(DisplayName = Prefix + nameof(BurriedAnonymousObject))] + public void BurriedAnonymousObject() + { + var subject = new BurriedAnonymousObjectImpl(); + Assert.True(subject.Check()); + } + + private sealed class BurriedAnonymousObjectImpl : BurriedAnonymousObject + { + public override object GiveItBack(object value) { + return value; + } + } } } diff --git a/packages/@jsii/dotnet-runtime-test/test/NuGet.Config b/packages/@jsii/dotnet-runtime-test/test/NuGet.Config new file mode 100644 index 0000000000..717b82d771 --- /dev/null +++ b/packages/@jsii/dotnet-runtime-test/test/NuGet.Config @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/packages/@jsii/dotnet-runtime-test/test/NuGet.config b/packages/@jsii/dotnet-runtime-test/test/NuGet.config deleted file mode 100644 index b620e32dd8..0000000000 --- a/packages/@jsii/dotnet-runtime-test/test/NuGet.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs index 46989fcf43..eed620c9bb 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs @@ -1,4 +1,5 @@ using Amazon.JSII.JsonModel.Spec; +using Amazon.JSII.Runtime.Deputy; using System; namespace Amazon.JSII.Runtime.Services.Converters @@ -89,8 +90,17 @@ protected bool IsNumeric(System.Type type) return null; } + if (value is AnonymousObject) + { + if (!TryConvertClass(type, referenceMap, value, out var anonResult)) + { + throw new Exception("Unable to convert AnonymousObject instance!"); + } + return anonResult; + } + TypeReference reference = InferType(referenceMap, value); - if (TryConvert(reference, type, referenceMap, value, out object? result)) + if (TryConvert(reference, type, referenceMap, value, out var result)) { return result; } diff --git a/packages/jsii-calc/lib/compliance.ts b/packages/jsii-calc/lib/compliance.ts index bf8596d7b3..d94be164a3 100644 --- a/packages/jsii-calc/lib/compliance.ts +++ b/packages/jsii-calc/lib/compliance.ts @@ -2761,6 +2761,30 @@ export class UmaskCheck { private constructor() {} } +/** + * See https://github.com/aws/aws-cdk/issues/7977 + */ +export abstract class BurriedAnonymousObject { + public check(): boolean { + const anonymousObject = { + method() { + return true; + }, + }; + const result = this.giveItBack({ anonymousObject }); + return anonymousObject === result.anonymousObject; + } + + /** + * Implement this method and have it return it's parameter. + * + * @param value the value that should be returned. + * + * @returns `value` + */ + public abstract giveItBack(value: any): any; +} + /** Does nothing with provided arguments, useful to artifically use parameters */ function consume(..._args: readonly any[]) { return; diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 9652ef283f..6c551a825b 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -1623,6 +1623,72 @@ } ] }, + "jsii-calc.BurriedAnonymousObject": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "See https://github.com/aws/aws-cdk/issues/7977." + }, + "fqn": "jsii-calc.BurriedAnonymousObject", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2767 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2768 + }, + "name": "check", + "returns": { + "type": { + "primitive": "boolean" + } + } + }, + { + "abstract": true, + "docs": { + "returns": "`value`", + "stability": "experimental", + "summary": "Implement this method and have it return it's parameter." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2785 + }, + "name": "giveItBack", + "parameters": [ + { + "docs": { + "summary": "the value that should be returned." + }, + "name": "value", + "type": { + "primitive": "any" + } + } + ], + "returns": { + "type": { + "primitive": "any" + } + } + } + ], + "name": "BurriedAnonymousObject" + }, "jsii-calc.Calculator": { "assembly": "jsii-calc", "base": "jsii-calc.composition.CompositeOperation", @@ -13722,5 +13788,5 @@ } }, "version": "0.0.0", - "fingerprint": "AksOoFurRMyuF7gSjHXHbIRIIjq0e0R0CvpHycvyI3U=" + "fingerprint": "kQYWZjxtnycywR9qo/KXKyeVPmP6HoAefGhHN7SidkM=" } diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap index 96df49deac..049f714a02 100644 --- a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap @@ -6199,6 +6199,8 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┣━ 📄 Bell.cs ┃ ┃ ┣━ 📄 BinaryOperation.cs ┃ ┃ ┣━ 📄 BinaryOperationProxy.cs + ┃ ┃ ┣━ 📄 BurriedAnonymousObject.cs + ┃ ┃ ┣━ 📄 BurriedAnonymousObjectProxy.cs ┃ ┃ ┣━ 📄 Calculator.cs ┃ ┃ ┣━ 📄 CalculatorProps.cs ┃ ┃ ┣━ 📄 CalculatorPropsProxy.cs @@ -6560,6 +6562,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┣━ 📄 BaseJsii976.java ┃ ┃ ┣━ 📄 Bell.java ┃ ┃ ┣━ 📄 BinaryOperation.java + ┃ ┃ ┣━ 📄 BurriedAnonymousObject.java ┃ ┃ ┣━ 📄 Calculator.java ┃ ┃ ┣━ 📄 CalculatorProps.java ┃ ┃ ┣━ 📄 ChildStruct982.java @@ -8442,6 +8445,72 @@ Object { } ] }, + \\"jsii-calc.BurriedAnonymousObject\\": { + \\"abstract\\": true, + \\"assembly\\": \\"jsii-calc\\", + \\"docs\\": { + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"See https://github.com/aws/aws-cdk/issues/7977.\\" + }, + \\"fqn\\": \\"jsii-calc.BurriedAnonymousObject\\", + \\"initializer\\": { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + } + }, + \\"kind\\": \\"class\\", + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2767 + }, + \\"methods\\": [ + { + \\"docs\\": { + \\"stability\\": \\"experimental\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2768 + }, + \\"name\\": \\"check\\", + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"boolean\\" + } + } + }, + { + \\"abstract\\": true, + \\"docs\\": { + \\"returns\\": \\"\`value\`\\", + \\"stability\\": \\"experimental\\", + \\"summary\\": \\"Implement this method and have it return it's parameter.\\" + }, + \\"locationInModule\\": { + \\"filename\\": \\"lib/compliance.ts\\", + \\"line\\": 2785 + }, + \\"name\\": \\"giveItBack\\", + \\"parameters\\": [ + { + \\"docs\\": { + \\"summary\\": \\"the value that should be returned.\\" + }, + \\"name\\": \\"value\\", + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + ], + \\"returns\\": { + \\"type\\": { + \\"primitive\\": \\"any\\" + } + } + } + ], + \\"name\\": \\"BurriedAnonymousObject\\" + }, \\"jsii-calc.Calculator\\": { \\"assembly\\": \\"jsii-calc\\", \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", @@ -20541,7 +20610,7 @@ Object { } }, \\"version\\": \\"0.0.0\\", - \\"fingerprint\\": \\"AksOoFurRMyuF7gSjHXHbIRIIjq0e0R0CvpHycvyI3U=\\" + \\"fingerprint\\": \\"kQYWZjxtnycywR9qo/KXKyeVPmP6HoAefGhHN7SidkM=\\" } ", } @@ -21890,6 +21959,102 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } `; +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BurriedAnonymousObject.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + ///

See https://github.com/aws/aws-cdk/issues/7977. + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: \\"jsii-calc.BurriedAnonymousObject\\")] + public abstract class BurriedAnonymousObject : DeputyBase + { + /// + /// Stability: Experimental + /// + protected BurriedAnonymousObject(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BurriedAnonymousObject(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected BurriedAnonymousObject(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"check\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + public virtual bool Check() + { + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + } + + /// Implement this method and have it return it's parameter. + /// the value that should be returned. + /// \`value\` + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveItBack\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the value that should be returned.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public abstract object GiveItBack(object @value); + + } +} +", +} +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BurriedAnonymousObjectProxy.cs 1`] = ` +Object { + Symbol(file): "using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// See https://github.com/aws/aws-cdk/issues/7977. + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: \\"jsii-calc.BurriedAnonymousObject\\")] + internal sealed class BurriedAnonymousObjectProxy : Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject + { + private BurriedAnonymousObjectProxy(ByRefValue reference): base(reference) + { + } + + /// Implement this method and have it return it's parameter. + /// the value that should be returned. + /// \`value\` + /// + /// Stability: Experimental + /// + [JsiiMethod(name: \\"giveItBack\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the value that should be returned.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + public override object GiveItBack(object @value) + { + return InvokeInstanceMethod(new System.Type[]{typeof(object)}, new object[]{@value}); + } + } +} +", +} +`; + exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs 1`] = ` Object { Symbol(file): "using Amazon.JSII.Runtime.Deputy; @@ -39491,6 +39656,83 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula } `; +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BurriedAnonymousObject.java 1`] = ` +Object { + Symbol(file): "package software.amazon.jsii.tests.calculator; + +/** + * See https://github.com/aws/aws-cdk/issues/7977. + *

+ * EXPERIMENTAL + */ +@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BurriedAnonymousObject\\") +public abstract class BurriedAnonymousObject extends software.amazon.jsii.JsiiObject { + + protected BurriedAnonymousObject(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected BurriedAnonymousObject(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + protected BurriedAnonymousObject() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.Boolean check() { + return this.jsiiCall(\\"check\\", java.lang.Boolean.class); + } + + /** + * Implement this method and have it return it's parameter. + *

+ * EXPERIMENTAL + *

+ * @return \`value\` + * @param value the value that should be returned. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull java.lang.Object giveItBack(final @org.jetbrains.annotations.NotNull java.lang.Object value); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.BurriedAnonymousObject { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * Implement this method and have it return it's parameter. + *

+ * EXPERIMENTAL + *

+ * @return \`value\` + * @param value the value that should be returned. This parameter is required. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @Override + public @org.jetbrains.annotations.NotNull java.lang.Object giveItBack(final @org.jetbrains.annotations.NotNull java.lang.Object value) { + return this.jsiiCall(\\"giveItBack\\", java.lang.Object.class, new Object[] { value }); + } + } +} +", +} +`; + exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java 1`] = ` Object { Symbol(file): "package software.amazon.jsii.tests.calculator; @@ -56204,6 +56446,7 @@ jsii-calc.AugmentableClass=software.amazon.jsii.tests.calculator.AugmentableClas jsii-calc.BaseJsii976=software.amazon.jsii.tests.calculator.BaseJsii976 jsii-calc.Bell=software.amazon.jsii.tests.calculator.Bell jsii-calc.BinaryOperation=software.amazon.jsii.tests.calculator.BinaryOperation +jsii-calc.BurriedAnonymousObject=software.amazon.jsii.tests.calculator.BurriedAnonymousObject jsii-calc.Calculator=software.amazon.jsii.tests.calculator.Calculator jsii-calc.CalculatorProps=software.amazon.jsii.tests.calculator.CalculatorProps jsii-calc.ChildStruct982=software.amazon.jsii.tests.calculator.ChildStruct982 @@ -57365,6 +57608,66 @@ class _BinaryOperationProxy( pass +class BurriedAnonymousObject( + metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.BurriedAnonymousObject\\" +): + \\"\\"\\"See https://github.com/aws/aws-cdk/issues/7977. + + stability + :stability: experimental + \\"\\"\\" + + @builtins.staticmethod + def __jsii_proxy_class__(): + return _BurriedAnonymousObjectProxy + + def __init__(self) -> None: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + jsii.create(BurriedAnonymousObject, self, []) + + @jsii.member(jsii_name=\\"check\\") + def check(self) -> bool: + \\"\\"\\" + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"check\\", []) + + @jsii.member(jsii_name=\\"giveItBack\\") + @abc.abstractmethod + def give_it_back(self, value: typing.Any) -> typing.Any: + \\"\\"\\"Implement this method and have it return it's parameter. + + :param value: the value that should be returned. + + return + :return: \`\`value\`\` + + stability + :stability: experimental + \\"\\"\\" + ... + + +class _BurriedAnonymousObjectProxy(BurriedAnonymousObject): + @jsii.member(jsii_name=\\"giveItBack\\") + def give_it_back(self, value: typing.Any) -> typing.Any: + \\"\\"\\"Implement this method and have it return it's parameter. + + :param value: the value that should be returned. + + return + :return: \`\`value\`\` + + stability + :stability: experimental + \\"\\"\\" + return jsii.invoke(self, \\"giveItBack\\", [value]) + + class Calculator( _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, @@ -66413,6 +66716,7 @@ __all__ = [ \\"BaseJsii976\\", \\"Bell\\", \\"BinaryOperation\\", + \\"BurriedAnonymousObject\\", \\"Calculator\\", \\"CalculatorProps\\", \\"ChildStruct982\\", diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index f33ff2debc..8d89f84da6 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -438,6 +438,17 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ rhs property (experimental) │ │ ├── immutable │ │ └── type: @scope/jsii-calc-lib.Value + │ ├─┬ class BurriedAnonymousObject (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ check() method (experimental) + │ │ │ └── returns: boolean + │ │ └─┬ giveItBack(value) method (experimental) + │ │ ├── abstract + │ │ ├─┬ parameters + │ │ │ └─┬ value + │ │ │ └── type: any + │ │ └── returns: any │ ├─┬ class Calculator (experimental) │ │ ├── base: CompositeOperation │ │ └─┬ members @@ -2726,6 +2737,7 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├─┬ class BinaryOperation │ │ ├── base: Operation │ │ └── interfaces: IFriendly + │ ├── class BurriedAnonymousObject │ ├─┬ class Calculator │ │ └── base: CompositeOperation │ ├─┬ class ClassThatImplementsTheInternalInterface @@ -3204,6 +3216,11 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── hello() method │ │ ├── lhs property │ │ └── rhs property + │ ├─┬ class BurriedAnonymousObject + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── check() method + │ │ └── giveItBack(value) method │ ├─┬ class Calculator │ │ └─┬ members │ │ ├── (props) initializer @@ -4265,6 +4282,7 @@ exports[`jsii-tree --types 1`] = ` │ ├── class BaseJsii976 │ ├── class Bell │ ├── class BinaryOperation + │ ├── class BurriedAnonymousObject │ ├── class Calculator │ ├── class ClassThatImplementsTheInternalInterface │ ├── class ClassThatImplementsThePrivateInterface diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap index ba7ad1b5c6..c3cab65f1b 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap @@ -31,6 +31,7 @@ Array [ "jsii-calc.BaseJsii976", "jsii-calc.Bell", "jsii-calc.BinaryOperation", + "jsii-calc.BurriedAnonymousObject", "jsii-calc.Calculator", "jsii-calc.ClassThatImplementsTheInternalInterface", "jsii-calc.ClassThatImplementsThePrivateInterface", From 44f91092a34179e6f5edbe1699cbaddac2f9a99b Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 12 Aug 2020 09:41:13 +0200 Subject: [PATCH 19/45] fix(jsii): unable to use nested types from dependencies (#1866) Using `--project-references`, nested types from dependencies could not be used as they would result in the following `jsii` error: ``` Type "" cannot be used as the return type because it is private or @internal ``` This is because in `--project-references` mode, the ambient declaration for the nested type is the declaration that gets resolved to, and those cannot have the `export` keyword: instead, the surrounding module declaration is annotated with `export ambient`. This adds the necessary code path to actually identify this scenario and to appropriately detect the type is actually visible and exported. The check that was failing had been added in #1861 as a way to provide a more helpful error message when private or `@internal` types are mistakenly used on exported APIs; which explains why this situation did not previously occur. > Hidden gem: we were previously adding the `static` keyword when > generating nested classes in **C#**. This is a **Java**-ism and results > in code that won't compile, since **C#** does not allow `static` nested > classes to declare `protected` members (which we actually emit some > of). --- .github/workflows/main.yml | 16 +- .../jsii-calc-lib/lib/submodule/index.ts | 29 +- .../@scope/jsii-calc-lib/test/assembly.jsii | 59 +- packages/jsii-calc/lib/index.ts | 1 + packages/jsii-calc/lib/nested-class.ts | 9 + packages/jsii-calc/test/assembly.jsii | 35 +- packages/jsii-pacmak/lib/targets/dotnet.ts | 2 +- .../lib/targets/dotnet/dotnetgenerator.ts | 3 +- packages/jsii-pacmak/lib/targets/python.ts | 27 +- packages/jsii-pacmak/package.json | 5 +- .../__snapshots__/jsii-pacmak.test.ts.snap | 39804 ++++++++-------- packages/jsii-pacmak/test/build-test.sh | 4 +- packages/jsii-pacmak/test/jsii-pacmak.test.ts | 17 +- .../test/__snapshots__/jsii-tree.test.js.snap | 28 + .../__snapshots__/type-system.test.js.snap | 3 + packages/jsii/lib/assembler.ts | 15 + 16 files changed, 19616 insertions(+), 20441 deletions(-) create mode 100644 packages/jsii-calc/lib/nested-class.ts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 978175bb11..9d0c0fe448 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,8 +59,10 @@ jobs: ${{ steps.cache-locations.outputs.pip-cache }} ${{ steps.cache-locations.outputs.yarn-cache }} ~/.m2/repository + !~/.m2/repository/software/amazon/jsii/ ~/.nuget/packages - key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }} + !~/.nuget/packages/amazon.jsii.* + key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }} restore-keys: |- ${{ runner.os }}-node@12-python@3.6- ${{ runner.os }}-node@12- @@ -130,8 +132,10 @@ jobs: ${{ steps.cache-locations.outputs.pip-cache }} ${{ steps.cache-locations.outputs.yarn-cache }} ~/.m2/repository + !~/.m2/repository/software/amazon/jsii/ ~/.nuget/packages - key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }} + !~/.nuget/packages/amazon.jsii.* + key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }} restore-keys: |- ${{ runner.os }}-node@12-python@3.6- ${{ runner.os }}-node@12- @@ -276,9 +280,11 @@ jobs: ${{ steps.cache-locations.outputs.pip-cache }} ${{ steps.cache-locations.outputs.yarn-cache }} ~/.m2/repository + !~/.m2/repository/software/amazon/jsii/ ~/.nuget/packages + !~/.nuget/packages/amazon.jsii.* # Not including .NET / Java in the cache keys, those artifacts are SDK-version-independent - key: ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }} restore-keys: |- ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}- ${{ runner.os }}-node@${{ matrix.node }}- @@ -353,6 +359,10 @@ jobs: # Run the integration test - name: Install Dependencies run: |- + # Python tools used during packaging + python3 -m pip install --upgrade pipx setuptools twine wheel + + # TypeScript project dependencies yarn install --frozen-lockfile working-directory: aws-cdk - name: Install Tested Packages diff --git a/packages/@scope/jsii-calc-lib/lib/submodule/index.ts b/packages/@scope/jsii-calc-lib/lib/submodule/index.ts index c6e8c21031..47f4d88df6 100644 --- a/packages/@scope/jsii-calc-lib/lib/submodule/index.ts +++ b/packages/@scope/jsii-calc-lib/lib/submodule/index.ts @@ -8,15 +8,26 @@ export interface ReflectableEntry { } export class Reflector { - public constructor() { } - public asMap(reflectable: IReflectable): Record { - return reflectable.entries.reduce( - (mapping, entry) => { - mapping[entry.key] = entry.value; - return mapping; - }, - {} as Record, - ); + return reflectable.entries.reduce((mapping, entry) => { + mapping[entry.key] = entry.value; + return mapping; + }, {} as Record); + } +} + +/** + * This class is here to show we can use nested classes across module boundaries. + */ +export class NestingClass { + private constructor() {} +} +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace NestingClass { + /** + * This class is here to show we can use nested classes across module boundaries. + */ + export class NestedClass { + public readonly property: string = 'property'; } } diff --git a/packages/@scope/jsii-calc-lib/test/assembly.jsii b/packages/@scope/jsii-calc-lib/test/assembly.jsii index ab9b6e0c47..45cfe84bb7 100644 --- a/packages/@scope/jsii-calc-lib/test/assembly.jsii +++ b/packages/@scope/jsii-calc-lib/test/assembly.jsii @@ -574,6 +574,57 @@ } ] }, + "@scope/jsii-calc-lib.submodule.NestingClass": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated", + "summary": "This class is here to show we can use nested classes across module boundaries." + }, + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass", + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 22 + }, + "name": "NestingClass", + "namespace": "submodule" + }, + "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated", + "summary": "This class is here to show we can use nested classes across module boundaries." + }, + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass", + "initializer": { + "docs": { + "stability": "deprecated" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 30 + }, + "name": "NestedClass", + "namespace": "submodule.NestingClass", + "properties": [ + { + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 31 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, "@scope/jsii-calc-lib.submodule.ReflectableEntry": { "assembly": "@scope/jsii-calc-lib", "datatype": true, @@ -630,10 +681,6 @@ "initializer": { "docs": { "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 11 } }, "kind": "class", @@ -648,7 +695,7 @@ }, "locationInModule": { "filename": "lib/submodule/index.ts", - "line": 13 + "line": 11 }, "name": "asMap", "parameters": [ @@ -676,5 +723,5 @@ } }, "version": "0.0.0", - "fingerprint": "fVfpIK7xUajlT1zkHIJ8uYJPvy0gLgEe5BM8afu1mVg=" + "fingerprint": "f/4VuNiOkSgTgLR80loQUAzAuzFi+25rmfLcRWKDCrY=" } diff --git a/packages/jsii-calc/lib/index.ts b/packages/jsii-calc/lib/index.ts index f32fd46330..93509cfad0 100644 --- a/packages/jsii-calc/lib/index.ts +++ b/packages/jsii-calc/lib/index.ts @@ -2,6 +2,7 @@ export * from './calculator'; export * from './compliance'; export * from './documented'; export * from './erasures'; +export * from './nested-class'; export * from './stability'; export * from './submodules'; diff --git a/packages/jsii-calc/lib/nested-class.ts b/packages/jsii-calc/lib/nested-class.ts new file mode 100644 index 0000000000..8311927085 --- /dev/null +++ b/packages/jsii-calc/lib/nested-class.ts @@ -0,0 +1,9 @@ +import { submodule } from '@scope/jsii-calc-lib'; + +export class NestedClassInstance { + public static makeInstance(): submodule.NestingClass.NestedClass { + return new submodule.NestingClass.NestedClass(); + } + + private constructor() {} +} diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 6c551a825b..fc62bbbf1a 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -196,7 +196,7 @@ "jsii-calc.submodule": { "locationInModule": { "filename": "lib/index.ts", - "line": 8 + "line": 9 } }, "jsii-calc.submodule.back_references": { @@ -8439,6 +8439,37 @@ } ] }, + "jsii-calc.NestedClassInstance": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NestedClassInstance", + "kind": "class", + "locationInModule": { + "filename": "lib/nested-class.ts", + "line": 3 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/nested-class.ts", + "line": 4 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass" + } + }, + "static": true + } + ], + "name": "NestedClassInstance" + }, "jsii-calc.NestedStruct": { "assembly": "jsii-calc", "datatype": true, @@ -13788,5 +13819,5 @@ } }, "version": "0.0.0", - "fingerprint": "kQYWZjxtnycywR9qo/KXKyeVPmP6HoAefGhHN7SidkM=" + "fingerprint": "NsqdwWgXi+kjrpLQtQ27eA/znULJ7TtXy03ht68N9Ms=" } diff --git a/packages/jsii-pacmak/lib/targets/dotnet.ts b/packages/jsii-pacmak/lib/targets/dotnet.ts index c69ad5d262..b65602693e 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet.ts @@ -53,7 +53,7 @@ export class DotnetBuilder implements TargetBuilder { // Build solution logging.debug('Building .NET'); - await shell('dotnet', ['build', '-c', 'Release'], { + await shell('dotnet', ['build', '--force', '-c', 'Release'], { cwd: tempSourceDir.directory, }); diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts index 691655584c..98fffa0bc8 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts @@ -283,7 +283,6 @@ export class DotNetGenerator extends Generator { // Nested classes will be dealt with during calc code generation const nested = this.isNested(cls); - const inner = nested ? ' static' : ''; const absPrefix = abstract ? ' abstract' : ''; this.openFileIfNeeded(className, namespace, nested); @@ -294,7 +293,7 @@ export class DotNetGenerator extends Generator { this.dotnetRuntimeGenerator.emitAttributesForClass(cls); this.code.openBlock( - `public${inner}${absPrefix} class ${className}${implementsExpr}`, + `public${absPrefix} class ${className}${implementsExpr}`, ); // Compute the class parameters diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 49d61ccf54..fc56f31e62 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -48,13 +48,25 @@ export default class Python extends Target { await shell('python3', ['setup.py', 'sdist', '--dist-dir', outDir], { cwd: sourceDir, }); - await shell('python3', ['setup.py', 'bdist_wheel', '--dist-dir', outDir], { - cwd: sourceDir, - }); + await shell( + 'python3', + ['-m', 'pip', 'wheel', '--no-deps', '--wheel-dir', outDir, sourceDir], + { + cwd: sourceDir, + }, + ); if (await isPresent('twine', sourceDir)) { await shell('twine', ['check', path.join(outDir, '*')], { cwd: sourceDir, }); + } else if (await isPresent('pipx', sourceDir)) { + await shell('pipx', ['run', 'twine', 'check', path.join(outDir, '*')], { + cwd: sourceDir, + env: { + ...process.env, + PIPX_HOME: path.join(sourceDir, '.pipx'), + }, + }); } else { warn( 'Unable to validate distribution packages because `twine` is not present. ' + @@ -1649,6 +1661,9 @@ class Package { (this.metadata.author.email !== undefined ? `<${this.metadata.author.email}>` : ''), + bdist_wheel: { + universal: true, + }, project_urls: { Source: this.metadata.repository.url, }, @@ -1659,7 +1674,9 @@ class Package { install_requires: [ `jsii${toPythonVersionRange(`^${jsiiVersionSimple}`)}`, 'publication>=0.0.3', - ].concat(dependencies), + ] + .concat(dependencies) + .sort(), classifiers: [ 'Intended Audience :: Developers', 'Operating System :: OS Independent', @@ -1719,7 +1736,7 @@ class Package { // TODO: Might be easier to just use a TOML library to write this out. code.openFile('pyproject.toml'); code.line('[build-system]'); - code.line('requires = ["setuptools >= 38.6.0", "wheel >= 0.31.0"]'); + code.line('requires = ["setuptools >= 49.3.1", "wheel >= 0.34.2"]'); code.line('build-backend = "setuptools.build_meta"'); code.closeFile('pyproject.toml'); diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index ff187ae1a0..2960c63427 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -30,8 +30,9 @@ "watch": "tsc --build -w", "lint": "eslint . --ext .js,.ts --ignore-path=.gitignore", "lint:fix": "yarn lint --fix", - "test": "jest && bash test/build-test.sh", - "test:update": "jest -u && bash test/build-test.sh", + "test": "jest && npm run test:build", + "test:build": "bash test/build-test.sh", + "test:update": "jest -u && npm run test:build", "package": "package-js" }, "dependencies": { diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap index 049f714a02..f428ff92a9 100644 --- a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap @@ -65,169 +65,166 @@ exports[`Generated code for "@scope/jsii-calc-base": / 1`] = ` `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii 1`] = ` -Object { - Symbol(file): "{ - \\"author\\": { - \\"name\\": \\"Amazon Web Services\\", - \\"organization\\": true, - \\"roles\\": [ - \\"author\\" +{ + "author": { + "name": "Amazon Web Services", + "organization": true, + "roles": [ + "author" ], - \\"url\\": \\"https://aws.amazon.com\\" + "url": "https://aws.amazon.com" }, - \\"dependencies\\": { - \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\" + "dependencies": { + "@scope/jsii-calc-base-of-base": "^0.0.0" }, - \\"dependencyClosure\\": { - \\"@scope/jsii-calc-base-of-base\\": { - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + "dependencyClosure": { + "@scope/jsii-calc-base-of-base": { + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base-of-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base-of-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + "package": "software.amazon.jsii.tests.calculator.baseofbase" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + "js": { + "npm": "@scope/jsii-calc-base-of-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base-of-base\\", - \\"module\\": \\"scope.jsii_calc_base_of_base\\" + "python": { + "distName": "scope.jsii-calc-base-of-base", + "module": "scope.jsii_calc_base_of_base" } } } }, - \\"description\\": \\"An example direct dependency for jsii-calc.\\", - \\"homepage\\": \\"https://github.com/aws/jsii\\", - \\"jsiiVersion\\": \\"0.0.0\\", - \\"license\\": \\"Apache-2.0\\", - \\"name\\": \\"@scope/jsii-calc-base\\", - \\"repository\\": { - \\"directory\\": \\"packages/@scope/jsii-calc-base\\", - \\"type\\": \\"git\\", - \\"url\\": \\"https://github.com/aws/jsii.git\\" + "description": "An example direct dependency for jsii-calc.", + "homepage": "https://github.com/aws/jsii", + "jsiiVersion": "0.0.0", + "license": "Apache-2.0", + "name": "@scope/jsii-calc-base", + "repository": { + "directory": "packages/@scope/jsii-calc-base", + "type": "git", + "url": "https://github.com/aws/jsii.git" }, - \\"schema\\": \\"jsii/0.10.0\\", - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + "schema": "jsii/0.10.0", + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + "package": "software.amazon.jsii.tests.calculator.base" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base\\" + "js": { + "npm": "@scope/jsii-calc-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base\\", - \\"module\\": \\"scope.jsii_calc_base\\" + "python": { + "distName": "scope.jsii-calc-base", + "module": "scope.jsii_calc_base" } }, - \\"types\\": { - \\"@scope/jsii-calc-base.Base\\": { - \\"abstract\\": true, - \\"assembly\\": \\"@scope/jsii-calc-base\\", - \\"docs\\": { - \\"summary\\": \\"A base class.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-base.Base\\", - \\"initializer\\": {}, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 6 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"returns\\": \\"the name of the class (to verify native type names are created for derived classes).\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 10 - }, - \\"name\\": \\"typeName\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "types": { + "@scope/jsii-calc-base.Base": { + "abstract": true, + "assembly": "@scope/jsii-calc-base", + "docs": { + "summary": "A base class." + }, + "fqn": "@scope/jsii-calc-base.Base", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/index.ts", + "line": 6 + }, + "methods": [ + { + "docs": { + "returns": "the name of the class (to verify native type names are created for derived classes)." + }, + "locationInModule": { + "filename": "lib/index.ts", + "line": 10 + }, + "name": "typeName", + "returns": { + "type": { + "primitive": "any" } } } ], - \\"name\\": \\"Base\\" + "name": "Base" }, - \\"@scope/jsii-calc-base.BaseProps\\": { - \\"assembly\\": \\"@scope/jsii-calc-base\\", - \\"datatype\\": true, - \\"fqn\\": \\"@scope/jsii-calc-base.BaseProps\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\" + "@scope/jsii-calc-base.BaseProps": { + "assembly": "@scope/jsii-calc-base", + "datatype": true, + "fqn": "@scope/jsii-calc-base.BaseProps", + "interfaces": [ + "@scope/jsii-calc-base-of-base.VeryBaseProps" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 15 - }, - \\"name\\": \\"BaseProps\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 16 - }, - \\"name\\": \\"bar\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 15 + }, + "name": "BaseProps", + "properties": [ + { + "abstract": true, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 16 + }, + "name": "bar", + "type": { + "primitive": "string" } } ] }, - \\"@scope/jsii-calc-base.IBaseInterface\\": { - \\"assembly\\": \\"@scope/jsii-calc-base\\", - \\"fqn\\": \\"@scope/jsii-calc-base.IBaseInterface\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\" + "@scope/jsii-calc-base.IBaseInterface": { + "assembly": "@scope/jsii-calc-base", + "fqn": "@scope/jsii-calc-base.IBaseInterface", + "interfaces": [ + "@scope/jsii-calc-base-of-base.IVeryBaseInterface" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 19 + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 19 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 20 + "abstract": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 20 }, - \\"name\\": \\"bar\\" + "name": "bar" } ], - \\"name\\": \\"IBaseInterface\\" + "name": "IBaseInterface" } }, - \\"version\\": \\"0.0.0\\", - \\"fingerprint\\": \\"ttHhQ5EzgjW0lybCNSKOfqilJ04kp4VK3arcpRl3rBM=\\" -} -", + "version": "0.0.0", + "fingerprint": "ttHhQ5EzgjW0lybCNSKOfqilJ04kp4VK3arcpRl3rBM=" } + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId.csproj 1`] = ` -Object { - Symbol(file): " + An example direct dependency for jsii-calc. @@ -251,31 +248,29 @@ Object { netcoreapp3.1 - + - - + + 0612,0618 -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { ///

A base class. - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: \\"@scope/jsii-calc-base.Base\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] public abstract class Base : DeputyBase { protected Base(): base(new DeputyProps(new object[]{})) @@ -283,34 +278,32 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Base(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Base(DeputyProps props): base(props) { } /// the name of the class (to verify native type names are created for derived classes). - [JsiiMethod(name: \\"typeName\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "typeName", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object TypeName() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -318,17 +311,17 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { #pragma warning disable CS8618 - [JsiiByValue(fqn: \\"@scope/jsii-calc-base.BaseProps\\")] + [JsiiByValue(fqn: "@scope/jsii-calc-base.BaseProps")] public class BaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps { - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Bar { get; set; } - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get; @@ -336,52 +329,48 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BasePropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { - [JsiiTypeProxy(nativeType: typeof(IBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base.BaseProps\\")] + [JsiiTypeProxy(nativeType: typeof(IBaseProps), fullyQualifiedName: "@scope/jsii-calc-base.BaseProps")] internal sealed class BasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps { private BasePropsProxy(ByRefValue reference): base(reference) { } - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Bar { get => GetInstanceProperty(); } - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/BaseProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { /// A base class. - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: \\"@scope/jsii-calc-base.Base\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] internal sealed class BaseProxy : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base { private BaseProxy(ByRefValue reference): base(reference) @@ -389,86 +378,78 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { - [JsiiInterface(nativeType: typeof(IBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base.IBaseInterface\\")] + [JsiiInterface(nativeType: typeof(IBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base.IBaseInterface")] public interface IBaseInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface { - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] void Bar(); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { - [JsiiTypeProxy(nativeType: typeof(IBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base.IBaseInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base.IBaseInterface")] internal sealed class IBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface { private IBaseInterfaceProxy(ByRefValue reference): base(reference) { } - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] public void Bar() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/IBaseProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace { - [JsiiInterface(nativeType: typeof(IBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base.BaseProps\\")] + [JsiiInterface(nativeType: typeof(IBaseProps), fullyQualifiedName: "@scope/jsii-calc-base.BaseProps")] public interface IBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps { - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}")] string Bar { get; } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` -Object { - Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 +#pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.DependencyResolution { @@ -480,25 +461,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Internal.Dependenc } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/AssemblyInfo.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly("@scope/jsii-calc-base", "0.0.0", "scope-jsii-calc-base-0.0.0.tgz")] -[assembly: JsiiAssembly(\\"@scope/jsii-calc-base\\", \\"0.0.0\\", \\"scope-jsii-calc-base-0.0.0.tgz\\")] -", -} `; exports[`Generated code for "@scope/jsii-calc-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/scope-jsii-calc-base-0.0.0.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base": /java/pom.xml 1`] = ` -Object { - Symbol(file): " - + + 4.0.0 \${project.groupId}:\${project.artifactId} An example direct dependency for jsii-calc. @@ -646,13 +623,11 @@ Object { -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/$Module.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.base; +package software.amazon.jsii.tests.calculator.base; import static java.util.Arrays.asList; @@ -677,13 +652,13 @@ public final class $Module extends JsiiModule { private static Map load() { final Map result = new HashMap<>(); final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/base/$Module.txt\\"); + try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/base/$Module.txt"); final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); final BufferedReader br = new BufferedReader(rd)) { br.lines() .filter(line -> !line.trim().isEmpty()) .forEach(line -> { - final String[] parts = line.split(\\"=\\", 2); + final String[] parts = line.split("=", 2); final String fqn = parts[0]; final String className = parts[1]; result.put(fqn, className); @@ -698,7 +673,7 @@ public final class $Module extends JsiiModule { private final Map> cache = new HashMap<>(); public $Module() { - super(\\"@scope/jsii-calc-base\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-base@0.0.0.jsii.tgz\\"); + super("@scope/jsii-calc-base", "0.0.0", $Module.class, "jsii-calc-base@0.0.0.jsii.tgz"); } @Override @@ -709,7 +684,7 @@ public final class $Module extends JsiiModule { @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + throw new ClassNotFoundException("Unknown JSII type: " + fqn); } String className = MODULE_TYPES.get(fqn); if (!this.cache.containsKey(className)) { @@ -727,19 +702,17 @@ public final class $Module extends JsiiModule { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.base; +package software.amazon.jsii.tests.calculator.base; /** * A base class. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.Base\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.Base") public abstract class Base extends software.amazon.jsii.JsiiObject { protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -759,7 +732,7 @@ public abstract class Base extends software.amazon.jsii.JsiiObject { * @return the name of the class (to verify native type names are created for derived classes). */ public @org.jetbrains.annotations.NotNull java.lang.Object typeName() { - return this.jsiiCall(\\"typeName\\", java.lang.Object.class); + return this.jsiiCall("typeName", java.lang.Object.class); } /** @@ -771,16 +744,14 @@ public abstract class Base extends software.amazon.jsii.JsiiObject { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/BaseProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.base; +package software.amazon.jsii.tests.calculator.base; -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.BaseProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.BaseProps") @software.amazon.jsii.Jsii.Proxy(BaseProps.Jsii$Proxy.class) public interface BaseProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps { @@ -843,8 +814,8 @@ public interface BaseProps extends software.amazon.jsii.JsiiSerializable, softwa */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.bar = this.jsiiGet(\\"bar\\", java.lang.String.class); - this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + this.bar = this.jsiiGet("bar", java.lang.String.class); + this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); } /** @@ -852,8 +823,8 @@ public interface BaseProps extends software.amazon.jsii.JsiiSerializable, softwa */ private Jsii$Proxy(final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -871,15 +842,15 @@ public interface BaseProps extends software.amazon.jsii.JsiiSerializable, softwa final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"bar\\", om.valueToTree(this.getBar())); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("bar", om.valueToTree(this.getBar())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-base.BaseProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("@scope/jsii-calc-base.BaseProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -903,16 +874,14 @@ public interface BaseProps extends software.amazon.jsii.JsiiSerializable, softwa } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/java/software/amazon/jsii/tests/calculator/base/IBaseInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.base; +package software.amazon.jsii.tests.calculator.base; -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = \\"@scope/jsii-calc-base.IBaseInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.base.$Module.class, fqn = "@scope/jsii-calc-base.IBaseInterface") @software.amazon.jsii.Jsii.Proxy(IBaseInterface.Jsii$Proxy.class) public interface IBaseInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface { @@ -928,26 +897,23 @@ public interface IBaseInterface extends software.amazon.jsii.JsiiSerializable, s @Override public void bar() { - this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); } @Override public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/base/$Module.txt 1`] = ` -Object { - Symbol(file): "@scope/jsii-calc-base.Base=software.amazon.jsii.tests.calculator.base.Base +@scope/jsii-calc-base.Base=software.amazon.jsii.tests.calculator.base.Base @scope/jsii-calc-base.BaseProps=software.amazon.jsii.tests.calculator.base.BaseProps @scope/jsii-calc-base.IBaseInterface=software.amazon.jsii.tests.calculator.base.IBaseInterface -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/base/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; @@ -955,94 +921,88 @@ exports[`Generated code for "@scope/jsii-calc-base": /java/src/main/reso exports[`Generated code for "@scope/jsii-calc-base": /js/jsii-calc-base@0.0.0.jsii.tgz 1`] = `js/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base": /python/MANIFEST.in 1`] = ` -Object { - Symbol(file): "include pyproject.toml -", -} +include pyproject.toml + `; exports[`Generated code for "@scope/jsii-calc-base": /python/README.md 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "@scope/jsii-calc-base": /python/pyproject.toml 1`] = ` -Object { - Symbol(file): "[build-system] -requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] -build-backend = \\"setuptools.build_meta\\" -", -} +[build-system] +requires = ["setuptools >= 49.3.1", "wheel >= 0.34.2"] +build-backend = "setuptools.build_meta" + `; exports[`Generated code for "@scope/jsii-calc-base": /python/setup.py 1`] = ` -Object { - Symbol(file): "import json +import json import setuptools kwargs = json.loads( - \\"\\"\\" + """ { - \\"name\\": \\"scope.jsii-calc-base\\", - \\"version\\": \\"0.0.0\\", - \\"description\\": \\"An example direct dependency for jsii-calc.\\", - \\"license\\": \\"Apache-2.0\\", - \\"url\\": \\"https://github.com/aws/jsii\\", - \\"long_description_content_type\\": \\"text/markdown\\", - \\"author\\": \\"Amazon Web Services\\", - \\"project_urls\\": { - \\"Source\\": \\"https://github.com/aws/jsii.git\\" + "name": "scope.jsii-calc-base", + "version": "0.0.0", + "description": "An example direct dependency for jsii-calc.", + "license": "Apache-2.0", + "url": "https://github.com/aws/jsii", + "long_description_content_type": "text/markdown", + "author": "Amazon Web Services", + "bdist_wheel": { + "universal": true }, - \\"package_dir\\": { - \\"\\": \\"src\\" + "project_urls": { + "Source": "https://github.com/aws/jsii.git" }, - \\"packages\\": [ - \\"scope.jsii_calc_base\\", - \\"scope.jsii_calc_base._jsii\\" + "package_dir": { + "": "src" + }, + "packages": [ + "scope.jsii_calc_base", + "scope.jsii_calc_base._jsii" ], - \\"package_data\\": { - \\"scope.jsii_calc_base._jsii\\": [ - \\"jsii-calc-base@0.0.0.jsii.tgz\\" + "package_data": { + "scope.jsii_calc_base._jsii": [ + "jsii-calc-base@0.0.0.jsii.tgz" ], - \\"scope.jsii_calc_base\\": [ - \\"py.typed\\" + "scope.jsii_calc_base": [ + "py.typed" ] }, - \\"python_requires\\": \\">=3.6\\", - \\"install_requires\\": [ - \\"jsii>=0.0.0, <0.0.1\\", - \\"publication>=0.0.3\\", - \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\" + "python_requires": ">=3.6", + "install_requires": [ + "jsii>=0.0.0, <0.0.1", + "publication>=0.0.3", + "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1" ], - \\"classifiers\\": [ - \\"Intended Audience :: Developers\\", - \\"Operating System :: OS Independent\\", - \\"Programming Language :: JavaScript\\", - \\"Programming Language :: Python :: 3 :: Only\\", - \\"Programming Language :: Python :: 3.6\\", - \\"Programming Language :: Python :: 3.7\\", - \\"Programming Language :: Python :: 3.8\\", - \\"Typing :: Typed\\", - \\"License :: OSI Approved\\" + "classifiers": [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: JavaScript", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Typing :: Typed", + "License :: OSI Approved" ] } -\\"\\"\\" +""" ) -with open(\\"README.md\\") as fp: - kwargs[\\"long_description\\"] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -1057,8 +1017,8 @@ from ._jsii import * import scope.jsii_calc_base_of_base -class Base(metaclass=jsii.JSIIAbstractClass, jsii_type=\\"@scope/jsii-calc-base.Base\\"): - \\"\\"\\"A base class.\\"\\"\\" +class Base(metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-base.Base"): + """A base class.""" @builtins.staticmethod def __jsii_proxy_class__(): @@ -1067,13 +1027,13 @@ class Base(metaclass=jsii.JSIIAbstractClass, jsii_type=\\"@scope/jsii-calc-base. def __init__(self) -> None: jsii.create(Base, self, []) - @jsii.member(jsii_name=\\"typeName\\") + @jsii.member(jsii_name="typeName") def type_name(self) -> typing.Any: - \\"\\"\\" + """ return :return: the name of the class (to verify native type names are created for derived classes). - \\"\\"\\" - return jsii.invoke(self, \\"typeName\\", []) + """ + return jsii.invoke(self, "typeName", []) class _BaseProxy(Base): @@ -1081,28 +1041,28 @@ class _BaseProxy(Base): @jsii.data_type( - jsii_type=\\"@scope/jsii-calc-base.BaseProps\\", + jsii_type="@scope/jsii-calc-base.BaseProps", jsii_struct_bases=[scope.jsii_calc_base_of_base.VeryBaseProps], - name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\"}, + name_mapping={"foo": "foo", "bar": "bar"}, ) class BaseProps(scope.jsii_calc_base_of_base.VeryBaseProps): def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str) -> None: - \\"\\"\\" + """ :param foo: - :param bar: - - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, - \\"bar\\": bar, + "foo": foo, + "bar": bar, } @builtins.property def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get(\\"foo\\") + return self._values.get("foo") @builtins.property def bar(self) -> str: - return self._values.get(\\"bar\\") + return self._values.get("bar") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -1111,12 +1071,12 @@ class BaseProps(scope.jsii_calc_base_of_base.VeryBaseProps): return not (rhs == self) def __repr__(self) -> str: - return \\"BaseProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "BaseProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -@jsii.interface(jsii_type=\\"@scope/jsii-calc-base.IBaseInterface\\") +@jsii.interface(jsii_type="@scope/jsii-calc-base.IBaseInterface") class IBaseInterface( scope.jsii_calc_base_of_base.IVeryBaseInterface, jsii.compat.Protocol ): @@ -1124,7 +1084,7 @@ class IBaseInterface( def __jsii_proxy_class__(): return _IBaseInterfaceProxy - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> None: ... @@ -1132,27 +1092,25 @@ class IBaseInterface( class _IBaseInterfaceProxy( jsii.proxy_for(scope.jsii_calc_base_of_base.IVeryBaseInterface) ): - __jsii_type__ = \\"@scope/jsii-calc-base.IBaseInterface\\" + __jsii_type__ = "@scope/jsii-calc-base.IBaseInterface" - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> None: - return jsii.invoke(self, \\"bar\\", []) + return jsii.invoke(self, "bar", []) __all__ = [ - \\"Base\\", - \\"BaseProps\\", - \\"IBaseInterface\\", + "Base", + "BaseProps", + "IBaseInterface", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/_jsii/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -1165,25 +1123,22 @@ import publication import scope.jsii_calc_base_of_base._jsii __jsii_assembly__ = jsii.JSIIAssembly.load( - \\"@scope/jsii-calc-base\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc-base@0.0.0.jsii.tgz\\" + "@scope/jsii-calc-base", "0.0.0", __name__[0:-6], "jsii-calc-base@0.0.0.jsii.tgz" ) __all__ = [ - \\"__jsii_assembly__\\", + "__jsii_assembly__", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_base/_jsii/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base": /python/src/scope/jsii_calc_base/py.typed 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": / 1`] = ` @@ -1250,129 +1205,126 @@ exports[`Generated code for "@scope/jsii-calc-base-of-base": / 1`] = ` `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/.jsii 1`] = ` -Object { - Symbol(file): "{ - \\"author\\": { - \\"name\\": \\"Amazon Web Services\\", - \\"organization\\": true, - \\"roles\\": [ - \\"author\\" +{ + "author": { + "name": "Amazon Web Services", + "organization": true, + "roles": [ + "author" ], - \\"url\\": \\"https://aws.amazon.com\\" + "url": "https://aws.amazon.com" }, - \\"description\\": \\"An example transitive dependency for jsii-calc.\\", - \\"homepage\\": \\"https://github.com/aws/jsii\\", - \\"jsiiVersion\\": \\"0.0.0\\", - \\"license\\": \\"Apache-2.0\\", - \\"name\\": \\"@scope/jsii-calc-base-of-base\\", - \\"repository\\": { - \\"directory\\": \\"packages/@scope/jsii-calc-base-of-base\\", - \\"type\\": \\"git\\", - \\"url\\": \\"https://github.com/aws/jsii.git\\" + "description": "An example transitive dependency for jsii-calc.", + "homepage": "https://github.com/aws/jsii", + "jsiiVersion": "0.0.0", + "license": "Apache-2.0", + "name": "@scope/jsii-calc-base-of-base", + "repository": { + "directory": "packages/@scope/jsii-calc-base-of-base", + "type": "git", + "url": "https://github.com/aws/jsii.git" }, - \\"schema\\": \\"jsii/0.10.0\\", - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + "schema": "jsii/0.10.0", + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base-of-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base-of-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + "package": "software.amazon.jsii.tests.calculator.baseofbase" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + "js": { + "npm": "@scope/jsii-calc-base-of-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base-of-base\\", - \\"module\\": \\"scope.jsii_calc_base_of_base\\" + "python": { + "distName": "scope.jsii-calc-base-of-base", + "module": "scope.jsii_calc_base_of_base" } }, - \\"types\\": { - \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\": { - \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", - \\"fqn\\": \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 1 + "types": { + "@scope/jsii-calc-base-of-base.IVeryBaseInterface": { + "assembly": "@scope/jsii-calc-base-of-base", + "fqn": "@scope/jsii-calc-base-of-base.IVeryBaseInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 1 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 2 + "abstract": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 2 }, - \\"name\\": \\"foo\\" + "name": "foo" } ], - \\"name\\": \\"IVeryBaseInterface\\" + "name": "IVeryBaseInterface" }, - \\"@scope/jsii-calc-base-of-base.Very\\": { - \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", - \\"fqn\\": \\"@scope/jsii-calc-base-of-base.Very\\", - \\"initializer\\": {}, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 9 - }, - \\"methods\\": [ - { - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 10 - }, - \\"name\\": \\"hey\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "@scope/jsii-calc-base-of-base.Very": { + "assembly": "@scope/jsii-calc-base-of-base", + "fqn": "@scope/jsii-calc-base-of-base.Very", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/index.ts", + "line": 9 + }, + "methods": [ + { + "locationInModule": { + "filename": "lib/index.ts", + "line": 10 + }, + "name": "hey", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"Very\\" + "name": "Very" }, - \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\": { - \\"assembly\\": \\"@scope/jsii-calc-base-of-base\\", - \\"datatype\\": true, - \\"fqn\\": \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 5 - }, - \\"name\\": \\"VeryBaseProps\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 6 - }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-base-of-base.Very\\" + "@scope/jsii-calc-base-of-base.VeryBaseProps": { + "assembly": "@scope/jsii-calc-base-of-base", + "datatype": true, + "fqn": "@scope/jsii-calc-base-of-base.VeryBaseProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 5 + }, + "name": "VeryBaseProps", + "properties": [ + { + "abstract": true, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 6 + }, + "name": "foo", + "type": { + "fqn": "@scope/jsii-calc-base-of-base.Very" } } ] } }, - \\"version\\": \\"0.0.0\\", - \\"fingerprint\\": \\"v3mwSbKGQ2aa8g0DEKIeaEXh3csX7PX2MJJxHVRufhI=\\" -} -", + "version": "0.0.0", + "fingerprint": "v3mwSbKGQ2aa8g0DEKIeaEXh3csX7PX2MJJxHVRufhI=" } + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId.csproj 1`] = ` -Object { - Symbol(file): " + An example transitive dependency for jsii-calc. @@ -1396,90 +1348,82 @@ Object { netcoreapp3.1 - + - + 0612,0618 -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { - [JsiiInterface(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\")] + [JsiiInterface(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base-of-base.IVeryBaseInterface")] public interface IVeryBaseInterface { - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] void Foo(); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { - [JsiiTypeProxy(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IVeryBaseInterface), fullyQualifiedName: "@scope/jsii-calc-base-of-base.IVeryBaseInterface")] internal sealed class IVeryBaseInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseInterface { private IVeryBaseInterfaceProxy(ByRefValue reference): base(reference) { } - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/IVeryBaseProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { - [JsiiInterface(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + [JsiiInterface(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: "@scope/jsii-calc-base-of-base.VeryBaseProps")] public interface IVeryBaseProps { - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get; } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` -Object { - Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 +#pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.DependencyResolution { @@ -1490,19 +1434,17 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Internal.Dep } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/Very.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.Very\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: "@scope/jsii-calc-base-of-base.Very")] public class Very : DeputyBase { public Very(): base(new DeputyProps(new object[]{})) @@ -1510,33 +1452,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Very(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Very(DeputyProps props): base(props) { } - [JsiiMethod(name: \\"hey\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "hey", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double Hey() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBaseProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -1544,10 +1484,10 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { #pragma warning disable CS8618 - [JsiiByValue(fqn: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + [JsiiByValue(fqn: "@scope/jsii-calc-base-of-base.VeryBaseProps")] public class VeryBaseProps : Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps { - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get; @@ -1555,51 +1495,45 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseOfBaseNamespace/VeryBasePropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace { - [JsiiTypeProxy(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")] + [JsiiTypeProxy(nativeType: typeof(IVeryBaseProps), fullyQualifiedName: "@scope/jsii-calc-base-of-base.VeryBaseProps")] internal sealed class VeryBasePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.IVeryBaseProps { private VeryBasePropsProxy(ByRefValue reference): base(reference) { } - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/AssemblyInfo.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly("@scope/jsii-calc-base-of-base", "0.0.0", "scope-jsii-calc-base-of-base-0.0.0.tgz")] -[assembly: JsiiAssembly(\\"@scope/jsii-calc-base-of-base\\", \\"0.0.0\\", \\"scope-jsii-calc-base-of-base-0.0.0.tgz\\")] -", -} `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId/scope-jsii-calc-base-of-base-0.0.0.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/pom.xml 1`] = ` -Object { - Symbol(file): " - + + 4.0.0 \${project.groupId}:\${project.artifactId} An example transitive dependency for jsii-calc. @@ -1742,13 +1676,11 @@ Object { -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/$Module.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; +package software.amazon.jsii.tests.calculator.baseofbase; import java.io.BufferedReader; import java.io.InputStream; @@ -1770,13 +1702,13 @@ public final class $Module extends JsiiModule { private static Map load() { final Map result = new HashMap<>(); final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/baseofbase/$Module.txt\\"); + try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/baseofbase/$Module.txt"); final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); final BufferedReader br = new BufferedReader(rd)) { br.lines() .filter(line -> !line.trim().isEmpty()) .forEach(line -> { - final String[] parts = line.split(\\"=\\", 2); + final String[] parts = line.split("=", 2); final String fqn = parts[0]; final String className = parts[1]; result.put(fqn, className); @@ -1791,13 +1723,13 @@ public final class $Module extends JsiiModule { private final Map> cache = new HashMap<>(); public $Module() { - super(\\"@scope/jsii-calc-base-of-base\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\"); + super("@scope/jsii-calc-base-of-base", "0.0.0", $Module.class, "jsii-calc-base-of-base@0.0.0.jsii.tgz"); } @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + throw new ClassNotFoundException("Unknown JSII type: " + fqn); } String className = MODULE_TYPES.get(fqn); if (!this.cache.containsKey(className)) { @@ -1815,16 +1747,14 @@ public final class $Module extends JsiiModule { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/IVeryBaseInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; +package software.amazon.jsii.tests.calculator.baseofbase; -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.IVeryBaseInterface") @software.amazon.jsii.Jsii.Proxy(IVeryBaseInterface.Jsii$Proxy.class) public interface IVeryBaseInterface extends software.amazon.jsii.JsiiSerializable { @@ -1840,20 +1770,18 @@ public interface IVeryBaseInterface extends software.amazon.jsii.JsiiSerializabl @Override public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/Very.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; +package software.amazon.jsii.tests.calculator.baseofbase; -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.Very\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.Very") public class Very extends software.amazon.jsii.JsiiObject { protected Very(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -1870,19 +1798,17 @@ public class Very extends software.amazon.jsii.JsiiObject { } public @org.jetbrains.annotations.NotNull java.lang.Number hey() { - return this.jsiiCall(\\"hey\\", java.lang.Number.class); + return this.jsiiCall("hey", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/java/software/amazon/jsii/tests/calculator/baseofbase/VeryBaseProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.baseofbase; +package software.amazon.jsii.tests.calculator.baseofbase; -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = \\"@scope/jsii-calc-base-of-base.VeryBaseProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.baseofbase.$Module.class, fqn = "@scope/jsii-calc-base-of-base.VeryBaseProps") @software.amazon.jsii.Jsii.Proxy(VeryBaseProps.Jsii$Proxy.class) public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { @@ -1933,7 +1859,7 @@ public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); } /** @@ -1941,7 +1867,7 @@ public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -1954,14 +1880,14 @@ public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-base-of-base.VeryBaseProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("@scope/jsii-calc-base-of-base.VeryBaseProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -1983,17 +1909,14 @@ public interface VeryBaseProps extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/$Module.txt 1`] = ` -Object { - Symbol(file): "@scope/jsii-calc-base-of-base.IVeryBaseInterface=software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface +@scope/jsii-calc-base-of-base.IVeryBaseInterface=software.amazon.jsii.tests.calculator.baseofbase.IVeryBaseInterface @scope/jsii-calc-base-of-base.Very=software.amazon.jsii.tests.calculator.baseofbase.Very @scope/jsii-calc-base-of-base.VeryBaseProps=software.amazon.jsii.tests.calculator.baseofbase.VeryBaseProps -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/baseofbase/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; @@ -2001,93 +1924,87 @@ exports[`Generated code for "@scope/jsii-calc-base-of-base": /java/src/m exports[`Generated code for "@scope/jsii-calc-base-of-base": /js/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `js/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/MANIFEST.in 1`] = ` -Object { - Symbol(file): "include pyproject.toml -", -} +include pyproject.toml + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/README.md 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/pyproject.toml 1`] = ` -Object { - Symbol(file): "[build-system] -requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] -build-backend = \\"setuptools.build_meta\\" -", -} +[build-system] +requires = ["setuptools >= 49.3.1", "wheel >= 0.34.2"] +build-backend = "setuptools.build_meta" + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/setup.py 1`] = ` -Object { - Symbol(file): "import json +import json import setuptools kwargs = json.loads( - \\"\\"\\" + """ { - \\"name\\": \\"scope.jsii-calc-base-of-base\\", - \\"version\\": \\"0.0.0\\", - \\"description\\": \\"An example transitive dependency for jsii-calc.\\", - \\"license\\": \\"Apache-2.0\\", - \\"url\\": \\"https://github.com/aws/jsii\\", - \\"long_description_content_type\\": \\"text/markdown\\", - \\"author\\": \\"Amazon Web Services\\", - \\"project_urls\\": { - \\"Source\\": \\"https://github.com/aws/jsii.git\\" + "name": "scope.jsii-calc-base-of-base", + "version": "0.0.0", + "description": "An example transitive dependency for jsii-calc.", + "license": "Apache-2.0", + "url": "https://github.com/aws/jsii", + "long_description_content_type": "text/markdown", + "author": "Amazon Web Services", + "bdist_wheel": { + "universal": true + }, + "project_urls": { + "Source": "https://github.com/aws/jsii.git" }, - \\"package_dir\\": { - \\"\\": \\"src\\" + "package_dir": { + "": "src" }, - \\"packages\\": [ - \\"scope.jsii_calc_base_of_base\\", - \\"scope.jsii_calc_base_of_base._jsii\\" + "packages": [ + "scope.jsii_calc_base_of_base", + "scope.jsii_calc_base_of_base._jsii" ], - \\"package_data\\": { - \\"scope.jsii_calc_base_of_base._jsii\\": [ - \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\" + "package_data": { + "scope.jsii_calc_base_of_base._jsii": [ + "jsii-calc-base-of-base@0.0.0.jsii.tgz" ], - \\"scope.jsii_calc_base_of_base\\": [ - \\"py.typed\\" + "scope.jsii_calc_base_of_base": [ + "py.typed" ] }, - \\"python_requires\\": \\">=3.6\\", - \\"install_requires\\": [ - \\"jsii>=0.0.0, <0.0.1\\", - \\"publication>=0.0.3\\" + "python_requires": ">=3.6", + "install_requires": [ + "jsii>=0.0.0, <0.0.1", + "publication>=0.0.3" ], - \\"classifiers\\": [ - \\"Intended Audience :: Developers\\", - \\"Operating System :: OS Independent\\", - \\"Programming Language :: JavaScript\\", - \\"Programming Language :: Python :: 3 :: Only\\", - \\"Programming Language :: Python :: 3.6\\", - \\"Programming Language :: Python :: 3.7\\", - \\"Programming Language :: Python :: 3.8\\", - \\"Typing :: Typed\\", - \\"License :: OSI Approved\\" + "classifiers": [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: JavaScript", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Typing :: Typed", + "License :: OSI Approved" ] } -\\"\\"\\" +""" ) -with open(\\"README.md\\") as fp: - kwargs[\\"long_description\\"] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -2100,51 +2017,51 @@ import publication from ._jsii import * -@jsii.interface(jsii_type=\\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\") +@jsii.interface(jsii_type="@scope/jsii-calc-base-of-base.IVeryBaseInterface") class IVeryBaseInterface(jsii.compat.Protocol): @builtins.staticmethod def __jsii_proxy_class__(): return _IVeryBaseInterfaceProxy - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> None: ... class _IVeryBaseInterfaceProxy: - __jsii_type__ = \\"@scope/jsii-calc-base-of-base.IVeryBaseInterface\\" + __jsii_type__ = "@scope/jsii-calc-base-of-base.IVeryBaseInterface" - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> None: - return jsii.invoke(self, \\"foo\\", []) + return jsii.invoke(self, "foo", []) -class Very(metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-base-of-base.Very\\"): +class Very(metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-base-of-base.Very"): def __init__(self) -> None: jsii.create(Very, self, []) - @jsii.member(jsii_name=\\"hey\\") + @jsii.member(jsii_name="hey") def hey(self) -> jsii.Number: - return jsii.invoke(self, \\"hey\\", []) + return jsii.invoke(self, "hey", []) @jsii.data_type( - jsii_type=\\"@scope/jsii-calc-base-of-base.VeryBaseProps\\", + jsii_type="@scope/jsii-calc-base-of-base.VeryBaseProps", jsii_struct_bases=[], - name_mapping={\\"foo\\": \\"foo\\"}, + name_mapping={"foo": "foo"}, ) class VeryBaseProps: - def __init__(self, *, foo: \\"Very\\") -> None: - \\"\\"\\" + def __init__(self, *, foo: "Very") -> None: + """ :param foo: - - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, + "foo": foo, } @builtins.property - def foo(self) -> \\"Very\\": - return self._values.get(\\"foo\\") + def foo(self) -> "Very": + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -2153,25 +2070,23 @@ class VeryBaseProps: return not (rhs == self) def __repr__(self) -> str: - return \\"VeryBaseProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "VeryBaseProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"IVeryBaseInterface\\", - \\"Very\\", - \\"VeryBaseProps\\", + "IVeryBaseInterface", + "Very", + "VeryBaseProps", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -2182,28 +2097,25 @@ import jsii.compat import publication __jsii_assembly__ = jsii.JSIIAssembly.load( - \\"@scope/jsii-calc-base-of-base\\", - \\"0.0.0\\", + "@scope/jsii-calc-base-of-base", + "0.0.0", __name__[0:-6], - \\"jsii-calc-base-of-base@0.0.0.jsii.tgz\\", + "jsii-calc-base-of-base@0.0.0.jsii.tgz", ) __all__ = [ - \\"__jsii_assembly__\\", + "__jsii_assembly__", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_base_of_base/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-base-of-base": /python/src/scope/jsii_calc_base_of_base/py.typed 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` @@ -2241,6 +2153,7 @@ exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` ┃ ┃ ┣━ 📄 IReflectable.cs ┃ ┃ ┣━ 📄 IReflectableEntry.cs ┃ ┃ ┣━ 📄 IReflectableProxy.cs + ┃ ┃ ┣━ 📄 NestingClass.cs ┃ ┃ ┣━ 📄 ReflectableEntry.cs ┃ ┃ ┣━ 📄 ReflectableEntryProxy.cs ┃ ┃ ┗━ 📄 Reflector.cs @@ -2259,6 +2172,7 @@ exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` ┃ ┃ ┗━ 📁 calculator ┃ ┃ ┣━ 📁 custom_submodule_name ┃ ┃ ┃ ┣━ 📄 IReflectable.java + ┃ ┃ ┃ ┣━ 📄 NestingClass.java ┃ ┃ ┃ ┣━ 📄 ReflectableEntry.java ┃ ┃ ┃ ┗━ 📄 Reflector.java ┃ ┃ ┗━ 📁 lib @@ -2302,694 +2216,738 @@ exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/.jsii 1`] = ` -Object { - Symbol(file): "{ - \\"author\\": { - \\"name\\": \\"Amazon Web Services\\", - \\"organization\\": true, - \\"roles\\": [ - \\"author\\" +{ + "author": { + "name": "Amazon Web Services", + "organization": true, + "roles": [ + "author" ], - \\"url\\": \\"https://aws.amazon.com\\" + "url": "https://aws.amazon.com" }, - \\"dependencies\\": { - \\"@scope/jsii-calc-base\\": \\"^0.0.0\\", - \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\" + "dependencies": { + "@scope/jsii-calc-base": "^0.0.0", + "@scope/jsii-calc-base-of-base": "^0.0.0" }, - \\"dependencyClosure\\": { - \\"@scope/jsii-calc-base\\": { - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + "dependencyClosure": { + "@scope/jsii-calc-base": { + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + "package": "software.amazon.jsii.tests.calculator.base" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base\\" + "js": { + "npm": "@scope/jsii-calc-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base\\", - \\"module\\": \\"scope.jsii_calc_base\\" + "python": { + "distName": "scope.jsii-calc-base", + "module": "scope.jsii_calc_base" } } }, - \\"@scope/jsii-calc-base-of-base\\": { - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + "@scope/jsii-calc-base-of-base": { + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base-of-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base-of-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + "package": "software.amazon.jsii.tests.calculator.baseofbase" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + "js": { + "npm": "@scope/jsii-calc-base-of-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base-of-base\\", - \\"module\\": \\"scope.jsii_calc_base_of_base\\" + "python": { + "distName": "scope.jsii-calc-base-of-base", + "module": "scope.jsii_calc_base_of_base" } } } }, - \\"description\\": \\"A simple calcuator library built on JSII.\\", - \\"docs\\": { - \\"deprecated\\": \\"Really just deprecated for shows...\\", - \\"stability\\": \\"deprecated\\" + "description": "A simple calcuator library built on JSII.", + "docs": { + "deprecated": "Really just deprecated for shows...", + "stability": "deprecated" }, - \\"homepage\\": \\"https://github.com/aws/jsii\\", - \\"jsiiVersion\\": \\"0.0.0\\", - \\"license\\": \\"Apache-2.0\\", - \\"name\\": \\"@scope/jsii-calc-lib\\", - \\"repository\\": { - \\"directory\\": \\"packages/@scope/jsii-calc-lib\\", - \\"type\\": \\"git\\", - \\"url\\": \\"https://github.com/aws/jsii.git\\" + "homepage": "https://github.com/aws/jsii", + "jsiiVersion": "0.0.0", + "license": "Apache-2.0", + "name": "@scope/jsii-calc-lib", + "repository": { + "directory": "packages/@scope/jsii-calc-lib", + "type": "git", + "url": "https://github.com/aws/jsii.git" }, - \\"schema\\": \\"jsii/0.10.0\\", - \\"submodules\\": { - \\"@scope/jsii-calc-lib.submodule\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 112 - }, - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CustomSubmoduleName\\" + "schema": "jsii/0.10.0", + "submodules": { + "@scope/jsii-calc-lib.submodule": { + "locationInModule": { + "filename": "lib/index.ts", + "line": 112 + }, + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CustomSubmoduleName" }, - \\"java\\": { - \\"package\\": \\"software.amazon.jsii.tests.calculator.custom_submodule_name\\" + "java": { + "package": "software.amazon.jsii.tests.calculator.custom_submodule_name" }, - \\"python\\": { - \\"module\\": \\"scope.jsii_calc_lib.custom_submodule_name\\" + "python": { + "module": "scope.jsii_calc_lib.custom_submodule_name" } } } }, - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.LibNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.LibPackageId\\", - \\"versionSuffix\\": \\"-devpreview\\" + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.LibNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.LibPackageId", + "versionSuffix": "-devpreview" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-lib\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\", - \\"versionSuffix\\": \\".DEVPREVIEW\\" + "java": { + "maven": { + "artifactId": "calculator-lib", + "groupId": "software.amazon.jsii.tests", + "versionSuffix": ".DEVPREVIEW" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.lib\\" + "package": "software.amazon.jsii.tests.calculator.lib" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-lib\\" + "js": { + "npm": "@scope/jsii-calc-lib" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-lib\\", - \\"module\\": \\"scope.jsii_calc_lib\\" + "python": { + "distName": "scope.jsii-calc-lib", + "module": "scope.jsii_calc_lib" } }, - \\"types\\": { - \\"@scope/jsii-calc-lib.EnumFromScopedModule\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"remarks\\": \\"See awslabs/jsii#138\\", - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Check that enums from \\\\\\\\@scoped packages can be references.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 97 - }, - \\"members\\": [ - { - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"name\\": \\"VALUE1\\" + "types": { + "@scope/jsii-calc-lib.EnumFromScopedModule": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "remarks": "See awslabs/jsii#138", + "stability": "deprecated", + "summary": "Check that enums from \\\\@scoped packages can be references." + }, + "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule", + "kind": "enum", + "locationInModule": { + "filename": "lib/index.ts", + "line": 97 + }, + "members": [ + { + "docs": { + "stability": "deprecated" + }, + "name": "VALUE1" }, { - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "docs": { + "stability": "deprecated" }, - \\"name\\": \\"VALUE2\\" + "name": "VALUE2" } ], - \\"name\\": \\"EnumFromScopedModule\\" + "name": "EnumFromScopedModule" }, - \\"@scope/jsii-calc-lib.IDoublable\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"The general contract for a concrete number.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 23 - }, - \\"name\\": \\"IDoublable\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 24 - }, - \\"name\\": \\"doubleValue\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "@scope/jsii-calc-lib.IDoublable": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated", + "summary": "The general contract for a concrete number." + }, + "fqn": "@scope/jsii-calc-lib.IDoublable", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 23 + }, + "name": "IDoublable", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 24 + }, + "name": "doubleValue", + "type": { + "primitive": "number" } } ] }, - \\"@scope/jsii-calc-lib.IFriendly\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"remarks\\": \\"These classes can be greeted with\\\\na \\\\\\"hello\\\\\\" or \\\\\\"goodbye\\\\\\" blessing and they will respond back in a fun and friendly manner.\\", - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Applies to classes that are considered friendly.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 58 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Say hello!\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 62 - }, - \\"name\\": \\"hello\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "@scope/jsii-calc-lib.IFriendly": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "remarks": "These classes can be greeted with\\na \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner.", + "stability": "deprecated", + "summary": "Applies to classes that are considered friendly." + }, + "fqn": "@scope/jsii-calc-lib.IFriendly", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 58 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "Say hello!" + }, + "locationInModule": { + "filename": "lib/index.ts", + "line": 62 + }, + "name": "hello", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IFriendly\\" + "name": "IFriendly" }, - \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"remarks\\": \\"Their presence validates that .NET/Java/jsii-reflect can track all fields\\\\nfar enough up the tree.\\", - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Interface that inherits from packages 2 levels up the tree.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-base.IBaseInterface\\" + "@scope/jsii-calc-lib.IThreeLevelsInterface": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "remarks": "Their presence validates that .NET/Java/jsii-reflect can track all fields\\nfar enough up the tree.", + "stability": "deprecated", + "summary": "Interface that inherits from packages 2 levels up the tree." + }, + "fqn": "@scope/jsii-calc-lib.IThreeLevelsInterface", + "interfaces": [ + "@scope/jsii-calc-base.IBaseInterface" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 108 + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 108 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "abstract": true, + "docs": { + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 109 + "locationInModule": { + "filename": "lib/index.ts", + "line": 109 }, - \\"name\\": \\"baz\\" + "name": "baz" } ], - \\"name\\": \\"IThreeLevelsInterface\\" + "name": "IThreeLevelsInterface" }, - \\"@scope/jsii-calc-lib.MyFirstStruct\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"This is the first struct we have created in jsii.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 68 - }, - \\"name\\": \\"MyFirstStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"An awesome number value.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 77 - }, - \\"name\\": \\"anumber\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "@scope/jsii-calc-lib.MyFirstStruct": { + "assembly": "@scope/jsii-calc-lib", + "datatype": true, + "docs": { + "stability": "deprecated", + "summary": "This is the first struct we have created in jsii." + }, + "fqn": "@scope/jsii-calc-lib.MyFirstStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 68 + }, + "name": "MyFirstStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "An awesome number value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 77 + }, + "name": "anumber", + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"A string value.\\" + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "A string value." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 72 + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 72 }, - \\"name\\": \\"astring\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "astring", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 78 - }, - \\"name\\": \\"firstOptional\\", - \\"optional\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "abstract": true, + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 78 + }, + "name": "firstOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"@scope/jsii-calc-lib.Number\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"base\\": \\"@scope/jsii-calc-lib.Value\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Represents a concrete number.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Creates a Number object.\\" + "@scope/jsii-calc-lib.Number": { + "assembly": "@scope/jsii-calc-lib", + "base": "@scope/jsii-calc-lib.Value", + "docs": { + "stability": "deprecated", + "summary": "Represents a concrete number." + }, + "fqn": "@scope/jsii-calc-lib.Number", + "initializer": { + "docs": { + "stability": "deprecated", + "summary": "Creates a Number object." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 35 + "locationInModule": { + "filename": "lib/index.ts", + "line": 35 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"The number.\\" + "docs": { + "summary": "The number." }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, - \\"interfaces\\": [ - \\"@scope/jsii-calc-lib.IDoublable\\" + "interfaces": [ + "@scope/jsii-calc-lib.IDoublable" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 30 - }, - \\"name\\": \\"Number\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"The number multiplied by 2.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 42 - }, - \\"name\\": \\"doubleValue\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.IDoublable\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "kind": "class", + "locationInModule": { + "filename": "lib/index.ts", + "line": 30 + }, + "name": "Number", + "properties": [ + { + "docs": { + "stability": "deprecated", + "summary": "The number multiplied by 2." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 42 + }, + "name": "doubleValue", + "overrides": "@scope/jsii-calc-lib.IDoublable", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"The number.\\" + "docs": { + "stability": "deprecated", + "summary": "The number." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 35 + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 35 }, - \\"name\\": \\"value\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" } } ] }, - \\"@scope/jsii-calc-lib.Operation\\": { - \\"abstract\\": true, - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"base\\": \\"@scope/jsii-calc-lib.Value\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Represents an operation on values.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"initializer\\": {}, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 50 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"String representation of the value.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 51 - }, - \\"name\\": \\"toString\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "@scope/jsii-calc-lib.Operation": { + "abstract": true, + "assembly": "@scope/jsii-calc-lib", + "base": "@scope/jsii-calc-lib.Value", + "docs": { + "stability": "deprecated", + "summary": "Represents an operation on values." + }, + "fqn": "@scope/jsii-calc-lib.Operation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/index.ts", + "line": 50 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/index.ts", + "line": 51 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Value", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Operation\\" + "name": "Operation" }, - \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"This is a struct with only optional properties.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 84 - }, - \\"name\\": \\"StructWithOnlyOptionals\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"The first optional!\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 88 - }, - \\"name\\": \\"optional1\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "@scope/jsii-calc-lib.StructWithOnlyOptionals": { + "assembly": "@scope/jsii-calc-lib", + "datatype": true, + "docs": { + "stability": "deprecated", + "summary": "This is a struct with only optional properties." + }, + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals", + "kind": "interface", + "locationInModule": { + "filename": "lib/index.ts", + "line": 84 + }, + "name": "StructWithOnlyOptionals", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "The first optional!" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 88 + }, + "name": "optional1", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "abstract": true, + "docs": { + "stability": "deprecated" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 89 + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 89 }, - \\"name\\": \\"optional2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "optional2", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "abstract": true, + "docs": { + "stability": "deprecated" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 90 + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 90 }, - \\"name\\": \\"optional3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "optional3", + "optional": true, + "type": { + "primitive": "boolean" } } ] }, - \\"@scope/jsii-calc-lib.Value\\": { - \\"abstract\\": true, - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"base\\": \\"@scope/jsii-calc-base.Base\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Abstract class which represents a numeric value.\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\", - \\"initializer\\": {}, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 6 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"String representation of the value.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 15 - }, - \\"name\\": \\"toString\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "@scope/jsii-calc-lib.Value": { + "abstract": true, + "assembly": "@scope/jsii-calc-lib", + "base": "@scope/jsii-calc-base.Base", + "docs": { + "stability": "deprecated", + "summary": "Abstract class which represents a numeric value." + }, + "fqn": "@scope/jsii-calc-lib.Value", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/index.ts", + "line": 6 + }, + "methods": [ + { + "docs": { + "stability": "deprecated", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/index.ts", + "line": 15 + }, + "name": "toString", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Value\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"The value.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 10 - }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "Value", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/index.ts", + "line": 10 + }, + "name": "value", + "type": { + "primitive": "number" } } ] }, - \\"@scope/jsii-calc-lib.submodule.IReflectable\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 1 - }, - \\"name\\": \\"IReflectable\\", - \\"namespace\\": \\"submodule\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 2 - }, - \\"name\\": \\"entries\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\" + "@scope/jsii-calc-lib.submodule.IReflectable": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated" + }, + "fqn": "@scope/jsii-calc-lib.submodule.IReflectable", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 1 + }, + "name": "IReflectable", + "namespace": "submodule", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 2 + }, + "name": "entries", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 5 - }, - \\"name\\": \\"ReflectableEntry\\", - \\"namespace\\": \\"submodule\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 6 - }, - \\"name\\": \\"key\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "@scope/jsii-calc-lib.submodule.NestingClass": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated", + "summary": "This class is here to show we can use nested classes across module boundaries." + }, + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass", + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 22 + }, + "name": "NestingClass", + "namespace": "submodule" + }, + "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated", + "summary": "This class is here to show we can use nested classes across module boundaries." + }, + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass", + "initializer": { + "docs": { + "stability": "deprecated" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 30 + }, + "name": "NestedClass", + "namespace": "submodule.NestingClass", + "properties": [ + { + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 31 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, + "@scope/jsii-calc-lib.submodule.ReflectableEntry": { + "assembly": "@scope/jsii-calc-lib", + "datatype": true, + "docs": { + "stability": "deprecated" + }, + "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 5 + }, + "name": "ReflectableEntry", + "namespace": "submodule", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 6 + }, + "name": "key", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "abstract": true, + "docs": { + "stability": "deprecated" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 7 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 7 }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "value", + "type": { + "primitive": "any" } } ] }, - \\"@scope/jsii-calc-lib.submodule.Reflector\\": { - \\"assembly\\": \\"@scope/jsii-calc-lib\\", - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.Reflector\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"deprecated\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 11 + "@scope/jsii-calc-lib.submodule.Reflector": { + "assembly": "@scope/jsii-calc-lib", + "docs": { + "stability": "deprecated" + }, + "fqn": "@scope/jsii-calc-lib.submodule.Reflector", + "initializer": { + "docs": { + "stability": "deprecated" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 10 + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 10 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"deprecated\\" + "docs": { + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 13 + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 11 }, - \\"name\\": \\"asMap\\", - \\"parameters\\": [ + "name": "asMap", + "parameters": [ { - \\"name\\": \\"reflectable\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + "name": "reflectable", + "type": { + "fqn": "@scope/jsii-calc-lib.submodule.IReflectable" } } ], - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } } ], - \\"name\\": \\"Reflector\\", - \\"namespace\\": \\"submodule\\" + "name": "Reflector", + "namespace": "submodule" } }, - \\"version\\": \\"0.0.0\\", - \\"fingerprint\\": \\"fVfpIK7xUajlT1zkHIJ8uYJPvy0gLgEe5BM8afu1mVg=\\" -} -", + "version": "0.0.0", + "fingerprint": "f/4VuNiOkSgTgLR80loQUAzAuzFi+25rmfLcRWKDCrY=" } + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId.csproj 1`] = ` -Object { - Symbol(file): " + A simple calcuator library built on JSII. (Stability: Deprecated) @@ -3013,61 +2971,57 @@ Object { netcoreapp3.1 - + - - - + + + 0612,0618 -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/EnumFromScopedModule.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace { - /// Check that enums from \\\\@scoped packages can be references. + /// Check that enums from \\@scoped packages can be references. /// /// See awslabs/jsii#138 /// /// Stability: Deprecated /// - [JsiiEnum(nativeType: typeof(EnumFromScopedModule), fullyQualifiedName: \\"@scope/jsii-calc-lib.EnumFromScopedModule\\")] + [JsiiEnum(nativeType: typeof(EnumFromScopedModule), fullyQualifiedName: "@scope/jsii-calc-lib.EnumFromScopedModule")] [System.Obsolete()] public enum EnumFromScopedModule { /// /// Stability: Deprecated /// - [JsiiEnumMember(name: \\"VALUE1\\")] + [JsiiEnumMember(name: "VALUE1")] [System.Obsolete()] VALUE1, /// /// Stability: Deprecated /// - [JsiiEnumMember(name: \\"VALUE2\\")] + [JsiiEnumMember(name: "VALUE2")] [System.Obsolete()] VALUE2 } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublable.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3077,14 +3031,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDoublable), fullyQualifiedName: \\"@scope/jsii-calc-lib.IDoublable\\")] + [JsiiInterface(nativeType: typeof(IDoublable), fullyQualifiedName: "@scope/jsii-calc-lib.IDoublable")] [System.Obsolete()] public interface IDoublable { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "doubleValue", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] double DoubleValue { @@ -3092,13 +3046,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IDoublableProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3108,7 +3060,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDoublable), fullyQualifiedName: \\"@scope/jsii-calc-lib.IDoublable\\")] + [JsiiTypeProxy(nativeType: typeof(IDoublable), fullyQualifiedName: "@scope/jsii-calc-lib.IDoublable")] [System.Obsolete()] internal sealed class IDoublableProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable { @@ -3119,7 +3071,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "doubleValue", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public double DoubleValue { @@ -3127,13 +3079,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendly.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3142,11 +3092,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Applies to classes that are considered friendly. /// /// These classes can be greeted with - /// a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + /// a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IFriendly), fullyQualifiedName: \\"@scope/jsii-calc-lib.IFriendly\\")] + [JsiiInterface(nativeType: typeof(IFriendly), fullyQualifiedName: "@scope/jsii-calc-lib.IFriendly")] [System.Obsolete()] public interface IFriendly { @@ -3154,18 +3104,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] [System.Obsolete()] string Hello(); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IFriendlyProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3174,11 +3122,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Applies to classes that are considered friendly. /// /// These classes can be greeted with - /// a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + /// a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IFriendly), fullyQualifiedName: \\"@scope/jsii-calc-lib.IFriendly\\")] + [JsiiTypeProxy(nativeType: typeof(IFriendly), fullyQualifiedName: "@scope/jsii-calc-lib.IFriendly")] [System.Obsolete()] internal sealed class IFriendlyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly { @@ -3190,7 +3138,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] [System.Obsolete()] public string Hello() { @@ -3198,13 +3146,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IMyFirstStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3214,7 +3160,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + [JsiiInterface(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: "@scope/jsii-calc-lib.MyFirstStruct")] [System.Obsolete()] public interface IMyFirstStruct { @@ -3222,7 +3168,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "anumber", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] double Anumber { @@ -3233,7 +3179,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "astring", typeJson: "{\\"primitive\\":\\"string\\"}")] [System.Obsolete()] string Astring { @@ -3243,7 +3189,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "firstOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] [System.Obsolete()] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string[]? FirstOptional @@ -3255,13 +3201,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IStructWithOnlyOptionals.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3271,7 +3215,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + [JsiiInterface(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] [System.Obsolete()] public interface IStructWithOnlyOptionals { @@ -3279,7 +3223,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [System.Obsolete()] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Optional1 @@ -3293,7 +3237,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional2", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [System.Obsolete()] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? Optional2 @@ -3307,7 +3251,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional3", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [System.Obsolete()] [Amazon.JSII.Runtime.Deputy.JsiiOptional] bool? Optional3 @@ -3319,13 +3263,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3338,25 +3280,23 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\")] + [JsiiInterface(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: "@scope/jsii-calc-lib.IThreeLevelsInterface")] [System.Obsolete()] public interface IThreeLevelsInterface : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseInterface { /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"baz\\")] + [JsiiMethod(name: "baz")] [System.Obsolete()] void Baz(); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/IThreeLevelsInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3369,7 +3309,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IThreeLevelsInterface), fullyQualifiedName: "@scope/jsii-calc-lib.IThreeLevelsInterface")] [System.Obsolete()] internal sealed class IThreeLevelsInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IThreeLevelsInterface { @@ -3380,33 +3320,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"baz\\")] + [JsiiMethod(name: "baz")] [System.Obsolete()] public void Baz() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] public void Bar() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` -Object { - Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 +#pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.DependencyResolution { @@ -3419,13 +3357,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Internal.Dependency } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3437,14 +3373,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + [JsiiByValue(fqn: "@scope/jsii-calc-lib.MyFirstStruct")] public class MyFirstStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct { /// An awesome number value. /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "anumber", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] [System.Obsolete()] public double Anumber { @@ -3456,7 +3392,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "astring", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] [System.Obsolete()] public string Astring { @@ -3468,7 +3404,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "firstOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true, isOverride: true)] [System.Obsolete()] public string[]? FirstOptional { @@ -3477,13 +3413,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/MyFirstStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3493,7 +3427,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: \\"@scope/jsii-calc-lib.MyFirstStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IMyFirstStruct), fullyQualifiedName: "@scope/jsii-calc-lib.MyFirstStruct")] [System.Obsolete()] internal sealed class MyFirstStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct { @@ -3505,7 +3439,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "anumber", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public double Anumber { @@ -3516,7 +3450,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "astring", typeJson: "{\\"primitive\\":\\"string\\"}")] [System.Obsolete()] public string Astring { @@ -3527,7 +3461,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "firstOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] [System.Obsolete()] public string[]? FirstOptional { @@ -3535,13 +3469,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Number.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3551,12 +3483,12 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number), fullyQualifiedName: \\"@scope/jsii-calc-lib.Number\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The number.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number), fullyQualifiedName: "@scope/jsii-calc-lib.Number", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The number.\\"},\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] [System.Obsolete()] public class Number : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable { /// Creates a Number object. - /// The number. + /// The number. /// /// Stability: Deprecated /// @@ -3566,7 +3498,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.Obsolete()] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Number(ByRefValue reference): base(reference) @@ -3574,7 +3506,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.Obsolete()] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Number(DeputyProps props): base(props) @@ -3585,7 +3517,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"doubleValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "doubleValue", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public virtual double DoubleValue { @@ -3596,7 +3528,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public override double Value { @@ -3604,13 +3536,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Operation.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3620,7 +3550,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: \\"@scope/jsii-calc-lib.Operation\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: "@scope/jsii-calc-lib.Operation")] [System.Obsolete()] public abstract class Operation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ { @@ -3629,14 +3559,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Operation(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Operation(DeputyProps props): base(props) { @@ -3646,19 +3576,17 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] [System.Obsolete()] public override abstract string ToString(); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/OperationProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3668,7 +3596,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: \\"@scope/jsii-calc-lib.Operation\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation), fullyQualifiedName: "@scope/jsii-calc-lib.Operation")] [System.Obsolete()] internal sealed class OperationProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { @@ -3680,7 +3608,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public override double Value { @@ -3691,7 +3619,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] [System.Obsolete()] public override string ToString() { @@ -3699,13 +3627,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionals.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3715,7 +3641,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + [JsiiByValue(fqn: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] public class StructWithOnlyOptionals : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals { /// The first optional! @@ -3723,7 +3649,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optional1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] [System.Obsolete()] public string? Optional1 { @@ -3735,7 +3661,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optional2", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true, isOverride: true)] [System.Obsolete()] public double? Optional2 { @@ -3747,7 +3673,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optional3", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true, isOverride: true)] [System.Obsolete()] public bool? Optional3 { @@ -3756,13 +3682,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/StructWithOnlyOptionalsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3772,7 +3696,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")] + [JsiiTypeProxy(nativeType: typeof(IStructWithOnlyOptionals), fullyQualifiedName: "@scope/jsii-calc-lib.StructWithOnlyOptionals")] [System.Obsolete()] internal sealed class StructWithOnlyOptionalsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals { @@ -3785,7 +3709,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [System.Obsolete()] public string? Optional1 { @@ -3796,7 +3720,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional2", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [System.Obsolete()] public double? Optional2 { @@ -3807,7 +3731,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"optional3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional3", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [System.Obsolete()] public bool? Optional3 { @@ -3815,13 +3739,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/Value_.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3831,7 +3753,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: \\"@scope/jsii-calc-lib.Value\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: "@scope/jsii-calc-lib.Value")] [System.Obsolete()] public abstract class Value_ : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base { @@ -3840,14 +3762,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Value_(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Value_(DeputyProps props): base(props) { @@ -3857,7 +3779,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] [System.Obsolete()] public override string ToString() { @@ -3868,7 +3790,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public abstract double Value { @@ -3876,13 +3798,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CalculatorNamespace/LibNamespace/ValueProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3892,7 +3812,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: \\"@scope/jsii-calc-lib.Value\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_), fullyQualifiedName: "@scope/jsii-calc-lib.Value")] [System.Obsolete()] internal sealed class ValueProxy : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ { @@ -3904,7 +3824,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public override double Value { @@ -3912,13 +3832,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectable.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3927,14 +3845,14 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IReflectable), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.IReflectable\\")] + [JsiiInterface(nativeType: typeof(IReflectable), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.IReflectable")] [System.Obsolete()] public interface IReflectable { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "entries", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\"},\\"kind\\":\\"array\\"}}")] [System.Obsolete()] Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries { @@ -3942,13 +3860,11 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableEntry.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3957,14 +3873,14 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IReflectableEntry), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + [JsiiInterface(nativeType: typeof(IReflectableEntry), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] [System.Obsolete()] public interface IReflectableEntry { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "key", typeJson: "{\\"primitive\\":\\"string\\"}")] [System.Obsolete()] string Key { @@ -3974,7 +3890,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"any\\"}")] [System.Obsolete()] object Value { @@ -3982,13 +3898,11 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/IReflectableProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -3997,7 +3911,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IReflectable), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.IReflectable\\")] + [JsiiTypeProxy(nativeType: typeof(IReflectable), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.IReflectable")] [System.Obsolete()] internal sealed class IReflectableProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable { @@ -4008,7 +3922,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "entries", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\"},\\"kind\\":\\"array\\"}}")] [System.Obsolete()] public Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries { @@ -4016,13 +3930,86 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", + +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/NestingClass.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CustomSubmoduleName +{ + /// This class is here to show we can use nested classes across module boundaries. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.NestingClass), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.NestingClass")] + [System.Obsolete()] + public class NestingClass : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestingClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestingClass(DeputyProps props): base(props) + { + } + /// This class is here to show we can use nested classes across module boundaries. + /// + /// Stability: Deprecated + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.NestingClass.NestedClass), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass")] + [System.Obsolete()] + public class NestedClass : DeputyBase + { + /// + /// Stability: Deprecated + /// + [System.Obsolete()] + public NestedClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestedClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.Obsolete()] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestedClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Deprecated + /// + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] + [System.Obsolete()] + public virtual string Property + { + get => GetInstanceProperty(); + } + } + } } + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntry.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -4033,13 +4020,13 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiByValue(fqn: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + [JsiiByValue(fqn: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] public class ReflectableEntry : Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "key", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] [System.Obsolete()] public string Key { @@ -4050,7 +4037,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"any\\"}", isOverride: true)] [System.Obsolete()] public object Value { @@ -4059,13 +4046,11 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/ReflectableEntryProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -4074,7 +4059,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IReflectableEntry), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")] + [JsiiTypeProxy(nativeType: typeof(IReflectableEntry), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.ReflectableEntry")] [System.Obsolete()] internal sealed class ReflectableEntryProxy : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry { @@ -4085,7 +4070,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"key\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "key", typeJson: "{\\"primitive\\":\\"string\\"}")] [System.Obsolete()] public string Key { @@ -4095,7 +4080,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"any\\"}")] [System.Obsolete()] public object Value { @@ -4103,13 +4088,11 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/Amazon/JSII/Tests/CustomSubmoduleName/Reflector.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -4118,7 +4101,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.Reflector), fullyQualifiedName: \\"@scope/jsii-calc-lib.submodule.Reflector\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CustomSubmoduleName.Reflector), fullyQualifiedName: "@scope/jsii-calc-lib.submodule.Reflector")] [System.Obsolete()] public class Reflector : DeputyBase { @@ -4131,7 +4114,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.Obsolete()] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Reflector(ByRefValue reference): base(reference) @@ -4139,7 +4122,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.Obsolete()] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Reflector(DeputyProps props): base(props) @@ -4149,7 +4132,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"asMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"reflectable\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.IReflectable\\\\\\"}}]\\")] + [JsiiMethod(name: "asMap", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}", parametersJson: "[{\\"name\\":\\"reflectable\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.IReflectable\\"}}]")] [System.Obsolete()] public virtual System.Collections.Generic.IDictionary AsMap(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable reflectable) { @@ -4157,25 +4140,21 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/AssemblyInfo.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly("@scope/jsii-calc-lib", "0.0.0", "scope-jsii-calc-lib-0.0.0.tgz")] -[assembly: JsiiAssembly(\\"@scope/jsii-calc-lib\\", \\"0.0.0\\", \\"scope-jsii-calc-lib-0.0.0.tgz\\")] -", -} `; exports[`Generated code for "@scope/jsii-calc-lib": /dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId/scope-jsii-calc-lib-0.0.0.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-lib": /java/pom.xml 1`] = ` -Object { - Symbol(file): " - + + 4.0.0 \${project.groupId}:\${project.artifactId} A simple calcuator library built on JSII. @@ -4328,18 +4307,16 @@ Object { -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/IReflectable.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; +package software.amazon.jsii.tests.calculator.custom_submodule_name; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.IReflectable\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.IReflectable") @software.amazon.jsii.Jsii.Proxy(IReflectable.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4365,22 +4342,76 @@ public interface IReflectable extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.util.List getEntries() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"entries\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("entries", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); } } } -", + +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/NestingClass.java 1`] = ` +package software.amazon.jsii.tests.calculator.custom_submodule_name; + +/** + * This class is here to show we can use nested classes across module boundaries. + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) +@Deprecated +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.NestingClass") +public class NestingClass extends software.amazon.jsii.JsiiObject { + + protected NestingClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NestingClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + /** + * This class is here to show we can use nested classes across module boundaries. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass") + public static class NestedClass extends software.amazon.jsii.JsiiObject { + + protected NestedClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NestedClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public NestedClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) + @Deprecated + public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { + return this.jsiiGet("property", java.lang.String.class); + } + } } + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/ReflectableEntry.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; +package software.amazon.jsii.tests.calculator.custom_submodule_name; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.ReflectableEntry") @software.amazon.jsii.Jsii.Proxy(ReflectableEntry.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4467,8 +4498,8 @@ public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.key = this.jsiiGet(\\"key\\", java.lang.String.class); - this.value = this.jsiiGet(\\"value\\", java.lang.Object.class); + this.key = this.jsiiGet("key", java.lang.String.class); + this.value = this.jsiiGet("value", java.lang.Object.class); } /** @@ -4476,8 +4507,8 @@ public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable */ private Jsii$Proxy(final java.lang.String key, final java.lang.Object value) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.key = java.util.Objects.requireNonNull(key, \\"key is required\\"); - this.value = java.util.Objects.requireNonNull(value, \\"value is required\\"); + this.key = java.util.Objects.requireNonNull(key, "key is required"); + this.value = java.util.Objects.requireNonNull(value, "value is required"); } @Override @@ -4495,15 +4526,15 @@ public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"key\\", om.valueToTree(this.getKey())); - data.set(\\"value\\", om.valueToTree(this.getValue())); + data.set("key", om.valueToTree(this.getKey())); + data.set("value", om.valueToTree(this.getValue())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.submodule.ReflectableEntry")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -4527,20 +4558,18 @@ public interface ReflectableEntry extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/custom_submodule_name/Reflector.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.custom_submodule_name; +package software.amazon.jsii.tests.calculator.custom_submodule_name; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.submodule.Reflector\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.submodule.Reflector") public class Reflector extends software.amazon.jsii.JsiiObject { protected Reflector(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -4566,16 +4595,14 @@ public class Reflector extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.util.Map asMap(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable reflectable) { - return java.util.Collections.unmodifiableMap(this.jsiiCall(\\"asMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(reflectable, \\"reflectable is required\\") })); + return java.util.Collections.unmodifiableMap(this.jsiiCall("asMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(reflectable, "reflectable is required") })); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/$Module.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; import static java.util.Arrays.asList; @@ -4600,13 +4627,13 @@ public final class $Module extends JsiiModule { private static Map load() { final Map result = new HashMap<>(); final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/lib/$Module.txt\\"); + try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/lib/$Module.txt"); final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); final BufferedReader br = new BufferedReader(rd)) { br.lines() .filter(line -> !line.trim().isEmpty()) .forEach(line -> { - final String[] parts = line.split(\\"=\\", 2); + final String[] parts = line.split("=", 2); final String fqn = parts[0]; final String className = parts[1]; result.put(fqn, className); @@ -4621,7 +4648,7 @@ public final class $Module extends JsiiModule { private final Map> cache = new HashMap<>(); public $Module() { - super(\\"@scope/jsii-calc-lib\\", \\"0.0.0\\", $Module.class, \\"jsii-calc-lib@0.0.0.jsii.tgz\\"); + super("@scope/jsii-calc-lib", "0.0.0", $Module.class, "jsii-calc-lib@0.0.0.jsii.tgz"); } @Override @@ -4632,7 +4659,7 @@ public final class $Module extends JsiiModule { @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + throw new ClassNotFoundException("Unknown JSII type: " + fqn); } String className = MODULE_TYPES.get(fqn); if (!this.cache.containsKey(className)) { @@ -4650,23 +4677,21 @@ public final class $Module extends JsiiModule { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/EnumFromScopedModule.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** - * Check that enums from \\\\@scoped packages can be references. + * Check that enums from \\@scoped packages can be references. *

* See awslabs/jsii#138 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.EnumFromScopedModule\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.EnumFromScopedModule") public enum EnumFromScopedModule { /** */ @@ -4679,19 +4704,17 @@ public enum EnumFromScopedModule { @Deprecated VALUE2, } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IDoublable.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * The general contract for a concrete number. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IDoublable\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IDoublable") @software.amazon.jsii.Jsii.Proxy(IDoublable.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4717,26 +4740,24 @@ public interface IDoublable extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { - return this.jsiiGet(\\"doubleValue\\", java.lang.Number.class); + return this.jsiiGet("doubleValue", java.lang.Number.class); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IFriendly.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * Applies to classes that are considered friendly. *

* These classes can be greeted with - * a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + * a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IFriendly\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IFriendly") @software.amazon.jsii.Jsii.Proxy(IFriendly.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4764,17 +4785,15 @@ public interface IFriendly extends software.amazon.jsii.JsiiSerializable { @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/IThreeLevelsInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * Interface that inherits from packages 2 levels up the tree. @@ -4782,8 +4801,8 @@ Object { * Their presence validates that .NET/Java/jsii-reflect can track all fields * far enough up the tree. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.IThreeLevelsInterface") @software.amazon.jsii.Jsii.Proxy(IThreeLevelsInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4809,33 +4828,31 @@ public interface IThreeLevelsInterface extends software.amazon.jsii.JsiiSerializ @Deprecated @Override public void baz() { - this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); } @Override public void bar() { - this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); } @Override public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/MyFirstStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * This is the first struct we have created in jsii. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.MyFirstStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.MyFirstStruct") @software.amazon.jsii.Jsii.Proxy(MyFirstStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -4946,9 +4963,9 @@ public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.anumber = this.jsiiGet(\\"anumber\\", java.lang.Number.class); - this.astring = this.jsiiGet(\\"astring\\", java.lang.String.class); - this.firstOptional = this.jsiiGet(\\"firstOptional\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + this.anumber = this.jsiiGet("anumber", java.lang.Number.class); + this.astring = this.jsiiGet("astring", java.lang.String.class); + this.firstOptional = this.jsiiGet("firstOptional", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); } /** @@ -4956,8 +4973,8 @@ public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.anumber = java.util.Objects.requireNonNull(anumber, \\"anumber is required\\"); - this.astring = java.util.Objects.requireNonNull(astring, \\"astring is required\\"); + this.anumber = java.util.Objects.requireNonNull(anumber, "anumber is required"); + this.astring = java.util.Objects.requireNonNull(astring, "astring is required"); this.firstOptional = firstOptional; } @@ -4981,18 +4998,18 @@ public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"anumber\\", om.valueToTree(this.getAnumber())); - data.set(\\"astring\\", om.valueToTree(this.getAstring())); + data.set("anumber", om.valueToTree(this.getAnumber())); + data.set("astring", om.valueToTree(this.getAstring())); if (this.getFirstOptional() != null) { - data.set(\\"firstOptional\\", om.valueToTree(this.getFirstOptional())); + data.set("firstOptional", om.valueToTree(this.getFirstOptional())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.MyFirstStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.MyFirstStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -5018,21 +5035,19 @@ public interface MyFirstStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Number.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * Represents a concrete number. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Number\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Number") public class Number extends software.amazon.jsii.tests.calculator.lib.Value implements software.amazon.jsii.tests.calculator.lib.IDoublable { protected Number(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -5052,7 +5067,7 @@ public class Number extends software.amazon.jsii.tests.calculator.lib.Value impl @Deprecated public Number(final @org.jetbrains.annotations.NotNull java.lang.Number value) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -5062,7 +5077,7 @@ public class Number extends software.amazon.jsii.tests.calculator.lib.Value impl @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getDoubleValue() { - return this.jsiiGet(\\"doubleValue\\", java.lang.Number.class); + return this.jsiiGet("doubleValue", java.lang.Number.class); } /** @@ -5072,24 +5087,22 @@ public class Number extends software.amazon.jsii.tests.calculator.lib.Value impl @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Operation.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * Represents an operation on values. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Operation\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Operation") public abstract class Operation extends software.amazon.jsii.tests.calculator.lib.Value { protected Operation(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -5128,7 +5141,7 @@ public abstract class Operation extends software.amazon.jsii.tests.calculator.li @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -5138,23 +5151,21 @@ public abstract class Operation extends software.amazon.jsii.tests.calculator.li @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/StructWithOnlyOptionals.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * This is a struct with only optional properties. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.StructWithOnlyOptionals") @software.amazon.jsii.Jsii.Proxy(StructWithOnlyOptionals.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -5268,9 +5279,9 @@ public interface StructWithOnlyOptionals extends software.amazon.jsii.JsiiSerial */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.optional1 = this.jsiiGet(\\"optional1\\", java.lang.String.class); - this.optional2 = this.jsiiGet(\\"optional2\\", java.lang.Number.class); - this.optional3 = this.jsiiGet(\\"optional3\\", java.lang.Boolean.class); + this.optional1 = this.jsiiGet("optional1", java.lang.String.class); + this.optional2 = this.jsiiGet("optional2", java.lang.Number.class); + this.optional3 = this.jsiiGet("optional3", java.lang.Boolean.class); } /** @@ -5304,21 +5315,21 @@ public interface StructWithOnlyOptionals extends software.amazon.jsii.JsiiSerial final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getOptional1() != null) { - data.set(\\"optional1\\", om.valueToTree(this.getOptional1())); + data.set("optional1", om.valueToTree(this.getOptional1())); } if (this.getOptional2() != null) { - data.set(\\"optional2\\", om.valueToTree(this.getOptional2())); + data.set("optional2", om.valueToTree(this.getOptional2())); } if (this.getOptional3() != null) { - data.set(\\"optional3\\", om.valueToTree(this.getOptional3())); + data.set("optional3", om.valueToTree(this.getOptional3())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("@scope/jsii-calc-lib.StructWithOnlyOptionals")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -5344,21 +5355,19 @@ public interface StructWithOnlyOptionals extends software.amazon.jsii.JsiiSerial } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/Value.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.lib; +package software.amazon.jsii.tests.calculator.lib; /** * Abstract class which represents a numeric value. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = \\"@scope/jsii-calc-lib.Value\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.lib.$Module.class, fqn = "@scope/jsii-calc-lib.Value") public abstract class Value extends software.amazon.jsii.tests.calculator.base.Base { protected Value(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -5380,7 +5389,7 @@ public abstract class Value extends software.amazon.jsii.tests.calculator.base.B @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } /** @@ -5405,30 +5414,26 @@ public abstract class Value extends software.amazon.jsii.tests.calculator.base.B @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } } -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/java/software/amazon/jsii/tests/calculator/lib/package-info.java 1`] = ` -Object { - Symbol(file): "/** +/** * * Deprecated: Really just deprecated for shows... */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated package software.amazon.jsii.tests.calculator.lib; -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/resources/software/amazon/jsii/tests/calculator/lib/$Module.txt 1`] = ` -Object { - Symbol(file): "@scope/jsii-calc-lib.EnumFromScopedModule=software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule +@scope/jsii-calc-lib.EnumFromScopedModule=software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule @scope/jsii-calc-lib.IDoublable=software.amazon.jsii.tests.calculator.lib.IDoublable @scope/jsii-calc-lib.IFriendly=software.amazon.jsii.tests.calculator.lib.IFriendly @scope/jsii-calc-lib.IThreeLevelsInterface=software.amazon.jsii.tests.calculator.lib.IThreeLevelsInterface @@ -5438,10 +5443,11 @@ Object { @scope/jsii-calc-lib.StructWithOnlyOptionals=software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals @scope/jsii-calc-lib.Value=software.amazon.jsii.tests.calculator.lib.Value @scope/jsii-calc-lib.submodule.IReflectable=software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable +@scope/jsii-calc-lib.submodule.NestingClass=software.amazon.jsii.tests.calculator.custom_submodule_name.NestingClass +@scope/jsii-calc-lib.submodule.NestingClass.NestedClass=software.amazon.jsii.tests.calculator.custom_submodule_name.NestingClass$NestedClass @scope/jsii-calc-lib.submodule.ReflectableEntry=software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry @scope/jsii-calc-lib.submodule.Reflector=software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/lib/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; @@ -5449,97 +5455,91 @@ exports[`Generated code for "@scope/jsii-calc-lib": /java/src/main/resou exports[`Generated code for "@scope/jsii-calc-lib": /js/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `js/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-lib": /python/MANIFEST.in 1`] = ` -Object { - Symbol(file): "include pyproject.toml -", -} +include pyproject.toml + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/README.md 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/pyproject.toml 1`] = ` -Object { - Symbol(file): "[build-system] -requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] -build-backend = \\"setuptools.build_meta\\" -", -} +[build-system] +requires = ["setuptools >= 49.3.1", "wheel >= 0.34.2"] +build-backend = "setuptools.build_meta" + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/setup.py 1`] = ` -Object { - Symbol(file): "import json +import json import setuptools kwargs = json.loads( - \\"\\"\\" + """ { - \\"name\\": \\"scope.jsii-calc-lib\\", - \\"version\\": \\"0.0.0\\", - \\"description\\": \\"A simple calcuator library built on JSII.\\", - \\"license\\": \\"Apache-2.0\\", - \\"url\\": \\"https://github.com/aws/jsii\\", - \\"long_description_content_type\\": \\"text/markdown\\", - \\"author\\": \\"Amazon Web Services\\", - \\"project_urls\\": { - \\"Source\\": \\"https://github.com/aws/jsii.git\\" + "name": "scope.jsii-calc-lib", + "version": "0.0.0", + "description": "A simple calcuator library built on JSII.", + "license": "Apache-2.0", + "url": "https://github.com/aws/jsii", + "long_description_content_type": "text/markdown", + "author": "Amazon Web Services", + "bdist_wheel": { + "universal": true + }, + "project_urls": { + "Source": "https://github.com/aws/jsii.git" }, - \\"package_dir\\": { - \\"\\": \\"src\\" + "package_dir": { + "": "src" }, - \\"packages\\": [ - \\"scope.jsii_calc_lib\\", - \\"scope.jsii_calc_lib._jsii\\", - \\"scope.jsii_calc_lib.custom_submodule_name\\" + "packages": [ + "scope.jsii_calc_lib", + "scope.jsii_calc_lib._jsii", + "scope.jsii_calc_lib.custom_submodule_name" ], - \\"package_data\\": { - \\"scope.jsii_calc_lib._jsii\\": [ - \\"jsii-calc-lib@0.0.0.jsii.tgz\\" + "package_data": { + "scope.jsii_calc_lib._jsii": [ + "jsii-calc-lib@0.0.0.jsii.tgz" ], - \\"scope.jsii_calc_lib\\": [ - \\"py.typed\\" + "scope.jsii_calc_lib": [ + "py.typed" ] }, - \\"python_requires\\": \\">=3.6\\", - \\"install_requires\\": [ - \\"jsii>=0.0.0, <0.0.1\\", - \\"publication>=0.0.3\\", - \\"scope.jsii-calc-base>=0.0.0, <0.0.1\\", - \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\" + "python_requires": ">=3.6", + "install_requires": [ + "jsii>=0.0.0, <0.0.1", + "publication>=0.0.3", + "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1", + "scope.jsii-calc-base>=0.0.0, <0.0.1" ], - \\"classifiers\\": [ - \\"Intended Audience :: Developers\\", - \\"Operating System :: OS Independent\\", - \\"Programming Language :: JavaScript\\", - \\"Programming Language :: Python :: 3 :: Only\\", - \\"Programming Language :: Python :: 3.6\\", - \\"Programming Language :: Python :: 3.7\\", - \\"Programming Language :: Python :: 3.8\\", - \\"Typing :: Typed\\", - \\"Development Status :: 7 - Inactive\\", - \\"License :: OSI Approved\\" + "classifiers": [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: JavaScript", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Typing :: Typed", + "Development Status :: 7 - Inactive", + "License :: OSI Approved" ] } -\\"\\"\\" +""" ) -with open(\\"README.md\\") as fp: - kwargs[\\"long_description\\"] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -5554,168 +5554,168 @@ from ._jsii import * import scope.jsii_calc_base -@jsii.enum(jsii_type=\\"@scope/jsii-calc-lib.EnumFromScopedModule\\") +@jsii.enum(jsii_type="@scope/jsii-calc-lib.EnumFromScopedModule") class EnumFromScopedModule(enum.Enum): - \\"\\"\\"Check that enums from @scoped packages can be references. + """Check that enums from @scoped packages can be references. See awslabs/jsii#138 stability :stability: deprecated - \\"\\"\\" + """ - VALUE1 = \\"VALUE1\\" - \\"\\"\\" + VALUE1 = "VALUE1" + """ stability :stability: deprecated - \\"\\"\\" - VALUE2 = \\"VALUE2\\" - \\"\\"\\" + """ + VALUE2 = "VALUE2" + """ stability :stability: deprecated - \\"\\"\\" + """ -@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IDoublable\\") +@jsii.interface(jsii_type="@scope/jsii-calc-lib.IDoublable") class IDoublable(jsii.compat.Protocol): - \\"\\"\\"The general contract for a concrete number. + """The general contract for a concrete number. stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IDoublableProxy @builtins.property - @jsii.member(jsii_name=\\"doubleValue\\") + @jsii.member(jsii_name="doubleValue") def double_value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ ... class _IDoublableProxy: - \\"\\"\\"The general contract for a concrete number. + """The general contract for a concrete number. stability :stability: deprecated - \\"\\"\\" + """ - __jsii_type__ = \\"@scope/jsii-calc-lib.IDoublable\\" + __jsii_type__ = "@scope/jsii-calc-lib.IDoublable" @builtins.property - @jsii.member(jsii_name=\\"doubleValue\\") + @jsii.member(jsii_name="doubleValue") def double_value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"doubleValue\\") + """ + return jsii.get(self, "doubleValue") -@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IFriendly\\") +@jsii.interface(jsii_type="@scope/jsii-calc-lib.IFriendly") class IFriendly(jsii.compat.Protocol): - \\"\\"\\"Applies to classes that are considered friendly. + """Applies to classes that are considered friendly. These classes can be greeted with - a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IFriendlyProxy - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> str: - \\"\\"\\"Say hello! + """Say hello! stability :stability: deprecated - \\"\\"\\" + """ ... class _IFriendlyProxy: - \\"\\"\\"Applies to classes that are considered friendly. + """Applies to classes that are considered friendly. These classes can be greeted with - a \\"hello\\" or \\"goodbye\\" blessing and they will respond back in a fun and friendly manner. + a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. stability :stability: deprecated - \\"\\"\\" + """ - __jsii_type__ = \\"@scope/jsii-calc-lib.IFriendly\\" + __jsii_type__ = "@scope/jsii-calc-lib.IFriendly" - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> str: - \\"\\"\\"Say hello! + """Say hello! stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) -@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.IThreeLevelsInterface\\") +@jsii.interface(jsii_type="@scope/jsii-calc-lib.IThreeLevelsInterface") class IThreeLevelsInterface(scope.jsii_calc_base.IBaseInterface, jsii.compat.Protocol): - \\"\\"\\"Interface that inherits from packages 2 levels up the tree. + """Interface that inherits from packages 2 levels up the tree. Their presence validates that .NET/Java/jsii-reflect can track all fields far enough up the tree. stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IThreeLevelsInterfaceProxy - @jsii.member(jsii_name=\\"baz\\") + @jsii.member(jsii_name="baz") def baz(self) -> None: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ ... class _IThreeLevelsInterfaceProxy(jsii.proxy_for(scope.jsii_calc_base.IBaseInterface)): - \\"\\"\\"Interface that inherits from packages 2 levels up the tree. + """Interface that inherits from packages 2 levels up the tree. Their presence validates that .NET/Java/jsii-reflect can track all fields far enough up the tree. stability :stability: deprecated - \\"\\"\\" + """ - __jsii_type__ = \\"@scope/jsii-calc-lib.IThreeLevelsInterface\\" + __jsii_type__ = "@scope/jsii-calc-lib.IThreeLevelsInterface" - @jsii.member(jsii_name=\\"baz\\") + @jsii.member(jsii_name="baz") def baz(self) -> None: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"baz\\", []) + """ + return jsii.invoke(self, "baz", []) @jsii.data_type( - jsii_type=\\"@scope/jsii-calc-lib.MyFirstStruct\\", + jsii_type="@scope/jsii-calc-lib.MyFirstStruct", jsii_struct_bases=[], name_mapping={ - \\"anumber\\": \\"anumber\\", - \\"astring\\": \\"astring\\", - \\"first_optional\\": \\"firstOptional\\", + "anumber": "anumber", + "astring": "astring", + "first_optional": "firstOptional", }, ) class MyFirstStruct: @@ -5726,7 +5726,7 @@ class MyFirstStruct: astring: str, first_optional: typing.Optional[typing.List[str]] = None, ) -> None: - \\"\\"\\"This is the first struct we have created in jsii. + """This is the first struct we have created in jsii. :param anumber: An awesome number value. :param astring: A string value. @@ -5734,39 +5734,39 @@ class MyFirstStruct: stability :stability: deprecated - \\"\\"\\" + """ self._values = { - \\"anumber\\": anumber, - \\"astring\\": astring, + "anumber": anumber, + "astring": astring, } if first_optional is not None: - self._values[\\"first_optional\\"] = first_optional + self._values["first_optional"] = first_optional @builtins.property def anumber(self) -> jsii.Number: - \\"\\"\\"An awesome number value. + """An awesome number value. stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"anumber\\") + """ + return self._values.get("anumber") @builtins.property def astring(self) -> str: - \\"\\"\\"A string value. + """A string value. stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"astring\\") + """ + return self._values.get("astring") @builtins.property def first_optional(self) -> typing.Optional[typing.List[str]]: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"first_optional\\") + """ + return self._values.get("first_optional") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5775,18 +5775,18 @@ class MyFirstStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"MyFirstStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "MyFirstStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\", + jsii_type="@scope/jsii-calc-lib.StructWithOnlyOptionals", jsii_struct_bases=[], name_mapping={ - \\"optional1\\": \\"optional1\\", - \\"optional2\\": \\"optional2\\", - \\"optional3\\": \\"optional3\\", + "optional1": "optional1", + "optional2": "optional2", + "optional3": "optional3", }, ) class StructWithOnlyOptionals: @@ -5797,7 +5797,7 @@ class StructWithOnlyOptionals: optional2: typing.Optional[jsii.Number] = None, optional3: typing.Optional[bool] = None, ) -> None: - \\"\\"\\"This is a struct with only optional properties. + """This is a struct with only optional properties. :param optional1: The first optional! :param optional2: @@ -5805,39 +5805,39 @@ class StructWithOnlyOptionals: stability :stability: deprecated - \\"\\"\\" + """ self._values = {} if optional1 is not None: - self._values[\\"optional1\\"] = optional1 + self._values["optional1"] = optional1 if optional2 is not None: - self._values[\\"optional2\\"] = optional2 + self._values["optional2"] = optional2 if optional3 is not None: - self._values[\\"optional3\\"] = optional3 + self._values["optional3"] = optional3 @builtins.property def optional1(self) -> typing.Optional[str]: - \\"\\"\\"The first optional! + """The first optional! stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"optional1\\") + """ + return self._values.get("optional1") @builtins.property def optional2(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"optional2\\") + """ + return self._values.get("optional2") @builtins.property def optional3(self) -> typing.Optional[bool]: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"optional3\\") + """ + return self._values.get("optional3") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -5846,21 +5846,21 @@ class StructWithOnlyOptionals: return not (rhs == self) def __repr__(self) -> str: - return \\"StructWithOnlyOptionals(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructWithOnlyOptionals(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class Value( scope.jsii_calc_base.Base, metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"@scope/jsii-calc-lib.Value\\", + jsii_type="@scope/jsii-calc-lib.Value", ): - \\"\\"\\"Abstract class which represents a numeric value. + """Abstract class which represents a numeric value. stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -5869,86 +5869,86 @@ class Value( def __init__(self) -> None: jsii.create(Value, self, []) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") @abc.abstractmethod def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. stability :stability: deprecated - \\"\\"\\" + """ ... class _ValueProxy(Value, jsii.proxy_for(scope.jsii_calc_base.Base)): @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") @jsii.implements(IDoublable) -class Number(Value, metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-lib.Number\\"): - \\"\\"\\"Represents a concrete number. +class Number(Value, metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.Number"): + """Represents a concrete number. stability :stability: deprecated - \\"\\"\\" + """ def __init__(self, value: jsii.Number) -> None: - \\"\\"\\"Creates a Number object. + """Creates a Number object. :param value: The number. stability :stability: deprecated - \\"\\"\\" + """ jsii.create(Number, self, [value]) @builtins.property - @jsii.member(jsii_name=\\"doubleValue\\") + @jsii.member(jsii_name="doubleValue") def double_value(self) -> jsii.Number: - \\"\\"\\"The number multiplied by 2. + """The number multiplied by 2. stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"doubleValue\\") + """ + return jsii.get(self, "doubleValue") @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The number. + """The number. stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") class Operation( - Value, metaclass=jsii.JSIIAbstractClass, jsii_type=\\"@scope/jsii-calc-lib.Operation\\" + Value, metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-lib.Operation" ): - \\"\\"\\"Represents an operation on values. + """Represents an operation on values. stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -5957,48 +5957,46 @@ class Operation( def __init__(self) -> None: jsii.create(Operation, self, []) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") @abc.abstractmethod def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: deprecated - \\"\\"\\" + """ ... class _OperationProxy(Operation, jsii.proxy_for(Value)): - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) __all__ = [ - \\"EnumFromScopedModule\\", - \\"IDoublable\\", - \\"IFriendly\\", - \\"IThreeLevelsInterface\\", - \\"MyFirstStruct\\", - \\"Number\\", - \\"Operation\\", - \\"StructWithOnlyOptionals\\", - \\"Value\\", + "EnumFromScopedModule", + "IDoublable", + "IFriendly", + "IThreeLevelsInterface", + "MyFirstStruct", + "Number", + "Operation", + "StructWithOnlyOptionals", + "Value", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/_jsii/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -6012,23 +6010,21 @@ import scope.jsii_calc_base._jsii import scope.jsii_calc_base_of_base._jsii __jsii_assembly__ = jsii.JSIIAssembly.load( - \\"@scope/jsii-calc-lib\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc-lib@0.0.0.jsii.tgz\\" + "@scope/jsii-calc-lib", "0.0.0", __name__[0:-6], "jsii-calc-lib@0.0.0.jsii.tgz" ) __all__ = [ - \\"__jsii_assembly__\\", + "__jsii_assembly__", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `python/src/scope/jsii_calc_lib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/custom_submodule_name/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -6041,79 +6037,115 @@ import publication from .._jsii import * -@jsii.interface(jsii_type=\\"@scope/jsii-calc-lib.submodule.IReflectable\\") +@jsii.interface(jsii_type="@scope/jsii-calc-lib.submodule.IReflectable") class IReflectable(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IReflectableProxy @builtins.property - @jsii.member(jsii_name=\\"entries\\") - def entries(self) -> typing.List[\\"ReflectableEntry\\"]: - \\"\\"\\" + @jsii.member(jsii_name="entries") + def entries(self) -> typing.List["ReflectableEntry"]: + """ stability :stability: deprecated - \\"\\"\\" + """ ... class _IReflectableProxy: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ - __jsii_type__ = \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + __jsii_type__ = "@scope/jsii-calc-lib.submodule.IReflectable" @builtins.property - @jsii.member(jsii_name=\\"entries\\") - def entries(self) -> typing.List[\\"ReflectableEntry\\"]: - \\"\\"\\" + @jsii.member(jsii_name="entries") + def entries(self) -> typing.List["ReflectableEntry"]: + """ stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"entries\\") + """ + return jsii.get(self, "entries") + + +class NestingClass( + metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.submodule.NestingClass" +): + """This class is here to show we can use nested classes across module boundaries. + + stability + :stability: deprecated + """ + + class NestedClass( + metaclass=jsii.JSIIMeta, + jsii_type="@scope/jsii-calc-lib.submodule.NestingClass.NestedClass", + ): + """This class is here to show we can use nested classes across module boundaries. + + stability + :stability: deprecated + """ + + def __init__(self) -> None: + """ + stability + :stability: deprecated + """ + jsii.create(NestingClass.NestedClass, self, []) + + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: deprecated + """ + return jsii.get(self, "property") @jsii.data_type( - jsii_type=\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\", + jsii_type="@scope/jsii-calc-lib.submodule.ReflectableEntry", jsii_struct_bases=[], - name_mapping={\\"key\\": \\"key\\", \\"value\\": \\"value\\"}, + name_mapping={"key": "key", "value": "value"}, ) class ReflectableEntry: def __init__(self, *, key: str, value: typing.Any) -> None: - \\"\\"\\" + """ :param key: :param value: stability :stability: deprecated - \\"\\"\\" + """ self._values = { - \\"key\\": key, - \\"value\\": value, + "key": key, + "value": value, } @builtins.property def key(self) -> str: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"key\\") + """ + return self._values.get("key") @builtins.property def value(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"value\\") + """ + return self._values.get("value") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -6122,53 +6154,51 @@ class ReflectableEntry: return not (rhs == self) def __repr__(self) -> str: - return \\"ReflectableEntry(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ReflectableEntry(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class Reflector( - metaclass=jsii.JSIIMeta, jsii_type=\\"@scope/jsii-calc-lib.submodule.Reflector\\" + metaclass=jsii.JSIIMeta, jsii_type="@scope/jsii-calc-lib.submodule.Reflector" ): - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" + """ jsii.create(Reflector, self, []) - @jsii.member(jsii_name=\\"asMap\\") - def as_map(self, reflectable: \\"IReflectable\\") -> typing.Mapping[str, typing.Any]: - \\"\\"\\" + @jsii.member(jsii_name="asMap") + def as_map(self, reflectable: "IReflectable") -> typing.Mapping[str, typing.Any]: + """ :param reflectable: - stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"asMap\\", [reflectable]) + """ + return jsii.invoke(self, "asMap", [reflectable]) __all__ = [ - \\"IReflectable\\", - \\"ReflectableEntry\\", - \\"Reflector\\", + "IReflectable", + "NestingClass", + "ReflectableEntry", + "Reflector", ] publication.publish() -", -} + `; exports[`Generated code for "@scope/jsii-calc-lib": /python/src/scope/jsii_calc_lib/py.typed 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "jsii-calc": / 1`] = ` @@ -6412,6 +6442,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┣━ 📄 Multiply.cs ┃ ┃ ┣━ 📄 NamespaceDoc.cs ┃ ┃ ┣━ 📄 Negate.cs + ┃ ┃ ┣━ 📄 NestedClassInstance.cs ┃ ┃ ┣━ 📄 NestedStruct.cs ┃ ┃ ┣━ 📄 NestedStructProxy.cs ┃ ┃ ┣━ 📄 NodeStandardLibrary.cs @@ -6681,6 +6712,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┣━ 📄 MethodNamedProperty.java ┃ ┃ ┣━ 📄 Multiply.java ┃ ┃ ┣━ 📄 Negate.java + ┃ ┃ ┣━ 📄 NestedClassInstance.java ┃ ┃ ┣━ 📄 NestedStruct.java ┃ ┃ ┣━ 📄 NodeStandardLibrary.java ┃ ┃ ┣━ 📄 NullShouldBeTreatedAsUndefined.java @@ -6819,1935 +6851,1934 @@ exports[`Generated code for "jsii-calc": / 1`] = ` `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii 1`] = ` -Object { - Symbol(file): "{ - \\"author\\": { - \\"name\\": \\"Amazon Web Services\\", - \\"organization\\": true, - \\"roles\\": [ - \\"author\\" +{ + "author": { + "name": "Amazon Web Services", + "organization": true, + "roles": [ + "author" ], - \\"url\\": \\"https://aws.amazon.com\\" + "url": "https://aws.amazon.com" }, - \\"bundled\\": { - \\"@fixtures/jsii-calc-bundled\\": \\"^0.19.0\\" + "bundled": { + "@fixtures/jsii-calc-bundled": "^0.19.0" }, - \\"contributors\\": [ + "contributors": [ { - \\"name\\": \\"Elad Ben-Israel\\", - \\"roles\\": [ - \\"maintainer\\" + "name": "Elad Ben-Israel", + "roles": [ + "maintainer" ], - \\"url\\": \\"https://github.com/eladb\\" + "url": "https://github.com/eladb" }, { - \\"name\\": \\"Rico Huijbers\\", - \\"roles\\": [ - \\"maintainer\\" + "name": "Rico Huijbers", + "roles": [ + "maintainer" ], - \\"url\\": \\"https://github.com/rix0rrr\\" + "url": "https://github.com/rix0rrr" }, { - \\"name\\": \\"Romain Marcadier-Muller\\", - \\"roles\\": [ - \\"maintainer\\" + "name": "Romain Marcadier-Muller", + "roles": [ + "maintainer" ], - \\"url\\": \\"https://github.com/RomainMuller\\" + "url": "https://github.com/RomainMuller" } ], - \\"dependencies\\": { - \\"@scope/jsii-calc-base\\": \\"^0.0.0\\", - \\"@scope/jsii-calc-base-of-base\\": \\"^0.0.0\\", - \\"@scope/jsii-calc-lib\\": \\"^0.0.0\\" + "dependencies": { + "@scope/jsii-calc-base": "^0.0.0", + "@scope/jsii-calc-base-of-base": "^0.0.0", + "@scope/jsii-calc-lib": "^0.0.0" }, - \\"dependencyClosure\\": { - \\"@scope/jsii-calc-base\\": { - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BasePackageId\\" + "dependencyClosure": { + "@scope/jsii-calc-base": { + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.base\\" + "package": "software.amazon.jsii.tests.calculator.base" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base\\" + "js": { + "npm": "@scope/jsii-calc-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base\\", - \\"module\\": \\"scope.jsii_calc_base\\" + "python": { + "distName": "scope.jsii-calc-base", + "module": "scope.jsii_calc_base" } } }, - \\"@scope/jsii-calc-base-of-base\\": { - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId\\" + "@scope/jsii-calc-base-of-base": { + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.BaseOfBasePackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-base-of-base\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator-base-of-base", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.baseofbase\\" + "package": "software.amazon.jsii.tests.calculator.baseofbase" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-base-of-base\\" + "js": { + "npm": "@scope/jsii-calc-base-of-base" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-base-of-base\\", - \\"module\\": \\"scope.jsii_calc_base_of_base\\" + "python": { + "distName": "scope.jsii-calc-base-of-base", + "module": "scope.jsii_calc_base_of_base" } } }, - \\"@scope/jsii-calc-lib\\": { - \\"submodules\\": { - \\"@scope/jsii-calc-lib.submodule\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 112 - }, - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CustomSubmoduleName\\" + "@scope/jsii-calc-lib": { + "submodules": { + "@scope/jsii-calc-lib.submodule": { + "locationInModule": { + "filename": "lib/index.ts", + "line": 112 + }, + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CustomSubmoduleName" }, - \\"java\\": { - \\"package\\": \\"software.amazon.jsii.tests.calculator.custom_submodule_name\\" + "java": { + "package": "software.amazon.jsii.tests.calculator.custom_submodule_name" }, - \\"python\\": { - \\"module\\": \\"scope.jsii_calc_lib.custom_submodule_name\\" + "python": { + "module": "scope.jsii_calc_lib.custom_submodule_name" } } } }, - \\"targets\\": { - \\"dotnet\\": { - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace.LibNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId.LibPackageId\\", - \\"versionSuffix\\": \\"-devpreview\\" + "targets": { + "dotnet": { + "namespace": "Amazon.JSII.Tests.CalculatorNamespace.LibNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId.LibPackageId", + "versionSuffix": "-devpreview" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator-lib\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\", - \\"versionSuffix\\": \\".DEVPREVIEW\\" + "java": { + "maven": { + "artifactId": "calculator-lib", + "groupId": "software.amazon.jsii.tests", + "versionSuffix": ".DEVPREVIEW" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator.lib\\" + "package": "software.amazon.jsii.tests.calculator.lib" }, - \\"js\\": { - \\"npm\\": \\"@scope/jsii-calc-lib\\" + "js": { + "npm": "@scope/jsii-calc-lib" }, - \\"python\\": { - \\"distName\\": \\"scope.jsii-calc-lib\\", - \\"module\\": \\"scope.jsii_calc_lib\\" + "python": { + "distName": "scope.jsii-calc-lib", + "module": "scope.jsii_calc_lib" } } } }, - \\"description\\": \\"A simple calcuator built on JSII.\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "description": "A simple calcuator built on JSII.", + "docs": { + "stability": "experimental" }, - \\"homepage\\": \\"https://github.com/aws/jsii\\", - \\"jsiiVersion\\": \\"0.0.0\\", - \\"keywords\\": [ - \\"aws\\", - \\"jsii\\", - \\"test\\" + "homepage": "https://github.com/aws/jsii", + "jsiiVersion": "0.0.0", + "keywords": [ + "aws", + "jsii", + "test" ], - \\"license\\": \\"Apache-2.0\\", - \\"metadata\\": { - \\"jsii:boolean\\": true, - \\"jsii:number\\": 1337, - \\"jsii:object\\": { - \\"string\\": \\"yes!\\" + "license": "Apache-2.0", + "metadata": { + "jsii:boolean": true, + "jsii:number": 1337, + "jsii:object": { + "string": "yes!" } }, - \\"name\\": \\"jsii-calc\\", - \\"readme\\": { - \\"markdown\\": \\"# jsii Calculator\\\\n\\\\nThis library is used to demonstrate and test the features of JSII\\\\n\\\\n## How to use running sum API:\\\\n\\\\nFirst, create a calculator:\\\\n\\\\n\`\`\`ts\\\\nconst calculator = new calc.Calculator();\\\\n\`\`\`\\\\n\\\\nThen call some operations:\\\\n\\\\n\\\\n\`\`\`ts fixture=with-calculator\\\\ncalculator.add(10);\\\\n\`\`\`\\\\n\\\\n## Code Samples\\\\n\\\\n\`\`\`ts\\\\n/* This is totes a magic comment in here, just you wait! */\\\\nconst foo = 'bar';\\\\n\`\`\`\\\\n\\" + "name": "jsii-calc", + "readme": { + "markdown": "# jsii Calculator\\n\\nThis library is used to demonstrate and test the features of JSII\\n\\n## How to use running sum API:\\n\\nFirst, create a calculator:\\n\\n\`\`\`ts\\nconst calculator = new calc.Calculator();\\n\`\`\`\\n\\nThen call some operations:\\n\\n\\n\`\`\`ts fixture=with-calculator\\ncalculator.add(10);\\n\`\`\`\\n\\n## Code Samples\\n\\n\`\`\`ts\\n/* This is totes a magic comment in here, just you wait! */\\nconst foo = 'bar';\\n\`\`\`\\n" }, - \\"repository\\": { - \\"directory\\": \\"packages/jsii-calc\\", - \\"type\\": \\"git\\", - \\"url\\": \\"https://github.com/aws/jsii.git\\" + "repository": { + "directory": "packages/jsii-calc", + "type": "git", + "url": "https://github.com/aws/jsii.git" }, - \\"schema\\": \\"jsii/0.10.0\\", - \\"submodules\\": { - \\"@scope/jsii-calc-lib.submodule\\": { - \\"locationInModule\\": { - \\"filename\\": \\"../@scope/jsii-calc-lib/build/index.d.ts\\", - \\"line\\": 94 + "schema": "jsii/0.10.0", + "submodules": { + "@scope/jsii-calc-lib.submodule": { + "locationInModule": { + "filename": "../@scope/jsii-calc-lib/build/index.d.ts", + "line": 94 } }, - \\"jsii-calc.DerivedClassHasNoProperties\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 325 + "jsii-calc.DerivedClassHasNoProperties": { + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 325 } }, - \\"jsii-calc.InterfaceInNamespaceIncludesClasses\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1206 + "jsii-calc.InterfaceInNamespaceIncludesClasses": { + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1206 } }, - \\"jsii-calc.InterfaceInNamespaceOnlyInterface\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1199 + "jsii-calc.InterfaceInNamespaceOnlyInterface": { + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1199 } }, - \\"jsii-calc.PythonSelf\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1090 + "jsii-calc.PythonSelf": { + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1090 } }, - \\"jsii-calc.composition\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 134 + "jsii-calc.composition": { + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 134 } }, - \\"jsii-calc.submodule\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/index.ts\\", - \\"line\\": 8 + "jsii-calc.submodule": { + "locationInModule": { + "filename": "lib/index.ts", + "line": 9 } }, - \\"jsii-calc.submodule.back_references\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 5 + "jsii-calc.submodule.back_references": { + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 5 } }, - \\"jsii-calc.submodule.child\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 1 + "jsii-calc.submodule.child": { + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 1 } }, - \\"jsii-calc.submodule.isolated\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/index.ts\\", - \\"line\\": 2 + "jsii-calc.submodule.isolated": { + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 2 } }, - \\"jsii-calc.submodule.nested_submodule\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 4 + "jsii-calc.submodule.nested_submodule": { + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 4 } }, - \\"jsii-calc.submodule.nested_submodule.deeplyNested\\": { - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 6 + "jsii-calc.submodule.nested_submodule.deeplyNested": { + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 6 } } }, - \\"targets\\": { - \\"dotnet\\": { - \\"iconUrl\\": \\"https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png\\", - \\"namespace\\": \\"Amazon.JSII.Tests.CalculatorNamespace\\", - \\"packageId\\": \\"Amazon.JSII.Tests.CalculatorPackageId\\" + "targets": { + "dotnet": { + "iconUrl": "https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png", + "namespace": "Amazon.JSII.Tests.CalculatorNamespace", + "packageId": "Amazon.JSII.Tests.CalculatorPackageId" }, - \\"java\\": { - \\"maven\\": { - \\"artifactId\\": \\"calculator\\", - \\"groupId\\": \\"software.amazon.jsii.tests\\" + "java": { + "maven": { + "artifactId": "calculator", + "groupId": "software.amazon.jsii.tests" }, - \\"package\\": \\"software.amazon.jsii.tests.calculator\\" + "package": "software.amazon.jsii.tests.calculator" }, - \\"js\\": { - \\"npm\\": \\"jsii-calc\\" + "js": { + "npm": "jsii-calc" }, - \\"python\\": { - \\"distName\\": \\"jsii-calc\\", - \\"module\\": \\"jsii_calc\\" + "python": { + "distName": "jsii-calc", + "module": "jsii_calc" } }, - \\"types\\": { - \\"jsii-calc.AbstractClass\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.AbstractClassBase\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.AbstractClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"interfaces\\": [ - \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + "types": { + "jsii-calc.AbstractClass": { + "abstract": true, + "assembly": "jsii-calc", + "base": "jsii-calc.AbstractClassBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClass", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "interfaces": [ + "jsii-calc.IInterfaceImplementedByAbstractClass" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1250 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1250 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1256 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1256 }, - \\"name\\": \\"abstractMethod\\", - \\"parameters\\": [ + "name": "abstractMethod", + "parameters": [ { - \\"name\\": \\"name\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "name", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1252 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1252 }, - \\"name\\": \\"nonAbstractMethod\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "nonAbstractMethod", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"AbstractClass\\", - \\"properties\\": [ + "name": "AbstractClass", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1258 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1258 }, - \\"name\\": \\"propFromInterface\\", - \\"overrides\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "propFromInterface", + "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.AbstractClassBase\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.AbstractClassBase\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1246 - }, - \\"name\\": \\"AbstractClassBase\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1247 - }, - \\"name\\": \\"abstractProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.AbstractClassBase": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClassBase", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1246 + }, + "name": "AbstractClassBase", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1247 + }, + "name": "abstractProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.AbstractClassReturner\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AbstractClassReturner": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AbstractClassReturner\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AbstractClassReturner", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1273 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1273 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1274 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1274 }, - \\"name\\": \\"giveMeAbstract\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AbstractClass\\" + "name": "giveMeAbstract", + "returns": { + "type": { + "fqn": "jsii-calc.AbstractClass" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1278 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1278 }, - \\"name\\": \\"giveMeInterface\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + "name": "giveMeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" } } } ], - \\"name\\": \\"AbstractClassReturner\\", - \\"properties\\": [ + "name": "AbstractClassReturner", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1282 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1282 }, - \\"name\\": \\"returnAbstractFromProperty\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AbstractClassBase\\" + "name": "returnAbstractFromProperty", + "type": { + "fqn": "jsii-calc.AbstractClassBase" } } ] }, - \\"jsii-calc.AbstractSuite\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Ensures abstract members implementations correctly register overrides in various languages.\\" + "jsii-calc.AbstractSuite": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Ensures abstract members implementations correctly register overrides in various languages." }, - \\"fqn\\": \\"jsii-calc.AbstractSuite\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AbstractSuite", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 411 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 411 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 413 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 413 }, - \\"name\\": \\"someMethod\\", - \\"parameters\\": [ + "name": "someMethod", + "parameters": [ { - \\"name\\": \\"str\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "str", + "type": { + "primitive": "string" } } ], - \\"protected\\": true, - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "protected": true, + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result.\\" + "docs": { + "stability": "experimental", + "summary": "Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 419 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 419 }, - \\"name\\": \\"workItAll\\", - \\"parameters\\": [ + "name": "workItAll", + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"a \`string\`.\\" + "docs": { + "summary": "a \`string\`." }, - \\"name\\": \\"seed\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "seed", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"AbstractSuite\\", - \\"properties\\": [ + "name": "AbstractSuite", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 412 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 412 }, - \\"name\\": \\"property\\", - \\"protected\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "protected": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Add\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.BinaryOperation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The \\\\\\"+\\\\\\" binary operation.\\" - }, - \\"fqn\\": \\"jsii-calc.Add\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Creates a BinaryOperation.\\" + "jsii-calc.Add": { + "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", + "docs": { + "stability": "experimental", + "summary": "The \\"+\\" binary operation." + }, + "fqn": "jsii-calc.Add", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 49 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 49 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"Left-hand side operand.\\" + "docs": { + "summary": "Left-hand side operand." }, - \\"name\\": \\"lhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"summary\\": \\"Right-hand side operand.\\" + "docs": { + "summary": "Right-hand side operand." }, - \\"name\\": \\"rhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 61 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 61 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"String representation of the value.\\" + "docs": { + "stability": "experimental", + "summary": "String representation of the value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 66 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 66 }, - \\"name\\": \\"toString\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Add\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The value.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 62 - }, - \\"name\\": \\"value\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "Add", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 62 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.AllTypes\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"The setters will validate\\\\nthat the value set is of the expected type and throw otherwise.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This class includes property for all types supported by jsii.\\" + "jsii-calc.AllTypes": { + "assembly": "jsii-calc", + "docs": { + "remarks": "The setters will validate\\nthat the value set is of the expected type and throw otherwise.", + "stability": "experimental", + "summary": "This class includes property for all types supported by jsii." }, - \\"fqn\\": \\"jsii-calc.AllTypes\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AllTypes", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 63 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 63 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 232 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 232 }, - \\"name\\": \\"anyIn\\", - \\"parameters\\": [ + "name": "anyIn", + "parameters": [ { - \\"name\\": \\"inp\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "inp", + "type": { + "primitive": "any" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 224 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 224 }, - \\"name\\": \\"anyOut\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyOut", + "returns": { + "type": { + "primitive": "any" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 220 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 220 }, - \\"name\\": \\"enumMethod\\", - \\"parameters\\": [ + "name": "enumMethod", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StringEnum\\" + "name": "value", + "type": { + "fqn": "jsii-calc.StringEnum" } } ], - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StringEnum\\" + "returns": { + "type": { + "fqn": "jsii-calc.StringEnum" } } } ], - \\"name\\": \\"AllTypes\\", - \\"properties\\": [ + "name": "AllTypes", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 216 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 216 }, - \\"name\\": \\"enumPropertyValue\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "enumPropertyValue", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 180 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 180 }, - \\"name\\": \\"anyArrayProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "anyArrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 181 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 181 }, - \\"name\\": \\"anyMapProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "anyMapProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 179 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 179 }, - \\"name\\": \\"anyProperty\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyProperty", + "type": { + "primitive": "any" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 165 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 165 }, - \\"name\\": \\"arrayProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "arrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 68 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 68 }, - \\"name\\": \\"booleanProperty\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "booleanProperty", + "type": { + "primitive": "boolean" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 114 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 114 }, - \\"name\\": \\"dateProperty\\", - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "dateProperty", + "type": { + "primitive": "date" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 200 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 200 }, - \\"name\\": \\"enumProperty\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + "name": "enumProperty", + "type": { + "fqn": "jsii-calc.AllTypesEnum" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 133 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 133 }, - \\"name\\": \\"jsonProperty\\", - \\"type\\": { - \\"primitive\\": \\"json\\" + "name": "jsonProperty", + "type": { + "primitive": "json" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 150 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 150 }, - \\"name\\": \\"mapProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + "name": "mapProperty", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Number" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 99 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 99 }, - \\"name\\": \\"numberProperty\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "numberProperty", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 83 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 83 }, - \\"name\\": \\"stringProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "stringProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 192 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 192 }, - \\"name\\": \\"unionArrayProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"union\\": { - \\"types\\": [ + "name": "unionArrayProperty", + "type": { + "collection": { + "elementtype": { + "union": { + "types": [ { - \\"primitive\\": \\"number\\" + "primitive": "number" }, { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "fqn": "@scope/jsii-calc-lib.Value" } ] } }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 193 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 193 }, - \\"name\\": \\"unionMapProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"union\\": { - \\"types\\": [ + "name": "unionMapProperty", + "type": { + "collection": { + "elementtype": { + "union": { + "types": [ { - \\"primitive\\": \\"string\\" + "primitive": "string" }, { - \\"primitive\\": \\"number\\" + "primitive": "number" }, { - \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + "fqn": "@scope/jsii-calc-lib.Number" } ] } }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 191 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 191 }, - \\"name\\": \\"unionProperty\\", - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "unionProperty", + "type": { + "union": { + "types": [ { - \\"primitive\\": \\"string\\" + "primitive": "string" }, { - \\"primitive\\": \\"number\\" + "primitive": "number" }, { - \\"fqn\\": \\"jsii-calc.Multiply\\" + "fqn": "jsii-calc.Multiply" }, { - \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + "fqn": "@scope/jsii-calc-lib.Number" } ] } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 186 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 186 }, - \\"name\\": \\"unknownArrayProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "unknownArrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 187 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 187 }, - \\"name\\": \\"unknownMapProperty\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "unknownMapProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 185 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 185 }, - \\"name\\": \\"unknownProperty\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "unknownProperty", + "type": { + "primitive": "any" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 197 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 197 }, - \\"name\\": \\"optionalEnumValue\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StringEnum\\" + "name": "optionalEnumValue", + "optional": true, + "type": { + "fqn": "jsii-calc.StringEnum" } } ] }, - \\"jsii-calc.AllTypesEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AllTypesEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AllTypesEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 33 + "fqn": "jsii-calc.AllTypesEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 33 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"MY_ENUM_VALUE\\" + "name": "MY_ENUM_VALUE" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"YOUR_ENUM_VALUE\\" + "name": "YOUR_ENUM_VALUE" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"THIS_IS_GREAT\\" + "name": "THIS_IS_GREAT" } ], - \\"name\\": \\"AllTypesEnum\\" + "name": "AllTypesEnum" }, - \\"jsii-calc.AllowedMethodNames\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AllowedMethodNames": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AllowedMethodNames\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AllowedMethodNames", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 615 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 615 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 623 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 623 }, - \\"name\\": \\"getBar\\", - \\"parameters\\": [ + "name": "getBar", + "parameters": [ { - \\"name\\": \\"_p1\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "_p1", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"_p2\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "_p2", + "type": { + "primitive": "number" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay.\\" + "docs": { + "stability": "experimental", + "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 619 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 619 }, - \\"name\\": \\"getFoo\\", - \\"parameters\\": [ + "name": "getFoo", + "parameters": [ { - \\"name\\": \\"withParam\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "withParam", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 634 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 634 }, - \\"name\\": \\"setBar\\", - \\"parameters\\": [ + "name": "setBar", + "parameters": [ { - \\"name\\": \\"_x\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "_x", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"_y\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "_y", + "type": { + "primitive": "number" } }, { - \\"name\\": \\"_z\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "_z", + "type": { + "primitive": "boolean" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay.\\" + "docs": { + "stability": "experimental", + "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 630 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 630 }, - \\"name\\": \\"setFoo\\", - \\"parameters\\": [ + "name": "setFoo", + "parameters": [ { - \\"name\\": \\"_x\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "_x", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"_y\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "_y", + "type": { + "primitive": "number" } } ] } ], - \\"name\\": \\"AllowedMethodNames\\" + "name": "AllowedMethodNames" }, - \\"jsii-calc.AmbiguousParameters\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.AmbiguousParameters\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AmbiguousParameters": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AmbiguousParameters", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2683 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2683 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"scope\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Bell\\" + "name": "scope", + "type": { + "fqn": "jsii-calc.Bell" } }, { - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StructParameterType\\" + "name": "props", + "type": { + "fqn": "jsii-calc.StructParameterType" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2682 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2682 }, - \\"name\\": \\"AmbiguousParameters\\", - \\"properties\\": [ + "name": "AmbiguousParameters", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2685 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2685 }, - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StructParameterType\\" + "name": "props", + "type": { + "fqn": "jsii-calc.StructParameterType" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2684 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2684 }, - \\"name\\": \\"scope\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Bell\\" + "name": "scope", + "type": { + "fqn": "jsii-calc.Bell" } } ] }, - \\"jsii-calc.AnonymousImplementationProvider\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AnonymousImplementationProvider": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AnonymousImplementationProvider\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AnonymousImplementationProvider", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IAnonymousImplementationProvider\\" + "interfaces": [ + "jsii-calc.IAnonymousImplementationProvider" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2212 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2212 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2216 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2216 }, - \\"name\\": \\"provideAsClass\\", - \\"overrides\\": \\"jsii-calc.IAnonymousImplementationProvider\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Implementation\\" + "name": "provideAsClass", + "overrides": "jsii-calc.IAnonymousImplementationProvider", + "returns": { + "type": { + "fqn": "jsii-calc.Implementation" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2220 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2220 }, - \\"name\\": \\"provideAsInterface\\", - \\"overrides\\": \\"jsii-calc.IAnonymousImplementationProvider\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\" + "name": "provideAsInterface", + "overrides": "jsii-calc.IAnonymousImplementationProvider", + "returns": { + "type": { + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } } ], - \\"name\\": \\"AnonymousImplementationProvider\\" + "name": "AnonymousImplementationProvider" }, - \\"jsii-calc.AsyncVirtualMethods\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AsyncVirtualMethods": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AsyncVirtualMethods\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AsyncVirtualMethods", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 333 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 333 }, - \\"methods\\": [ + "methods": [ { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 334 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 334 }, - \\"name\\": \\"callMe\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callMe", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Just calls \\\\\\"overrideMeToo\\\\\\".\\" + "async": true, + "docs": { + "stability": "experimental", + "summary": "Just calls \\"overrideMeToo\\"." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 353 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 353 }, - \\"name\\": \\"callMe2\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callMe2", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"remarks\\": \\"This is a \\\\\\"double promise\\\\\\" situation, which\\\\nmeans that callbacks are not going to be available immediate, but only\\\\nafter an \\\\\\"immediates\\\\\\" cycle.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This method calls the \\\\\\"callMe\\\\\\" async method indirectly, which will then invoke a virtual method.\\" + "async": true, + "docs": { + "remarks": "This is a \\"double promise\\" situation, which\\nmeans that callbacks are not going to be available immediate, but only\\nafter an \\"immediates\\" cycle.", + "stability": "experimental", + "summary": "This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 363 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 363 }, - \\"name\\": \\"callMeDoublePromise\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callMeDoublePromise", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 371 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 371 }, - \\"name\\": \\"dontOverrideMe\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "dontOverrideMe", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 342 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 342 }, - \\"name\\": \\"overrideMe\\", - \\"parameters\\": [ + "name": "overrideMe", + "parameters": [ { - \\"name\\": \\"mult\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mult", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 346 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 346 }, - \\"name\\": \\"overrideMeToo\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "overrideMeToo", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"AsyncVirtualMethods\\" + "name": "AsyncVirtualMethods" }, - \\"jsii-calc.AugmentableClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.AugmentableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.AugmentableClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.AugmentableClass", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1539 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1539 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1540 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1540 }, - \\"name\\": \\"methodOne\\" + "name": "methodOne" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1546 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1546 }, - \\"name\\": \\"methodTwo\\" + "name": "methodTwo" } ], - \\"name\\": \\"AugmentableClass\\" + "name": "AugmentableClass" }, - \\"jsii-calc.BaseJsii976\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.BaseJsii976": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.BaseJsii976\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.BaseJsii976", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2477 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2477 }, - \\"name\\": \\"BaseJsii976\\" + "name": "BaseJsii976" }, - \\"jsii-calc.Bell\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Bell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Bell\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Bell", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IBell\\" + "interfaces": [ + "jsii-calc.IBell" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2421 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2421 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2424 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2424 }, - \\"name\\": \\"ring\\", - \\"overrides\\": \\"jsii-calc.IBell\\" + "name": "ring", + "overrides": "jsii-calc.IBell" } ], - \\"name\\": \\"Bell\\", - \\"properties\\": [ + "name": "Bell", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2422 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2422 }, - \\"name\\": \\"rung\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "rung", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.BinaryOperation\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Represents an operation with two operands.\\" - }, - \\"fqn\\": \\"jsii-calc.BinaryOperation\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Creates a BinaryOperation.\\" + "jsii-calc.BinaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Represents an operation with two operands." + }, + "fqn": "jsii-calc.BinaryOperation", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 49 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 49 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"Left-hand side operand.\\" + "docs": { + "summary": "Left-hand side operand." }, - \\"name\\": \\"lhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"summary\\": \\"Right-hand side operand.\\" + "docs": { + "summary": "Right-hand side operand." }, - \\"name\\": \\"rhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"interfaces\\": [ - \\"@scope/jsii-calc-lib.IFriendly\\" + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 43 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say hello!\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 53 - }, - \\"name\\": \\"hello\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 43 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say hello!" + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 53 + }, + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"BinaryOperation\\", - \\"properties\\": [ + "name": "BinaryOperation", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Left-hand side operand.\\" + "docs": { + "stability": "experimental", + "summary": "Left-hand side operand." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 49 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 49 }, - \\"name\\": \\"lhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Right-hand side operand.\\" + "docs": { + "stability": "experimental", + "summary": "Right-hand side operand." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 49 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 49 }, - \\"name\\": \\"rhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"jsii-calc.BurriedAnonymousObject\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"See https://github.com/aws/aws-cdk/issues/7977.\\" + "jsii-calc.BurriedAnonymousObject": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "See https://github.com/aws/aws-cdk/issues/7977." }, - \\"fqn\\": \\"jsii-calc.BurriedAnonymousObject\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.BurriedAnonymousObject", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2767 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2767 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2768 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2768 }, - \\"name\\": \\"check\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "check", + "returns": { + "type": { + "primitive": "boolean" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"returns\\": \\"\`value\`\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Implement this method and have it return it's parameter.\\" + "abstract": true, + "docs": { + "returns": "\`value\`", + "stability": "experimental", + "summary": "Implement this method and have it return it's parameter." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2785 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2785 }, - \\"name\\": \\"giveItBack\\", - \\"parameters\\": [ + "name": "giveItBack", + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"the value that should be returned.\\" + "docs": { + "summary": "the value that should be returned." }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "value", + "type": { + "primitive": "any" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "returns": { + "type": { + "primitive": "any" } } } ], - \\"name\\": \\"BurriedAnonymousObject\\" + "name": "BurriedAnonymousObject" }, - \\"jsii-calc.Calculator\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"docs\\": { - \\"example\\": \\"const calculator = new calc.Calculator();\\\\ncalculator.add(5);\\\\ncalculator.mul(3);\\\\nconsole.log(calculator.expression.value);\\", - \\"remarks\\": \\"Here's how you use it:\\\\n\\\\n\`\`\`ts\\\\nconst calculator = new calc.Calculator();\\\\ncalculator.add(5);\\\\ncalculator.mul(3);\\\\nconsole.log(calculator.expression.value);\\\\n\`\`\`\\\\n\\\\nI will repeat this example again, but in an @example tag.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A calculator which maintains a current value and allows adding operations.\\" - }, - \\"fqn\\": \\"jsii-calc.Calculator\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Creates a Calculator object.\\" + "jsii-calc.Calculator": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "example": "const calculator = new calc.Calculator();\\ncalculator.add(5);\\ncalculator.mul(3);\\nconsole.log(calculator.expression.value);", + "remarks": "Here's how you use it:\\n\\n\`\`\`ts\\nconst calculator = new calc.Calculator();\\ncalculator.add(5);\\ncalculator.mul(3);\\nconsole.log(calculator.expression.value);\\n\`\`\`\\n\\nI will repeat this example again, but in an @example tag.", + "stability": "experimental", + "summary": "A calculator which maintains a current value and allows adding operations." + }, + "fqn": "jsii-calc.Calculator", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Calculator object." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 287 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 287 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"Initialization properties.\\" + "docs": { + "summary": "Initialization properties." }, - \\"name\\": \\"props\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.CalculatorProps\\" + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.CalculatorProps" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 282 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 282 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Adds a number to the current value.\\" + "docs": { + "stability": "experimental", + "summary": "Adds a number to the current value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 320 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 320 }, - \\"name\\": \\"add\\", - \\"parameters\\": [ + "name": "add", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Multiplies the current value by a number.\\" + "docs": { + "stability": "experimental", + "summary": "Multiplies the current value by a number." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 327 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 327 }, - \\"name\\": \\"mul\\", - \\"parameters\\": [ + "name": "mul", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Negates the current value.\\" + "docs": { + "stability": "experimental", + "summary": "Negates the current value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 341 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 341 }, - \\"name\\": \\"neg\\" + "name": "neg" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Raises the current value by a power.\\" + "docs": { + "stability": "experimental", + "summary": "Raises the current value by a power." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 334 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 334 }, - \\"name\\": \\"pow\\", - \\"parameters\\": [ + "name": "pow", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns teh value of the union property (if defined).\\" + "docs": { + "stability": "experimental", + "summary": "Returns teh value of the union property (if defined)." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 360 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 360 }, - \\"name\\": \\"readUnionValue\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "readUnionValue", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"Calculator\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the expression.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 348 - }, - \\"name\\": \\"expression\\", - \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "Calculator", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "Returns the expression." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 348 + }, + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A log of all operations.\\" + "docs": { + "stability": "experimental", + "summary": "A log of all operations." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 310 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 310 }, - \\"name\\": \\"operationsLog\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "operationsLog", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A map of per operation name of all operations performed.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 305 - }, - \\"name\\": \\"operationsMap\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "docs": { + "stability": "experimental", + "summary": "A map of per operation name of all operations performed." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 305 + }, + "name": "operationsMap", + "type": { + "collection": { + "elementtype": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"array\\" + "kind": "array" } }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The current value.\\" + "docs": { + "stability": "experimental", + "summary": "The current value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 300 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 300 }, - \\"name\\": \\"curr\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "curr", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The maximum value allows in this calculator.\\" + "docs": { + "stability": "experimental", + "summary": "The maximum value allows in this calculator." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 315 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 315 }, - \\"name\\": \\"maxValue\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "maxValue", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Example of a property that accepts a union of types.\\" + "docs": { + "stability": "experimental", + "summary": "Example of a property that accepts a union of types." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 355 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 355 }, - \\"name\\": \\"unionProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ { - \\"fqn\\": \\"jsii-calc.Add\\" + "fqn": "jsii-calc.Add" }, { - \\"fqn\\": \\"jsii-calc.Multiply\\" + "fqn": "jsii-calc.Multiply" }, { - \\"fqn\\": \\"jsii-calc.Power\\" + "fqn": "jsii-calc.Power" } ] } @@ -8755,705 +8786,705 @@ Object { } ] }, - \\"jsii-calc.CalculatorProps\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Properties for Calculator.\\" - }, - \\"fqn\\": \\"jsii-calc.CalculatorProps\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 243 - }, - \\"name\\": \\"CalculatorProps\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"0\\", - \\"remarks\\": \\"NOTE: Any number works here, it's fine.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The initial value of the calculator.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 251 - }, - \\"name\\": \\"initialValue\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.CalculatorProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "Properties for Calculator." + }, + "fqn": "jsii-calc.CalculatorProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 243 + }, + "name": "CalculatorProps", + "properties": [ + { + "abstract": true, + "docs": { + "default": "0", + "remarks": "NOTE: Any number works here, it's fine.", + "stability": "experimental", + "summary": "The initial value of the calculator." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 251 + }, + "name": "initialValue", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"none\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The maximum value the calculator can store.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 258 - }, - \\"name\\": \\"maximumValue\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "abstract": true, + "docs": { + "default": "none", + "stability": "experimental", + "summary": "The maximum value the calculator can store." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 258 + }, + "name": "maximumValue", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.ChildStruct982\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ChildStruct982\\", - \\"interfaces\\": [ - \\"jsii-calc.ParentStruct982\\" + "jsii-calc.ChildStruct982": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ChildStruct982", + "interfaces": [ + "jsii-calc.ParentStruct982" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2501 - }, - \\"name\\": \\"ChildStruct982\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2502 - }, - \\"name\\": \\"bar\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2501 + }, + "name": "ChildStruct982", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2502 + }, + "name": "bar", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.ClassThatImplementsTheInternalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ClassThatImplementsTheInternalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ClassThatImplementsTheInternalInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.INonInternalInterface\\" + "interfaces": [ + "jsii-calc.INonInternalInterface" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1802 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1802 }, - \\"name\\": \\"ClassThatImplementsTheInternalInterface\\", - \\"properties\\": [ + "name": "ClassThatImplementsTheInternalInterface", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1806 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1806 }, - \\"name\\": \\"a\\", - \\"overrides\\": \\"jsii-calc.IAnotherPublicInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1807 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1807 }, - \\"name\\": \\"b\\", - \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1808 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1808 }, - \\"name\\": \\"c\\", - \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1809 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1809 }, - \\"name\\": \\"d\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "d", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ClassThatImplementsThePrivateInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ClassThatImplementsThePrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ClassThatImplementsThePrivateInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.INonInternalInterface\\" + "interfaces": [ + "jsii-calc.INonInternalInterface" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1812 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1812 }, - \\"name\\": \\"ClassThatImplementsThePrivateInterface\\", - \\"properties\\": [ + "name": "ClassThatImplementsThePrivateInterface", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1814 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1814 }, - \\"name\\": \\"a\\", - \\"overrides\\": \\"jsii-calc.IAnotherPublicInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1815 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1815 }, - \\"name\\": \\"b\\", - \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1816 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1816 }, - \\"name\\": \\"c\\", - \\"overrides\\": \\"jsii-calc.INonInternalInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1817 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1817 }, - \\"name\\": \\"e\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "e", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ClassWithCollections\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ClassWithCollections\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ClassWithCollections": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithCollections", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2118 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2118 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"map\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"name\\": \\"array\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2108 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2108 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2123 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2123 }, - \\"name\\": \\"createAList\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "createAList", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2127 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2127 }, - \\"name\\": \\"createAMap\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "createAMap", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"ClassWithCollections\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2116 - }, - \\"name\\": \\"staticArray\\", - \\"static\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "ClassWithCollections", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2116 + }, + "name": "staticArray", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2112 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2112 }, - \\"name\\": \\"staticMap\\", - \\"static\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "staticMap", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2110 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2110 }, - \\"name\\": \\"array\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2109 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2109 }, - \\"name\\": \\"map\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ] }, - \\"jsii-calc.ClassWithDocs\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"custom\\": { - \\"customAttribute\\": \\"hasAValue\\" + "jsii-calc.ClassWithDocs": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "customAttribute": "hasAValue" }, - \\"example\\": \\"function anExample() {\\\\n}\\", - \\"remarks\\": \\"The docs are great. They're a bunch of tags.\\", - \\"see\\": \\"https://aws.amazon.com/\\", - \\"stability\\": \\"stable\\", - \\"summary\\": \\"This class has docs.\\" + "example": "function anExample() {\\n}", + "remarks": "The docs are great. They're a bunch of tags.", + "see": "https://aws.amazon.com/", + "stability": "stable", + "summary": "This class has docs." }, - \\"fqn\\": \\"jsii-calc.ClassWithDocs\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ClassWithDocs", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1885 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1885 }, - \\"name\\": \\"ClassWithDocs\\" + "name": "ClassWithDocs" }, - \\"jsii-calc.ClassWithJavaReservedWords\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ClassWithJavaReservedWords\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ClassWithJavaReservedWords": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithJavaReservedWords", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2058 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2058 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"int\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "int", + "type": { + "primitive": "string" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2055 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2055 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2062 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2062 }, - \\"name\\": \\"import\\", - \\"parameters\\": [ + "name": "import", + "parameters": [ { - \\"name\\": \\"assert\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "assert", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"ClassWithJavaReservedWords\\", - \\"properties\\": [ + "name": "ClassWithJavaReservedWords", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2056 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2056 }, - \\"name\\": \\"int\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "int", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ClassWithMutableObjectLiteralProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1293 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1293 }, - \\"name\\": \\"ClassWithMutableObjectLiteralProperty\\", - \\"properties\\": [ + "name": "ClassWithMutableObjectLiteralProperty", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1294 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1294 }, - \\"name\\": \\"mutableObject\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IMutableObjectLiteral\\" + "name": "mutableObject", + "type": { + "fqn": "jsii-calc.IMutableObjectLiteral" } } ] }, - \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Class that implements interface properties automatically, but using a private constructor.\\" - }, - \\"fqn\\": \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\", - \\"interfaces\\": [ - \\"jsii-calc.IInterfaceWithProperties\\" + "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Class that implements interface properties automatically, but using a private constructor." + }, + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1320 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1320 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1322 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1322 }, - \\"name\\": \\"create\\", - \\"parameters\\": [ + "name": "create", + "parameters": [ { - \\"name\\": \\"readOnlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readOnlyString", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"readWriteString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readWriteString", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\" + "returns": { + "type": { + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"ClassWithPrivateConstructorAndAutomaticProperties\\", - \\"properties\\": [ + "name": "ClassWithPrivateConstructorAndAutomaticProperties", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1330 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1330 }, - \\"name\\": \\"readOnlyString\\", - \\"overrides\\": \\"jsii-calc.IInterfaceWithProperties\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readOnlyString", + "overrides": "jsii-calc.IInterfaceWithProperties", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1331 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1331 }, - \\"name\\": \\"readWriteString\\", - \\"overrides\\": \\"jsii-calc.IInterfaceWithProperties\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readWriteString", + "overrides": "jsii-calc.IInterfaceWithProperties", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ConfusingToJackson\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"see\\": \\"https://github.com/aws/aws-cdk/issues/4080\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This tries to confuse Jackson by having overloaded property setters.\\" - }, - \\"fqn\\": \\"jsii-calc.ConfusingToJackson\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2640 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2641 - }, - \\"name\\": \\"makeInstance\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ConfusingToJackson\\" + "jsii-calc.ConfusingToJackson": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/aws-cdk/issues/4080", + "stability": "experimental", + "summary": "This tries to confuse Jackson by having overloaded property setters." + }, + "fqn": "jsii-calc.ConfusingToJackson", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2640 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2641 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.ConfusingToJackson" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2645 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2645 }, - \\"name\\": \\"makeStructInstance\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ConfusingToJacksonStruct\\" + "name": "makeStructInstance", + "returns": { + "type": { + "fqn": "jsii-calc.ConfusingToJacksonStruct" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"ConfusingToJackson\\", - \\"properties\\": [ + "name": "ConfusingToJackson", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2649 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2649 }, - \\"name\\": \\"unionProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "fqn": "@scope/jsii-calc-lib.IFriendly" }, { - \\"collection\\": { - \\"elementtype\\": { - \\"union\\": { - \\"types\\": [ + "collection": { + "elementtype": { + "union": { + "types": [ { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "fqn": "@scope/jsii-calc-lib.IFriendly" }, { - \\"fqn\\": \\"jsii-calc.AbstractClass\\" + "fqn": "jsii-calc.AbstractClass" } ] } }, - \\"kind\\": \\"array\\" + "kind": "array" } } ] @@ -9462,53 +9493,53 @@ Object { } ] }, - \\"jsii-calc.ConfusingToJacksonStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ConfusingToJacksonStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2653 - }, - \\"name\\": \\"ConfusingToJacksonStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2654 - }, - \\"name\\": \\"unionProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "jsii-calc.ConfusingToJacksonStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConfusingToJacksonStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2653 + }, + "name": "ConfusingToJacksonStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2654 + }, + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "fqn": "@scope/jsii-calc-lib.IFriendly" }, { - \\"collection\\": { - \\"elementtype\\": { - \\"union\\": { - \\"types\\": [ + "collection": { + "elementtype": { + "union": { + "types": [ { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "fqn": "@scope/jsii-calc-lib.IFriendly" }, { - \\"fqn\\": \\"jsii-calc.AbstractClass\\" + "fqn": "jsii-calc.AbstractClass" } ] } }, - \\"kind\\": \\"array\\" + "kind": "array" } } ] @@ -9517,9768 +9548,9799 @@ Object { } ] }, - \\"jsii-calc.ConstructorPassesThisOut\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ConstructorPassesThisOut\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ConstructorPassesThisOut": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConstructorPassesThisOut", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1842 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1842 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"consumer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.PartiallyInitializedThisConsumer\\" + "name": "consumer", + "type": { + "fqn": "jsii-calc.PartiallyInitializedThisConsumer" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1841 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1841 }, - \\"name\\": \\"ConstructorPassesThisOut\\" + "name": "ConstructorPassesThisOut" }, - \\"jsii-calc.Constructors\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Constructors": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Constructors\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Constructors", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1587 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1587 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1604 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1604 }, - \\"name\\": \\"hiddenInterface\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "hiddenInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1608 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1608 }, - \\"name\\": \\"hiddenInterfaces\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "hiddenInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1612 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1612 }, - \\"name\\": \\"hiddenSubInterfaces\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "hiddenSubInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1588 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1588 }, - \\"name\\": \\"makeClass\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.PublicClass\\" + "name": "makeClass", + "returns": { + "type": { + "fqn": "jsii-calc.PublicClass" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1592 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1592 }, - \\"name\\": \\"makeInterface\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "makeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1596 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1596 }, - \\"name\\": \\"makeInterface2\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface2\\" + "name": "makeInterface2", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface2" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1600 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1600 }, - \\"name\\": \\"makeInterfaces\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "makeInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"Constructors\\" + "name": "Constructors" }, - \\"jsii-calc.ConsumePureInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ConsumePureInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ConsumePureInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConsumePureInterface", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2664 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2664 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"delegate\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IStructReturningDelegate\\" + "name": "delegate", + "type": { + "fqn": "jsii-calc.IStructReturningDelegate" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2663 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2663 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2666 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2666 }, - \\"name\\": \\"workItBaby\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StructB\\" + "name": "workItBaby", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" } } } ], - \\"name\\": \\"ConsumePureInterface\\" + "name": "ConsumePureInterface" }, - \\"jsii-calc.ConsumerCanRingBell\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\\\\nthe method on the argument that they're passed...\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Test calling back to consumers that implement interfaces.\\" + "jsii-calc.ConsumerCanRingBell": { + "assembly": "jsii-calc", + "docs": { + "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\\nthe method on the argument that they're passed...", + "stability": "experimental", + "summary": "Test calling back to consumers that implement interfaces." }, - \\"fqn\\": \\"jsii-calc.ConsumerCanRingBell\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ConsumerCanRingBell", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2306 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2306 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"remarks\\": \\"Returns whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using an object literal.\\" + "docs": { + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2312 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2312 }, - \\"name\\": \\"staticImplementedByObjectLiteral\\", - \\"parameters\\": [ + "name": "staticImplementedByObjectLiteral", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using a private class.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2338 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2338 }, - \\"name\\": \\"staticImplementedByPrivateClass\\", - \\"parameters\\": [ + "name": "staticImplementedByPrivateClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using a public class.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2327 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2327 }, - \\"name\\": \\"staticImplementedByPublicClass\\", - \\"parameters\\": [ + "name": "staticImplementedByPublicClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"If the parameter is a concrete class instead of an interface.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2349 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2349 }, - \\"name\\": \\"staticWhenTypedAsClass\\", - \\"parameters\\": [ + "name": "staticWhenTypedAsClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"remarks\\": \\"Returns whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using an object literal.\\" + "docs": { + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2359 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2359 }, - \\"name\\": \\"implementedByObjectLiteral\\", - \\"parameters\\": [ + "name": "implementedByObjectLiteral", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using a private class.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2385 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2385 }, - \\"name\\": \\"implementedByPrivateClass\\", - \\"parameters\\": [ + "name": "implementedByPrivateClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"...if the interface is implemented using a public class.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2374 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2374 }, - \\"name\\": \\"implementedByPublicClass\\", - \\"parameters\\": [ + "name": "implementedByPublicClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } }, { - \\"docs\\": { - \\"remarks\\": \\"Return whether the bell was rung.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"If the parameter is a concrete class instead of an interface.\\" + "docs": { + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2396 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2396 }, - \\"name\\": \\"whenTypedAsClass\\", - \\"parameters\\": [ + "name": "whenTypedAsClass", + "parameters": [ { - \\"name\\": \\"ringer\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\" + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } } ], - \\"name\\": \\"ConsumerCanRingBell\\" + "name": "ConsumerCanRingBell" }, - \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ConsumersOfThisCrazyTypeSystem": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1820 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1820 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1821 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1821 }, - \\"name\\": \\"consumeAnotherPublicInterface\\", - \\"parameters\\": [ + "name": "consumeAnotherPublicInterface", + "parameters": [ { - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IAnotherPublicInterface\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.IAnotherPublicInterface" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1825 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1825 }, - \\"name\\": \\"consumeNonInternalInterface\\", - \\"parameters\\": [ + "name": "consumeNonInternalInterface", + "parameters": [ { - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.INonInternalInterface\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.INonInternalInterface" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "returns": { + "type": { + "primitive": "any" } } } ], - \\"name\\": \\"ConsumersOfThisCrazyTypeSystem\\" + "name": "ConsumersOfThisCrazyTypeSystem" }, - \\"jsii-calc.DataRenderer\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies proper type handling through dynamic overrides.\\" + "jsii-calc.DataRenderer": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies proper type handling through dynamic overrides." }, - \\"fqn\\": \\"jsii-calc.DataRenderer\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DataRenderer", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1981 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1981 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1982 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1982 }, - \\"name\\": \\"render\\", - \\"parameters\\": [ + "name": "render", + "parameters": [ { - \\"name\\": \\"data\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + "name": "data", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1988 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1988 }, - \\"name\\": \\"renderArbitrary\\", - \\"parameters\\": [ + "name": "renderArbitrary", + "parameters": [ { - \\"name\\": \\"data\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "data", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1992 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1992 }, - \\"name\\": \\"renderMap\\", - \\"parameters\\": [ + "name": "renderMap", + "parameters": [ { - \\"name\\": \\"map\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"DataRenderer\\" + "name": "DataRenderer" }, - \\"jsii-calc.DefaultedConstructorArgument\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.DefaultedConstructorArgument\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DefaultedConstructorArgument": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DefaultedConstructorArgument", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 318 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 318 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"arg1\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"name\\": \\"arg2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"name\\": \\"arg3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 317 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 317 }, - \\"name\\": \\"DefaultedConstructorArgument\\", - \\"properties\\": [ + "name": "DefaultedConstructorArgument", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 319 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 319 }, - \\"name\\": \\"arg1\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 321 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 321 }, - \\"name\\": \\"arg3\\", - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "type": { + "primitive": "date" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 320 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 320 }, - \\"name\\": \\"arg2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Demonstrate982\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\\\\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"1.\\" - }, - \\"fqn\\": \\"jsii-calc.Demonstrate982\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2508 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's dangerous to go alone!\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2515 - }, - \\"name\\": \\"takeThis\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ChildStruct982\\" + "jsii-calc.Demonstrate982": { + "assembly": "jsii-calc", + "docs": { + "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", + "stability": "experimental", + "summary": "1." + }, + "fqn": "jsii-calc.Demonstrate982", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2508 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "It's dangerous to go alone!" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2515 + }, + "name": "takeThis", + "returns": { + "type": { + "fqn": "jsii-calc.ChildStruct982" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's dangerous to go alone!\\" + "docs": { + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2520 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2520 }, - \\"name\\": \\"takeThisToo\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ParentStruct982\\" + "name": "takeThisToo", + "returns": { + "type": { + "fqn": "jsii-calc.ParentStruct982" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"Demonstrate982\\" + "name": "Demonstrate982" }, - \\"jsii-calc.DeprecatedClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"deprecated\\": \\"a pretty boring class\\", - \\"stability\\": \\"deprecated\\" - }, - \\"fqn\\": \\"jsii-calc.DeprecatedClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"deprecated\\": \\"this constructor is \\\\\\"just\\\\\\" okay\\", - \\"stability\\": \\"deprecated\\" + "jsii-calc.DeprecatedClass": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "a pretty boring class", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedClass", + "initializer": { + "docs": { + "deprecated": "this constructor is \\"just\\" okay", + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 95 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 95 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"readonlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyString", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"mutableNumber\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 89 + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 89 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"deprecated\\": \\"it was a bad idea\\", - \\"stability\\": \\"deprecated\\" + "docs": { + "deprecated": "it was a bad idea", + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 100 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 100 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"DeprecatedClass\\", - \\"properties\\": [ + "name": "DeprecatedClass", + "properties": [ { - \\"docs\\": { - \\"deprecated\\": \\"this is not always \\\\\\"wazoo\\\\\\", be ready to be disappointed\\", - \\"stability\\": \\"deprecated\\" + "docs": { + "deprecated": "this is not always \\"wazoo\\", be ready to be disappointed", + "stability": "deprecated" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 91 + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 91 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"deprecated\\": \\"shouldn't have been mutable\\", - \\"stability\\": \\"deprecated\\" + "docs": { + "deprecated": "shouldn't have been mutable", + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 93 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 93 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.DeprecatedEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"deprecated\\": \\"your deprecated selection of bad options\\", - \\"stability\\": \\"deprecated\\" + "jsii-calc.DeprecatedEnum": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "your deprecated selection of bad options", + "stability": "deprecated" }, - \\"fqn\\": \\"jsii-calc.DeprecatedEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 105 + "fqn": "jsii-calc.DeprecatedEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 105 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"deprecated\\": \\"option A is not great\\", - \\"stability\\": \\"deprecated\\" + "docs": { + "deprecated": "option A is not great", + "stability": "deprecated" }, - \\"name\\": \\"OPTION_A\\" + "name": "OPTION_A" }, { - \\"docs\\": { - \\"deprecated\\": \\"option B is kinda bad, too\\", - \\"stability\\": \\"deprecated\\" + "docs": { + "deprecated": "option B is kinda bad, too", + "stability": "deprecated" }, - \\"name\\": \\"OPTION_B\\" + "name": "OPTION_B" } ], - \\"name\\": \\"DeprecatedEnum\\" + "name": "DeprecatedEnum" }, - \\"jsii-calc.DeprecatedStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"deprecated\\": \\"it just wraps a string\\", - \\"stability\\": \\"deprecated\\" - }, - \\"fqn\\": \\"jsii-calc.DeprecatedStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 77 - }, - \\"name\\": \\"DeprecatedStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"deprecated\\": \\"well, yeah\\", - \\"stability\\": \\"deprecated\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 79 - }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.DeprecatedStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "deprecated": "it just wraps a string", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 77 + }, + "name": "DeprecatedStruct", + "properties": [ + { + "abstract": true, + "docs": { + "deprecated": "well, yeah", + "stability": "deprecated" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 79 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DerivedClassHasNoProperties.Base\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DerivedClassHasNoProperties.Base": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.DerivedClassHasNoProperties.Base\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 326 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 326 }, - \\"name\\": \\"Base\\", - \\"namespace\\": \\"DerivedClassHasNoProperties\\", - \\"properties\\": [ + "name": "Base", + "namespace": "DerivedClassHasNoProperties", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 327 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 327 }, - \\"name\\": \\"prop\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "prop", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DerivedClassHasNoProperties.Derived\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.DerivedClassHasNoProperties.Base\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DerivedClassHasNoProperties.Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.DerivedClassHasNoProperties.Base", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.DerivedClassHasNoProperties.Derived\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 330 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 330 }, - \\"name\\": \\"Derived\\", - \\"namespace\\": \\"DerivedClassHasNoProperties\\" + "name": "Derived", + "namespace": "DerivedClassHasNoProperties" }, - \\"jsii-calc.DerivedStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A struct which derives from another struct.\\" - }, - \\"fqn\\": \\"jsii-calc.DerivedStruct\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-lib.MyFirstStruct\\" + "jsii-calc.DerivedStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "A struct which derives from another struct." + }, + "fqn": "jsii-calc.DerivedStruct", + "interfaces": [ + "@scope/jsii-calc-lib.MyFirstStruct" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 541 - }, - \\"name\\": \\"DerivedStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 547 - }, - \\"name\\": \\"anotherRequired\\", - \\"type\\": { - \\"primitive\\": \\"date\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 541 + }, + "name": "DerivedStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 547 + }, + "name": "anotherRequired", + "type": { + "primitive": "date" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 546 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 546 }, - \\"name\\": \\"bool\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "bool", + "type": { + "primitive": "boolean" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"An example of a non primitive property.\\" + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "An example of a non primitive property." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 545 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 545 }, - \\"name\\": \\"nonPrimitive\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + "name": "nonPrimitive", + "type": { + "fqn": "jsii-calc.DoubleTrouble" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This is optional.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 553 - }, - \\"name\\": \\"anotherOptional\\", - \\"optional\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "This is optional." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 553 + }, + "name": "anotherOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 549 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 549 }, - \\"name\\": \\"optionalAny\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "optionalAny", + "optional": true, + "type": { + "primitive": "any" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 548 - }, - \\"name\\": \\"optionalArray\\", - \\"optional\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 548 + }, + "name": "optionalArray", + "optional": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2026 - }, - \\"name\\": \\"DiamondInheritanceBaseLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2027 - }, - \\"name\\": \\"baseLevelProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.DiamondInheritanceBaseLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2026 + }, + "name": "DiamondInheritanceBaseLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2027 + }, + "name": "baseLevelProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", - \\"interfaces\\": [ - \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\" + "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2030 - }, - \\"name\\": \\"DiamondInheritanceFirstMidLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2032 - }, - \\"name\\": \\"firstMidLevelProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2030 + }, + "name": "DiamondInheritanceFirstMidLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2032 + }, + "name": "firstMidLevelProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\", - \\"interfaces\\": [ - \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\" + "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2035 - }, - \\"name\\": \\"DiamondInheritanceSecondMidLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2037 - }, - \\"name\\": \\"secondMidLevelProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2035 + }, + "name": "DiamondInheritanceSecondMidLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2037 + }, + "name": "secondMidLevelProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DiamondInheritanceTopLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.DiamondInheritanceTopLevelStruct\\", - \\"interfaces\\": [ - \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", - \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\" + "jsii-calc.DiamondInheritanceTopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "jsii-calc.DiamondInheritanceSecondMidLevelStruct" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2040 - }, - \\"name\\": \\"DiamondInheritanceTopLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2043 - }, - \\"name\\": \\"topLevelProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2040 + }, + "name": "DiamondInheritanceTopLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2043 + }, + "name": "topLevelProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.DisappointingCollectionSource\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"This source of collections is disappointing - it'll always give you nothing :(\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that null/undefined can be returned for optional collections.\\" - }, - \\"fqn\\": \\"jsii-calc.DisappointingCollectionSource\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2530 - }, - \\"name\\": \\"DisappointingCollectionSource\\", - \\"properties\\": [ - { - \\"const\\": true, - \\"docs\\": { - \\"remarks\\": \\"(Nah, just a billion dollars mistake!)\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Some List of strings, maybe?\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2532 - }, - \\"name\\": \\"maybeList\\", - \\"optional\\": true, - \\"static\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.DisappointingCollectionSource": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "stability": "experimental", + "summary": "Verifies that null/undefined can be returned for optional collections." + }, + "fqn": "jsii-calc.DisappointingCollectionSource", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2530 + }, + "name": "DisappointingCollectionSource", + "properties": [ + { + "const": true, + "docs": { + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some List of strings, maybe?" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2532 + }, + "name": "maybeList", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"const\\": true, - \\"docs\\": { - \\"remarks\\": \\"(Nah, just a billion dollars mistake!)\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Some Map of strings to numbers, maybe?\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2534 - }, - \\"name\\": \\"maybeMap\\", - \\"optional\\": true, - \\"static\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"number\\" + "const": true, + "docs": { + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some Map of strings to numbers, maybe?" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2534 + }, + "name": "maybeMap", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "number" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ] }, - \\"jsii-calc.DoNotOverridePrivates\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DoNotOverridePrivates": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.DoNotOverridePrivates\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DoNotOverridePrivates", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1297 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1297 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1312 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1312 }, - \\"name\\": \\"changePrivatePropertyValue\\", - \\"parameters\\": [ + "name": "changePrivatePropertyValue", + "parameters": [ { - \\"name\\": \\"newValue\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "newValue", + "type": { + "primitive": "string" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1304 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1304 }, - \\"name\\": \\"privateMethodValue\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "privateMethodValue", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1308 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1308 }, - \\"name\\": \\"privatePropertyValue\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "privatePropertyValue", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"DoNotOverridePrivates\\" + "name": "DoNotOverridePrivates" }, - \\"jsii-calc.DoNotRecognizeAnyAsOptional\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"jsii#284: do not recognize \\\\\\"any\\\\\\" as an optional argument.\\" + "jsii-calc.DoNotRecognizeAnyAsOptional": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "jsii#284: do not recognize \\"any\\" as an optional argument." }, - \\"fqn\\": \\"jsii-calc.DoNotRecognizeAnyAsOptional\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1353 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1353 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1354 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1354 }, - \\"name\\": \\"method\\", - \\"parameters\\": [ + "name": "method", + "parameters": [ { - \\"name\\": \\"_requiredAny\\", - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "_requiredAny", + "type": { + "primitive": "any" } }, { - \\"name\\": \\"_optionalAny\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "_optionalAny", + "optional": true, + "type": { + "primitive": "any" } }, { - \\"name\\": \\"_optionalString\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "_optionalString", + "optional": true, + "type": { + "primitive": "string" } } ] } ], - \\"name\\": \\"DoNotRecognizeAnyAsOptional\\" + "name": "DoNotRecognizeAnyAsOptional" }, - \\"jsii-calc.DocumentedClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"This is the meat of the TSDoc comment. It may contain\\\\nmultiple lines and multiple paragraphs.\\\\n\\\\nMultiple paragraphs are separated by an empty line.\\", - \\"stability\\": \\"stable\\", - \\"summary\\": \\"Here's the first line of the TSDoc comment.\\" - }, - \\"fqn\\": \\"jsii-calc.DocumentedClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 11 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"remarks\\": \\"This will print out a friendly greeting intended for\\\\nthe indicated person.\\", - \\"returns\\": \\"A number that everyone knows very well\\", - \\"stability\\": \\"stable\\", - \\"summary\\": \\"Greet the indicated person.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 21 - }, - \\"name\\": \\"greet\\", - \\"parameters\\": [ + "jsii-calc.DocumentedClass": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This is the meat of the TSDoc comment. It may contain\\nmultiple lines and multiple paragraphs.\\n\\nMultiple paragraphs are separated by an empty line.", + "stability": "stable", + "summary": "Here's the first line of the TSDoc comment." + }, + "fqn": "jsii-calc.DocumentedClass", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 11 + }, + "methods": [ + { + "docs": { + "remarks": "This will print out a friendly greeting intended for\\nthe indicated person.", + "returns": "A number that everyone knows very well", + "stability": "stable", + "summary": "Greet the indicated person." + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 21 + }, + "name": "greet", + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"The person to be greeted.\\" + "docs": { + "summary": "The person to be greeted." }, - \\"name\\": \\"greetee\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Greetee\\" + "name": "greetee", + "optional": true, + "type": { + "fqn": "jsii-calc.Greetee" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say ¡Hola!\\" + "docs": { + "stability": "experimental", + "summary": "Say ¡Hola!" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 31 + "locationInModule": { + "filename": "lib/documented.ts", + "line": 31 }, - \\"name\\": \\"hola\\" + "name": "hola" } ], - \\"name\\": \\"DocumentedClass\\" + "name": "DocumentedClass" }, - \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DontComplainAboutVariadicAfterOptional": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1430 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1430 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1431 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1431 }, - \\"name\\": \\"optionalAndVariadic\\", - \\"parameters\\": [ + "name": "optionalAndVariadic", + "parameters": [ { - \\"name\\": \\"optional\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "optional", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"name\\": \\"things\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "things", + "type": { + "primitive": "string" }, - \\"variadic\\": true + "variadic": true } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } }, - \\"variadic\\": true + "variadic": true } ], - \\"name\\": \\"DontComplainAboutVariadicAfterOptional\\" + "name": "DontComplainAboutVariadicAfterOptional" }, - \\"jsii-calc.DoubleTrouble\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.DoubleTrouble": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.DoubleTrouble\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.DoubleTrouble", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IFriendlyRandomGenerator\\" + "interfaces": [ + "jsii-calc.IFriendlyRandomGenerator" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 485 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say hello!\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 490 - }, - \\"name\\": \\"hello\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 485 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say hello!" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 490 + }, + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns another random number.\\" + "docs": { + "stability": "experimental", + "summary": "Returns another random number." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 486 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 486 }, - \\"name\\": \\"next\\", - \\"overrides\\": \\"jsii-calc.IRandomNumberGenerator\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"DoubleTrouble\\" + "name": "DoubleTrouble" }, - \\"jsii-calc.EnumDispenser\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.EnumDispenser\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 45 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 51 - }, - \\"name\\": \\"randomIntegerLikeEnum\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + "jsii-calc.EnumDispenser": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.EnumDispenser", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 45 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 51 + }, + "name": "randomIntegerLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.AllTypesEnum" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 46 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 46 }, - \\"name\\": \\"randomStringLikeEnum\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StringEnum\\" + "name": "randomStringLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.StringEnum" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"EnumDispenser\\" + "name": "EnumDispenser" }, - \\"jsii-calc.EraseUndefinedHashValues\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.EraseUndefinedHashValues": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValues\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.EraseUndefinedHashValues", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1643 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1643 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"remarks\\": \\"Used to check that undefined/null hash values\\\\nare being erased when sending values from native code to JS.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns \`true\` if \`key\` is defined in \`opts\`.\\" + "docs": { + "remarks": "Used to check that undefined/null hash values\\nare being erased when sending values from native code to JS.", + "stability": "experimental", + "summary": "Returns \`true\` if \`key\` is defined in \`opts\`." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1648 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1648 }, - \\"name\\": \\"doesKeyExist\\", - \\"parameters\\": [ + "name": "doesKeyExist", + "parameters": [ { - \\"name\\": \\"opts\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValuesOptions\\" + "name": "opts", + "type": { + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" } }, { - \\"name\\": \\"key\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "key", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We expect \\\\\\"prop1\\\\\\" to be erased.\\" + "docs": { + "stability": "experimental", + "summary": "We expect \\"prop1\\" to be erased." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1668 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1668 }, - \\"name\\": \\"prop1IsNull\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "prop1IsNull", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We expect \\\\\\"prop2\\\\\\" to be erased.\\" + "docs": { + "stability": "experimental", + "summary": "We expect \\"prop2\\" to be erased." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1658 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1658 }, - \\"name\\": \\"prop2IsUndefined\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "prop2IsUndefined", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"EraseUndefinedHashValues\\" + "name": "EraseUndefinedHashValues" }, - \\"jsii-calc.EraseUndefinedHashValuesOptions\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.EraseUndefinedHashValuesOptions\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1638 - }, - \\"name\\": \\"EraseUndefinedHashValuesOptions\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1639 - }, - \\"name\\": \\"option1\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.EraseUndefinedHashValuesOptions": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1638 + }, + "name": "EraseUndefinedHashValuesOptions", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1639 + }, + "name": "option1", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1640 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1640 }, - \\"name\\": \\"option2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "option2", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ExperimentalClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ExperimentalClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ExperimentalClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalClass", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 22 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 22 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"readonlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyString", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"mutableNumber\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 16 + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 16 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 28 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 28 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"ExperimentalClass\\", - \\"properties\\": [ + "name": "ExperimentalClass", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 18 + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 18 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 20 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 20 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.ExperimentalEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ExperimentalEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ExperimentalEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 33 + "fqn": "jsii-calc.ExperimentalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 33 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"OPTION_A\\" + "name": "OPTION_A" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"OPTION_B\\" + "name": "OPTION_B" } ], - \\"name\\": \\"ExperimentalEnum\\" + "name": "ExperimentalEnum" }, - \\"jsii-calc.ExperimentalStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ExperimentalStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 4 - }, - \\"name\\": \\"ExperimentalStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 6 - }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.ExperimentalStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 4 + }, + "name": "ExperimentalStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 6 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ExportedBaseClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ExportedBaseClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ExportedBaseClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExportedBaseClass", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1516 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1516 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"success\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "success", + "type": { + "primitive": "boolean" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1515 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1515 }, - \\"name\\": \\"ExportedBaseClass\\", - \\"properties\\": [ + "name": "ExportedBaseClass", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1516 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1516 }, - \\"name\\": \\"success\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "success", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.ExtendsInternalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ExtendsInternalInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1757 - }, - \\"name\\": \\"ExtendsInternalInterface\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1758 - }, - \\"name\\": \\"boom\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "jsii-calc.ExtendsInternalInterface": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExtendsInternalInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1757 + }, + "name": "ExtendsInternalInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1758 + }, + "name": "boom", + "type": { + "primitive": "boolean" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1698 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1698 }, - \\"name\\": \\"prop\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "prop", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ExternalClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "jsii-calc.ExternalClass": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ExternalClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "fqn": "jsii-calc.ExternalClass", + "initializer": { + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 131 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 131 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"readonlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyString", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"mutableNumber\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 125 + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 125 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 136 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 136 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"ExternalClass\\", - \\"properties\\": [ + "name": "ExternalClass", + "properties": [ { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 127 + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 127 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 129 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 129 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.ExternalEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "jsii-calc.ExternalEnum": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ExternalEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 141 + "fqn": "jsii-calc.ExternalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 141 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"name\\": \\"OPTION_A\\" + "name": "OPTION_A" }, { - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"name\\": \\"OPTION_B\\" + "name": "OPTION_B" } ], - \\"name\\": \\"ExternalEnum\\" + "name": "ExternalEnum" }, - \\"jsii-calc.ExternalStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "jsii-calc.ExternalStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ExternalStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 113 + "fqn": "jsii-calc.ExternalStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 113 }, - \\"name\\": \\"ExternalStruct\\", - \\"properties\\": [ + "name": "ExternalStruct", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "abstract": true, + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 115 + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 115 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.GiveMeStructs\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.GiveMeStructs": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.GiveMeStructs\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.GiveMeStructs", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 556 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 556 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct.\\" + "docs": { + "stability": "experimental", + "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 574 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 574 }, - \\"name\\": \\"derivedToFirst\\", - \\"parameters\\": [ + "name": "derivedToFirst", + "parameters": [ { - \\"name\\": \\"derived\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.DerivedStruct\\" + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" } } ], - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the boolean from a DerivedStruct struct.\\" + "docs": { + "stability": "experimental", + "summary": "Returns the boolean from a DerivedStruct struct." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 567 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 567 }, - \\"name\\": \\"readDerivedNonPrimitive\\", - \\"parameters\\": [ + "name": "readDerivedNonPrimitive", + "parameters": [ { - \\"name\\": \\"derived\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.DerivedStruct\\" + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" } } ], - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + "returns": { + "type": { + "fqn": "jsii-calc.DoubleTrouble" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the \\\\\\"anumber\\\\\\" from a MyFirstStruct struct;\\" + "docs": { + "stability": "experimental", + "summary": "Returns the \\"anumber\\" from a MyFirstStruct struct;" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 560 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 560 }, - \\"name\\": \\"readFirstNumber\\", - \\"parameters\\": [ + "name": "readFirstNumber", + "parameters": [ { - \\"name\\": \\"first\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.MyFirstStruct\\" + "name": "first", + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"GiveMeStructs\\", - \\"properties\\": [ + "name": "GiveMeStructs", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 578 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 578 }, - \\"name\\": \\"structLiteral\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\" + "name": "structLiteral", + "type": { + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" } } ] }, - \\"jsii-calc.Greetee\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"These are some arguments you can pass to a method.\\" - }, - \\"fqn\\": \\"jsii-calc.Greetee\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 39 - }, - \\"name\\": \\"Greetee\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"world\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The name of the greetee.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 45 - }, - \\"name\\": \\"name\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.Greetee": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "These are some arguments you can pass to a method." + }, + "fqn": "jsii-calc.Greetee", + "kind": "interface", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 39 + }, + "name": "Greetee", + "properties": [ + { + "abstract": true, + "docs": { + "default": "world", + "stability": "experimental", + "summary": "The name of the greetee." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 45 + }, + "name": "name", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.GreetingAugmenter\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.GreetingAugmenter": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.GreetingAugmenter\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.GreetingAugmenter", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 532 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 532 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 533 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 533 }, - \\"name\\": \\"betterGreeting\\", - \\"parameters\\": [ + "name": "betterGreeting", + "parameters": [ { - \\"name\\": \\"friendly\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "name": "friendly", + "type": { + "fqn": "@scope/jsii-calc-lib.IFriendly" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"GreetingAugmenter\\" + "name": "GreetingAugmenter" }, - \\"jsii-calc.IAnonymousImplementationProvider\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We can return an anonymous interface implementation from an override without losing the interface declarations.\\" - }, - \\"fqn\\": \\"jsii-calc.IAnonymousImplementationProvider\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2208 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2210 - }, - \\"name\\": \\"provideAsClass\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Implementation\\" + "jsii-calc.IAnonymousImplementationProvider": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." + }, + "fqn": "jsii-calc.IAnonymousImplementationProvider", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2208 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2210 + }, + "name": "provideAsClass", + "returns": { + "type": { + "fqn": "jsii-calc.Implementation" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2209 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2209 }, - \\"name\\": \\"provideAsInterface\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\" + "name": "provideAsInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } } ], - \\"name\\": \\"IAnonymousImplementationProvider\\" + "name": "IAnonymousImplementationProvider" }, - \\"jsii-calc.IAnonymouslyImplementMe\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IAnonymouslyImplementMe\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2227 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2229 - }, - \\"name\\": \\"verb\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IAnonymouslyImplementMe": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IAnonymouslyImplementMe", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2227 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2229 + }, + "name": "verb", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IAnonymouslyImplementMe\\", - \\"properties\\": [ + "name": "IAnonymouslyImplementMe", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2228 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2228 }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IAnotherPublicInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IAnotherPublicInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1778 - }, - \\"name\\": \\"IAnotherPublicInterface\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1779 - }, - \\"name\\": \\"a\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IAnotherPublicInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IAnotherPublicInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1778 + }, + "name": "IAnotherPublicInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1779 + }, + "name": "a", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IBell\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.IBell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IBell\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2417 + "fqn": "jsii-calc.IBell", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2417 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2418 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2418 }, - \\"name\\": \\"ring\\" + "name": "ring" } ], - \\"name\\": \\"IBell\\" + "name": "IBell" }, - \\"jsii-calc.IBellRinger\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Takes the object parameter as an interface.\\" - }, - \\"fqn\\": \\"jsii-calc.IBellRinger\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2406 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2407 - }, - \\"name\\": \\"yourTurn\\", - \\"parameters\\": [ + "jsii-calc.IBellRinger": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Takes the object parameter as an interface." + }, + "fqn": "jsii-calc.IBellRinger", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2406 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2407 + }, + "name": "yourTurn", + "parameters": [ { - \\"name\\": \\"bell\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IBell\\" + "name": "bell", + "type": { + "fqn": "jsii-calc.IBell" } } ] } ], - \\"name\\": \\"IBellRinger\\" + "name": "IBellRinger" }, - \\"jsii-calc.IConcreteBellRinger\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Takes the object parameter as a calss.\\" - }, - \\"fqn\\": \\"jsii-calc.IConcreteBellRinger\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2413 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2414 - }, - \\"name\\": \\"yourTurn\\", - \\"parameters\\": [ + "jsii-calc.IConcreteBellRinger": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Takes the object parameter as a calss." + }, + "fqn": "jsii-calc.IConcreteBellRinger", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2413 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2414 + }, + "name": "yourTurn", + "parameters": [ { - \\"name\\": \\"bell\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Bell\\" + "name": "bell", + "type": { + "fqn": "jsii-calc.Bell" } } ] } ], - \\"name\\": \\"IConcreteBellRinger\\" + "name": "IConcreteBellRinger" }, - \\"jsii-calc.IDeprecatedInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"deprecated\\": \\"useless interface\\", - \\"stability\\": \\"deprecated\\" + "jsii-calc.IDeprecatedInterface": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "useless interface", + "stability": "deprecated" }, - \\"fqn\\": \\"jsii-calc.IDeprecatedInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 82 + "fqn": "jsii-calc.IDeprecatedInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 82 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"deprecated\\": \\"services no purpose\\", - \\"stability\\": \\"deprecated\\" + "abstract": true, + "docs": { + "deprecated": "services no purpose", + "stability": "deprecated" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 86 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 86 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"IDeprecatedInterface\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"deprecated\\": \\"could be better\\", - \\"stability\\": \\"deprecated\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 84 - }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "IDeprecatedInterface", + "properties": [ + { + "abstract": true, + "docs": { + "deprecated": "could be better", + "stability": "deprecated" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 84 + }, + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IExperimentalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.IExperimentalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IExperimentalInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 9 + "fqn": "jsii-calc.IExperimentalInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 9 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 13 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 13 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"IExperimentalInterface\\", - \\"properties\\": [ + "name": "IExperimentalInterface", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 11 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 11 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IExtendsPrivateInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IExtendsPrivateInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1769 - }, - \\"name\\": \\"IExtendsPrivateInterface\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1770 - }, - \\"name\\": \\"moreThings\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IExtendsPrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IExtendsPrivateInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1769 + }, + "name": "IExtendsPrivateInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1770 + }, + "name": "moreThings", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1754 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1754 }, - \\"name\\": \\"private\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "private", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IExternalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "jsii-calc.IExternalInterface": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IExternalInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 118 + "fqn": "jsii-calc.IExternalInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 118 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "abstract": true, + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 122 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 122 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"IExternalInterface\\", - \\"properties\\": [ + "name": "IExternalInterface", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"custom\\": { - \\"external\\": \\"true\\" + "abstract": true, + "docs": { + "custom": { + "external": "true" }, - \\"stability\\": \\"experimental\\" + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 120 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 120 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IFriendlier\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Even friendlier classes can implement this interface.\\" - }, - \\"fqn\\": \\"jsii-calc.IFriendlier\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-lib.IFriendly\\" + "jsii-calc.IFriendlier": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Even friendlier classes can implement this interface." + }, + "fqn": "jsii-calc.IFriendlier", + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 12 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say farewell.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 22 - }, - \\"name\\": \\"farewell\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 12 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "Say farewell." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 22 + }, + "name": "farewell", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"returns\\": \\"A goodbye blessing.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say goodbye.\\" + "abstract": true, + "docs": { + "returns": "A goodbye blessing.", + "stability": "experimental", + "summary": "Say goodbye." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 17 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 17 }, - \\"name\\": \\"goodbye\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "goodbye", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IFriendlier\\" + "name": "IFriendlier" }, - \\"jsii-calc.IFriendlyRandomGenerator\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IFriendlyRandomGenerator\\", - \\"interfaces\\": [ - \\"jsii-calc.IRandomNumberGenerator\\", - \\"@scope/jsii-calc-lib.IFriendly\\" + "jsii-calc.IFriendlyRandomGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IFriendlyRandomGenerator", + "interfaces": [ + "jsii-calc.IRandomNumberGenerator", + "@scope/jsii-calc-lib.IFriendly" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 36 + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 36 }, - \\"name\\": \\"IFriendlyRandomGenerator\\" + "name": "IFriendlyRandomGenerator" }, - \\"jsii-calc.IInterfaceImplementedByAbstractClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"awslabs/jsii#220 Abstract return type.\\" - }, - \\"fqn\\": \\"jsii-calc.IInterfaceImplementedByAbstractClass\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1242 - }, - \\"name\\": \\"IInterfaceImplementedByAbstractClass\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1243 - }, - \\"name\\": \\"propFromInterface\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IInterfaceImplementedByAbstractClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "awslabs/jsii#220 Abstract return type." + }, + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1242 + }, + "name": "IInterfaceImplementedByAbstractClass", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1243 + }, + "name": "propFromInterface", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype.\\" - }, - \\"fqn\\": \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\", - \\"interfaces\\": [ - \\"jsii-calc.IInterfaceWithMethods\\" + "jsii-calc.IInterfaceThatShouldNotBeADataType": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." + }, + "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", + "interfaces": [ + "jsii-calc.IInterfaceWithMethods" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1345 - }, - \\"name\\": \\"IInterfaceThatShouldNotBeADataType\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1347 - }, - \\"name\\": \\"otherValue\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1345 + }, + "name": "IInterfaceThatShouldNotBeADataType", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1347 + }, + "name": "otherValue", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IInterfaceWithInternal\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.IInterfaceWithInternal": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IInterfaceWithInternal\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1709 + "fqn": "jsii-calc.IInterfaceWithInternal", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1709 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1710 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1710 }, - \\"name\\": \\"visible\\" + "name": "visible" } ], - \\"name\\": \\"IInterfaceWithInternal\\" + "name": "IInterfaceWithInternal" }, - \\"jsii-calc.IInterfaceWithMethods\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.IInterfaceWithMethods": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IInterfaceWithMethods\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1335 + "fqn": "jsii-calc.IInterfaceWithMethods", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1335 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1338 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1338 }, - \\"name\\": \\"doThings\\" + "name": "doThings" } ], - \\"name\\": \\"IInterfaceWithMethods\\", - \\"properties\\": [ + "name": "IInterfaceWithMethods", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1336 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1336 }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods.\\" - }, - \\"fqn\\": \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1220 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1221 - }, - \\"name\\": \\"hello\\", - \\"parameters\\": [ + "jsii-calc.IInterfaceWithOptionalMethodArguments": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." + }, + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1220 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1221 + }, + "name": "hello", + "parameters": [ { - \\"name\\": \\"arg1\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg1", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"arg2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg2", + "optional": true, + "type": { + "primitive": "number" } } ] } ], - \\"name\\": \\"IInterfaceWithOptionalMethodArguments\\" + "name": "IInterfaceWithOptionalMethodArguments" }, - \\"jsii-calc.IInterfaceWithProperties\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 586 - }, - \\"name\\": \\"IInterfaceWithProperties\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 587 - }, - \\"name\\": \\"readOnlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IInterfaceWithProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 586 + }, + "name": "IInterfaceWithProperties", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 587 + }, + "name": "readOnlyString", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 588 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 588 }, - \\"name\\": \\"readWriteString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readWriteString", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IInterfaceWithPropertiesExtension\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IInterfaceWithPropertiesExtension\\", - \\"interfaces\\": [ - \\"jsii-calc.IInterfaceWithProperties\\" + "jsii-calc.IInterfaceWithPropertiesExtension": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 591 + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 591 }, - \\"name\\": \\"IInterfaceWithPropertiesExtension\\", - \\"properties\\": [ + "name": "IInterfaceWithPropertiesExtension", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 593 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 593 }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "foo", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IJSII417Derived\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IJSII417Derived\\", - \\"interfaces\\": [ - \\"jsii-calc.IJSII417PublicBaseOfBase\\" + "jsii-calc.IJSII417Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IJSII417Derived", + "interfaces": [ + "jsii-calc.IJSII417PublicBaseOfBase" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 43 + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 43 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 41 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 41 }, - \\"name\\": \\"bar\\" + "name": "bar" }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 44 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 44 }, - \\"name\\": \\"baz\\" + "name": "baz" } ], - \\"name\\": \\"IJSII417Derived\\", - \\"properties\\": [ + "name": "IJSII417Derived", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 40 + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 40 }, - \\"name\\": \\"property\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IJSII417PublicBaseOfBase\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.IJSII417PublicBaseOfBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.IJSII417PublicBaseOfBase\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 36 + "fqn": "jsii-calc.IJSII417PublicBaseOfBase", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 36 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 37 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 37 }, - \\"name\\": \\"foo\\" + "name": "foo" } ], - \\"name\\": \\"IJSII417PublicBaseOfBase\\", - \\"properties\\": [ + "name": "IJSII417PublicBaseOfBase", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 34 + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 34 }, - \\"name\\": \\"hasRoot\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "hasRoot", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.IJsii487External\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IJsii487External\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 52 - }, - \\"name\\": \\"IJsii487External\\" + "jsii-calc.IJsii487External": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IJsii487External", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 52 + }, + "name": "IJsii487External" }, - \\"jsii-calc.IJsii487External2\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IJsii487External2\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 54 - }, - \\"name\\": \\"IJsii487External2\\" + "jsii-calc.IJsii487External2": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IJsii487External2", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 54 + }, + "name": "IJsii487External2" }, - \\"jsii-calc.IJsii496\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IJsii496\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 64 - }, - \\"name\\": \\"IJsii496\\" + "jsii-calc.IJsii496": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IJsii496", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 64 + }, + "name": "IJsii496" }, - \\"jsii-calc.IMutableObjectLiteral\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IMutableObjectLiteral\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1289 - }, - \\"name\\": \\"IMutableObjectLiteral\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1290 - }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IMutableObjectLiteral": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IMutableObjectLiteral", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1289 + }, + "name": "IMutableObjectLiteral", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1290 + }, + "name": "value", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.INonInternalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.INonInternalInterface\\", - \\"interfaces\\": [ - \\"jsii-calc.IAnotherPublicInterface\\" + "jsii-calc.INonInternalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.INonInternalInterface", + "interfaces": [ + "jsii-calc.IAnotherPublicInterface" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1787 + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1787 }, - \\"name\\": \\"INonInternalInterface\\", - \\"properties\\": [ + "name": "INonInternalInterface", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1784 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1784 }, - \\"name\\": \\"b\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "b", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1788 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1788 }, - \\"name\\": \\"c\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "c", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IObjectWithProperty\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Make sure that setters are properly called on objects with interfaces.\\" - }, - \\"fqn\\": \\"jsii-calc.IObjectWithProperty\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2542 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2544 - }, - \\"name\\": \\"wasSet\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "jsii-calc.IObjectWithProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Make sure that setters are properly called on objects with interfaces." + }, + "fqn": "jsii-calc.IObjectWithProperty", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2542 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2544 + }, + "name": "wasSet", + "returns": { + "type": { + "primitive": "boolean" } } } ], - \\"name\\": \\"IObjectWithProperty\\", - \\"properties\\": [ + "name": "IObjectWithProperty", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2543 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2543 }, - \\"name\\": \\"property\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.IOptionalMethod\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Checks that optional result from interface method code generates correctly.\\" - }, - \\"fqn\\": \\"jsii-calc.IOptionalMethod\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2731 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2732 - }, - \\"name\\": \\"optional\\", - \\"returns\\": { - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IOptionalMethod": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Checks that optional result from interface method code generates correctly." + }, + "fqn": "jsii-calc.IOptionalMethod", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2731 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2732 + }, + "name": "optional", + "returns": { + "optional": true, + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IOptionalMethod\\" + "name": "IOptionalMethod" }, - \\"jsii-calc.IPrivatelyImplemented\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IPrivatelyImplemented\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1512 - }, - \\"name\\": \\"IPrivatelyImplemented\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1513 - }, - \\"name\\": \\"success\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "jsii-calc.IPrivatelyImplemented": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IPrivatelyImplemented", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1512 + }, + "name": "IPrivatelyImplemented", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1513 + }, + "name": "success", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.IPublicInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IPublicInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1558 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1559 - }, - \\"name\\": \\"bye\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IPublicInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IPublicInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1558 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1559 + }, + "name": "bye", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IPublicInterface\\" + "name": "IPublicInterface" }, - \\"jsii-calc.IPublicInterface2\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IPublicInterface2\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1562 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1563 - }, - \\"name\\": \\"ciao\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.IPublicInterface2": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IPublicInterface2", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1562 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1563 + }, + "name": "ciao", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IPublicInterface2\\" + "name": "IPublicInterface2" }, - \\"jsii-calc.IRandomNumberGenerator\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Generates random numbers.\\" - }, - \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 28 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"returns\\": \\"A random number.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns another random number.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 33 - }, - \\"name\\": \\"next\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.IRandomNumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Generates random numbers." + }, + "fqn": "jsii-calc.IRandomNumberGenerator", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 28 + }, + "methods": [ + { + "abstract": true, + "docs": { + "returns": "A random number.", + "stability": "experimental", + "summary": "Returns another random number." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 33 + }, + "name": "next", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"IRandomNumberGenerator\\" + "name": "IRandomNumberGenerator" }, - \\"jsii-calc.IReturnJsii976\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns a subclass of a known class which implements an interface.\\" - }, - \\"fqn\\": \\"jsii-calc.IReturnJsii976\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2473 - }, - \\"name\\": \\"IReturnJsii976\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2474 - }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.IReturnJsii976": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Returns a subclass of a known class which implements an interface." + }, + "fqn": "jsii-calc.IReturnJsii976", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2473 + }, + "name": "IReturnJsii976", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2474 + }, + "name": "foo", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IReturnsNumber\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.IReturnsNumber\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 639 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 640 - }, - \\"name\\": \\"obtainNumber\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\" + "jsii-calc.IReturnsNumber": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IReturnsNumber", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 639 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 640 + }, + "name": "obtainNumber", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.IDoublable" } } } ], - \\"name\\": \\"IReturnsNumber\\", - \\"properties\\": [ + "name": "IReturnsNumber", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 642 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 642 }, - \\"name\\": \\"numberProp\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Number\\" + "name": "numberProp", + "type": { + "fqn": "@scope/jsii-calc-lib.Number" } } ] }, - \\"jsii-calc.IStableInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"stable\\" + "jsii-calc.IStableInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" }, - \\"fqn\\": \\"jsii-calc.IStableInterface\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 46 + "fqn": "jsii-calc.IStableInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 46 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"stable\\" + "abstract": true, + "docs": { + "stability": "stable" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 50 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 50 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"IStableInterface\\", - \\"properties\\": [ + "name": "IStableInterface", + "properties": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"stable\\" + "abstract": true, + "docs": { + "stability": "stable" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 48 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 48 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.IStructReturningDelegate\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that a \\\\\\"pure\\\\\\" implementation of an interface works correctly.\\" - }, - \\"fqn\\": \\"jsii-calc.IStructReturningDelegate\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2660 - }, - \\"methods\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2661 - }, - \\"name\\": \\"returnStruct\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StructB\\" + "jsii-calc.IStructReturningDelegate": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that a \\"pure\\" implementation of an interface works correctly." + }, + "fqn": "jsii-calc.IStructReturningDelegate", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2660 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2661 + }, + "name": "returnStruct", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" } } } ], - \\"name\\": \\"IStructReturningDelegate\\" + "name": "IStructReturningDelegate" }, - \\"jsii-calc.ImplementInternalInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ImplementInternalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ImplementInternalInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ImplementInternalInterface", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1761 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1761 }, - \\"name\\": \\"ImplementInternalInterface\\", - \\"properties\\": [ + "name": "ImplementInternalInterface", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1762 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1762 }, - \\"name\\": \\"prop\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "prop", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Implementation\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Implementation": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Implementation\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Implementation", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2224 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2224 }, - \\"name\\": \\"Implementation\\", - \\"properties\\": [ + "name": "Implementation", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2225 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2225 }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.ImplementsInterfaceWithInternal\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ImplementsInterfaceWithInternal": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ImplementsInterfaceWithInternal\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ImplementsInterfaceWithInternal", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IInterfaceWithInternal\\" + "interfaces": [ + "jsii-calc.IInterfaceWithInternal" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1716 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1716 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1717 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1717 }, - \\"name\\": \\"visible\\", - \\"overrides\\": \\"jsii-calc.IInterfaceWithInternal\\" + "name": "visible", + "overrides": "jsii-calc.IInterfaceWithInternal" } ], - \\"name\\": \\"ImplementsInterfaceWithInternal\\" + "name": "ImplementsInterfaceWithInternal" }, - \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.ImplementsInterfaceWithInternal\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ImplementsInterfaceWithInternalSubclass": { + "assembly": "jsii-calc", + "base": "jsii-calc.ImplementsInterfaceWithInternal", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1735 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1735 }, - \\"name\\": \\"ImplementsInterfaceWithInternalSubclass\\" + "name": "ImplementsInterfaceWithInternalSubclass" }, - \\"jsii-calc.ImplementsPrivateInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.ImplementsPrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.ImplementsPrivateInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ImplementsPrivateInterface", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1765 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1765 }, - \\"name\\": \\"ImplementsPrivateInterface\\", - \\"properties\\": [ + "name": "ImplementsPrivateInterface", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1766 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1766 }, - \\"name\\": \\"private\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "private", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ImplictBaseOfBase\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ImplictBaseOfBase\\", - \\"interfaces\\": [ - \\"@scope/jsii-calc-base.BaseProps\\" + "jsii-calc.ImplictBaseOfBase": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ImplictBaseOfBase", + "interfaces": [ + "@scope/jsii-calc-base.BaseProps" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1176 - }, - \\"name\\": \\"ImplictBaseOfBase\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1177 - }, - \\"name\\": \\"goo\\", - \\"type\\": { - \\"primitive\\": \\"date\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1176 + }, + "name": "ImplictBaseOfBase", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1177 + }, + "name": "goo", + "type": { + "primitive": "date" } } ] }, - \\"jsii-calc.InbetweenClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.PublicClass\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.InbetweenClass": { + "assembly": "jsii-calc", + "base": "jsii-calc.PublicClass", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.InbetweenClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.InbetweenClass", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IPublicInterface2\\" + "interfaces": [ + "jsii-calc.IPublicInterface2" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1565 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1565 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1566 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1566 }, - \\"name\\": \\"ciao\\", - \\"overrides\\": \\"jsii-calc.IPublicInterface2\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "ciao", + "overrides": "jsii-calc.IPublicInterface2", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"InbetweenClass\\" + "name": "InbetweenClass" }, - \\"jsii-calc.InterfaceCollections\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"See: https://github.com/aws/jsii/issues/1196\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that collections of interfaces or structs are correctly handled.\\" - }, - \\"fqn\\": \\"jsii-calc.InterfaceCollections\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2694 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2705 - }, - \\"name\\": \\"listOfInterfaces\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.IBell\\" + "jsii-calc.InterfaceCollections": { + "assembly": "jsii-calc", + "docs": { + "remarks": "See: https://github.com/aws/jsii/issues/1196", + "stability": "experimental", + "summary": "Verifies that collections of interfaces or structs are correctly handled." + }, + "fqn": "jsii-calc.InterfaceCollections", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2694 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2705 + }, + "name": "listOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IBell" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2695 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2695 }, - \\"name\\": \\"listOfStructs\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.StructA\\" + "name": "listOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.StructA" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2715 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2715 }, - \\"name\\": \\"mapOfInterfaces\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.IBell\\" + "name": "mapOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IBell" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2699 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2699 }, - \\"name\\": \\"mapOfStructs\\", - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"jsii-calc.StructA\\" + "name": "mapOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.StructA" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"InterfaceCollections\\" + "name": "InterfaceCollections" }, - \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1207 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1207 }, - \\"name\\": \\"Foo\\", - \\"namespace\\": \\"InterfaceInNamespaceIncludesClasses\\", - \\"properties\\": [ + "name": "Foo", + "namespace": "InterfaceInNamespaceIncludesClasses", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1208 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1208 }, - \\"name\\": \\"bar\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "bar", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1211 - }, - \\"name\\": \\"Hello\\", - \\"namespace\\": \\"InterfaceInNamespaceIncludesClasses\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1212 - }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1211 + }, + "name": "Hello", + "namespace": "InterfaceInNamespaceIncludesClasses", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1212 + }, + "name": "foo", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1201 - }, - \\"name\\": \\"Hello\\", - \\"namespace\\": \\"InterfaceInNamespaceOnlyInterface\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1202 - }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1201 + }, + "name": "Hello", + "namespace": "InterfaceInNamespaceOnlyInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1202 + }, + "name": "foo", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.InterfacesMaker\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We can return arrays of interfaces See aws/aws-cdk#2362.\\" + "jsii-calc.InterfacesMaker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." }, - \\"fqn\\": \\"jsii-calc.InterfacesMaker\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2096 + "fqn": "jsii-calc.InterfacesMaker", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2096 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2097 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2097 }, - \\"name\\": \\"makeInterfaces\\", - \\"parameters\\": [ + "name": "makeInterfaces", + "parameters": [ { - \\"name\\": \\"count\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "count", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.IDoublable\\" + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.IDoublable" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"InterfacesMaker\\" + "name": "InterfacesMaker" }, - \\"jsii-calc.Isomorphism\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"Create a subclass of this, and assert that \`this.myself()\` actually returns\\\\n\`this\` from within the constructor.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Checks the \\\\\\"same instance\\\\\\" isomorphism is preserved within the constructor.\\" - }, - \\"fqn\\": \\"jsii-calc.Isomorphism\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2741 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2742 - }, - \\"name\\": \\"myself\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Isomorphism\\" + "jsii-calc.Isomorphism": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "remarks": "Create a subclass of this, and assert that \`this.myself()\` actually returns\\n\`this\` from within the constructor.", + "stability": "experimental", + "summary": "Checks the \\"same instance\\" isomorphism is preserved within the constructor." + }, + "fqn": "jsii-calc.Isomorphism", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2741 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2742 + }, + "name": "myself", + "returns": { + "type": { + "fqn": "jsii-calc.Isomorphism" } } } ], - \\"name\\": \\"Isomorphism\\" + "name": "Isomorphism" }, - \\"jsii-calc.JSII417Derived\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.JSII417PublicBaseOfBase\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.JSII417Derived\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JSII417Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.JSII417PublicBaseOfBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.JSII417Derived", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 17 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 17 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"property\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "type": { + "primitive": "string" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 24 + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 24 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 25 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 25 }, - \\"name\\": \\"bar\\" + "name": "bar" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 28 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 28 }, - \\"name\\": \\"baz\\" + "name": "baz" } ], - \\"name\\": \\"JSII417Derived\\", - \\"properties\\": [ + "name": "JSII417Derived", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 17 + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 17 }, - \\"name\\": \\"property\\", - \\"protected\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "protected": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.JSII417PublicBaseOfBase\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JSII417PublicBaseOfBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.JSII417PublicBaseOfBase\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.JSII417PublicBaseOfBase", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 8 + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 8 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 9 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 9 }, - \\"name\\": \\"makeInstance\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.JSII417PublicBaseOfBase\\" + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.JSII417PublicBaseOfBase" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 12 + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 12 }, - \\"name\\": \\"foo\\" + "name": "foo" } ], - \\"name\\": \\"JSII417PublicBaseOfBase\\", - \\"properties\\": [ + "name": "JSII417PublicBaseOfBase", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 6 + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 6 }, - \\"name\\": \\"hasRoot\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "hasRoot", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.JSObjectLiteralForInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JSObjectLiteralForInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.JSObjectLiteralForInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.JSObjectLiteralForInterface", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 517 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 517 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 518 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 518 }, - \\"name\\": \\"giveMeFriendly\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "name": "giveMeFriendly", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.IFriendly" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 524 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 524 }, - \\"name\\": \\"giveMeFriendlyGenerator\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IFriendlyRandomGenerator\\" + "name": "giveMeFriendlyGenerator", + "returns": { + "type": { + "fqn": "jsii-calc.IFriendlyRandomGenerator" } } } ], - \\"name\\": \\"JSObjectLiteralForInterface\\" + "name": "JSObjectLiteralForInterface" }, - \\"jsii-calc.JSObjectLiteralToNative\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JSObjectLiteralToNative": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNative\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.JSObjectLiteralToNative", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 247 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 247 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 248 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 248 }, - \\"name\\": \\"returnLiteral\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNativeClass\\" + "name": "returnLiteral", + "returns": { + "type": { + "fqn": "jsii-calc.JSObjectLiteralToNativeClass" } } } ], - \\"name\\": \\"JSObjectLiteralToNative\\" + "name": "JSObjectLiteralToNative" }, - \\"jsii-calc.JSObjectLiteralToNativeClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JSObjectLiteralToNativeClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.JSObjectLiteralToNativeClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.JSObjectLiteralToNativeClass", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 256 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 256 }, - \\"name\\": \\"JSObjectLiteralToNativeClass\\", - \\"properties\\": [ + "name": "JSObjectLiteralToNativeClass", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 257 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 257 }, - \\"name\\": \\"propA\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "propA", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 258 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 258 }, - \\"name\\": \\"propB\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "propB", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.JavaReservedWords\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.JavaReservedWords": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.JavaReservedWords\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.JavaReservedWords", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 745 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 745 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 746 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 746 }, - \\"name\\": \\"abstract\\" + "name": "abstract" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 750 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 750 }, - \\"name\\": \\"assert\\" + "name": "assert" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 754 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 754 }, - \\"name\\": \\"boolean\\" + "name": "boolean" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 758 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 758 }, - \\"name\\": \\"break\\" + "name": "break" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 762 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 762 }, - \\"name\\": \\"byte\\" + "name": "byte" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 766 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 766 }, - \\"name\\": \\"case\\" + "name": "case" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 770 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 770 }, - \\"name\\": \\"catch\\" + "name": "catch" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 774 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 774 }, - \\"name\\": \\"char\\" + "name": "char" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 778 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 778 }, - \\"name\\": \\"class\\" + "name": "class" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 782 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 782 }, - \\"name\\": \\"const\\" + "name": "const" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 786 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 786 }, - \\"name\\": \\"continue\\" + "name": "continue" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 790 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 790 }, - \\"name\\": \\"default\\" + "name": "default" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 798 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 798 }, - \\"name\\": \\"do\\" + "name": "do" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 794 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 794 }, - \\"name\\": \\"double\\" + "name": "double" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 802 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 802 }, - \\"name\\": \\"else\\" + "name": "else" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 806 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 806 }, - \\"name\\": \\"enum\\" + "name": "enum" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 810 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 810 }, - \\"name\\": \\"extends\\" + "name": "extends" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 814 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 814 }, - \\"name\\": \\"false\\" + "name": "false" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 818 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 818 }, - \\"name\\": \\"final\\" + "name": "final" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 822 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 822 }, - \\"name\\": \\"finally\\" + "name": "finally" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 826 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 826 }, - \\"name\\": \\"float\\" + "name": "float" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 830 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 830 }, - \\"name\\": \\"for\\" + "name": "for" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 834 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 834 }, - \\"name\\": \\"goto\\" + "name": "goto" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 838 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 838 }, - \\"name\\": \\"if\\" + "name": "if" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 842 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 842 }, - \\"name\\": \\"implements\\" + "name": "implements" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 846 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 846 }, - \\"name\\": \\"import\\" + "name": "import" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 850 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 850 }, - \\"name\\": \\"instanceof\\" + "name": "instanceof" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 854 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 854 }, - \\"name\\": \\"int\\" + "name": "int" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 858 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 858 }, - \\"name\\": \\"interface\\" + "name": "interface" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 862 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 862 }, - \\"name\\": \\"long\\" + "name": "long" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 866 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 866 }, - \\"name\\": \\"native\\" + "name": "native" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 870 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 870 }, - \\"name\\": \\"new\\" + "name": "new" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 874 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 874 }, - \\"name\\": \\"null\\" + "name": "null" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 878 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 878 }, - \\"name\\": \\"package\\" + "name": "package" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 882 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 882 }, - \\"name\\": \\"private\\" + "name": "private" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 886 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 886 }, - \\"name\\": \\"protected\\" + "name": "protected" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 890 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 890 }, - \\"name\\": \\"public\\" + "name": "public" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 894 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 894 }, - \\"name\\": \\"return\\" + "name": "return" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 898 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 898 }, - \\"name\\": \\"short\\" + "name": "short" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 902 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 902 }, - \\"name\\": \\"static\\" + "name": "static" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 906 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 906 }, - \\"name\\": \\"strictfp\\" + "name": "strictfp" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 910 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 910 }, - \\"name\\": \\"super\\" + "name": "super" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 914 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 914 }, - \\"name\\": \\"switch\\" + "name": "switch" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 918 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 918 }, - \\"name\\": \\"synchronized\\" + "name": "synchronized" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 922 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 922 }, - \\"name\\": \\"this\\" + "name": "this" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 926 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 926 }, - \\"name\\": \\"throw\\" + "name": "throw" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 930 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 930 }, - \\"name\\": \\"throws\\" + "name": "throws" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 934 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 934 }, - \\"name\\": \\"transient\\" + "name": "transient" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 938 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 938 }, - \\"name\\": \\"true\\" + "name": "true" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 942 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 942 }, - \\"name\\": \\"try\\" + "name": "try" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 946 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 946 }, - \\"name\\": \\"void\\" + "name": "void" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 950 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 950 }, - \\"name\\": \\"volatile\\" + "name": "volatile" } ], - \\"name\\": \\"JavaReservedWords\\", - \\"properties\\": [ + "name": "JavaReservedWords", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 954 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 954 }, - \\"name\\": \\"while\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "while", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Jsii487Derived\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Jsii487Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Jsii487Derived\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Jsii487Derived", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IJsii487External2\\", - \\"jsii-calc.IJsii487External\\" + "interfaces": [ + "jsii-calc.IJsii487External2", + "jsii-calc.IJsii487External" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 56 + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 56 }, - \\"name\\": \\"Jsii487Derived\\" + "name": "Jsii487Derived" }, - \\"jsii-calc.Jsii496Derived\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Jsii496Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Jsii496Derived\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Jsii496Derived", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"interfaces\\": [ - \\"jsii-calc.IJsii496\\" + "interfaces": [ + "jsii-calc.IJsii496" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/erasures.ts\\", - \\"line\\": 66 + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 66 }, - \\"name\\": \\"Jsii496Derived\\" + "name": "Jsii496Derived" }, - \\"jsii-calc.JsiiAgent\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Host runtime version should be set via JSII_AGENT.\\" - }, - \\"fqn\\": \\"jsii-calc.JsiiAgent\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1528 - }, - \\"name\\": \\"JsiiAgent\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the value of the JSII_AGENT environment variable.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1532 - }, - \\"name\\": \\"jsiiAgent\\", - \\"optional\\": true, - \\"static\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.JsiiAgent": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Host runtime version should be set via JSII_AGENT." + }, + "fqn": "jsii-calc.JsiiAgent", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1528 + }, + "name": "JsiiAgent", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "Returns the value of the JSII_AGENT environment variable." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1532 + }, + "name": "jsiiAgent", + "optional": true, + "static": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.JsonFormatter\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"see\\": \\"https://github.com/aws/aws-cdk/issues/5066\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Make sure structs are un-decorated on the way in.\\" - }, - \\"fqn\\": \\"jsii-calc.JsonFormatter\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2575 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2620 - }, - \\"name\\": \\"anyArray\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "jsii-calc.JsonFormatter": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/aws-cdk/issues/5066", + "stability": "experimental", + "summary": "Make sure structs are un-decorated on the way in." + }, + "fqn": "jsii-calc.JsonFormatter", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2575 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2620 + }, + "name": "anyArray", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2616 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2616 }, - \\"name\\": \\"anyBooleanFalse\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyBooleanFalse", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2612 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2612 }, - \\"name\\": \\"anyBooleanTrue\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyBooleanTrue", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2592 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2592 }, - \\"name\\": \\"anyDate\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyDate", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2608 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2608 }, - \\"name\\": \\"anyEmptyString\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyEmptyString", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2588 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2588 }, - \\"name\\": \\"anyFunction\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyFunction", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2624 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2624 }, - \\"name\\": \\"anyHash\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyHash", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2580 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2580 }, - \\"name\\": \\"anyNull\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyNull", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2596 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2596 }, - \\"name\\": \\"anyNumber\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyNumber", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2628 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2628 }, - \\"name\\": \\"anyRef\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyRef", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2604 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2604 }, - \\"name\\": \\"anyString\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyString", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2584 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2584 }, - \\"name\\": \\"anyUndefined\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyUndefined", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2600 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2600 }, - \\"name\\": \\"anyZero\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "anyZero", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2576 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2576 }, - \\"name\\": \\"stringify\\", - \\"parameters\\": [ + "name": "stringify", + "parameters": [ { - \\"name\\": \\"value\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "value", + "optional": true, + "type": { + "primitive": "any" } } ], - \\"returns\\": { - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "optional": true, + "type": { + "primitive": "string" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"JsonFormatter\\" + "name": "JsonFormatter" }, - \\"jsii-calc.LoadBalancedFargateServiceProps\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"jsii#298: show default values in sphinx documentation, and respect newlines.\\" - }, - \\"fqn\\": \\"jsii-calc.LoadBalancedFargateServiceProps\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1439 - }, - \\"name\\": \\"LoadBalancedFargateServiceProps\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"80\\", - \\"remarks\\": \\"Corresponds to container port mapping.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The container port of the application load balancer attached to your Fargate service.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1482 - }, - \\"name\\": \\"containerPort\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.LoadBalancedFargateServiceProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." + }, + "fqn": "jsii-calc.LoadBalancedFargateServiceProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1439 + }, + "name": "LoadBalancedFargateServiceProps", + "properties": [ + { + "abstract": true, + "docs": { + "default": "80", + "remarks": "Corresponds to container port mapping.", + "stability": "experimental", + "summary": "The container port of the application load balancer attached to your Fargate service." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1482 + }, + "name": "containerPort", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"256\\", - \\"remarks\\": \\"Valid values, which determines your range of valid values for the memory parameter:\\\\n256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB\\\\n512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB\\\\n1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB\\\\n2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments\\\\n4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments\\\\n\\\\nThis default is set in the underlying FargateTaskDefinition construct.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The number of cpu units used by the task.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1453 - }, - \\"name\\": \\"cpu\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "abstract": true, + "docs": { + "default": "256", + "remarks": "Valid values, which determines your range of valid values for the memory parameter:\\n256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB\\n512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB\\n1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB\\n2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments\\n4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments\\n\\nThis default is set in the underlying FargateTaskDefinition construct.", + "stability": "experimental", + "summary": "The number of cpu units used by the task." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1453 + }, + "name": "cpu", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"512\\", - \\"remarks\\": \\"This field is required and you must use one of the following values, which determines your range of valid values\\\\nfor the cpu parameter:\\\\n\\\\n0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)\\\\n\\\\n1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)\\\\n\\\\n2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)\\\\n\\\\nBetween 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)\\\\n\\\\nBetween 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)\\\\n\\\\nThis default is set in the underlying FargateTaskDefinition construct.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The amount (in MiB) of memory used by the task.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1475 - }, - \\"name\\": \\"memoryMiB\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "abstract": true, + "docs": { + "default": "512", + "remarks": "This field is required and you must use one of the following values, which determines your range of valid values\\nfor the cpu parameter:\\n\\n0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)\\n\\n1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)\\n\\n2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)\\n\\nBetween 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)\\n\\nBetween 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)\\n\\nThis default is set in the underlying FargateTaskDefinition construct.", + "stability": "experimental", + "summary": "The amount (in MiB) of memory used by the task." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1475 + }, + "name": "memoryMiB", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"true\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Determines whether the Application Load Balancer will be internet-facing.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1489 - }, - \\"name\\": \\"publicLoadBalancer\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "abstract": true, + "docs": { + "default": "true", + "stability": "experimental", + "summary": "Determines whether the Application Load Balancer will be internet-facing." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1489 + }, + "name": "publicLoadBalancer", + "optional": true, + "type": { + "primitive": "boolean" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"default\\": \\"false\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Determines whether your Fargate Service will be assigned a public IP address.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1496 - }, - \\"name\\": \\"publicTasks\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "abstract": true, + "docs": { + "default": "false", + "stability": "experimental", + "summary": "Determines whether your Fargate Service will be assigned a public IP address." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1496 + }, + "name": "publicTasks", + "optional": true, + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.MethodNamedProperty\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.MethodNamedProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.MethodNamedProperty\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.MethodNamedProperty", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 396 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 396 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 397 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 397 }, - \\"name\\": \\"property\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"MethodNamedProperty\\", - \\"properties\\": [ + "name": "MethodNamedProperty", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 401 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 401 }, - \\"name\\": \\"elite\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "elite", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.Multiply\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.BinaryOperation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The \\\\\\"*\\\\\\" binary operation.\\" - }, - \\"fqn\\": \\"jsii-calc.Multiply\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Creates a BinaryOperation.\\" + "jsii-calc.Multiply": { + "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", + "docs": { + "stability": "experimental", + "summary": "The \\"*\\" binary operation." + }, + "fqn": "jsii-calc.Multiply", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 49 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 49 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"Left-hand side operand.\\" + "docs": { + "summary": "Left-hand side operand." }, - \\"name\\": \\"lhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"summary\\": \\"Right-hand side operand.\\" + "docs": { + "summary": "Right-hand side operand." }, - \\"name\\": \\"rhs\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"interfaces\\": [ - \\"jsii-calc.IFriendlier\\", - \\"jsii-calc.IRandomNumberGenerator\\" + "interfaces": [ + "jsii-calc.IFriendlier", + "jsii-calc.IRandomNumberGenerator" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 74 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say farewell.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 88 - }, - \\"name\\": \\"farewell\\", - \\"overrides\\": \\"jsii-calc.IFriendlier\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 74 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say farewell." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 88 + }, + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say goodbye.\\" + "docs": { + "stability": "experimental", + "summary": "Say goodbye." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 84 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 84 }, - \\"name\\": \\"goodbye\\", - \\"overrides\\": \\"jsii-calc.IFriendlier\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns another random number.\\" + "docs": { + "stability": "experimental", + "summary": "Returns another random number." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 92 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 92 }, - \\"name\\": \\"next\\", - \\"overrides\\": \\"jsii-calc.IRandomNumberGenerator\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"String representation of the value.\\" + "docs": { + "stability": "experimental", + "summary": "String representation of the value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 80 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 80 }, - \\"name\\": \\"toString\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Multiply\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The value.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 76 - }, - \\"name\\": \\"value\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "Multiply", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 76 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.Negate\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.UnaryOperation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The negation operation (\\\\\\"-value\\\\\\").\\" - }, - \\"fqn\\": \\"jsii-calc.Negate\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Negate": { + "assembly": "jsii-calc", + "base": "jsii-calc.UnaryOperation", + "docs": { + "stability": "experimental", + "summary": "The negation operation (\\"-value\\")." + }, + "fqn": "jsii-calc.Negate", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 101 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 101 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"operand\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"interfaces\\": [ - \\"jsii-calc.IFriendlier\\" + "interfaces": [ + "jsii-calc.IFriendlier" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 109 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say farewell.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 126 - }, - \\"name\\": \\"farewell\\", - \\"overrides\\": \\"jsii-calc.IFriendlier\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 109 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say farewell." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 126 + }, + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say goodbye.\\" + "docs": { + "stability": "experimental", + "summary": "Say goodbye." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 122 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 122 }, - \\"name\\": \\"goodbye\\", - \\"overrides\\": \\"jsii-calc.IFriendlier\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Say hello!\\" + "docs": { + "stability": "experimental", + "summary": "Say hello!" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 118 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 118 }, - \\"name\\": \\"hello\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.IFriendly\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"String representation of the value.\\" + "docs": { + "stability": "experimental", + "summary": "String representation of the value." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 114 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 114 }, - \\"name\\": \\"toString\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Negate\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The value.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 110 - }, - \\"name\\": \\"value\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "Negate", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 110 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.NestedStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.NestedStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2449 - }, - \\"name\\": \\"NestedStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"When provided, must be > 0.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2453 - }, - \\"name\\": \\"numberProp\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.NestedClassInstance": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NestedClassInstance", + "kind": "class", + "locationInModule": { + "filename": "lib/nested-class.ts", + "line": 3 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/nested-class.ts", + "line": 4 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass" + } + }, + "static": true + } + ], + "name": "NestedClassInstance" + }, + "jsii-calc.NestedStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NestedStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2449 + }, + "name": "NestedStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "When provided, must be > 0." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2453 + }, + "name": "numberProp", + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.NodeStandardLibrary\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Test fixture to verify that jsii modules can use the node standard library.\\" - }, - \\"fqn\\": \\"jsii-calc.NodeStandardLibrary\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1126 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"returns\\": \\"\\\\\\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\\\\\"\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Uses node.js \\\\\\"crypto\\\\\\" module to calculate sha256 of a string.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1157 - }, - \\"name\\": \\"cryptoSha256\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.NodeStandardLibrary": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Test fixture to verify that jsii modules can use the node standard library." + }, + "fqn": "jsii-calc.NodeStandardLibrary", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1126 + }, + "methods": [ + { + "docs": { + "returns": "\\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\"", + "stability": "experimental", + "summary": "Uses node.js \\"crypto\\" module to calculate sha256 of a string." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1157 + }, + "name": "cryptoSha256", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"returns\\": \\"\\\\\\"Hello, resource!\\\\\\"\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Reads a local resource file (resource.txt) asynchronously.\\" + "async": true, + "docs": { + "returns": "\\"Hello, resource!\\"", + "stability": "experimental", + "summary": "Reads a local resource file (resource.txt) asynchronously." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1131 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1131 }, - \\"name\\": \\"fsReadFile\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "fsReadFile", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"returns\\": \\"\\\\\\"Hello, resource! SYNC!\\\\\\"\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Sync version of fsReadFile.\\" + "docs": { + "returns": "\\"Hello, resource! SYNC!\\"", + "stability": "experimental", + "summary": "Sync version of fsReadFile." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1140 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1140 }, - \\"name\\": \\"fsReadFileSync\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "fsReadFileSync", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"NodeStandardLibrary\\", - \\"properties\\": [ + "name": "NodeStandardLibrary", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the current os.platform() from the \\\\\\"os\\\\\\" node module.\\" + "docs": { + "stability": "experimental", + "summary": "Returns the current os.platform() from the \\"os\\" node module." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1149 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1149 }, - \\"name\\": \\"osPlatform\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "osPlatform", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.NullShouldBeTreatedAsUndefined\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"jsii#282, aws-cdk#157: null should be treated as \\\\\\"undefined\\\\\\".\\" - }, - \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefined\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.NullShouldBeTreatedAsUndefined": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "jsii#282, aws-cdk#157: null should be treated as \\"undefined\\"." + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1369 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1369 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"_param1\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "_param1", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"optional\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "optional", + "optional": true, + "type": { + "primitive": "any" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1366 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1366 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1377 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1377 }, - \\"name\\": \\"giveMeUndefined\\", - \\"parameters\\": [ + "name": "giveMeUndefined", + "parameters": [ { - \\"name\\": \\"value\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "value", + "optional": true, + "type": { + "primitive": "any" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1387 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1387 }, - \\"name\\": \\"giveMeUndefinedInsideAnObject\\", - \\"parameters\\": [ + "name": "giveMeUndefinedInsideAnObject", + "parameters": [ { - \\"name\\": \\"input\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\" + "name": "input", + "type": { + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1416 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1416 }, - \\"name\\": \\"verifyPropertyIsUndefined\\" + "name": "verifyPropertyIsUndefined" } ], - \\"name\\": \\"NullShouldBeTreatedAsUndefined\\", - \\"properties\\": [ + "name": "NullShouldBeTreatedAsUndefined", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1367 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1367 }, - \\"name\\": \\"changeMeToUndefined\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "changeMeToUndefined", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1425 - }, - \\"name\\": \\"NullShouldBeTreatedAsUndefinedData\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1427 - }, - \\"name\\": \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "jsii-calc.NullShouldBeTreatedAsUndefinedData": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1425 + }, + "name": "NullShouldBeTreatedAsUndefinedData", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1427 + }, + "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1426 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1426 }, - \\"name\\": \\"thisShouldBeUndefined\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "thisShouldBeUndefined", + "optional": true, + "type": { + "primitive": "any" } } ] }, - \\"jsii-calc.NumberGenerator\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This allows us to test that a reference can be stored for objects that implement interfaces.\\" - }, - \\"fqn\\": \\"jsii-calc.NumberGenerator\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.NumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." + }, + "fqn": "jsii-calc.NumberGenerator", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 506 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 506 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"generator\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + "name": "generator", + "type": { + "fqn": "jsii-calc.IRandomNumberGenerator" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 505 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 505 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 512 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 512 }, - \\"name\\": \\"isSameGenerator\\", - \\"parameters\\": [ + "name": "isSameGenerator", + "parameters": [ { - \\"name\\": \\"gen\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + "name": "gen", + "type": { + "fqn": "jsii-calc.IRandomNumberGenerator" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 508 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 508 }, - \\"name\\": \\"nextTimes100\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "nextTimes100", + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"NumberGenerator\\", - \\"properties\\": [ + "name": "NumberGenerator", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 506 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 506 }, - \\"name\\": \\"generator\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IRandomNumberGenerator\\" + "name": "generator", + "type": { + "fqn": "jsii-calc.IRandomNumberGenerator" } } ] }, - \\"jsii-calc.ObjectRefsInCollections\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verify that object references can be passed inside collections.\\" + "jsii-calc.ObjectRefsInCollections": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verify that object references can be passed inside collections." }, - \\"fqn\\": \\"jsii-calc.ObjectRefsInCollections\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ObjectRefsInCollections", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 264 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 264 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the sum of all values.\\" + "docs": { + "stability": "experimental", + "summary": "Returns the sum of all values." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 268 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 268 }, - \\"name\\": \\"sumFromArray\\", - \\"parameters\\": [ + "name": "sumFromArray", + "parameters": [ { - \\"name\\": \\"values\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "values", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Returns the sum of all values in a map.\\" + "docs": { + "stability": "experimental", + "summary": "Returns the sum of all values in a map." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 279 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 279 }, - \\"name\\": \\"sumFromMap\\", - \\"parameters\\": [ + "name": "sumFromMap", + "parameters": [ { - \\"name\\": \\"values\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "values", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"ObjectRefsInCollections\\" + "name": "ObjectRefsInCollections" }, - \\"jsii-calc.ObjectWithPropertyProvider\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.ObjectWithPropertyProvider\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2546 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2547 - }, - \\"name\\": \\"provide\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IObjectWithProperty\\" + "jsii-calc.ObjectWithPropertyProvider": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ObjectWithPropertyProvider", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2546 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2547 + }, + "name": "provide", + "returns": { + "type": { + "fqn": "jsii-calc.IObjectWithProperty" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"ObjectWithPropertyProvider\\" + "name": "ObjectWithPropertyProvider" }, - \\"jsii-calc.Old\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"deprecated\\": \\"Use the new class\\", - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Old class.\\" + "jsii-calc.Old": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "Use the new class", + "stability": "deprecated", + "summary": "Old class." }, - \\"fqn\\": \\"jsii-calc.Old\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Old", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 53 + "kind": "class", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 53 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"deprecated\\", - \\"summary\\": \\"Doo wop that thing.\\" + "docs": { + "stability": "deprecated", + "summary": "Doo wop that thing." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/documented.ts\\", - \\"line\\": 57 + "locationInModule": { + "filename": "lib/documented.ts", + "line": 57 }, - \\"name\\": \\"doAThing\\" + "name": "doAThing" } ], - \\"name\\": \\"Old\\" + "name": "Old" }, - \\"jsii-calc.OptionalArgumentInvoker\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.OptionalArgumentInvoker\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.OptionalArgumentInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalArgumentInvoker", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1224 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1224 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"delegate\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\" + "name": "delegate", + "type": { + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1223 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1223 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1232 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1232 }, - \\"name\\": \\"invokeWithOptional\\" + "name": "invokeWithOptional" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1228 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1228 }, - \\"name\\": \\"invokeWithoutOptional\\" + "name": "invokeWithoutOptional" } ], - \\"name\\": \\"OptionalArgumentInvoker\\" + "name": "OptionalArgumentInvoker" }, - \\"jsii-calc.OptionalConstructorArgument\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.OptionalConstructorArgument\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.OptionalConstructorArgument": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalConstructorArgument", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 310 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 310 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"arg1\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "type": { + "primitive": "number" } }, { - \\"name\\": \\"arg2\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"arg3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 309 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 309 }, - \\"name\\": \\"OptionalConstructorArgument\\", - \\"properties\\": [ + "name": "OptionalConstructorArgument", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 311 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 311 }, - \\"name\\": \\"arg1\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 312 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 312 }, - \\"name\\": \\"arg2\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 313 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 313 }, - \\"name\\": \\"arg3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" } } ] }, - \\"jsii-calc.OptionalStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.OptionalStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1867 - }, - \\"name\\": \\"OptionalStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1868 - }, - \\"name\\": \\"field\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.OptionalStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1867 + }, + "name": "OptionalStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1868 + }, + "name": "field", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.OptionalStructConsumer\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.OptionalStructConsumer\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.OptionalStructConsumer": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalStructConsumer", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1862 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1862 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"optionalStruct\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.OptionalStruct\\" + "name": "optionalStruct", + "optional": true, + "type": { + "fqn": "jsii-calc.OptionalStruct" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1858 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1858 }, - \\"name\\": \\"OptionalStructConsumer\\", - \\"properties\\": [ + "name": "OptionalStructConsumer", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1859 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1859 }, - \\"name\\": \\"parameterWasUndefined\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "parameterWasUndefined", + "type": { + "primitive": "boolean" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1860 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1860 }, - \\"name\\": \\"fieldValue\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "fieldValue", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.OverridableProtectedMember\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"see\\": \\"https://github.com/aws/jsii/issues/903\\", - \\"stability\\": \\"experimental\\" + "jsii-calc.OverridableProtectedMember": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/903", + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.OverridableProtectedMember\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.OverridableProtectedMember", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2135 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2135 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2147 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2147 }, - \\"name\\": \\"overrideMe\\", - \\"protected\\": true, - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "overrideMe", + "protected": true, + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2143 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2143 }, - \\"name\\": \\"switchModes\\" + "name": "switchModes" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2139 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2139 }, - \\"name\\": \\"valueFromProtected\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "valueFromProtected", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"OverridableProtectedMember\\", - \\"properties\\": [ + "name": "OverridableProtectedMember", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2136 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2136 }, - \\"name\\": \\"overrideReadOnly\\", - \\"protected\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "overrideReadOnly", + "protected": true, + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2137 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2137 }, - \\"name\\": \\"overrideReadWrite\\", - \\"protected\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "overrideReadWrite", + "protected": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.OverrideReturnsObject\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.OverrideReturnsObject": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.OverrideReturnsObject\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.OverrideReturnsObject", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 645 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 645 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 646 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 646 }, - \\"name\\": \\"test\\", - \\"parameters\\": [ + "name": "test", + "parameters": [ { - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IReturnsNumber\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.IReturnsNumber" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"OverrideReturnsObject\\" + "name": "OverrideReturnsObject" }, - \\"jsii-calc.ParentStruct982\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"https://github.com/aws/jsii/issues/982.\\" - }, - \\"fqn\\": \\"jsii-calc.ParentStruct982\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2498 - }, - \\"name\\": \\"ParentStruct982\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2499 - }, - \\"name\\": \\"foo\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.ParentStruct982": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "https://github.com/aws/jsii/issues/982." + }, + "fqn": "jsii-calc.ParentStruct982", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2498 + }, + "name": "ParentStruct982", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2499 + }, + "name": "foo", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.PartiallyInitializedThisConsumer\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PartiallyInitializedThisConsumer": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.PartiallyInitializedThisConsumer\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.PartiallyInitializedThisConsumer", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1833 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1833 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1834 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1834 }, - \\"name\\": \\"consumePartiallyInitializedThis\\", - \\"parameters\\": [ + "name": "consumePartiallyInitializedThis", + "parameters": [ { - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.ConstructorPassesThisOut\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.ConstructorPassesThisOut" } }, { - \\"name\\": \\"dt\\", - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "dt", + "type": { + "primitive": "date" } }, { - \\"name\\": \\"ev\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AllTypesEnum\\" + "name": "ev", + "type": { + "fqn": "jsii-calc.AllTypesEnum" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"PartiallyInitializedThisConsumer\\" + "name": "PartiallyInitializedThisConsumer" }, - \\"jsii-calc.Polymorphism\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Polymorphism": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Polymorphism\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Polymorphism", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 495 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 495 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 496 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 496 }, - \\"name\\": \\"sayHello\\", - \\"parameters\\": [ + "name": "sayHello", + "parameters": [ { - \\"name\\": \\"friendly\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.IFriendly\\" + "name": "friendly", + "type": { + "fqn": "@scope/jsii-calc-lib.IFriendly" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Polymorphism\\" + "name": "Polymorphism" }, - \\"jsii-calc.Power\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The power operation.\\" - }, - \\"fqn\\": \\"jsii-calc.Power\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Creates a Power operation.\\" + "jsii-calc.Power": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "The power operation." + }, + "fqn": "jsii-calc.Power", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Power operation." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 227 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 227 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"The base of the power.\\" + "docs": { + "summary": "The base of the power." }, - \\"name\\": \\"base\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"summary\\": \\"The number of times to multiply.\\" + "docs": { + "summary": "The number of times to multiply." }, - \\"name\\": \\"pow\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 221 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 221 }, - \\"name\\": \\"Power\\", - \\"properties\\": [ + "name": "Power", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The base of the power.\\" + "docs": { + "stability": "experimental", + "summary": "The base of the power." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 227 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 227 }, - \\"name\\": \\"base\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"remarks\\": \\"Must be implemented by derived classes.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The expression that this operation consists of.\\" + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 231 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 231 }, - \\"name\\": \\"expression\\", - \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The number of times to multiply.\\" + "docs": { + "stability": "experimental", + "summary": "The number of times to multiply." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 227 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 227 }, - \\"name\\": \\"pow\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"jsii-calc.PropertyNamedProperty\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\\\\\"property\\\\\\" would result in impossible to load Python code.\\" + "jsii-calc.PropertyNamedProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code." }, - \\"fqn\\": \\"jsii-calc.PropertyNamedProperty\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.PropertyNamedProperty", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 392 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 392 }, - \\"name\\": \\"PropertyNamedProperty\\", - \\"properties\\": [ + "name": "PropertyNamedProperty", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 393 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 393 }, - \\"name\\": \\"property\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "property", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 394 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 394 }, - \\"name\\": \\"yetAnoterOne\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.PublicClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PublicClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.PublicClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.PublicClass", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1553 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1553 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1554 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1554 }, - \\"name\\": \\"hello\\" + "name": "hello" } ], - \\"name\\": \\"PublicClass\\" + "name": "PublicClass" }, - \\"jsii-calc.PythonReservedWords\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PythonReservedWords": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.PythonReservedWords\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.PythonReservedWords", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 957 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 957 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 958 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 958 }, - \\"name\\": \\"and\\" + "name": "and" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 962 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 962 }, - \\"name\\": \\"as\\" + "name": "as" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 966 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 966 }, - \\"name\\": \\"assert\\" + "name": "assert" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 970 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 970 }, - \\"name\\": \\"async\\" + "name": "async" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 974 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 974 }, - \\"name\\": \\"await\\" + "name": "await" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 978 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 978 }, - \\"name\\": \\"break\\" + "name": "break" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 982 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 982 }, - \\"name\\": \\"class\\" + "name": "class" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 986 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 986 }, - \\"name\\": \\"continue\\" + "name": "continue" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 990 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 990 }, - \\"name\\": \\"def\\" + "name": "def" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 994 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 994 }, - \\"name\\": \\"del\\" + "name": "del" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 998 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 998 }, - \\"name\\": \\"elif\\" + "name": "elif" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1002 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1002 }, - \\"name\\": \\"else\\" + "name": "else" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1006 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1006 }, - \\"name\\": \\"except\\" + "name": "except" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1010 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1010 }, - \\"name\\": \\"finally\\" + "name": "finally" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1014 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1014 }, - \\"name\\": \\"for\\" + "name": "for" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1018 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1018 }, - \\"name\\": \\"from\\" + "name": "from" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1022 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1022 }, - \\"name\\": \\"global\\" + "name": "global" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1026 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1026 }, - \\"name\\": \\"if\\" + "name": "if" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1030 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1030 }, - \\"name\\": \\"import\\" + "name": "import" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1034 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1034 }, - \\"name\\": \\"in\\" + "name": "in" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1038 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1038 }, - \\"name\\": \\"is\\" + "name": "is" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1042 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1042 }, - \\"name\\": \\"lambda\\" + "name": "lambda" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1046 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1046 }, - \\"name\\": \\"nonlocal\\" + "name": "nonlocal" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1050 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1050 }, - \\"name\\": \\"not\\" + "name": "not" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1054 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1054 }, - \\"name\\": \\"or\\" + "name": "or" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1058 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1058 }, - \\"name\\": \\"pass\\" + "name": "pass" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1062 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1062 }, - \\"name\\": \\"raise\\" + "name": "raise" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1066 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1066 }, - \\"name\\": \\"return\\" + "name": "return" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1070 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1070 }, - \\"name\\": \\"try\\" + "name": "try" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1074 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1074 }, - \\"name\\": \\"while\\" + "name": "while" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1078 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1078 }, - \\"name\\": \\"with\\" + "name": "with" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1082 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1082 }, - \\"name\\": \\"yield\\" + "name": "yield" } ], - \\"name\\": \\"PythonReservedWords\\" + "name": "PythonReservedWords" }, - \\"jsii-calc.PythonSelf.ClassWithSelf\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.PythonSelf.ClassWithSelf\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PythonSelf.ClassWithSelf": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.PythonSelf.ClassWithSelf", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1092 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1092 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"self\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "self", + "type": { + "primitive": "string" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1091 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1091 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1094 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1094 }, - \\"name\\": \\"method\\", - \\"parameters\\": [ + "name": "method", + "parameters": [ { - \\"name\\": \\"self\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "self", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"ClassWithSelf\\", - \\"namespace\\": \\"PythonSelf\\", - \\"properties\\": [ + "name": "ClassWithSelf", + "namespace": "PythonSelf", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1092 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1092 }, - \\"name\\": \\"self\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "self", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PythonSelf.ClassWithSelfKwarg": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.PythonSelf.ClassWithSelfKwarg", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1100 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\" + "name": "props", + "type": { + "fqn": "jsii-calc.PythonSelf.StructWithSelf" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1099 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1099 }, - \\"name\\": \\"ClassWithSelfKwarg\\", - \\"namespace\\": \\"PythonSelf\\", - \\"properties\\": [ + "name": "ClassWithSelfKwarg", + "namespace": "PythonSelf", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1100 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 }, - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\" + "name": "props", + "type": { + "fqn": "jsii-calc.PythonSelf.StructWithSelf" } } ] }, - \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.PythonSelf.IInterfaceWithSelf": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1107 + "fqn": "jsii-calc.PythonSelf.IInterfaceWithSelf", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1107 }, - \\"methods\\": [ + "methods": [ { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1108 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1108 }, - \\"name\\": \\"method\\", - \\"parameters\\": [ + "name": "method", + "parameters": [ { - \\"name\\": \\"self\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "self", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"IInterfaceWithSelf\\", - \\"namespace\\": \\"PythonSelf\\" + "name": "IInterfaceWithSelf", + "namespace": "PythonSelf" }, - \\"jsii-calc.PythonSelf.StructWithSelf\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.PythonSelf.StructWithSelf\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1103 - }, - \\"name\\": \\"StructWithSelf\\", - \\"namespace\\": \\"PythonSelf\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1104 - }, - \\"name\\": \\"self\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.PythonSelf.StructWithSelf": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.PythonSelf.StructWithSelf", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1103 + }, + "name": "StructWithSelf", + "namespace": "PythonSelf", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1104 + }, + "name": "self", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.ReferenceEnumFromScopedPackage\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"See awslabs/jsii#138.\\" + "jsii-calc.ReferenceEnumFromScopedPackage": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "See awslabs/jsii#138." }, - \\"fqn\\": \\"jsii-calc.ReferenceEnumFromScopedPackage\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1183 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1183 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1186 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1186 }, - \\"name\\": \\"loadFoo\\", - \\"returns\\": { - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + "name": "loadFoo", + "returns": { + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1190 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1190 }, - \\"name\\": \\"saveFoo\\", - \\"parameters\\": [ + "name": "saveFoo", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + "name": "value", + "type": { + "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" } } ] } ], - \\"name\\": \\"ReferenceEnumFromScopedPackage\\", - \\"properties\\": [ + "name": "ReferenceEnumFromScopedPackage", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1184 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1184 }, - \\"name\\": \\"foo\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.EnumFromScopedModule\\" + "name": "foo", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.EnumFromScopedModule" } } ] }, - \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"returns\\": \\"an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`.\\", - \\"see\\": \\"https://github.com/aws/jsii/issues/320\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class.\\" - }, - \\"fqn\\": \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1507 - }, - \\"name\\": \\"ReturnsPrivateImplementationOfInterface\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1508 - }, - \\"name\\": \\"privateImplementation\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IPrivatelyImplemented\\" + "jsii-calc.ReturnsPrivateImplementationOfInterface": { + "assembly": "jsii-calc", + "docs": { + "returns": "an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`.", + "see": "https://github.com/aws/jsii/issues/320", + "stability": "experimental", + "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." + }, + "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1507 + }, + "name": "ReturnsPrivateImplementationOfInterface", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1508 + }, + "name": "privateImplementation", + "type": { + "fqn": "jsii-calc.IPrivatelyImplemented" } } ] }, - \\"jsii-calc.RootStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"remarks\\": \\"This is cheating with the (current) declared types, but this is the \\\\\\"more\\\\nidiomatic\\\\\\" way for Pythonists.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary.\\" - }, - \\"fqn\\": \\"jsii-calc.RootStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2442 - }, - \\"name\\": \\"RootStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"May not be empty.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2446 - }, - \\"name\\": \\"stringProp\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.RootStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "remarks": "This is cheating with the (current) declared types, but this is the \\"more\\nidiomatic\\" way for Pythonists.", + "stability": "experimental", + "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." + }, + "fqn": "jsii-calc.RootStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2442 + }, + "name": "RootStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "May not be empty." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2446 + }, + "name": "stringProp", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2447 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2447 }, - \\"name\\": \\"nestedStruct\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.NestedStruct\\" + "name": "nestedStruct", + "optional": true, + "type": { + "fqn": "jsii-calc.NestedStruct" } } ] }, - \\"jsii-calc.RootStructValidator\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.RootStructValidator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.RootStructValidator\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2455 + "fqn": "jsii-calc.RootStructValidator", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2455 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2456 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2456 }, - \\"name\\": \\"validate\\", - \\"parameters\\": [ + "name": "validate", + "parameters": [ { - \\"name\\": \\"struct\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.RootStruct\\" + "name": "struct", + "type": { + "fqn": "jsii-calc.RootStruct" } } ], - \\"static\\": true + "static": true } ], - \\"name\\": \\"RootStructValidator\\" + "name": "RootStructValidator" }, - \\"jsii-calc.RuntimeTypeChecking\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.RuntimeTypeChecking": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.RuntimeTypeChecking\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.RuntimeTypeChecking", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 288 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 288 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 296 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 296 }, - \\"name\\": \\"methodWithDefaultedArguments\\", - \\"parameters\\": [ + "name": "methodWithDefaultedArguments", + "parameters": [ { - \\"name\\": \\"arg1\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"name\\": \\"arg2\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"name\\": \\"arg3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 304 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 304 }, - \\"name\\": \\"methodWithOptionalAnyArgument\\", - \\"parameters\\": [ + "name": "methodWithOptionalAnyArgument", + "parameters": [ { - \\"name\\": \\"arg\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "arg", + "optional": true, + "type": { + "primitive": "any" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Used to verify verification of number of method arguments.\\" + "docs": { + "stability": "experimental", + "summary": "Used to verify verification of number of method arguments." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 292 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 292 }, - \\"name\\": \\"methodWithOptionalArguments\\", - \\"parameters\\": [ + "name": "methodWithOptionalArguments", + "parameters": [ { - \\"name\\": \\"arg1\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "arg1", + "type": { + "primitive": "number" } }, { - \\"name\\": \\"arg2\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "arg2", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"arg3\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"date\\" + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" } } ] } ], - \\"name\\": \\"RuntimeTypeChecking\\" + "name": "RuntimeTypeChecking" }, - \\"jsii-calc.SecondLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.SecondLevelStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2014 - }, - \\"name\\": \\"SecondLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's long and required.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2018 - }, - \\"name\\": \\"deeperRequiredProp\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.SecondLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SecondLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2014 + }, + "name": "SecondLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "It's long and required." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2018 + }, + "name": "deeperRequiredProp", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's long, but you'll almost never pass it.\\" + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "It's long, but you'll almost never pass it." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2023 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2023 }, - \\"name\\": \\"deeperOptionalProp\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "deeperOptionalProp", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.SingleInstanceTwoTypes\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"JSII clients can instantiate 2 different strongly-typed wrappers for the same\\\\nobject. Unfortunately, this will break object equality, but if we didn't do\\\\nthis it would break runtime type checks in the JVM or CLR.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Test that a single instance can be returned under two different FQNs.\\" + "jsii-calc.SingleInstanceTwoTypes": { + "assembly": "jsii-calc", + "docs": { + "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\\nobject. Unfortunately, this will break object equality, but if we didn't do\\nthis it would break runtime type checks in the JVM or CLR.", + "stability": "experimental", + "summary": "Test that a single instance can be returned under two different FQNs." }, - \\"fqn\\": \\"jsii-calc.SingleInstanceTwoTypes\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.SingleInstanceTwoTypes", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1624 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1624 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1627 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1627 }, - \\"name\\": \\"interface1\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.InbetweenClass\\" + "name": "interface1", + "returns": { + "type": { + "fqn": "jsii-calc.InbetweenClass" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1631 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1631 }, - \\"name\\": \\"interface2\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IPublicInterface\\" + "name": "interface2", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface" } } } ], - \\"name\\": \\"SingleInstanceTwoTypes\\" + "name": "SingleInstanceTwoTypes" }, - \\"jsii-calc.SingletonInt\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"https://github.com/aws/jsii/issues/231\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that singleton enums are handled correctly.\\" - }, - \\"fqn\\": \\"jsii-calc.SingletonInt\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1966 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1968 - }, - \\"name\\": \\"isSingletonInt\\", - \\"parameters\\": [ + "jsii-calc.SingletonInt": { + "assembly": "jsii-calc", + "docs": { + "remarks": "https://github.com/aws/jsii/issues/231", + "stability": "experimental", + "summary": "Verifies that singleton enums are handled correctly." + }, + "fqn": "jsii-calc.SingletonInt", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1966 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1968 + }, + "name": "isSingletonInt", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } } ], - \\"name\\": \\"SingletonInt\\" + "name": "SingletonInt" }, - \\"jsii-calc.SingletonIntEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A singleton integer.\\" + "jsii-calc.SingletonIntEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "A singleton integer." }, - \\"fqn\\": \\"jsii-calc.SingletonIntEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1973 + "fqn": "jsii-calc.SingletonIntEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1973 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Elite!\\" + "docs": { + "stability": "experimental", + "summary": "Elite!" }, - \\"name\\": \\"SINGLETON_INT\\" + "name": "SINGLETON_INT" } ], - \\"name\\": \\"SingletonIntEnum\\" + "name": "SingletonIntEnum" }, - \\"jsii-calc.SingletonString\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"https://github.com/aws/jsii/issues/231\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that singleton enums are handled correctly.\\" - }, - \\"fqn\\": \\"jsii-calc.SingletonString\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1949 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1952 - }, - \\"name\\": \\"isSingletonString\\", - \\"parameters\\": [ + "jsii-calc.SingletonString": { + "assembly": "jsii-calc", + "docs": { + "remarks": "https://github.com/aws/jsii/issues/231", + "stability": "experimental", + "summary": "Verifies that singleton enums are handled correctly." + }, + "fqn": "jsii-calc.SingletonString", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1949 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1952 + }, + "name": "isSingletonString", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } } } ], - \\"name\\": \\"SingletonString\\" + "name": "SingletonString" }, - \\"jsii-calc.SingletonStringEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A singleton string.\\" + "jsii-calc.SingletonStringEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "A singleton string." }, - \\"fqn\\": \\"jsii-calc.SingletonStringEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1957 + "fqn": "jsii-calc.SingletonStringEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1957 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"1337.\\" + "docs": { + "stability": "experimental", + "summary": "1337." }, - \\"name\\": \\"SINGLETON_STRING\\" + "name": "SINGLETON_STRING" } ], - \\"name\\": \\"SingletonStringEnum\\" + "name": "SingletonStringEnum" }, - \\"jsii-calc.SmellyStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.SmellyStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 403 - }, - \\"name\\": \\"SmellyStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 404 - }, - \\"name\\": \\"property\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.SmellyStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SmellyStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 403 + }, + "name": "SmellyStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 404 + }, + "name": "property", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 405 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 405 }, - \\"name\\": \\"yetAnoterOne\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.SomeTypeJsii976\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.SomeTypeJsii976": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.SomeTypeJsii976\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.SomeTypeJsii976", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2479 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2479 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2488 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2488 }, - \\"name\\": \\"returnAnonymous\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "returnAnonymous", + "returns": { + "type": { + "primitive": "any" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2480 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2480 }, - \\"name\\": \\"returnReturn\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IReturnJsii976\\" + "name": "returnReturn", + "returns": { + "type": { + "fqn": "jsii-calc.IReturnJsii976" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"SomeTypeJsii976\\" + "name": "SomeTypeJsii976" }, - \\"jsii-calc.StableClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"stable\\" - }, - \\"fqn\\": \\"jsii-calc.StableClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "jsii-calc.StableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableClass", + "initializer": { + "docs": { + "stability": "stable" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 59 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 59 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"readonlyString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyString", + "type": { + "primitive": "string" } }, { - \\"name\\": \\"mutableNumber\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 53 + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 53 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "docs": { + "stability": "stable" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 64 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 64 }, - \\"name\\": \\"method\\" + "name": "method" } ], - \\"name\\": \\"StableClass\\", - \\"properties\\": [ + "name": "StableClass", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "docs": { + "stability": "stable" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 55 + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 55 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "docs": { + "stability": "stable" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 57 + "locationInModule": { + "filename": "lib/stability.ts", + "line": 57 }, - \\"name\\": \\"mutableProperty\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } ] }, - \\"jsii-calc.StableEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"stable\\" + "jsii-calc.StableEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" }, - \\"fqn\\": \\"jsii-calc.StableEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 69 + "fqn": "jsii-calc.StableEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 69 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "docs": { + "stability": "stable" }, - \\"name\\": \\"OPTION_A\\" + "name": "OPTION_A" }, { - \\"docs\\": { - \\"stability\\": \\"stable\\" + "docs": { + "stability": "stable" }, - \\"name\\": \\"OPTION_B\\" + "name": "OPTION_B" } ], - \\"name\\": \\"StableEnum\\" + "name": "StableEnum" }, - \\"jsii-calc.StableStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"stable\\" - }, - \\"fqn\\": \\"jsii-calc.StableStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 41 - }, - \\"name\\": \\"StableStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"stable\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/stability.ts\\", - \\"line\\": 43 - }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.StableStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 41 + }, + "name": "StableStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 43 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.StaticContext\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"https://github.com/awslabs/aws-cdk/issues/2304\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This is used to validate the ability to use \`this\` from within a static context.\\" - }, - \\"fqn\\": \\"jsii-calc.StaticContext\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1892 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1895 - }, - \\"name\\": \\"canAccessStaticContext\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "jsii-calc.StaticContext": { + "assembly": "jsii-calc", + "docs": { + "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", + "stability": "experimental", + "summary": "This is used to validate the ability to use \`this\` from within a static context." + }, + "fqn": "jsii-calc.StaticContext", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1892 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1895 + }, + "name": "canAccessStaticContext", + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"StaticContext\\", - \\"properties\\": [ + "name": "StaticContext", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1903 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1903 }, - \\"name\\": \\"staticVariable\\", - \\"static\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "staticVariable", + "static": true, + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.Statics\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.Statics\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Statics": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Statics", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 690 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 690 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 689 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 689 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Jsdocs for static method.\\" + "docs": { + "stability": "experimental", + "summary": "Jsdocs for static method." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 696 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 696 }, - \\"name\\": \\"staticMethod\\", - \\"parameters\\": [ + "name": "staticMethod", + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"The name of the person to say hello to.\\" + "docs": { + "summary": "The name of the person to say hello to." }, - \\"name\\": \\"name\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "name", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 700 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 700 }, - \\"name\\": \\"justMethod\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "justMethod", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"Statics\\", - \\"properties\\": [ - { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Constants may also use all-caps.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 712 - }, - \\"name\\": \\"BAR\\", - \\"static\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "Statics", + "properties": [ + { + "const": true, + "docs": { + "stability": "experimental", + "summary": "Constants may also use all-caps." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 712 + }, + "name": "BAR", + "static": true, + "type": { + "primitive": "number" } }, { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "const": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 741 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 741 }, - \\"name\\": \\"ConstObj\\", - \\"static\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.DoubleTrouble\\" + "name": "ConstObj", + "static": true, + "type": { + "fqn": "jsii-calc.DoubleTrouble" } }, { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Jsdocs for static property.\\" + "const": true, + "docs": { + "stability": "experimental", + "summary": "Jsdocs for static property." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 707 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 707 }, - \\"name\\": \\"Foo\\", - \\"static\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "Foo", + "static": true, + "type": { + "primitive": "string" } }, { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Constants can also use camelCase.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 717 - }, - \\"name\\": \\"zooBar\\", - \\"static\\": true, - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "const": true, + "docs": { + "stability": "experimental", + "summary": "Constants can also use camelCase." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 717 + }, + "name": "zooBar", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"map\\" + "kind": "map" } } }, { - \\"docs\\": { - \\"remarks\\": \\"Jsdocs for static setter.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Jsdocs for static getter.\\" + "docs": { + "remarks": "Jsdocs for static setter.", + "stability": "experimental", + "summary": "Jsdocs for static getter." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 726 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 726 }, - \\"name\\": \\"instance\\", - \\"static\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.Statics\\" + "name": "instance", + "static": true, + "type": { + "fqn": "jsii-calc.Statics" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 740 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 740 }, - \\"name\\": \\"nonConstStatic\\", - \\"static\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "nonConstStatic", + "static": true, + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 690 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 690 }, - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.StringEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.StringEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.StringEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 39 + "fqn": "jsii-calc.StringEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 39 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"A\\" + "name": "A" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"B\\" + "name": "B" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"C\\" + "name": "C" } ], - \\"name\\": \\"StringEnum\\" + "name": "StringEnum" }, - \\"jsii-calc.StripInternal\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.StripInternal": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.StripInternal\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.StripInternal", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1677 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1677 }, - \\"name\\": \\"StripInternal\\", - \\"properties\\": [ + "name": "StripInternal", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1678 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1678 }, - \\"name\\": \\"youSeeMe\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "youSeeMe", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.StructA\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We can serialize and deserialize structs without silently ignoring optional fields.\\" - }, - \\"fqn\\": \\"jsii-calc.StructA\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2240 - }, - \\"name\\": \\"StructA\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2241 - }, - \\"name\\": \\"requiredString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.StructA": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "We can serialize and deserialize structs without silently ignoring optional fields." + }, + "fqn": "jsii-calc.StructA", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2240 + }, + "name": "StructA", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2241 + }, + "name": "requiredString", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2243 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2243 }, - \\"name\\": \\"optionalNumber\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "optionalNumber", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2242 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2242 }, - \\"name\\": \\"optionalString\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "optionalString", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.StructB\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those.\\" - }, - \\"fqn\\": \\"jsii-calc.StructB\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2249 - }, - \\"name\\": \\"StructB\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2250 - }, - \\"name\\": \\"requiredString\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.StructB": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." + }, + "fqn": "jsii-calc.StructB", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2249 + }, + "name": "StructB", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2250 + }, + "name": "requiredString", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2251 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2251 }, - \\"name\\": \\"optionalBoolean\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "optionalBoolean", + "optional": true, + "type": { + "primitive": "boolean" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2252 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2252 }, - \\"name\\": \\"optionalStructA\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.StructA\\" + "name": "optionalStructA", + "optional": true, + "type": { + "fqn": "jsii-calc.StructA" } } ] }, - \\"jsii-calc.StructParameterType\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"remarks\\": \\"See: https://github.com/aws/aws-cdk/issues/4302\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted.\\" - }, - \\"fqn\\": \\"jsii-calc.StructParameterType\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2678 - }, - \\"name\\": \\"StructParameterType\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2679 - }, - \\"name\\": \\"scope\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.StructParameterType": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "remarks": "See: https://github.com/aws/aws-cdk/issues/4302", + "stability": "experimental", + "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." + }, + "fqn": "jsii-calc.StructParameterType", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2678 + }, + "name": "StructParameterType", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2679 + }, + "name": "scope", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2680 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2680 }, - \\"name\\": \\"props\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "props", + "optional": true, + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.StructPassing\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"external\\", - \\"summary\\": \\"Just because we can.\\" + "jsii-calc.StructPassing": { + "assembly": "jsii-calc", + "docs": { + "stability": "external", + "summary": "Just because we can." }, - \\"fqn\\": \\"jsii-calc.StructPassing\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.StructPassing", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2072 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2072 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"external\\" + "docs": { + "stability": "external" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2084 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2084 }, - \\"name\\": \\"howManyVarArgsDidIPass\\", - \\"parameters\\": [ + "name": "howManyVarArgsDidIPass", + "parameters": [ { - \\"name\\": \\"_positional\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "_positional", + "type": { + "primitive": "number" } }, { - \\"name\\": \\"inputs\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + "name": "inputs", + "type": { + "fqn": "jsii-calc.TopLevelStruct" }, - \\"variadic\\": true + "variadic": true } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } }, - \\"static\\": true, - \\"variadic\\": true + "static": true, + "variadic": true }, { - \\"docs\\": { - \\"stability\\": \\"external\\" + "docs": { + "stability": "external" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2073 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2073 }, - \\"name\\": \\"roundTrip\\", - \\"parameters\\": [ + "name": "roundTrip", + "parameters": [ { - \\"name\\": \\"_positional\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "_positional", + "type": { + "primitive": "number" } }, { - \\"name\\": \\"input\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + "name": "input", + "type": { + "fqn": "jsii-calc.TopLevelStruct" } } ], - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"jsii-calc.TopLevelStruct\\" + "returns": { + "type": { + "fqn": "jsii-calc.TopLevelStruct" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"StructPassing\\" + "name": "StructPassing" }, - \\"jsii-calc.StructUnionConsumer\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.StructUnionConsumer": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.StructUnionConsumer\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2254 + "fqn": "jsii-calc.StructUnionConsumer", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2254 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2255 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2255 }, - \\"name\\": \\"isStructA\\", - \\"parameters\\": [ + "name": "isStructA", + "parameters": [ { - \\"name\\": \\"struct\\", - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "struct", + "type": { + "union": { + "types": [ { - \\"fqn\\": \\"jsii-calc.StructA\\" + "fqn": "jsii-calc.StructA" }, { - \\"fqn\\": \\"jsii-calc.StructB\\" + "fqn": "jsii-calc.StructB" } ] } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2276 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2276 }, - \\"name\\": \\"isStructB\\", - \\"parameters\\": [ + "name": "isStructB", + "parameters": [ { - \\"name\\": \\"struct\\", - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "struct", + "type": { + "union": { + "types": [ { - \\"fqn\\": \\"jsii-calc.StructA\\" + "fqn": "jsii-calc.StructA" }, { - \\"fqn\\": \\"jsii-calc.StructB\\" + "fqn": "jsii-calc.StructB" } ] } } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"StructUnionConsumer\\" + "name": "StructUnionConsumer" }, - \\"jsii-calc.StructWithJavaReservedWords\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.StructWithJavaReservedWords\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2046 - }, - \\"name\\": \\"StructWithJavaReservedWords\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2047 - }, - \\"name\\": \\"default\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.StructWithJavaReservedWords": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.StructWithJavaReservedWords", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2046 + }, + "name": "StructWithJavaReservedWords", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2047 + }, + "name": "default", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2048 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2048 }, - \\"name\\": \\"assert\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "assert", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2051 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2051 }, - \\"name\\": \\"result\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "result", + "optional": true, + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2052 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2052 }, - \\"name\\": \\"that\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "that", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Sum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"An operation that sums multiple values.\\" - }, - \\"fqn\\": \\"jsii-calc.Sum\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Sum": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "An operation that sums multiple values." + }, + "fqn": "jsii-calc.Sum", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 205 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 205 } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 197 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 197 }, - \\"name\\": \\"Sum\\", - \\"properties\\": [ + "name": "Sum", + "properties": [ { - \\"docs\\": { - \\"remarks\\": \\"Must be implemented by derived classes.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The expression that this operation consists of.\\" + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 209 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 209 }, - \\"name\\": \\"expression\\", - \\"overrides\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The parts to sum.\\" + "docs": { + "stability": "experimental", + "summary": "The parts to sum." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 201 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 201 }, - \\"name\\": \\"parts\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "parts", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"jsii-calc.SupportsNiceJavaBuilder\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilder\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.SupportsNiceJavaBuilder": { + "assembly": "jsii-calc", + "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SupportsNiceJavaBuilder", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2181 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2181 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"some identifier.\\" + "docs": { + "summary": "some identifier." }, - \\"name\\": \\"id\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "id", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"summary\\": \\"the default value of \`bar\`.\\" + "docs": { + "summary": "the default value of \`bar\`." }, - \\"name\\": \\"defaultBar\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "defaultBar", + "optional": true, + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"summary\\": \\"some props once can provide.\\" + "docs": { + "summary": "some props once can provide." }, - \\"name\\": \\"props\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\" + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } }, { - \\"docs\\": { - \\"summary\\": \\"a variadic continuation.\\" + "docs": { + "summary": "a variadic continuation." }, - \\"name\\": \\"rest\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "rest", + "type": { + "primitive": "string" }, - \\"variadic\\": true + "variadic": true } ], - \\"variadic\\": true + "variadic": true }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2171 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2171 }, - \\"name\\": \\"SupportsNiceJavaBuilder\\", - \\"properties\\": [ + "name": "SupportsNiceJavaBuilder", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"some identifier.\\" + "docs": { + "stability": "experimental", + "summary": "some identifier." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2182 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2182 }, - \\"name\\": \\"id\\", - \\"overrides\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "id", + "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2172 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2172 }, - \\"name\\": \\"rest\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "rest", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"jsii-calc.SupportsNiceJavaBuilderProps\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2191 - }, - \\"name\\": \\"SupportsNiceJavaBuilderProps\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Some number, like 42.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2201 - }, - \\"name\\": \\"bar\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.SupportsNiceJavaBuilderProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2191 + }, + "name": "SupportsNiceJavaBuilderProps", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "Some number, like 42." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2201 + }, + "name": "bar", + "type": { + "primitive": "number" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"remarks\\": \\"But here we are, doing it like we didn't care.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2196 - }, - \\"name\\": \\"id\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "abstract": true, + "docs": { + "remarks": "But here we are, doing it like we didn't care.", + "stability": "experimental", + "summary": "An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2196 + }, + "name": "id", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"We can generate fancy builders in Java for classes which take a mix of positional & struct parameters.\\" - }, - \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." + }, + "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2163 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2163 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"some identifier of your choice.\\" + "docs": { + "summary": "some identifier of your choice." }, - \\"name\\": \\"id\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "id", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"summary\\": \\"some properties.\\" + "docs": { + "summary": "some properties." }, - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.SupportsNiceJavaBuilderProps\\" + "name": "props", + "type": { + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2155 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2155 }, - \\"name\\": \\"SupportsNiceJavaBuilderWithRequiredProps\\", - \\"properties\\": [ + "name": "SupportsNiceJavaBuilderWithRequiredProps", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2157 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2157 }, - \\"name\\": \\"bar\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "bar", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"some identifier of your choice.\\" + "docs": { + "stability": "experimental", + "summary": "some identifier of your choice." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2164 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2164 }, - \\"name\\": \\"id\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "id", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2156 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2156 }, - \\"name\\": \\"propId\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "propId", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.SyncVirtualMethods\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.SyncVirtualMethods": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.SyncVirtualMethods\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.SyncVirtualMethods", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 376 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 376 }, - \\"methods\\": [ + "methods": [ { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 389 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 389 }, - \\"name\\": \\"callerIsAsync\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callerIsAsync", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 377 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 377 }, - \\"name\\": \\"callerIsMethod\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callerIsMethod", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 429 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 429 }, - \\"name\\": \\"modifyOtherProperty\\", - \\"parameters\\": [ + "name": "modifyOtherProperty", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 401 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 401 }, - \\"name\\": \\"modifyValueOfTheProperty\\", - \\"parameters\\": [ + "name": "modifyValueOfTheProperty", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ] }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 442 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 442 }, - \\"name\\": \\"readA\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "readA", + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 433 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 433 }, - \\"name\\": \\"retrieveOtherProperty\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "retrieveOtherProperty", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 413 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 413 }, - \\"name\\": \\"retrieveReadOnlyProperty\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "retrieveReadOnlyProperty", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 405 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 405 }, - \\"name\\": \\"retrieveValueOfTheProperty\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "retrieveValueOfTheProperty", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 393 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 393 }, - \\"name\\": \\"virtualMethod\\", - \\"parameters\\": [ + "name": "virtualMethod", + "parameters": [ { - \\"name\\": \\"n\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "n", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 446 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 446 }, - \\"name\\": \\"writeA\\", - \\"parameters\\": [ + "name": "writeA", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "type": { + "primitive": "number" } } ] } ], - \\"name\\": \\"SyncVirtualMethods\\", - \\"properties\\": [ + "name": "SyncVirtualMethods", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 411 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 411 }, - \\"name\\": \\"readonlyProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 440 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 440 }, - \\"name\\": \\"a\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "a", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 381 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 381 }, - \\"name\\": \\"callerIsProperty\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "callerIsProperty", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 419 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 419 }, - \\"name\\": \\"otherProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "otherProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 399 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 399 }, - \\"name\\": \\"theProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "theProperty", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 427 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 427 }, - \\"name\\": \\"valueOfOtherProperty\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "valueOfOtherProperty", + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.Thrower\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.Thrower": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.Thrower\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.Thrower", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 651 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 651 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 652 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 652 }, - \\"name\\": \\"throwError\\" + "name": "throwError" } ], - \\"name\\": \\"Thrower\\" + "name": "Thrower" }, - \\"jsii-calc.TopLevelStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.TopLevelStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1997 - }, - \\"name\\": \\"TopLevelStruct\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This is a required field.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2001 - }, - \\"name\\": \\"required\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.TopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.TopLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1997 + }, + "name": "TopLevelStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "This is a required field." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2001 + }, + "name": "required", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A union to really stress test our serialization.\\" + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "A union to really stress test our serialization." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2011 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2011 }, - \\"name\\": \\"secondLevel\\", - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "secondLevel", + "type": { + "union": { + "types": [ { - \\"primitive\\": \\"number\\" + "primitive": "number" }, { - \\"fqn\\": \\"jsii-calc.SecondLevelStruct\\" + "fqn": "jsii-calc.SecondLevelStruct" } ] } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"You don't have to pass this.\\" + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "You don't have to pass this." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2006 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2006 }, - \\"name\\": \\"optional\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "optional", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.UmaskCheck\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"see\\": \\"https://github.com/aws/jsii/issues/1765\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Checks the current file permissions are cool (no funky UMASK down-scoping happened).\\" - }, - \\"fqn\\": \\"jsii-calc.UmaskCheck\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2752 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This should return 0o644 (-rw-r--r--).\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 2756 - }, - \\"name\\": \\"mode\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "jsii-calc.UmaskCheck": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/1765", + "stability": "experimental", + "summary": "Checks the current file permissions are cool (no funky UMASK down-scoping happened)." + }, + "fqn": "jsii-calc.UmaskCheck", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2752 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "This should return 0o644 (-rw-r--r--)." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2756 + }, + "name": "mode", + "returns": { + "type": { + "primitive": "number" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"UmaskCheck\\" + "name": "UmaskCheck" }, - \\"jsii-calc.UnaryOperation\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"An operation on a single operand.\\" - }, - \\"fqn\\": \\"jsii-calc.UnaryOperation\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.UnaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "An operation on a single operand." + }, + "fqn": "jsii-calc.UnaryOperation", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 101 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 101 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"operand\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 100 + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 100 }, - \\"name\\": \\"UnaryOperation\\", - \\"properties\\": [ + "name": "UnaryOperation", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 101 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 101 }, - \\"name\\": \\"operand\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - \\"jsii-calc.UnionProperties\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.UnionProperties\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1112 - }, - \\"name\\": \\"UnionProperties\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1114 - }, - \\"name\\": \\"bar\\", - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "jsii-calc.UnionProperties": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.UnionProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1112 + }, + "name": "UnionProperties", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1114 + }, + "name": "bar", + "type": { + "union": { + "types": [ { - \\"primitive\\": \\"string\\" + "primitive": "string" }, { - \\"primitive\\": \\"number\\" + "primitive": "number" }, { - \\"fqn\\": \\"jsii-calc.AllTypes\\" + "fqn": "jsii-calc.AllTypes" } ] } } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1113 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1113 }, - \\"name\\": \\"foo\\", - \\"optional\\": true, - \\"type\\": { - \\"union\\": { - \\"types\\": [ + "name": "foo", + "optional": true, + "type": { + "union": { + "types": [ { - \\"primitive\\": \\"string\\" + "primitive": "string" }, { - \\"primitive\\": \\"number\\" + "primitive": "number" } ] } @@ -19286,1339 +19348,1337 @@ Object { } ] }, - \\"jsii-calc.UpcasingReflectable\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Ensures submodule-imported types from dependencies can be used correctly.\\" - }, - \\"fqn\\": \\"jsii-calc.UpcasingReflectable\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.UpcasingReflectable": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Ensures submodule-imported types from dependencies can be used correctly." + }, + "fqn": "jsii-calc.UpcasingReflectable", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodules.ts\\", - \\"line\\": 9 + "locationInModule": { + "filename": "lib/submodules.ts", + "line": 9 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"delegate\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"any\\" + "name": "delegate", + "type": { + "collection": { + "elementtype": { + "primitive": "any" }, - \\"kind\\": \\"map\\" + "kind": "map" } } } ] }, - \\"interfaces\\": [ - \\"@scope/jsii-calc-lib.submodule.IReflectable\\" + "interfaces": [ + "@scope/jsii-calc-lib.submodule.IReflectable" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodules.ts\\", - \\"line\\": 6 - }, - \\"name\\": \\"UpcasingReflectable\\", - \\"properties\\": [ - { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodules.ts\\", - \\"line\\": 7 - }, - \\"name\\": \\"reflector\\", - \\"static\\": true, - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.Reflector\\" + "kind": "class", + "locationInModule": { + "filename": "lib/submodules.ts", + "line": 6 + }, + "name": "UpcasingReflectable", + "properties": [ + { + "const": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodules.ts", + "line": 7 + }, + "name": "reflector", + "static": true, + "type": { + "fqn": "@scope/jsii-calc-lib.submodule.Reflector" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodules.ts\\", - \\"line\\": 11 + "immutable": true, + "locationInModule": { + "filename": "lib/submodules.ts", + "line": 11 }, - \\"name\\": \\"entries\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.submodule.IReflectable\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\" + "name": "entries", + "overrides": "@scope/jsii-calc-lib.submodule.IReflectable", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.submodule.ReflectableEntry" }, - \\"kind\\": \\"array\\" + "kind": "array" } } } ] }, - \\"jsii-calc.UseBundledDependency\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.UseBundledDependency": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.UseBundledDependency\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.UseBundledDependency", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1117 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1117 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1118 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1118 }, - \\"name\\": \\"value\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"any\\" + "name": "value", + "returns": { + "type": { + "primitive": "any" } } } ], - \\"name\\": \\"UseBundledDependency\\" + "name": "UseBundledDependency" }, - \\"jsii-calc.UseCalcBase\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Depend on a type from jsii-calc-base as a test for awslabs/jsii#128.\\" + "jsii-calc.UseCalcBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." }, - \\"fqn\\": \\"jsii-calc.UseCalcBase\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.UseCalcBase", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1168 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1168 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1169 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1169 }, - \\"name\\": \\"hello\\", - \\"returns\\": { - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-base.Base\\" + "name": "hello", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-base.Base" } } } ], - \\"name\\": \\"UseCalcBase\\" + "name": "UseCalcBase" }, - \\"jsii-calc.UsesInterfaceWithProperties\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.UsesInterfaceWithProperties\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.UsesInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.UsesInterfaceWithProperties", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 597 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 597 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 596 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 596 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 599 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 599 }, - \\"name\\": \\"justRead\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "justRead", + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 608 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 608 }, - \\"name\\": \\"readStringAndNumber\\", - \\"parameters\\": [ + "name": "readStringAndNumber", + "parameters": [ { - \\"name\\": \\"ext\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IInterfaceWithPropertiesExtension\\" + "name": "ext", + "type": { + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 603 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 603 }, - \\"name\\": \\"writeAndRead\\", - \\"parameters\\": [ + "name": "writeAndRead", + "parameters": [ { - \\"name\\": \\"value\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "value", + "type": { + "primitive": "string" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"UsesInterfaceWithProperties\\", - \\"properties\\": [ + "name": "UsesInterfaceWithProperties", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 597 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 597 }, - \\"name\\": \\"obj\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.IInterfaceWithProperties\\" + "name": "obj", + "type": { + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] }, - \\"jsii-calc.VariadicInvoker\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.VariadicInvoker\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.VariadicInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.VariadicInvoker", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 681 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 681 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"method\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.VariadicMethod\\" + "name": "method", + "type": { + "fqn": "jsii-calc.VariadicMethod" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 680 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 680 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 683 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 683 }, - \\"name\\": \\"asArray\\", - \\"parameters\\": [ + "name": "asArray", + "parameters": [ { - \\"name\\": \\"values\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "values", + "type": { + "primitive": "number" }, - \\"variadic\\": true + "variadic": true } ], - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"variadic\\": true + "variadic": true } ], - \\"name\\": \\"VariadicInvoker\\" + "name": "VariadicInvoker" }, - \\"jsii-calc.VariadicMethod\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.VariadicMethod\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.VariadicMethod": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.VariadicMethod", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 667 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 667 }, - \\"parameters\\": [ + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"a prefix that will be use for all values returned by \`#asArray\`.\\" + "docs": { + "summary": "a prefix that will be use for all values returned by \`#asArray\`." }, - \\"name\\": \\"prefix\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "prefix", + "type": { + "primitive": "number" }, - \\"variadic\\": true + "variadic": true } ], - \\"variadic\\": true + "variadic": true }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 661 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 661 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 675 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 675 }, - \\"name\\": \\"asArray\\", - \\"parameters\\": [ + "name": "asArray", + "parameters": [ { - \\"docs\\": { - \\"summary\\": \\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\" + "docs": { + "summary": "the first element of the array to be returned (after the \`prefix\` provided at construction time)." }, - \\"name\\": \\"first\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "first", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"summary\\": \\"other elements to be included in the array.\\" + "docs": { + "summary": "other elements to be included in the array." }, - \\"name\\": \\"others\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "others", + "type": { + "primitive": "number" }, - \\"variadic\\": true + "variadic": true } ], - \\"returns\\": { - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, - \\"variadic\\": true + "variadic": true } ], - \\"name\\": \\"VariadicMethod\\" + "name": "VariadicMethod" }, - \\"jsii-calc.VirtualMethodPlayground\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.VirtualMethodPlayground": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.VirtualMethodPlayground\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.VirtualMethodPlayground", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 451 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 451 }, - \\"methods\\": [ + "methods": [ { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 476 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 476 }, - \\"name\\": \\"overrideMeAsync\\", - \\"parameters\\": [ + "name": "overrideMeAsync", + "parameters": [ { - \\"name\\": \\"index\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "index", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 480 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 480 }, - \\"name\\": \\"overrideMeSync\\", - \\"parameters\\": [ + "name": "overrideMeSync", + "parameters": [ { - \\"name\\": \\"index\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "index", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 458 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 458 }, - \\"name\\": \\"parallelSumAsync\\", - \\"parameters\\": [ + "name": "parallelSumAsync", + "parameters": [ { - \\"name\\": \\"count\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "count", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"async\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "async": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 452 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 452 }, - \\"name\\": \\"serialSumAsync\\", - \\"parameters\\": [ + "name": "serialSumAsync", + "parameters": [ { - \\"name\\": \\"count\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "count", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 468 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 468 }, - \\"name\\": \\"sumSync\\", - \\"parameters\\": [ + "name": "sumSync", + "parameters": [ { - \\"name\\": \\"count\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "count", + "type": { + "primitive": "number" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"number\\" + "returns": { + "type": { + "primitive": "number" } } } ], - \\"name\\": \\"VirtualMethodPlayground\\" + "name": "VirtualMethodPlayground" }, - \\"jsii-calc.VoidCallback\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"remarks\\": \\"- Implement \`overrideMe\` (method does not have to do anything).\\\\n- Invoke \`callMe\`\\\\n- Verify that \`methodWasCalled\` is \`true\`.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"This test is used to validate the runtimes can return correctly from a void callback.\\" + "jsii-calc.VoidCallback": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "remarks": "- Implement \`overrideMe\` (method does not have to do anything).\\n- Invoke \`callMe\`\\n- Verify that \`methodWasCalled\` is \`true\`.", + "stability": "experimental", + "summary": "This test is used to validate the runtimes can return correctly from a void callback." }, - \\"fqn\\": \\"jsii-calc.VoidCallback\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "fqn": "jsii-calc.VoidCallback", + "initializer": { + "docs": { + "stability": "experimental" } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1921 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1921 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1926 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1926 }, - \\"name\\": \\"callMe\\" + "name": "callMe" }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1930 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1930 }, - \\"name\\": \\"overrideMe\\", - \\"protected\\": true + "name": "overrideMe", + "protected": true } ], - \\"name\\": \\"VoidCallback\\", - \\"properties\\": [ + "name": "VoidCallback", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1923 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1923 }, - \\"name\\": \\"methodWasCalled\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "methodWasCalled", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.WithPrivatePropertyInConstructor\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Verifies that private property declarations in constructor arguments are hidden.\\" - }, - \\"fqn\\": \\"jsii-calc.WithPrivatePropertyInConstructor\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.WithPrivatePropertyInConstructor": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that private property declarations in constructor arguments are hidden." + }, + "fqn": "jsii-calc.WithPrivatePropertyInConstructor", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1937 + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1937 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"privateField\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "privateField", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1936 + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1936 }, - \\"name\\": \\"WithPrivatePropertyInConstructor\\", - \\"properties\\": [ + "name": "WithPrivatePropertyInConstructor", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/compliance.ts\\", - \\"line\\": 1939 + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1939 }, - \\"name\\": \\"success\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "name": "success", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.composition.CompositeOperation\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"base\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Abstract operation composed from an expression of other operations.\\" - }, - \\"fqn\\": \\"jsii-calc.composition.CompositeOperation\\", - \\"initializer\\": {}, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 138 - }, - \\"methods\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"String representation of the value.\\" - }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 164 - }, - \\"name\\": \\"toString\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Operation\\", - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.composition.CompositeOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Abstract operation composed from an expression of other operations." + }, + "fqn": "jsii-calc.composition.CompositeOperation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 138 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 164 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" } } } ], - \\"name\\": \\"CompositeOperation\\", - \\"namespace\\": \\"composition\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"remarks\\": \\"Must be implemented by derived classes.\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The expression that this operation consists of.\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 162 - }, - \\"name\\": \\"expression\\", - \\"type\\": { - \\"fqn\\": \\"@scope/jsii-calc-lib.Value\\" + "name": "CompositeOperation", + "namespace": "composition", + "properties": [ + { + "abstract": true, + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 162 + }, + "name": "expression", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The value.\\" + "docs": { + "stability": "experimental", + "summary": "The value." }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 154 + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 154 }, - \\"name\\": \\"value\\", - \\"overrides\\": \\"@scope/jsii-calc-lib.Value\\", - \\"type\\": { - \\"primitive\\": \\"number\\" + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A set of postfixes to include in a decorated .toString().\\" + "docs": { + "stability": "experimental", + "summary": "A set of postfixes to include in a decorated .toString()." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 152 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 152 }, - \\"name\\": \\"decorationPostfixes\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "decorationPostfixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"A set of prefixes to include in a decorated .toString().\\" + "docs": { + "stability": "experimental", + "summary": "A set of prefixes to include in a decorated .toString()." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 147 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 147 }, - \\"name\\": \\"decorationPrefixes\\", - \\"type\\": { - \\"collection\\": { - \\"elementtype\\": { - \\"primitive\\": \\"string\\" + "name": "decorationPrefixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" }, - \\"kind\\": \\"array\\" + "kind": "array" } } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"The .toString() style.\\" + "docs": { + "stability": "experimental", + "summary": "The .toString() style." }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 142 + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 142 }, - \\"name\\": \\"stringStyle\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\" + "name": "stringStyle", + "type": { + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" } } ] }, - \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Style of .toString() output for CompositeOperation.\\" + "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Style of .toString() output for CompositeOperation." }, - \\"fqn\\": \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/calculator.ts\\", - \\"line\\": 184 + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", + "kind": "enum", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 184 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Normal string expression.\\" + "docs": { + "stability": "experimental", + "summary": "Normal string expression." }, - \\"name\\": \\"NORMAL\\" + "name": "NORMAL" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Decorated string expression.\\" + "docs": { + "stability": "experimental", + "summary": "Decorated string expression." }, - \\"name\\": \\"DECORATED\\" + "name": "DECORATED" } ], - \\"name\\": \\"CompositionStringStyle\\", - \\"namespace\\": \\"composition.CompositeOperation\\" + "name": "CompositionStringStyle", + "namespace": "composition.CompositeOperation" }, - \\"jsii-calc.submodule.MyClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.MyClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.submodule.MyClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.MyClass", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 11 + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 11 }, - \\"parameters\\": [ + "parameters": [ { - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" } } ] }, - \\"interfaces\\": [ - \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 5 - }, - \\"name\\": \\"MyClass\\", - \\"namespace\\": \\"submodule\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 8 - }, - \\"name\\": \\"awesomeness\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.Awesomeness\\" + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 5 + }, + "name": "MyClass", + "namespace": "submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 8 + }, + "name": "awesomeness", + "type": { + "fqn": "jsii-calc.submodule.child.Awesomeness" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 6 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 6 }, - \\"name\\": \\"definedAt\\", - \\"overrides\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 7 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 7 }, - \\"name\\": \\"goodness\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\" + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 11 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 11 }, - \\"name\\": \\"props\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + "name": "props", + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" } }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/my-class.ts\\", - \\"line\\": 9 + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 9 }, - \\"name\\": \\"allTypes\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.AllTypes\\" + "name": "allTypes", + "optional": true, + "type": { + "fqn": "jsii-calc.AllTypes" } } ] }, - \\"jsii-calc.submodule.back_references.MyClassReference\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.back_references.MyClassReference\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/refers-to-parent/index.ts\\", - \\"line\\": 3 - }, - \\"name\\": \\"MyClassReference\\", - \\"namespace\\": \\"submodule.back_references\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/refers-to-parent/index.ts\\", - \\"line\\": 4 - }, - \\"name\\": \\"reference\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.MyClass\\" + "jsii-calc.submodule.back_references.MyClassReference": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.back_references.MyClassReference", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 3 + }, + "name": "MyClassReference", + "namespace": "submodule.back_references", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 4 + }, + "name": "reference", + "type": { + "fqn": "jsii-calc.submodule.MyClass" } } ] }, - \\"jsii-calc.submodule.child.Awesomeness\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.submodule.child.Awesomeness": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.submodule.child.Awesomeness\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 15 + "fqn": "jsii-calc.submodule.child.Awesomeness", + "kind": "enum", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 15 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It was awesome!\\" + "docs": { + "stability": "experimental", + "summary": "It was awesome!" }, - \\"name\\": \\"AWESOME\\" + "name": "AWESOME" } ], - \\"name\\": \\"Awesomeness\\", - \\"namespace\\": \\"submodule.child\\" + "name": "Awesomeness", + "namespace": "submodule.child" }, - \\"jsii-calc.submodule.child.Goodness\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.submodule.child.Goodness": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 5 + "fqn": "jsii-calc.submodule.child.Goodness", + "kind": "enum", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 5 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's pretty good.\\" + "docs": { + "stability": "experimental", + "summary": "It's pretty good." }, - \\"name\\": \\"PRETTY_GOOD\\" + "name": "PRETTY_GOOD" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's really good.\\" + "docs": { + "stability": "experimental", + "summary": "It's really good." }, - \\"name\\": \\"REALLY_GOOD\\" + "name": "REALLY_GOOD" }, { - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"It's amazingly good.\\" + "docs": { + "stability": "experimental", + "summary": "It's amazingly good." }, - \\"name\\": \\"AMAZINGLY_GOOD\\" + "name": "AMAZINGLY_GOOD" } ], - \\"name\\": \\"Goodness\\", - \\"namespace\\": \\"submodule.child\\" + "name": "Goodness", + "namespace": "submodule.child" }, - \\"jsii-calc.submodule.child.InnerClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.child.InnerClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - } - }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 37 - }, - \\"name\\": \\"InnerClass\\", - \\"namespace\\": \\"submodule.child\\", - \\"properties\\": [ - { - \\"const\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 38 - }, - \\"name\\": \\"staticProp\\", - \\"static\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\" + "jsii-calc.submodule.child.InnerClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.InnerClass", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 37 + }, + "name": "InnerClass", + "namespace": "submodule.child", + "properties": [ + { + "const": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 38 + }, + "name": "staticProp", + "static": true, + "type": { + "fqn": "jsii-calc.submodule.child.SomeStruct" } } ] }, - \\"jsii-calc.submodule.child.KwargsProps\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.child.KwargsProps\\", - \\"interfaces\\": [ - \\"jsii-calc.submodule.child.SomeStruct\\" + "jsii-calc.submodule.child.KwargsProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.KwargsProps", + "interfaces": [ + "jsii-calc.submodule.child.SomeStruct" ], - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 41 - }, - \\"name\\": \\"KwargsProps\\", - \\"namespace\\": \\"submodule.child\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 42 - }, - \\"name\\": \\"extra\\", - \\"optional\\": true, - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 41 + }, + "name": "KwargsProps", + "namespace": "submodule.child", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 42 + }, + "name": "extra", + "optional": true, + "type": { + "primitive": "string" } } ] }, - \\"jsii-calc.submodule.child.OuterClass\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"see\\": \\": https://github.com/aws/jsii/pull/1706\\", - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Checks that classes can self-reference during initialization.\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.child.OuterClass\\", - \\"initializer\\": { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.submodule.child.OuterClass": { + "assembly": "jsii-calc", + "docs": { + "see": ": https://github.com/aws/jsii/pull/1706", + "stability": "experimental", + "summary": "Checks that classes can self-reference during initialization." + }, + "fqn": "jsii-calc.submodule.child.OuterClass", + "initializer": { + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 27 + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 27 } }, - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 24 + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 24 }, - \\"name\\": \\"OuterClass\\", - \\"namespace\\": \\"submodule.child\\", - \\"properties\\": [ + "name": "OuterClass", + "namespace": "submodule.child", + "properties": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 25 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 25 }, - \\"name\\": \\"innerClass\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.InnerClass\\" + "name": "innerClass", + "type": { + "fqn": "jsii-calc.submodule.child.InnerClass" } } ] }, - \\"jsii-calc.submodule.child.SomeEnum\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "jsii-calc.submodule.child.SomeEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, - \\"fqn\\": \\"jsii-calc.submodule.child.SomeEnum\\", - \\"kind\\": \\"enum\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 31 + "fqn": "jsii-calc.submodule.child.SomeEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 31 }, - \\"members\\": [ + "members": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"name\\": \\"SOME\\" + "name": "SOME" } ], - \\"name\\": \\"SomeEnum\\", - \\"namespace\\": \\"submodule.child\\" + "name": "SomeEnum", + "namespace": "submodule.child" }, - \\"jsii-calc.submodule.child.SomeStruct\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.child.SomeStruct\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 34 - }, - \\"name\\": \\"SomeStruct\\", - \\"namespace\\": \\"submodule.child\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 35 - }, - \\"name\\": \\"prop\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.SomeEnum\\" + "jsii-calc.submodule.child.SomeStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.SomeStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 34 + }, + "name": "SomeStruct", + "namespace": "submodule.child", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 35 + }, + "name": "prop", + "type": { + "fqn": "jsii-calc.submodule.child.SomeEnum" } } ] }, - \\"jsii-calc.submodule.child.Structure\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"datatype\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.child.Structure\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 1 - }, - \\"name\\": \\"Structure\\", - \\"namespace\\": \\"submodule.child\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/child/index.ts\\", - \\"line\\": 2 - }, - \\"name\\": \\"bool\\", - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "jsii-calc.submodule.child.Structure": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.Structure", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 1 + }, + "name": "Structure", + "namespace": "submodule.child", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 2 + }, + "name": "bool", + "type": { + "primitive": "boolean" } } ] }, - \\"jsii-calc.submodule.isolated.Kwargs\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\", - \\"summary\\": \\"Ensures imports are correctly registered for kwargs lifted properties from super-structs.\\" + "jsii-calc.submodule.isolated.Kwargs": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Ensures imports are correctly registered for kwargs lifted properties from super-structs." }, - \\"fqn\\": \\"jsii-calc.submodule.isolated.Kwargs\\", - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/isolated.ts\\", - \\"line\\": 7 + "fqn": "jsii-calc.submodule.isolated.Kwargs", + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/isolated.ts", + "line": 7 }, - \\"methods\\": [ + "methods": [ { - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "docs": { + "stability": "experimental" }, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/isolated.ts\\", - \\"line\\": 8 + "locationInModule": { + "filename": "lib/submodule/isolated.ts", + "line": 8 }, - \\"name\\": \\"method\\", - \\"parameters\\": [ + "name": "method", + "parameters": [ { - \\"name\\": \\"props\\", - \\"optional\\": true, - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.KwargsProps\\" + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.submodule.child.KwargsProps" } } ], - \\"returns\\": { - \\"type\\": { - \\"primitive\\": \\"boolean\\" + "returns": { + "type": { + "primitive": "boolean" } }, - \\"static\\": true + "static": true } ], - \\"name\\": \\"Kwargs\\", - \\"namespace\\": \\"submodule.isolated\\" + "name": "Kwargs", + "namespace": "submodule.isolated" }, - \\"jsii-calc.submodule.nested_submodule.Namespaced\\": { - \\"abstract\\": true, - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.nested_submodule.Namespaced\\", - \\"interfaces\\": [ - \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + "jsii-calc.submodule.nested_submodule.Namespaced": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.Namespaced", + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" ], - \\"kind\\": \\"class\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 12 - }, - \\"name\\": \\"Namespaced\\", - \\"namespace\\": \\"submodule.nested_submodule\\", - \\"properties\\": [ - { - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 13 - }, - \\"name\\": \\"definedAt\\", - \\"overrides\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 12 + }, + "name": "Namespaced", + "namespace": "submodule.nested_submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 13 + }, + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" } }, { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" + "abstract": true, + "docs": { + "stability": "experimental" }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 14 + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 14 }, - \\"name\\": \\"goodness\\", - \\"type\\": { - \\"fqn\\": \\"jsii-calc.submodule.child.Goodness\\" + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" } } ] }, - \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\": { - \\"assembly\\": \\"jsii-calc\\", - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"fqn\\": \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\", - \\"kind\\": \\"interface\\", - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 7 - }, - \\"name\\": \\"INamespaced\\", - \\"namespace\\": \\"submodule.nested_submodule.deeplyNested\\", - \\"properties\\": [ - { - \\"abstract\\": true, - \\"docs\\": { - \\"stability\\": \\"experimental\\" - }, - \\"immutable\\": true, - \\"locationInModule\\": { - \\"filename\\": \\"lib/submodule/nested_submodule.ts\\", - \\"line\\": 8 - }, - \\"name\\": \\"definedAt\\", - \\"type\\": { - \\"primitive\\": \\"string\\" + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 7 + }, + "name": "INamespaced", + "namespace": "submodule.nested_submodule.deeplyNested", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 8 + }, + "name": "definedAt", + "type": { + "primitive": "string" } } ] } }, - \\"version\\": \\"0.0.0\\", - \\"fingerprint\\": \\"kQYWZjxtnycywR9qo/KXKyeVPmP6HoAefGhHN7SidkM=\\" -} -", + "version": "0.0.0", + "fingerprint": "NsqdwWgXi+kjrpLQtQ27eA/znULJ7TtXy03ht68N9Ms=" } + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon.JSII.Tests.CalculatorPackageId.csproj 1`] = ` -Object { - Symbol(file): " + A simple calcuator built on JSII. (Stability: Experimental) @@ -20644,26 +20704,24 @@ Object { netcoreapp3.1 - + - - - - + + + + 0612,0618 -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20672,7 +20730,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: \\"jsii-calc.AbstractClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass { /// @@ -20683,14 +20741,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } ///

Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClass(DeputyProps props): base(props) { @@ -20699,14 +20757,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"abstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "abstractMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"name\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public abstract string AbstractMethod(string name); /// /// Stability: Experimental /// - [JsiiMethod(name: \\"nonAbstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "nonAbstractMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double NonAbstractMethod() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -20715,20 +20773,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "propFromInterface", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string PropFromInterface { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20737,7 +20793,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: \\"jsii-calc.AbstractClassBase\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] public abstract class AbstractClassBase : DeputyBase { /// @@ -20748,14 +20804,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClassBase(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClassBase(DeputyProps props): base(props) { @@ -20764,20 +20820,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "abstractProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public abstract string AbstractProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20786,7 +20840,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: \\"jsii-calc.AbstractClassBase\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase { private AbstractClassBaseProxy(ByRefValue reference): base(reference) @@ -20796,20 +20850,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "abstractProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public override string AbstractProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20818,7 +20870,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: \\"jsii-calc.AbstractClass\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClass { private AbstractClassProxy(ByRefValue reference): base(reference) @@ -20828,7 +20880,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"abstractProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "abstractProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public override string AbstractProperty { get => GetInstanceProperty(); @@ -20837,20 +20889,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"abstractMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "abstractMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"name\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public override string AbstractMethod(string name) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{name}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20859,7 +20909,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: \\"jsii-calc.AbstractClassReturner\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: "jsii-calc.AbstractClassReturner")] public class AbstractClassReturner : DeputyBase { /// @@ -20870,14 +20920,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClassReturner(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractClassReturner(DeputyProps props): base(props) { @@ -20886,7 +20936,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeAbstract\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}}\\")] + [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -20895,7 +20945,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceImplementedByAbstractClass\\\\\\"}}\\")] + [JsiiMethod(name: "giveMeInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceImplementedByAbstractClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -20904,20 +20954,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"returnAbstractFromProperty\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClassBase\\\\\\"}\\")] + [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\\"fqn\\":\\"jsii-calc.AbstractClassBase\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuite.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20927,7 +20975,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: \\"jsii-calc.AbstractSuite\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: "jsii-calc.AbstractSuite")] public abstract class AbstractSuite : DeputyBase { /// @@ -20938,14 +20986,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractSuite(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AbstractSuite(DeputyProps props): base(props) { @@ -20954,16 +21002,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"someMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"str\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "someMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"str\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] protected abstract string SomeMethod(string str); /// Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result. - /// a \`string\`. + /// a \`string\`. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"workItAll\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a \`string\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"seed\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "workItAll", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"a \`string\`.\\"},\\"name\\":\\"seed\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string WorkItAll(string seed) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{seed}); @@ -20972,7 +21020,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] protected abstract string Property { get; @@ -20980,13 +21028,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractSuiteProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -20996,7 +21042,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: \\"jsii-calc.AbstractSuite\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: "jsii-calc.AbstractSuite")] internal sealed class AbstractSuiteProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite { private AbstractSuiteProxy(ByRefValue reference): base(reference) @@ -21006,7 +21052,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] protected override string Property { get => GetInstanceProperty(); @@ -21016,35 +21062,33 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"someMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"str\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "someMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"str\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] protected override string SomeMethod(string str) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{str}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Add.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// The \\"+\\" binary operation. + /// The "+" binary operation. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Add), fullyQualifiedName: \\"jsii-calc.Add\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Add), fullyQualifiedName: "jsii-calc.Add", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"Left-hand side operand.\\"},\\"name\\":\\"lhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}},{\\"docs\\":{\\"summary\\":\\"Right-hand side operand.\\"},\\"name\\":\\"rhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public class Add : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation { /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. + /// Left-hand side operand. + /// Right-hand side operand. /// /// Stability: Experimental /// @@ -21053,14 +21097,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Add(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Add(DeputyProps props): base(props) { @@ -21070,7 +21114,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21080,20 +21124,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21106,7 +21148,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: \\"jsii-calc.AllTypes\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: "jsii-calc.AllTypes")] public class AllTypes : DeputyBase { /// @@ -21117,14 +21159,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AllTypes(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AllTypes(DeputyProps props): base(props) { @@ -21133,7 +21175,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyIn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"inp\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "anyIn", parametersJson: "[{\\"name\\":\\"inp\\",\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public virtual void AnyIn(object inp) { InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object[]{inp}); @@ -21142,7 +21184,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyOut\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyOut", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object AnyOut() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21151,7 +21193,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"enumMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}]\\")] + [JsiiMethod(name: "enumMethod", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); @@ -21160,7 +21202,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"enumPropertyValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "enumPropertyValue", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double EnumPropertyValue { get => GetInstanceProperty(); @@ -21169,7 +21211,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anyArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "anyArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public virtual object[] AnyArrayProperty { get => GetInstanceProperty(); @@ -21179,7 +21221,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anyMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "anyMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary AnyMapProperty { get => GetInstanceProperty>(); @@ -21189,7 +21231,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [JsiiProperty(name: "anyProperty", typeJson: "{\\"primitive\\":\\"any\\"}")] public virtual object AnyProperty { get => GetInstanceProperty(); @@ -21199,7 +21241,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "arrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] ArrayProperty { get => GetInstanceProperty(); @@ -21209,7 +21251,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"booleanProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "booleanProperty", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool BooleanProperty { get => GetInstanceProperty(); @@ -21219,7 +21261,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"dateProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "dateProperty", typeJson: "{\\"primitive\\":\\"date\\"}")] public virtual System.DateTime DateProperty { get => GetInstanceProperty(); @@ -21229,7 +21271,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"enumProperty\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}\\")] + [JsiiProperty(name: "enumProperty", typeJson: "{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty { get => GetInstanceProperty(); @@ -21239,7 +21281,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"jsonProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"json\\\\\\"}\\")] + [JsiiProperty(name: "jsonProperty", typeJson: "{\\"primitive\\":\\"json\\"}")] public virtual Newtonsoft.Json.Linq.JObject JsonProperty { get => GetInstanceProperty(); @@ -21249,7 +21291,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"mapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "mapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary MapProperty { get => GetInstanceProperty>(); @@ -21259,7 +21301,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "numberProperty", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double NumberProperty { get => GetInstanceProperty(); @@ -21269,7 +21311,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"stringProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "stringProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string StringProperty { get => GetInstanceProperty(); @@ -21279,7 +21321,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unionArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "unionArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}]}},\\"kind\\":\\"array\\"}}")] public virtual object[] UnionArrayProperty { get => GetInstanceProperty(); @@ -21289,7 +21331,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unionMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "unionMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}]}},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary UnionMapProperty { get => GetInstanceProperty>(); @@ -21299,7 +21341,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Multiply\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}]}}\\")] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.Multiply\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}]}}")] public virtual object UnionProperty { get => GetInstanceProperty(); @@ -21309,7 +21351,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unknownArrayProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "unknownArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public virtual object[] UnknownArrayProperty { get => GetInstanceProperty(); @@ -21319,7 +21361,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unknownMapProperty\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "unknownMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary UnknownMapProperty { get => GetInstanceProperty>(); @@ -21329,7 +21371,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unknownProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\")] + [JsiiProperty(name: "unknownProperty", typeJson: "{\\"primitive\\":\\"any\\"}")] public virtual object UnknownProperty { get => GetInstanceProperty(); @@ -21340,7 +21382,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalEnumValue\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalEnumValue", typeJson: "{\\"fqn\\":\\"jsii-calc.StringEnum\\"}", isOptional: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum? OptionalEnumValue { get => GetInstanceProperty(); @@ -21348,13 +21390,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21364,33 +21404,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: \\"jsii-calc.AllTypesEnum\\")] + [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.AllTypesEnum")] public enum AllTypesEnum { /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"MY_ENUM_VALUE\\")] + [JsiiEnumMember(name: "MY_ENUM_VALUE")] MY_ENUM_VALUE, /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"YOUR_ENUM_VALUE\\")] + [JsiiEnumMember(name: "YOUR_ENUM_VALUE")] YOUR_ENUM_VALUE, /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"THIS_IS_GREAT\\")] + [JsiiEnumMember(name: "THIS_IS_GREAT")] THIS_IS_GREAT } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21399,7 +21437,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: \\"jsii-calc.AllowedMethodNames\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: "jsii-calc.AllowedMethodNames")] public class AllowedMethodNames : DeputyBase { /// @@ -21410,14 +21448,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AllowedMethodNames(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AllowedMethodNames(DeputyProps props): base(props) { @@ -21426,7 +21464,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"getBar\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_p1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_p2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "getBar", parametersJson: "[{\\"name\\":\\"_p1\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"_p2\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void GetBar(string p1, double p2) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{p1, p2}); @@ -21436,7 +21474,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"getFoo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"withParam\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "getFoo", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"withParam\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string GetFoo(string withParam) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{withParam}); @@ -21445,7 +21483,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"setBar\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_x\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_y\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_z\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}]\\")] + [JsiiMethod(name: "setBar", parametersJson: "[{\\"name\\":\\"_x\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"_y\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"_z\\",\\"type\\":{\\"primitive\\":\\"boolean\\"}}]")] public virtual void SetBar(string x, double y, bool z) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double), typeof(bool)}, new object[]{x, y, z}); @@ -21455,20 +21493,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"setFoo\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_x\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_y\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "setFoo", parametersJson: "[{\\"name\\":\\"_x\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"_y\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void SetFoo(string x, double y) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object[]{x, y}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21477,7 +21513,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: \\"jsii-calc.AmbiguousParameters\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"scope\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructParameterType\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: "jsii-calc.AmbiguousParameters", parametersJson: "[{\\"name\\":\\"scope\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.Bell\\"}},{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.StructParameterType\\"}}]")] public class AmbiguousParameters : DeputyBase { /// @@ -21488,14 +21524,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AmbiguousParameters(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AmbiguousParameters(DeputyProps props): base(props) { @@ -21504,7 +21540,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructParameterType\\\\\\"}\\")] + [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.StructParameterType\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props { get => GetInstanceProperty(); @@ -21513,20 +21549,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}\\")] + [JsiiProperty(name: "scope", typeJson: "{\\"fqn\\":\\"jsii-calc.Bell\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21535,7 +21569,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.AnonymousImplementationProvider\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.AnonymousImplementationProvider")] public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider { /// @@ -21546,14 +21580,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AnonymousImplementationProvider(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AnonymousImplementationProvider(DeputyProps props): base(props) { @@ -21562,7 +21596,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "provideAsClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Implementation\\"}}", isOverride: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21571,20 +21605,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnonymouslyImplementMe\\"}}", isOverride: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21593,7 +21625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: \\"jsii-calc.AsyncVirtualMethods\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.AsyncVirtualMethods")] public class AsyncVirtualMethods : DeputyBase { /// @@ -21604,14 +21636,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AsyncVirtualMethods(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AsyncVirtualMethods(DeputyProps props): base(props) { @@ -21620,31 +21652,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "callMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMe() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } - /// Just calls \\"overrideMeToo\\". + /// Just calls "overrideMeToo". /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callMe2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "callMe2", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMe2() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } - /// This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + /// This method calls the "callMe" async method indirectly, which will then invoke a virtual method. /// - /// This is a \\"double promise\\" situation, which + /// This is a "double promise" situation, which /// means that callbacks are not going to be available immediate, but only - /// after an \\"immediates\\" cycle. + /// after an "immediates" cycle. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callMeDoublePromise\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "callMeDoublePromise", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMeDoublePromise() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21653,7 +21685,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"dontOverrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "dontOverrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double DontOverrideMe() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21662,7 +21694,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"mult\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + [JsiiMethod(name: "overrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"mult\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double OverrideMe(double mult) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{mult}); @@ -21671,20 +21703,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMeToo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "overrideMeToo", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double OverrideMeToo() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21693,7 +21723,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: \\"jsii-calc.AugmentableClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: "jsii-calc.AugmentableClass")] public class AugmentableClass : DeputyBase { /// @@ -21704,14 +21734,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AugmentableClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected AugmentableClass(DeputyProps props): base(props) { @@ -21720,7 +21750,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"methodOne\\")] + [JsiiMethod(name: "methodOne")] public virtual void MethodOne() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -21729,20 +21759,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"methodTwo\\")] + [JsiiMethod(name: "methodTwo")] public virtual void MethodTwo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21751,7 +21779,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: \\"jsii-calc.BaseJsii976\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: "jsii-calc.BaseJsii976")] public class BaseJsii976 : DeputyBase { /// @@ -21762,27 +21790,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BaseJsii976(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BaseJsii976(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21791,7 +21817,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: \\"jsii-calc.Bell\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: "jsii-calc.Bell")] public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell { /// @@ -21802,14 +21828,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Bell(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Bell(DeputyProps props): base(props) { @@ -21818,7 +21844,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ring\\", isOverride: true)] + [JsiiMethod(name: "ring", isOverride: true)] public virtual void Ring() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -21827,7 +21853,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"rung\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "rung", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Rung { get => GetInstanceProperty(); @@ -21835,13 +21861,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperation.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21851,12 +21875,12 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: \\"jsii-calc.BinaryOperation\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: "jsii-calc.BinaryOperation", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"Left-hand side operand.\\"},\\"name\\":\\"lhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}},{\\"docs\\":{\\"summary\\":\\"Right-hand side operand.\\"},\\"name\\":\\"rhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public abstract class BinaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly { /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. + /// Left-hand side operand. + /// Right-hand side operand. /// /// Stability: Experimental /// @@ -21865,14 +21889,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BinaryOperation(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BinaryOperation(DeputyProps props): base(props) { @@ -21882,7 +21906,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -21892,7 +21916,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"lhs\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "lhs", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Lhs { get => GetInstanceProperty(); @@ -21902,20 +21926,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"rhs\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "rhs", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Rhs { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BinaryOperationProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21925,7 +21947,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: \\"jsii-calc.BinaryOperation\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation), fullyQualifiedName: "jsii-calc.BinaryOperation")] internal sealed class BinaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation { private BinaryOperationProxy(ByRefValue reference): base(reference) @@ -21936,7 +21958,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public override double Value { @@ -21947,7 +21969,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] [System.Obsolete()] public override string ToString() { @@ -21955,13 +21977,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BurriedAnonymousObject.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -21971,7 +21991,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: \\"jsii-calc.BurriedAnonymousObject\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: "jsii-calc.BurriedAnonymousObject")] public abstract class BurriedAnonymousObject : DeputyBase { /// @@ -21982,14 +22002,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BurriedAnonymousObject(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected BurriedAnonymousObject(DeputyProps props): base(props) { @@ -21998,30 +22018,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"check\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + [JsiiMethod(name: "check", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public virtual bool Check() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// Implement this method and have it return it's parameter. - /// the value that should be returned. + /// the value that should be returned. /// \`value\` /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveItBack\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the value that should be returned.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "giveItBack", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the value that should be returned.\\"},\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public abstract object GiveItBack(object @value); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BurriedAnonymousObjectProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22031,7 +22049,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: \\"jsii-calc.BurriedAnonymousObject\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: "jsii-calc.BurriedAnonymousObject")] internal sealed class BurriedAnonymousObjectProxy : Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject { private BurriedAnonymousObjectProxy(ByRefValue reference): base(reference) @@ -22039,25 +22057,23 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Implement this method and have it return it's parameter. - /// the value that should be returned. + /// the value that should be returned. /// \`value\` /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveItBack\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the value that should be returned.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "giveItBack", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the value that should be returned.\\"},\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public override object GiveItBack(object @value) { return InvokeInstanceMethod(new System.Type[]{typeof(object)}, new object[]{@value}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22086,11 +22102,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// calculator.Mul(3); /// Console.WriteLine(calculator.Expression.Value); /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Calculator), fullyQualifiedName: \\"jsii-calc.Calculator\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Initialization properties.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.CalculatorProps\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Calculator), fullyQualifiedName: "jsii-calc.Calculator", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"Initialization properties.\\"},\\"name\\":\\"props\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.CalculatorProps\\"}}]")] public class Calculator : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// Creates a Calculator object. - /// Initialization properties. + /// Initialization properties. /// /// Stability: Experimental /// @@ -22099,14 +22115,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Calculator(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Calculator(DeputyProps props): base(props) { @@ -22116,7 +22132,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"add\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "add", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void Add(double @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); @@ -22126,7 +22142,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"mul\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "mul", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void Mul(double @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); @@ -22136,7 +22152,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"neg\\")] + [JsiiMethod(name: "neg")] public virtual void Neg() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -22146,7 +22162,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"pow\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "pow", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void Pow(double @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); @@ -22156,7 +22172,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"readUnionValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "readUnionValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double ReadUnionValue() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -22166,7 +22182,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression { get => GetInstanceProperty(); @@ -22176,7 +22192,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"operationsLog\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "operationsLog", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] OperationsLog { get => GetInstanceProperty(); @@ -22186,7 +22202,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"operationsMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "operationsMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"array\\"}},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary OperationsMap { get => GetInstanceProperty>(); @@ -22196,7 +22212,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"curr\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "curr", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Curr { get => GetInstanceProperty(); @@ -22208,7 +22224,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"maxValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "maxValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public virtual double? MaxValue { get => GetInstanceProperty(); @@ -22220,7 +22236,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Add\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Multiply\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Power\\\\\\"}]}}\\", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"jsii-calc.Add\\"},{\\"fqn\\":\\"jsii-calc.Multiply\\"},{\\"fqn\\":\\"jsii-calc.Power\\"}]}}", isOptional: true)] public virtual object? UnionProperty { get => GetInstanceProperty(); @@ -22228,13 +22244,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22244,7 +22258,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.CalculatorProps\\")] + [JsiiByValue(fqn: "jsii-calc.CalculatorProps")] public class CalculatorProps : Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps { /// The initial value of the calculator. @@ -22256,7 +22270,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "initialValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true, isOverride: true)] public double? InitialValue { get; @@ -22270,7 +22284,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "maximumValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true, isOverride: true)] public double? MaximumValue { get; @@ -22278,13 +22292,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/CalculatorPropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22294,7 +22306,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ICalculatorProps), fullyQualifiedName: \\"jsii-calc.CalculatorProps\\")] + [JsiiTypeProxy(nativeType: typeof(ICalculatorProps), fullyQualifiedName: "jsii-calc.CalculatorProps")] internal sealed class CalculatorPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ICalculatorProps { private CalculatorPropsProxy(ByRefValue reference): base(reference) @@ -22310,7 +22322,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "initialValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? InitialValue { get => GetInstanceProperty(); @@ -22323,20 +22335,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "maximumValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? MaximumValue { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22347,13 +22357,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ChildStruct982\\")] + [JsiiByValue(fqn: "jsii-calc.ChildStruct982")] public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] public double Bar { get; @@ -22363,7 +22373,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Foo { get; @@ -22371,13 +22381,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22386,7 +22394,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: \\"jsii-calc.ChildStruct982\\")] + [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 { private ChildStruct982Proxy(ByRefValue reference): base(reference) @@ -22396,7 +22404,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Bar { get => GetInstanceProperty(); @@ -22405,20 +22413,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22427,7 +22433,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: \\"jsii-calc.ClassThatImplementsTheInternalInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsTheInternalInterface")] public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { /// @@ -22438,14 +22444,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassThatImplementsTheInternalInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassThatImplementsTheInternalInterface(DeputyProps props): base(props) { @@ -22454,7 +22460,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string A { get => GetInstanceProperty(); @@ -22464,7 +22470,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string B { get => GetInstanceProperty(); @@ -22474,7 +22480,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string C { get => GetInstanceProperty(); @@ -22484,7 +22490,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"d\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "d", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string D { get => GetInstanceProperty(); @@ -22492,13 +22498,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22507,7 +22511,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: \\"jsii-calc.ClassThatImplementsThePrivateInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsThePrivateInterface")] public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { /// @@ -22518,14 +22522,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassThatImplementsThePrivateInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassThatImplementsThePrivateInterface(DeputyProps props): base(props) { @@ -22534,7 +22538,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string A { get => GetInstanceProperty(); @@ -22544,7 +22548,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string B { get => GetInstanceProperty(); @@ -22554,7 +22558,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string C { get => GetInstanceProperty(); @@ -22564,7 +22568,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"e\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "e", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string E { get => GetInstanceProperty(); @@ -22572,13 +22576,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22587,7 +22589,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: \\"jsii-calc.ClassWithCollections\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"map\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}},{\\\\\\"name\\\\\\":\\\\\\"array\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: "jsii-calc.ClassWithCollections", parametersJson: "[{\\"name\\":\\"map\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}},{\\"name\\":\\"array\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}}]")] public class ClassWithCollections : DeputyBase { /// @@ -22598,14 +22600,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithCollections(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithCollections(DeputyProps props): base(props) { @@ -22614,7 +22616,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"createAList\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "createAList", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}}")] public static string[] CreateAList() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); @@ -22623,7 +22625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"createAMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + [JsiiMethod(name: "createAMap", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary CreateAMap() { return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); @@ -22632,7 +22634,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"staticArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "staticArray", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public static string[] StaticArray { get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); @@ -22642,7 +22644,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"staticMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "staticMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] public static System.Collections.Generic.IDictionary StaticMap { get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); @@ -22652,7 +22654,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"array\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "array", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] Array { get => GetInstanceProperty(); @@ -22662,7 +22664,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"map\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "map", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary Map { get => GetInstanceProperty>(); @@ -22670,13 +22672,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22696,7 +22696,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// { /// } /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: \\"jsii-calc.ClassWithDocs\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: "jsii-calc.ClassWithDocs")] public class ClassWithDocs : DeputyBase { /// @@ -22707,27 +22707,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithDocs(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithDocs(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22736,7 +22734,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.ClassWithJavaReservedWords\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"int\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.ClassWithJavaReservedWords", parametersJson: "[{\\"name\\":\\"int\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class ClassWithJavaReservedWords : DeputyBase { /// @@ -22747,14 +22745,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithJavaReservedWords(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithJavaReservedWords(DeputyProps props): base(props) { @@ -22763,7 +22761,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"import\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"assert\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "import", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"assert\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string Import(string assert) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{assert}); @@ -22772,20 +22770,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"int\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "int", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Int { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22794,7 +22790,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.ClassWithMutableObjectLiteralProperty")] public class ClassWithMutableObjectLiteralProperty : DeputyBase { /// @@ -22805,14 +22801,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithMutableObjectLiteralProperty(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithMutableObjectLiteralProperty(DeputyProps props): base(props) { @@ -22821,7 +22817,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"mutableObject\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IMutableObjectLiteral\\\\\\"}\\")] + [JsiiProperty(name: "mutableObject", typeJson: "{\\"fqn\\":\\"jsii-calc.IMutableObjectLiteral\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject { get => GetInstanceProperty(); @@ -22829,13 +22825,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22845,18 +22839,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties")] public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithPrivateConstructorAndAutomaticProperties(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithPrivateConstructorAndAutomaticProperties(DeputyProps props): base(props) { @@ -22865,7 +22859,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"create\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readOnlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"readWriteString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "create", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\"}}", parametersJson: "[{\\"name\\":\\"readOnlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"readWriteString\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); @@ -22874,7 +22868,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadOnlyString { get => GetInstanceProperty(); @@ -22883,7 +22877,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadWriteString { get => GetInstanceProperty(); @@ -22891,13 +22885,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -22907,7 +22899,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { protected CompositeOperation(): base(new DeputyProps(new object[]{})) @@ -22915,14 +22907,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected CompositeOperation(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected CompositeOperation(DeputyProps props): base(props) { @@ -22932,7 +22924,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -22944,7 +22936,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public abstract Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression { get; @@ -22954,7 +22946,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { get => GetInstanceProperty(); @@ -22964,7 +22956,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"decorationPostfixes\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "decorationPostfixes", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] DecorationPostfixes { get => GetInstanceProperty(); @@ -22975,7 +22967,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"decorationPrefixes\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "decorationPrefixes", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] DecorationPrefixes { get => GetInstanceProperty(); @@ -22986,7 +22978,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"stringStyle\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\\\\\"}\\")] + [JsiiProperty(name: "stringStyle", typeJson: "{\\"fqn\\":\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation.CompositionStringStyle StringStyle { get => GetInstanceProperty(); @@ -22997,31 +22989,29 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(CompositionStringStyle), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\")] + [JsiiEnum(nativeType: typeof(CompositionStringStyle), fullyQualifiedName: "jsii-calc.composition.CompositeOperation.CompositionStringStyle")] public enum CompositionStringStyle { /// Normal string expression. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"NORMAL\\")] + [JsiiEnumMember(name: "NORMAL")] NORMAL, /// Decorated string expression. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"DECORATED\\")] + [JsiiEnumMember(name: "DECORATED")] DECORATED } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23031,7 +23021,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: \\"jsii-calc.composition.CompositeOperation\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] internal sealed class CompositeOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { private CompositeOperationProxy(ByRefValue reference): base(reference) @@ -23044,20 +23034,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition /// /// Stability: Experimental /// - [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23069,18 +23057,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/aws-cdk/issues/4080 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: \\"jsii-calc.ConfusingToJackson\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: "jsii-calc.ConfusingToJackson")] public class ConfusingToJackson : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConfusingToJackson(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConfusingToJackson(DeputyProps props): base(props) { @@ -23089,7 +23077,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConfusingToJackson\\\\\\"}}\\")] + [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ConfusingToJackson\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); @@ -23098,7 +23086,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeStructInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConfusingToJacksonStruct\\\\\\"}}\\")] + [JsiiMethod(name: "makeStructInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ConfusingToJacksonStruct\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); @@ -23108,7 +23096,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}]}},\\"kind\\":\\"array\\"}}]}}", isOptional: true)] public virtual object? UnionProperty { get => GetInstanceProperty(); @@ -23116,13 +23104,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23131,14 +23117,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ConfusingToJacksonStruct\\")] + [JsiiByValue(fqn: "jsii-calc.ConfusingToJacksonStruct")] public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}]}},\\"kind\\":\\"array\\"}}]}}", isOptional: true, isOverride: true)] public object? UnionProperty { get; @@ -23146,13 +23132,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23161,7 +23145,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: \\"jsii-calc.ConfusingToJacksonStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct { private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) @@ -23172,20 +23156,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}]}},\\"kind\\":\\"array\\"}}]}}", isOptional: true)] public object? UnionProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23194,7 +23176,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: \\"jsii-calc.ConstructorPassesThisOut\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"consumer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PartiallyInitializedThisConsumer\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.ConstructorPassesThisOut", parametersJson: "[{\\"name\\":\\"consumer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.PartiallyInitializedThisConsumer\\"}}]")] public class ConstructorPassesThisOut : DeputyBase { /// @@ -23205,27 +23187,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConstructorPassesThisOut(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConstructorPassesThisOut(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23234,7 +23214,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: \\"jsii-calc.Constructors\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: "jsii-calc.Constructors")] public class Constructors : DeputyBase { /// @@ -23245,14 +23225,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Constructors(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Constructors(DeputyProps props): base(props) { @@ -23261,7 +23241,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hiddenInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + [JsiiMethod(name: "hiddenInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23270,7 +23250,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hiddenInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23279,7 +23259,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hiddenSubInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23288,7 +23268,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PublicClass\\\\\\"}}\\")] + [JsiiMethod(name: "makeClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.PublicClass\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23297,7 +23277,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + [JsiiMethod(name: "makeInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23306,7 +23286,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInterface2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface2\\\\\\"}}\\")] + [JsiiMethod(name: "makeInterface2", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface2\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); @@ -23315,20 +23295,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "makeInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23337,7 +23315,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: \\"jsii-calc.ConsumePureInterface\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IStructReturningDelegate\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: "jsii-calc.ConsumePureInterface", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IStructReturningDelegate\\"}}]")] public class ConsumePureInterface : DeputyBase { /// @@ -23348,14 +23326,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumePureInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumePureInterface(DeputyProps props): base(props) { @@ -23364,20 +23342,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"workItBaby\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + [JsiiMethod(name: "workItBaby", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StructB\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23390,7 +23366,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: \\"jsii-calc.ConsumerCanRingBell\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.ConsumerCanRingBell")] public class ConsumerCanRingBell : DeputyBase { /// @@ -23401,14 +23377,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumerCanRingBell(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumerCanRingBell(DeputyProps props): base(props) { @@ -23420,7 +23396,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"staticImplementedByObjectLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23432,7 +23408,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"staticImplementedByPrivateClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23444,7 +23420,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"staticImplementedByPublicClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23456,7 +23432,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"staticWhenTypedAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IConcreteBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IConcreteBellRinger\\"}}]")] public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); @@ -23468,7 +23444,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"implementedByObjectLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23480,7 +23456,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"implementedByPrivateClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23492,7 +23468,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"implementedByPublicClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); @@ -23504,20 +23480,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"whenTypedAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ringer\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IConcreteBellRinger\\\\\\"}}]\\")] + [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IConcreteBellRinger\\"}}]")] public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23526,7 +23500,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.ConsumersOfThisCrazyTypeSystem")] public class ConsumersOfThisCrazyTypeSystem : DeputyBase { /// @@ -23537,14 +23511,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumersOfThisCrazyTypeSystem(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ConsumersOfThisCrazyTypeSystem(DeputyProps props): base(props) { @@ -23553,7 +23527,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"consumeAnotherPublicInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnotherPublicInterface\\\\\\"}}]\\")] + [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnotherPublicInterface\\"}}]")] public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); @@ -23562,20 +23536,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"consumeNonInternalInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.INonInternalInterface\\\\\\"}}]\\")] + [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.INonInternalInterface\\"}}]")] public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23585,7 +23557,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: \\"jsii-calc.DataRenderer\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: "jsii-calc.DataRenderer")] public class DataRenderer : DeputyBase { /// @@ -23596,14 +23568,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DataRenderer(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DataRenderer(DeputyProps props): base(props) { @@ -23612,7 +23584,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"render\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"data\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "render", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"data\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}]")] public virtual string Render(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct? data = null) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object?[]{data}); @@ -23621,7 +23593,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"renderArbitrary\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"data\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + [JsiiMethod(name: "renderArbitrary", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"data\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public virtual string RenderArbitrary(System.Collections.Generic.IDictionary data) { return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{data}); @@ -23630,20 +23602,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"renderMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"map\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + [JsiiMethod(name: "renderMap", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"map\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public virtual string RenderMap(System.Collections.Generic.IDictionary map) { return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{map}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23652,7 +23622,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: \\"jsii-calc.DefaultedConstructorArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.DefaultedConstructorArgument", parametersJson: "[{\\"name\\":\\"arg1\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"arg2\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg3\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"date\\"}}]")] public class DefaultedConstructorArgument : DeputyBase { /// @@ -23663,14 +23633,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DefaultedConstructorArgument(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DefaultedConstructorArgument(DeputyProps props): base(props) { @@ -23679,7 +23649,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arg1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "arg1", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Arg1 { get => GetInstanceProperty(); @@ -23688,7 +23658,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arg3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "arg3", typeJson: "{\\"primitive\\":\\"date\\"}")] public virtual System.DateTime Arg3 { get => GetInstanceProperty(); @@ -23698,20 +23668,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"arg2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "arg2", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public virtual string? Arg2 { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23724,7 +23692,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: \\"jsii-calc.Demonstrate982\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: "jsii-calc.Demonstrate982")] public class Demonstrate982 : DeputyBase { /// @@ -23735,14 +23703,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Demonstrate982(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Demonstrate982(DeputyProps props): base(props) { @@ -23752,7 +23720,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"takeThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ChildStruct982\\\\\\"}}\\")] + [JsiiMethod(name: "takeThis", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ChildStruct982\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); @@ -23762,20 +23730,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"takeThisToo\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ParentStruct982\\\\\\"}}\\")] + [JsiiMethod(name: "takeThisToo", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ParentStruct982\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23784,29 +23750,29 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: \\"jsii-calc.DeprecatedClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] - [System.Obsolete(\\"a pretty boring class\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: "jsii-calc.DeprecatedClass", parametersJson: "[{\\"name\\":\\"readonlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"mutableNumber\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] + [System.Obsolete("a pretty boring class")] public class DeprecatedClass : DeputyBase { /// /// Stability: Deprecated /// - [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + [System.Obsolete("this constructor is \\"just\\" okay")] public DeprecatedClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) { } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference - [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + /// The Javascript-owned object reference + [System.Obsolete("this constructor is \\"just\\" okay")] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DeprecatedClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props - [System.Obsolete(\\"this constructor is \\\\\\"just\\\\\\" okay\\")] + /// The deputy props + [System.Obsolete("this constructor is \\"just\\" okay")] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DeprecatedClass(DeputyProps props): base(props) { @@ -23815,8 +23781,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"method\\")] - [System.Obsolete(\\"it was a bad idea\\")] + [JsiiMethod(name: "method")] + [System.Obsolete("it was a bad idea")] public virtual void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -23825,8 +23791,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] - [System.Obsolete(\\"this is not always \\\\\\"wazoo\\\\\\", be ready to be disappointed\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] + [System.Obsolete("this is not always \\"wazoo\\", be ready to be disappointed")] public virtual string ReadonlyProperty { get => GetInstanceProperty(); @@ -23836,8 +23802,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] - [System.Obsolete(\\"shouldn't have been mutable\\")] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] + [System.Obsolete("shouldn't have been mutable")] public virtual double? MutableProperty { get => GetInstanceProperty(); @@ -23845,13 +23811,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23861,31 +23825,29 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: \\"jsii-calc.DeprecatedEnum\\")] - [System.Obsolete(\\"your deprecated selection of bad options\\")] + [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.DeprecatedEnum")] + [System.Obsolete("your deprecated selection of bad options")] public enum DeprecatedEnum { /// /// Stability: Deprecated /// - [JsiiEnumMember(name: \\"OPTION_A\\")] - [System.Obsolete(\\"option A is not great\\")] + [JsiiEnumMember(name: "OPTION_A")] + [System.Obsolete("option A is not great")] OPTION_A, /// /// Stability: Deprecated /// - [JsiiEnumMember(name: \\"OPTION_B\\")] - [System.Obsolete(\\"option B is kinda bad, too\\")] + [JsiiEnumMember(name: "OPTION_B")] + [System.Obsolete("option B is kinda bad, too")] OPTION_B } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23896,14 +23858,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiByValue(fqn: \\"jsii-calc.DeprecatedStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DeprecatedStruct")] public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] - [System.Obsolete(\\"well, yeah\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] + [System.Obsolete("well, yeah")] public string ReadonlyProperty { get; @@ -23911,13 +23873,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23926,8 +23886,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: \\"jsii-calc.DeprecatedStruct\\")] - [System.Obsolete(\\"it just wraps a string\\")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] + [System.Obsolete("it just wraps a string")] internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct { private DeprecatedStructProxy(ByRefValue reference): base(reference) @@ -23937,21 +23897,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] - [System.Obsolete(\\"well, yeah\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] + [System.Obsolete("well, yeah")] public string ReadonlyProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -23960,7 +23918,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: \\"jsii-calc.DerivedClassHasNoProperties.Base\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Base")] public class Base : DeputyBase { /// @@ -23971,14 +23929,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Base(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Base(DeputyProps props): base(props) { @@ -23987,7 +23945,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Prop { get => GetInstanceProperty(); @@ -23995,13 +23953,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24010,7 +23966,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: \\"jsii-calc.DerivedClassHasNoProperties.Derived\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Derived")] public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base { /// @@ -24021,27 +23977,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Derived(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Derived(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24053,13 +24007,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.DerivedStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DerivedStruct")] public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "anotherRequired", typeJson: "{\\"primitive\\":\\"date\\"}", isOverride: true)] public System.DateTime AnotherRequired { get; @@ -24069,7 +24023,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOverride: true)] public bool Bool { get; @@ -24080,7 +24034,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "nonPrimitive", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { get; @@ -24092,7 +24046,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "anotherOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"map\\"}}", isOptional: true, isOverride: true)] public System.Collections.Generic.IDictionary? AnotherOptional { get; @@ -24103,7 +24057,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalAny", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true, isOverride: true)] public object? OptionalAny { get; @@ -24114,7 +24068,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalArray", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true, isOverride: true)] public string[]? OptionalArray { get; @@ -24125,7 +24079,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "anumber", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] [System.Obsolete()] public double Anumber { @@ -24137,7 +24091,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "astring", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] [System.Obsolete()] public string Astring { @@ -24149,7 +24103,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "firstOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true, isOverride: true)] [System.Obsolete()] public string[]? FirstOptional { @@ -24158,13 +24112,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24174,7 +24126,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: \\"jsii-calc.DerivedStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct { private DerivedStructProxy(ByRefValue reference): base(reference) @@ -24184,7 +24136,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "anotherRequired", typeJson: "{\\"primitive\\":\\"date\\"}")] public System.DateTime AnotherRequired { get => GetInstanceProperty(); @@ -24193,7 +24145,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Bool { get => GetInstanceProperty(); @@ -24203,7 +24155,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + [JsiiProperty(name: "nonPrimitive", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { get => GetInstanceProperty(); @@ -24214,7 +24166,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "anotherOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"map\\"}}", isOptional: true)] public System.Collections.Generic.IDictionary? AnotherOptional { get => GetInstanceProperty?>(); @@ -24224,7 +24176,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalAny", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true)] public object? OptionalAny { get => GetInstanceProperty(); @@ -24234,7 +24186,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "optionalArray", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] public string[]? OptionalArray { get => GetInstanceProperty(); @@ -24244,7 +24196,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"anumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "anumber", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public double Anumber { @@ -24255,7 +24207,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"astring\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "astring", typeJson: "{\\"primitive\\":\\"string\\"}")] [System.Obsolete()] public string Astring { @@ -24266,7 +24218,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"firstOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "firstOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] [System.Obsolete()] public string[]? FirstOptional { @@ -24274,13 +24226,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24291,13 +24241,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceBaseLevelStruct")] public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string BaseLevelProperty { get; @@ -24305,13 +24255,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24320,7 +24268,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { private DiamondInheritanceBaseLevelStructProxy(ByRefValue reference): base(reference) @@ -24330,20 +24278,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24354,13 +24300,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string FirstMidLevelProperty { get; @@ -24370,7 +24316,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string BaseLevelProperty { get; @@ -24378,13 +24324,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24393,7 +24337,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct { private DiamondInheritanceFirstMidLevelStructProxy(ByRefValue reference): base(reference) @@ -24403,7 +24347,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string FirstMidLevelProperty { get => GetInstanceProperty(); @@ -24412,20 +24356,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24436,13 +24378,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string SecondMidLevelProperty { get; @@ -24452,7 +24394,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string BaseLevelProperty { get; @@ -24460,13 +24402,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24475,7 +24415,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { private DiamondInheritanceSecondMidLevelStructProxy(ByRefValue reference): base(reference) @@ -24485,7 +24425,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string SecondMidLevelProperty { get => GetInstanceProperty(); @@ -24494,20 +24434,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24518,13 +24456,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceTopLevelStruct")] public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "topLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string TopLevelProperty { get; @@ -24534,7 +24472,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string FirstMidLevelProperty { get; @@ -24544,7 +24482,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string BaseLevelProperty { get; @@ -24554,7 +24492,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string SecondMidLevelProperty { get; @@ -24562,13 +24500,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24577,7 +24513,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct { private DiamondInheritanceTopLevelStructProxy(ByRefValue reference): base(reference) @@ -24587,7 +24523,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "topLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string TopLevelProperty { get => GetInstanceProperty(); @@ -24596,7 +24532,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string FirstMidLevelProperty { get => GetInstanceProperty(); @@ -24605,7 +24541,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { get => GetInstanceProperty(); @@ -24614,20 +24550,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string SecondMidLevelProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24639,18 +24573,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: \\"jsii-calc.DisappointingCollectionSource\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.DisappointingCollectionSource")] public class DisappointingCollectionSource : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DisappointingCollectionSource(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DisappointingCollectionSource(DeputyProps props): base(props) { @@ -24662,7 +24596,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"maybeList\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "maybeList", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] public static string[] MaybeList { get; @@ -24675,7 +24609,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"maybeMap\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "maybeMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"map\\"}}", isOptional: true)] public static System.Collections.Generic.IDictionary MaybeMap { get; @@ -24683,13 +24617,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24698,7 +24630,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: \\"jsii-calc.DoNotOverridePrivates\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.DoNotOverridePrivates")] public class DoNotOverridePrivates : DeputyBase { /// @@ -24709,14 +24641,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoNotOverridePrivates(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoNotOverridePrivates(DeputyProps props): base(props) { @@ -24725,7 +24657,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"changePrivatePropertyValue\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"newValue\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "changePrivatePropertyValue", parametersJson: "[{\\"name\\":\\"newValue\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual void ChangePrivatePropertyValue(string newValue) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{newValue}); @@ -24734,7 +24666,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"privateMethodValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "privateMethodValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string PrivateMethodValue() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -24743,30 +24675,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"privatePropertyValue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "privatePropertyValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string PrivatePropertyValue() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// jsii#284: do not recognize \\"any\\" as an optional argument. + /// jsii#284: do not recognize "any" as an optional argument. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: \\"jsii-calc.DoNotRecognizeAnyAsOptional\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.DoNotRecognizeAnyAsOptional")] public class DoNotRecognizeAnyAsOptional : DeputyBase { /// @@ -24777,14 +24707,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoNotRecognizeAnyAsOptional(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoNotRecognizeAnyAsOptional(DeputyProps props): base(props) { @@ -24793,20 +24723,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_requiredAny\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_optionalAny\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"_optionalString\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "method", parametersJson: "[{\\"name\\":\\"_requiredAny\\",\\"type\\":{\\"primitive\\":\\"any\\"}},{\\"name\\":\\"_optionalAny\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}},{\\"name\\":\\"_optionalString\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual void Method(object requiredAny, object? optionalAny = null, string? optionalString = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(object), typeof(object), typeof(string)}, new object?[]{requiredAny, optionalAny, optionalString}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24819,7 +24747,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Multiple paragraphs are separated by an empty line. /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: \\"jsii-calc.DocumentedClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: "jsii-calc.DocumentedClass")] public class DocumentedClass : DeputyBase { /// @@ -24830,27 +24758,27 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DocumentedClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DocumentedClass(DeputyProps props): base(props) { } /// Greet the indicated person. - /// The person to be greeted. + /// The person to be greeted. /// A number that everyone knows very well /// /// This will print out a friendly greeting intended for /// the indicated person. /// - [JsiiMethod(name: \\"greet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The person to be greeted.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"greetee\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Greetee\\\\\\"}}]\\")] + [JsiiMethod(name: "greet", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The person to be greeted.\\"},\\"name\\":\\"greetee\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.Greetee\\"}}]")] public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); @@ -24860,20 +24788,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hola\\")] + [JsiiMethod(name: "hola")] public virtual void Hola() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24882,7 +24808,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.DontComplainAboutVariadicAfterOptional")] public class DontComplainAboutVariadicAfterOptional : DeputyBase { /// @@ -24893,14 +24819,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DontComplainAboutVariadicAfterOptional(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DontComplainAboutVariadicAfterOptional(DeputyProps props): base(props) { @@ -24909,20 +24835,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"optionalAndVariadic\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"optional\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"things\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiMethod(name: "optionalAndVariadic", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"optional\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"things\\",\\"type\\":{\\"primitive\\":\\"string\\"},\\"variadic\\":true}]")] public virtual string OptionalAndVariadic(string? optional = null, params string[] things) { return InvokeInstanceMethod(new System.Type[]{typeof(string), typeof(string[])}, new object?[]{optional, things}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24931,7 +24855,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: \\"jsii-calc.DoubleTrouble\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: "jsii-calc.DoubleTrouble")] public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator { /// @@ -24942,14 +24866,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoubleTrouble(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected DoubleTrouble(DeputyProps props): base(props) { @@ -24959,7 +24883,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -24969,20 +24893,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isOverride: true)] public virtual double Next() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -24991,18 +24913,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: \\"jsii-calc.EnumDispenser\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: "jsii-calc.EnumDispenser")] public class EnumDispenser : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected EnumDispenser(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected EnumDispenser(DeputyProps props): base(props) { @@ -25011,7 +24933,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"randomIntegerLikeEnum\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}\\")] + [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); @@ -25020,20 +24942,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"randomStringLikeEnum\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StringEnum\\\\\\"}}\\")] + [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25042,7 +24962,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValues\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValues")] public class EraseUndefinedHashValues : DeputyBase { /// @@ -25053,14 +24973,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected EraseUndefinedHashValues(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected EraseUndefinedHashValues(DeputyProps props): base(props) { @@ -25073,40 +24993,38 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"doesKeyExist\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"opts\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.EraseUndefinedHashValuesOptions\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"key\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "doesKeyExist", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"opts\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.EraseUndefinedHashValuesOptions\\"}},{\\"name\\":\\"key\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); } - /// We expect \\"prop1\\" to be erased. + /// We expect "prop1" to be erased. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"prop1IsNull\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + [JsiiMethod(name: "prop1IsNull", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary Prop1IsNull() { return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } - /// We expect \\"prop2\\" to be erased. + /// We expect "prop2" to be erased. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"prop2IsUndefined\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + [JsiiMethod(name: "prop2IsUndefined", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary Prop2IsUndefined() { return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25115,14 +25033,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + [JsiiByValue(fqn: "jsii-calc.EraseUndefinedHashValuesOptions")] public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "option1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Option1 { get; @@ -25133,7 +25051,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "option2", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Option2 { get; @@ -25141,13 +25059,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25156,7 +25072,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions { private EraseUndefinedHashValuesOptionsProxy(ByRefValue reference): base(reference) @@ -25167,7 +25083,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "option1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Option1 { get => GetInstanceProperty(); @@ -25177,20 +25093,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "option2", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Option2 { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25199,7 +25113,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: \\"jsii-calc.ExperimentalClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: "jsii-calc.ExperimentalClass", parametersJson: "[{\\"name\\":\\"readonlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"mutableNumber\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public class ExperimentalClass : DeputyBase { /// @@ -25210,14 +25124,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExperimentalClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExperimentalClass(DeputyProps props): base(props) { @@ -25226,7 +25140,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public virtual void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -25235,7 +25149,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { get => GetInstanceProperty(); @@ -25245,7 +25159,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public virtual double? MutableProperty { get => GetInstanceProperty(); @@ -25253,13 +25167,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25269,28 +25181,26 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: \\"jsii-calc.ExperimentalEnum\\")] + [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.ExperimentalEnum")] public enum ExperimentalEnum { /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"OPTION_A\\")] + [JsiiEnumMember(name: "OPTION_A")] OPTION_A, /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"OPTION_B\\")] + [JsiiEnumMember(name: "OPTION_B")] OPTION_B } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25301,13 +25211,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ExperimentalStruct\\")] + [JsiiByValue(fqn: "jsii-calc.ExperimentalStruct")] public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string ReadonlyProperty { get; @@ -25315,13 +25225,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25330,7 +25238,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: \\"jsii-calc.ExperimentalStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct { private ExperimentalStructProxy(ByRefValue reference): base(reference) @@ -25340,20 +25248,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25362,7 +25268,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: \\"jsii-calc.ExportedBaseClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"success\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: "jsii-calc.ExportedBaseClass", parametersJson: "[{\\"name\\":\\"success\\",\\"type\\":{\\"primitive\\":\\"boolean\\"}}]")] public class ExportedBaseClass : DeputyBase { /// @@ -25373,14 +25279,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExportedBaseClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExportedBaseClass(DeputyProps props): base(props) { @@ -25389,20 +25295,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Success { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25413,13 +25317,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ExtendsInternalInterface\\")] + [JsiiByValue(fqn: "jsii-calc.ExtendsInternalInterface")] public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "boom", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOverride: true)] public bool Boom { get; @@ -25429,7 +25333,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Prop { get; @@ -25437,13 +25341,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25452,7 +25354,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: \\"jsii-calc.ExtendsInternalInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface { private ExtendsInternalInterfaceProxy(ByRefValue reference): base(reference) @@ -25462,7 +25364,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "boom", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Boom { get => GetInstanceProperty(); @@ -25471,20 +25373,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Prop { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25495,7 +25395,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExternalClass), fullyQualifiedName: \\"jsii-calc.ExternalClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExternalClass), fullyQualifiedName: "jsii-calc.ExternalClass", parametersJson: "[{\\"name\\":\\"readonlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"mutableNumber\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public class ExternalClass : DeputyBase { /// @@ -25508,14 +25408,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExternalClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ExternalClass(DeputyProps props): base(props) { @@ -25526,7 +25426,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public virtual void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -25537,7 +25437,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { get => GetInstanceProperty(); @@ -25549,7 +25449,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// External: true /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public virtual double? MutableProperty { get => GetInstanceProperty(); @@ -25557,13 +25457,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25575,7 +25473,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiEnum(nativeType: typeof(ExternalEnum), fullyQualifiedName: \\"jsii-calc.ExternalEnum\\")] + [JsiiEnum(nativeType: typeof(ExternalEnum), fullyQualifiedName: "jsii-calc.ExternalEnum")] public enum ExternalEnum { /// @@ -25583,24 +25481,22 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiEnumMember(name: \\"OPTION_A\\")] + [JsiiEnumMember(name: "OPTION_A")] OPTION_A, /// /// Stability: Experimental /// /// External: true /// - [JsiiEnumMember(name: \\"OPTION_B\\")] + [JsiiEnumMember(name: "OPTION_B")] OPTION_B } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25613,7 +25509,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiByValue(fqn: \\"jsii-calc.ExternalStruct\\")] + [JsiiByValue(fqn: "jsii-calc.ExternalStruct")] public class ExternalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct { /// @@ -25621,7 +25517,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string ReadonlyProperty { get; @@ -25629,13 +25525,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExternalStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25646,7 +25540,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiTypeProxy(nativeType: typeof(IExternalStruct), fullyQualifiedName: \\"jsii-calc.ExternalStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IExternalStruct), fullyQualifiedName: "jsii-calc.ExternalStruct")] internal sealed class ExternalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalStruct { private ExternalStructProxy(ByRefValue reference): base(reference) @@ -25658,20 +25552,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25680,7 +25572,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: \\"jsii-calc.GiveMeStructs\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: "jsii-calc.GiveMeStructs")] public class GiveMeStructs : DeputyBase { /// @@ -25691,14 +25583,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected GiveMeStructs(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected GiveMeStructs(DeputyProps props): base(props) { @@ -25708,7 +25600,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"derivedToFirst\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"derived\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DerivedStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "derivedToFirst", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}", parametersJson: "[{\\"name\\":\\"derived\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.DerivedStruct\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); @@ -25718,17 +25610,17 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"readDerivedNonPrimitive\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"derived\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DerivedStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}}", parametersJson: "[{\\"name\\":\\"derived\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.DerivedStruct\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); } - /// Returns the \\"anumber\\" from a MyFirstStruct struct; + /// Returns the "anumber" from a MyFirstStruct struct; /// /// Stability: Experimental /// - [JsiiMethod(name: \\"readFirstNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"first\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.MyFirstStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "readFirstNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"first\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}]")] public virtual double ReadFirstNumber(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct first) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object[]{first}); @@ -25737,20 +25629,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"structLiteral\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\\\\\"}\\")] + [JsiiProperty(name: "structLiteral", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals StructLiteral { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25760,7 +25650,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.Greetee\\")] + [JsiiByValue(fqn: "jsii-calc.Greetee")] public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.IGreetee { /// The name of the greetee. @@ -25770,7 +25660,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "name", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Name { get; @@ -25778,13 +25668,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25794,7 +25682,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: \\"jsii-calc.Greetee\\")] + [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IGreetee { private GreeteeProxy(ByRefValue reference): base(reference) @@ -25808,20 +25696,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "name", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Name { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25830,7 +25716,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: \\"jsii-calc.GreetingAugmenter\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: "jsii-calc.GreetingAugmenter")] public class GreetingAugmenter : DeputyBase { /// @@ -25841,14 +25727,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected GreetingAugmenter(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected GreetingAugmenter(DeputyProps props): base(props) { @@ -25857,20 +25743,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"betterGreeting\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"friendly\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}]\\")] + [JsiiMethod(name: "betterGreeting", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"friendly\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}]")] public virtual string BetterGreeting(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25880,28 +25764,26 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.IAnonymousImplementationProvider\\")] + [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] public interface IAnonymousImplementationProvider { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\")] + [JsiiMethod(name: "provideAsClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Implementation\\"}}")] Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass(); /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\")] + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnonymouslyImplementMe\\"}}")] Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25911,7 +25793,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: \\"jsii-calc.IAnonymousImplementationProvider\\")] + [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider { private IAnonymousImplementationProviderProxy(ByRefValue reference): base(reference) @@ -25921,7 +25803,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsClass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Implementation\\\\\\"}}\\")] + [JsiiMethod(name: "provideAsClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Implementation\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -25930,20 +25812,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provideAsInterface\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IAnonymouslyImplementMe\\\\\\"}}\\")] + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnonymouslyImplementMe\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25952,13 +25832,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: \\"jsii-calc.IAnonymouslyImplementMe\\")] + [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] public interface IAnonymouslyImplementMe { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] double Value { get; @@ -25966,17 +25846,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"verb\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "verb", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] string Verb(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -25985,7 +25863,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: \\"jsii-calc.IAnonymouslyImplementMe\\")] + [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe { private IAnonymouslyImplementMeProxy(ByRefValue reference): base(reference) @@ -25995,7 +25873,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Value { get => GetInstanceProperty(); @@ -26004,20 +25882,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"verb\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "verb", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Verb() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26026,13 +25902,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: \\"jsii-calc.IAnotherPublicInterface\\")] + [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] public interface IAnotherPublicInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] string A { get; @@ -26040,13 +25916,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26055,7 +25929,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: \\"jsii-calc.IAnotherPublicInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface { private IAnotherPublicInterfaceProxy(ByRefValue reference): base(reference) @@ -26065,7 +25939,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public string A { get => GetInstanceProperty(); @@ -26073,13 +25947,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26088,23 +25960,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: \\"jsii-calc.IBell\\")] + [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] public interface IBell { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ring\\")] + [JsiiMethod(name: "ring")] void Ring(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26113,7 +25983,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: \\"jsii-calc.IBell\\")] + [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell { private IBellProxy(ByRefValue reference): base(reference) @@ -26123,20 +25993,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ring\\")] + [JsiiMethod(name: "ring")] public void Ring() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26146,23 +26014,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: \\"jsii-calc.IBellRinger\\")] + [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] public interface IBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"}}]\\")] + [JsiiMethod(name: "yourTurn", parametersJson: "[{\\"name\\":\\"bell\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBell\\"}}]")] void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26172,7 +26038,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: \\"jsii-calc.IBellRinger\\")] + [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBellRinger { private IBellRingerProxy(ByRefValue reference): base(reference) @@ -26182,20 +26048,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"}}]\\")] + [JsiiMethod(name: "yourTurn", parametersJson: "[{\\"name\\":\\"bell\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBell\\"}}]")] public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell) { InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBell)}, new object[]{bell}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ICalculatorProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26205,7 +26069,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ICalculatorProps), fullyQualifiedName: \\"jsii-calc.CalculatorProps\\")] + [JsiiInterface(nativeType: typeof(ICalculatorProps), fullyQualifiedName: "jsii-calc.CalculatorProps")] public interface ICalculatorProps { /// The initial value of the calculator. @@ -26216,7 +26080,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"initialValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "initialValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? InitialValue { @@ -26232,7 +26096,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"maximumValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "maximumValue", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? MaximumValue { @@ -26243,13 +26107,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26258,26 +26120,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: \\"jsii-calc.ChildStruct982\\")] + [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] double Bar { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26287,23 +26147,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: \\"jsii-calc.IConcreteBellRinger\\")] + [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] public interface IConcreteBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}}]\\")] + [JsiiMethod(name: "yourTurn", parametersJson: "[{\\"name\\":\\"bell\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.Bell\\"}}]")] void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26313,7 +26171,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: \\"jsii-calc.IConcreteBellRinger\\")] + [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger { private IConcreteBellRingerProxy(ByRefValue reference): base(reference) @@ -26323,20 +26181,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"yourTurn\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"bell\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Bell\\\\\\"}}]\\")] + [JsiiMethod(name: "yourTurn", parametersJson: "[{\\"name\\":\\"bell\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.Bell\\"}}]")] public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell) { InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell)}, new object[]{bell}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26345,13 +26201,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: \\"jsii-calc.ConfusingToJacksonStruct\\")] + [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] public interface IConfusingToJacksonStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"unionProperty\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AbstractClass\\\\\\"}]}},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}]}}\\", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"},{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}]}},\\"kind\\":\\"array\\"}}]}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? UnionProperty { @@ -26362,13 +26218,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26377,15 +26231,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: \\"jsii-calc.IDeprecatedInterface\\")] - [System.Obsolete(\\"useless interface\\")] + [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] + [System.Obsolete("useless interface")] public interface IDeprecatedInterface { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] - [System.Obsolete(\\"could be better\\")] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] + [System.Obsolete("could be better")] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? MutableProperty { @@ -26395,24 +26249,22 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } set { - throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); } } /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"method\\")] - [System.Obsolete(\\"services no purpose\\")] + [JsiiMethod(name: "method")] + [System.Obsolete("services no purpose")] void Method(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26421,8 +26273,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: \\"jsii-calc.IDeprecatedInterface\\")] - [System.Obsolete(\\"useless interface\\")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] + [System.Obsolete("useless interface")] internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedInterface { private IDeprecatedInterfaceProxy(ByRefValue reference): base(reference) @@ -26433,8 +26285,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Deprecated /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] - [System.Obsolete(\\"could be better\\")] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] + [System.Obsolete("could be better")] public double? MutableProperty { get => GetInstanceProperty(); @@ -26444,21 +26296,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"method\\")] - [System.Obsolete(\\"services no purpose\\")] + [JsiiMethod(name: "method")] + [System.Obsolete("services no purpose")] public void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26467,28 +26317,26 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: \\"jsii-calc.DeprecatedStruct\\")] - [System.Obsolete(\\"it just wraps a string\\")] + [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] + [System.Obsolete("it just wraps a string")] public interface IDeprecatedStruct { /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] - [System.Obsolete(\\"well, yeah\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] + [System.Obsolete("well, yeah")] string ReadonlyProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26498,13 +26346,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: \\"jsii-calc.DerivedStruct\\")] + [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] public interface IDerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anotherRequired\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "anotherRequired", typeJson: "{\\"primitive\\":\\"date\\"}")] System.DateTime AnotherRequired { get; @@ -26513,7 +26361,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool Bool { get; @@ -26523,7 +26371,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"nonPrimitive\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + [JsiiProperty(name: "nonPrimitive", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}")] Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { get; @@ -26533,7 +26381,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"anotherOptional\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "anotherOptional", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"map\\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] System.Collections.Generic.IDictionary? AnotherOptional { @@ -26546,7 +26394,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalAny\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalAny", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? OptionalAny { @@ -26559,7 +26407,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalArray\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOptional: true)] + [JsiiProperty(name: "optionalArray", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string[]? OptionalArray { @@ -26570,13 +26418,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26585,26 +26431,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] public interface IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"baseLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string BaseLevelProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26613,26 +26457,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"firstMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string FirstMidLevelProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26641,26 +26483,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondMidLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string SecondMidLevelProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26669,26 +26509,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: \\"jsii-calc.DiamondInheritanceTopLevelStruct\\")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"topLevelProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "topLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string TopLevelProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26697,13 +26535,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: \\"jsii-calc.EraseUndefinedHashValuesOptions\\")] + [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] public interface IEraseUndefinedHashValuesOptions { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"option1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "option1", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Option1 { @@ -26716,7 +26554,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"option2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "option2", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Option2 { @@ -26727,13 +26565,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26742,13 +26578,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: \\"jsii-calc.IExperimentalInterface\\")] + [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] public interface IExperimentalInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? MutableProperty { @@ -26758,23 +26594,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } set { - throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); } } /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] void Method(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26783,7 +26617,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: \\"jsii-calc.IExperimentalInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalInterface { private IExperimentalInterfaceProxy(ByRefValue reference): base(reference) @@ -26794,7 +26628,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? MutableProperty { get => GetInstanceProperty(); @@ -26804,20 +26638,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26826,26 +26658,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: \\"jsii-calc.ExperimentalStruct\\")] + [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] public interface IExperimentalStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string ReadonlyProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26854,13 +26684,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: \\"jsii-calc.ExtendsInternalInterface\\")] + [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] public interface IExtendsInternalInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"boom\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "boom", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool Boom { get; @@ -26869,20 +26699,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] string Prop { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26891,13 +26719,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: \\"jsii-calc.IExtendsPrivateInterface\\")] + [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] public interface IExtendsPrivateInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"moreThings\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "moreThings", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] string[] MoreThings { get; @@ -26906,7 +26734,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "private", typeJson: "{\\"primitive\\":\\"string\\"}")] string Private { get; @@ -26914,13 +26742,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26929,7 +26755,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: \\"jsii-calc.IExtendsPrivateInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsPrivateInterface { private IExtendsPrivateInterfaceProxy(ByRefValue reference): base(reference) @@ -26939,7 +26765,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"moreThings\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "moreThings", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public string[] MoreThings { get => GetInstanceProperty(); @@ -26948,7 +26774,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "private", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Private { get => GetInstanceProperty(); @@ -26956,13 +26782,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -26973,7 +26797,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiInterface(nativeType: typeof(IExternalInterface), fullyQualifiedName: \\"jsii-calc.IExternalInterface\\")] + [JsiiInterface(nativeType: typeof(IExternalInterface), fullyQualifiedName: "jsii-calc.IExternalInterface")] public interface IExternalInterface { /// @@ -26981,7 +26805,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? MutableProperty { @@ -26991,7 +26815,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } set { - throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); } } /// @@ -26999,17 +26823,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] void Method(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27020,7 +26842,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiTypeProxy(nativeType: typeof(IExternalInterface), fullyQualifiedName: \\"jsii-calc.IExternalInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IExternalInterface), fullyQualifiedName: "jsii-calc.IExternalInterface")] internal sealed class IExternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExternalInterface { private IExternalInterfaceProxy(ByRefValue reference): base(reference) @@ -27033,7 +26855,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// External: true /// [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? MutableProperty { get => GetInstanceProperty(); @@ -27045,20 +26867,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExternalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27069,7 +26889,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiInterface(nativeType: typeof(IExternalStruct), fullyQualifiedName: \\"jsii-calc.ExternalStruct\\")] + [JsiiInterface(nativeType: typeof(IExternalStruct), fullyQualifiedName: "jsii-calc.ExternalStruct")] public interface IExternalStruct { /// @@ -27077,20 +26897,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// External: true /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string ReadonlyProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlier.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27100,31 +26918,29 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IFriendlier), fullyQualifiedName: \\"jsii-calc.IFriendlier\\")] + [JsiiInterface(nativeType: typeof(IFriendlier), fullyQualifiedName: "jsii-calc.IFriendlier")] public interface IFriendlier : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly { /// Say farewell. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] string Farewell(); /// Say goodbye. /// A goodbye blessing. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] string Goodbye(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlierProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27134,7 +26950,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IFriendlier), fullyQualifiedName: \\"jsii-calc.IFriendlier\\")] + [JsiiTypeProxy(nativeType: typeof(IFriendlier), fullyQualifiedName: "jsii-calc.IFriendlier")] internal sealed class IFriendlierProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier { private IFriendlierProxy(ByRefValue reference): base(reference) @@ -27145,7 +26961,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Farewell() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -27156,7 +26972,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Goodbye() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -27166,7 +26982,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] [System.Obsolete()] public string Hello() { @@ -27174,13 +26990,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGenerator.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27189,18 +27003,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: \\"jsii-calc.IFriendlyRandomGenerator\\")] + [JsiiInterface(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: "jsii-calc.IFriendlyRandomGenerator")] public interface IFriendlyRandomGenerator : Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly { } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IFriendlyRandomGeneratorProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27209,7 +27021,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: \\"jsii-calc.IFriendlyRandomGenerator\\")] + [JsiiTypeProxy(nativeType: typeof(IFriendlyRandomGenerator), fullyQualifiedName: "jsii-calc.IFriendlyRandomGenerator")] internal sealed class IFriendlyRandomGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator { private IFriendlyRandomGeneratorProxy(ByRefValue reference): base(reference) @@ -27221,7 +27033,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public double Next() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -27231,7 +27043,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] [System.Obsolete()] public string Hello() { @@ -27239,13 +27051,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27255,7 +27065,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: \\"jsii-calc.Greetee\\")] + [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] public interface IGreetee { /// The name of the greetee. @@ -27264,7 +27074,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"name\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "name", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Name { @@ -27275,13 +27085,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27290,26 +27098,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: \\"jsii-calc.ImplictBaseOfBase\\")] + [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] public interface IImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "goo", typeJson: "{\\"primitive\\":\\"date\\"}")] System.DateTime Goo { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27319,26 +27125,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: \\"jsii-calc.IInterfaceImplementedByAbstractClass\\")] + [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] public interface IInterfaceImplementedByAbstractClass { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "propFromInterface", typeJson: "{\\"primitive\\":\\"string\\"}")] string PropFromInterface { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27348,7 +27152,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: \\"jsii-calc.IInterfaceImplementedByAbstractClass\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass { private IInterfaceImplementedByAbstractClassProxy(ByRefValue reference): base(reference) @@ -27358,20 +27162,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"propFromInterface\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "propFromInterface", typeJson: "{\\"primitive\\":\\"string\\"}")] public string PropFromInterface { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27381,26 +27183,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\")] + [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"otherValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "otherValue", typeJson: "{\\"primitive\\":\\"string\\"}")] string OtherValue { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27410,7 +27210,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceThatShouldNotBeADataType { private IInterfaceThatShouldNotBeADataTypeProxy(ByRefValue reference): base(reference) @@ -27420,7 +27220,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"otherValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "otherValue", typeJson: "{\\"primitive\\":\\"string\\"}")] public string OtherValue { get => GetInstanceProperty(); @@ -27429,7 +27229,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { get => GetInstanceProperty(); @@ -27438,20 +27238,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"doThings\\")] + [JsiiMethod(name: "doThings")] public void DoThings() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27460,23 +27258,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.IInterfaceWithInternal\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] public interface IInterfaceWithInternal { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"visible\\")] + [JsiiMethod(name: "visible")] void Visible(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27485,7 +27281,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.IInterfaceWithInternal\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal { private IInterfaceWithInternalProxy(ByRefValue reference): base(reference) @@ -27495,20 +27291,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"visible\\")] + [JsiiMethod(name: "visible")] public void Visible() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27517,13 +27311,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: \\"jsii-calc.IInterfaceWithMethods\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] public interface IInterfaceWithMethods { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] string Value { get; @@ -27531,17 +27325,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"doThings\\")] + [JsiiMethod(name: "doThings")] void DoThings(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27550,7 +27342,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: \\"jsii-calc.IInterfaceWithMethods\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods { private IInterfaceWithMethodsProxy(ByRefValue reference): base(reference) @@ -27560,7 +27352,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { get => GetInstanceProperty(); @@ -27569,20 +27361,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"doThings\\")] + [JsiiMethod(name: "doThings")] public void DoThings() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27592,23 +27382,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] public interface IInterfaceWithOptionalMethodArguments { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "hello", parametersJson: "[{\\"name\\":\\"arg1\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg2\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] void Hello(string arg1, double? arg2 = null); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27618,7 +27406,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments { private IInterfaceWithOptionalMethodArgumentsProxy(ByRefValue reference): base(reference) @@ -27628,20 +27416,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "hello", parametersJson: "[{\\"name\\":\\"arg1\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg2\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public void Hello(string arg1, double? arg2 = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string), typeof(double)}, new object?[]{arg1, arg2}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27650,13 +27436,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.IInterfaceWithProperties\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] public interface IInterfaceWithProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] string ReadOnlyString { get; @@ -27665,7 +27451,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] string ReadWriteString { get; @@ -27673,13 +27459,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27688,13 +27472,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: \\"jsii-calc.IInterfaceWithPropertiesExtension\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] double Foo { get; @@ -27702,13 +27486,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27717,7 +27499,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: \\"jsii-calc.IInterfaceWithPropertiesExtension\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension { private IInterfaceWithPropertiesExtensionProxy(ByRefValue reference): base(reference) @@ -27727,7 +27509,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { get => GetInstanceProperty(); @@ -27737,7 +27519,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadOnlyString { get => GetInstanceProperty(); @@ -27746,7 +27528,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadWriteString { get => GetInstanceProperty(); @@ -27754,13 +27536,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27769,7 +27549,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.IInterfaceWithProperties\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { private IInterfaceWithPropertiesProxy(ByRefValue reference): base(reference) @@ -27779,7 +27559,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readOnlyString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadOnlyString { get => GetInstanceProperty(); @@ -27788,7 +27568,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readWriteString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadWriteString { get => GetInstanceProperty(); @@ -27796,13 +27576,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27811,13 +27589,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: \\"jsii-calc.IJSII417Derived\\")] + [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] string Property { get; @@ -27825,22 +27603,20 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] void Bar(); /// /// Stability: Experimental /// - [JsiiMethod(name: \\"baz\\")] + [JsiiMethod(name: "baz")] void Baz(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27849,7 +27625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: \\"jsii-calc.IJSII417Derived\\")] + [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417Derived { private IJSII417DerivedProxy(ByRefValue reference): base(reference) @@ -27859,7 +27635,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { get => GetInstanceProperty(); @@ -27868,7 +27644,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool HasRoot { get => GetInstanceProperty(); @@ -27877,7 +27653,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] public void Bar() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -27886,7 +27662,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"baz\\")] + [JsiiMethod(name: "baz")] public void Baz() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -27895,20 +27671,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27917,13 +27691,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.IJSII417PublicBaseOfBase\\")] + [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] public interface IJSII417PublicBaseOfBase { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool HasRoot { get; @@ -27931,17 +27705,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] void Foo(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27950,7 +27722,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.IJSII417PublicBaseOfBase\\")] + [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase { private IJSII417PublicBaseOfBaseProxy(ByRefValue reference): base(reference) @@ -27960,7 +27732,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool HasRoot { get => GetInstanceProperty(); @@ -27969,20 +27741,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -27991,18 +27761,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: \\"jsii-calc.IJsii487External\\")] + [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] public interface IJsii487External { } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28011,18 +27779,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: \\"jsii-calc.IJsii487External2\\")] + [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] public interface IJsii487External2 { } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28031,7 +27797,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: \\"jsii-calc.IJsii487External2\\")] + [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2 { private IJsii487External2Proxy(ByRefValue reference): base(reference) @@ -28039,13 +27805,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28054,7 +27818,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: \\"jsii-calc.IJsii487External\\")] + [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External { private IJsii487ExternalProxy(ByRefValue reference): base(reference) @@ -28062,13 +27826,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28077,18 +27839,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: \\"jsii-calc.IJsii496\\")] + [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] public interface IJsii496 { } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28097,7 +27857,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: \\"jsii-calc.IJsii496\\")] + [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 { private IJsii496Proxy(ByRefValue reference): base(reference) @@ -28105,13 +27865,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28121,7 +27879,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] public interface ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. @@ -28132,7 +27890,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "containerPort", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? ContainerPort { @@ -28157,7 +27915,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "cpu", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Cpu { @@ -28188,7 +27946,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "memoryMiB", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? MemoryMiB { @@ -28204,7 +27962,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] bool? PublicLoadBalancer { @@ -28220,7 +27978,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "publicTasks", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] bool? PublicTasks { @@ -28231,13 +27989,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28246,13 +28002,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: \\"jsii-calc.IMutableObjectLiteral\\")] + [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] public interface IMutableObjectLiteral { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] string Value { get; @@ -28260,13 +28016,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28275,7 +28029,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: \\"jsii-calc.IMutableObjectLiteral\\")] + [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral { private IMutableObjectLiteralProxy(ByRefValue reference): base(reference) @@ -28285,7 +28039,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { get => GetInstanceProperty(); @@ -28293,13 +28047,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28308,27 +28060,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: \\"jsii-calc.NestedStruct\\")] + [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] public interface INestedStruct { /// When provided, must be > 0. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "numberProp", typeJson: "{\\"primitive\\":\\"number\\"}")] double NumberProp { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28337,13 +28087,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: \\"jsii-calc.INonInternalInterface\\")] + [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] string B { get; @@ -28353,7 +28103,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] string C { get; @@ -28361,13 +28111,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28376,7 +28124,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: \\"jsii-calc.INonInternalInterface\\")] + [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { private INonInternalInterfaceProxy(ByRefValue reference): base(reference) @@ -28386,7 +28134,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"b\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public string B { get => GetInstanceProperty(); @@ -28396,7 +28144,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"c\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public string C { get => GetInstanceProperty(); @@ -28406,7 +28154,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public string A { get => GetInstanceProperty(); @@ -28414,13 +28162,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28429,13 +28175,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] public interface INullShouldBeTreatedAsUndefinedData { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument { get; @@ -28444,7 +28190,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? ThisShouldBeUndefined { @@ -28455,13 +28201,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28471,13 +28215,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: \\"jsii-calc.IObjectWithProperty\\")] + [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] public interface IObjectWithProperty { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] string Property { get; @@ -28486,17 +28230,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"wasSet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + [JsiiMethod(name: "wasSet", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] bool WasSet(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28506,7 +28248,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: \\"jsii-calc.IObjectWithProperty\\")] + [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty { private IObjectWithPropertyProxy(ByRefValue reference): base(reference) @@ -28516,7 +28258,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { get => GetInstanceProperty(); @@ -28526,20 +28268,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"wasSet\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + [JsiiMethod(name: "wasSet", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public bool WasSet() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28549,23 +28289,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: \\"jsii-calc.IOptionalMethod\\")] + [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] public interface IOptionalMethod { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"optional\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "optional", returnsJson: "{\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}")] string? Optional(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28575,7 +28313,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: \\"jsii-calc.IOptionalMethod\\")] + [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalMethod { private IOptionalMethodProxy(ByRefValue reference): base(reference) @@ -28585,20 +28323,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"optional\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "optional", returnsJson: "{\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string? Optional() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28607,13 +28343,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: \\"jsii-calc.OptionalStruct\\")] + [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] public interface IOptionalStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "field", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Field { @@ -28624,13 +28360,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28640,26 +28374,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: \\"jsii-calc.ParentStruct982\\")] + [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] public interface IParentStruct982 { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}")] string Foo { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28668,26 +28400,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: \\"jsii-calc.IPrivatelyImplemented\\")] + [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] public interface IPrivatelyImplemented { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool Success { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28696,7 +28426,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: \\"jsii-calc.IPrivatelyImplemented\\")] + [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented { private IPrivatelyImplementedProxy(ByRefValue reference): base(reference) @@ -28706,20 +28436,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Success { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28728,23 +28456,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: \\"jsii-calc.IPublicInterface\\")] + [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] public interface IPublicInterface { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"bye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "bye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] string Bye(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28753,23 +28479,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: \\"jsii-calc.IPublicInterface2\\")] + [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] public interface IPublicInterface2 { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "ciao", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] string Ciao(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28778,7 +28502,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: \\"jsii-calc.IPublicInterface2\\")] + [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 { private IPublicInterface2Proxy(ByRefValue reference): base(reference) @@ -28788,20 +28512,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "ciao", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Ciao() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28810,7 +28532,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: \\"jsii-calc.IPublicInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface { private IPublicInterfaceProxy(ByRefValue reference): base(reference) @@ -28820,20 +28542,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"bye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "bye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Bye() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGenerator.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28843,7 +28563,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: \\"jsii-calc.IRandomNumberGenerator\\")] + [JsiiInterface(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: "jsii-calc.IRandomNumberGenerator")] public interface IRandomNumberGenerator { /// Returns another random number. @@ -28851,17 +28571,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] double Next(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRandomNumberGeneratorProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28871,7 +28589,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: \\"jsii-calc.IRandomNumberGenerator\\")] + [JsiiTypeProxy(nativeType: typeof(IRandomNumberGenerator), fullyQualifiedName: "jsii-calc.IRandomNumberGenerator")] internal sealed class IRandomNumberGeneratorProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator { private IRandomNumberGeneratorProxy(ByRefValue reference): base(reference) @@ -28883,20 +28601,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public double Next() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28906,26 +28622,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: \\"jsii-calc.IReturnJsii976\\")] + [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] public interface IReturnJsii976 { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] double Foo { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28935,7 +28649,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: \\"jsii-calc.IReturnJsii976\\")] + [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 { private IReturnJsii976Proxy(ByRefValue reference): base(reference) @@ -28945,20 +28659,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -28967,13 +28679,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: \\"jsii-calc.IReturnsNumber\\")] + [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] public interface IReturnsNumber { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}\\")] + [JsiiProperty(name: "numberProp", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}")] Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp { get; @@ -28981,17 +28693,15 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"obtainNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"}}\\")] + [JsiiMethod(name: "obtainNumber", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IDoublable\\"}}")] Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29000,7 +28710,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: \\"jsii-calc.IReturnsNumber\\")] + [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber { private IReturnsNumberProxy(ByRefValue reference): base(reference) @@ -29010,7 +28720,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Number\\\\\\"}\\")] + [JsiiProperty(name: "numberProp", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp { get => GetInstanceProperty(); @@ -29019,20 +28729,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"obtainNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"}}\\")] + [JsiiMethod(name: "obtainNumber", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IDoublable\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29040,19 +28748,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// - /// This is cheating with the (current) declared types, but this is the \\"more - /// idiomatic\\" way for Pythonists. + /// This is cheating with the (current) declared types, but this is the "more + /// idiomatic" way for Pythonists. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: \\"jsii-calc.RootStruct\\")] + [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] public interface IRootStruct { /// May not be empty. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "stringProp", typeJson: "{\\"primitive\\":\\"string\\"}")] string StringProp { get; @@ -29061,7 +28769,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "nestedStruct", typeJson: "{\\"fqn\\":\\"jsii-calc.NestedStruct\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { @@ -29072,13 +28780,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29087,14 +28793,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: \\"jsii-calc.SecondLevelStruct\\")] + [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] public interface ISecondLevelStruct { /// It's long and required. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\\"primitive\\":\\"string\\"}")] string DeeperRequiredProp { get; @@ -29104,7 +28810,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? DeeperOptionalProp { @@ -29115,13 +28821,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISmellyStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29130,13 +28834,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISmellyStruct), fullyQualifiedName: \\"jsii-calc.SmellyStruct\\")] + [JsiiInterface(nativeType: typeof(ISmellyStruct), fullyQualifiedName: "jsii-calc.SmellyStruct")] public interface ISmellyStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] string Property { get; @@ -29145,29 +28849,27 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool YetAnoterOne { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: \\"jsii-calc.IStableInterface\\")] + [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] public interface IStableInterface { - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? MutableProperty { @@ -29177,26 +28879,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } set { - throw new System.NotSupportedException(\\"'set' for 'MutableProperty' is not implemented\\"); + throw new System.NotSupportedException("'set' for 'MutableProperty' is not implemented"); } } - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] void Method(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: \\"jsii-calc.IStableInterface\\")] + [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableInterface { private IStableInterfaceProxy(ByRefValue reference): base(reference) @@ -29204,49 +28904,45 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? MutableProperty { get => GetInstanceProperty(); set => SetInstanceProperty(value); } - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: \\"jsii-calc.StableStruct\\")] + [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] public interface IStableStruct { - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] string ReadonlyProperty { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29256,13 +28952,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: \\"jsii-calc.StructA\\")] + [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] public interface IStructA { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] string RequiredString { get; @@ -29271,7 +28967,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalNumber", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] double? OptionalNumber { @@ -29284,7 +28980,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalString", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? OptionalString { @@ -29295,13 +28991,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29311,13 +29005,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: \\"jsii-calc.StructB\\")] + [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] public interface IStructB { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] string RequiredString { get; @@ -29326,7 +29020,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalBoolean", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] bool? OptionalBoolean { @@ -29339,7 +29033,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalStructA", typeJson: "{\\"fqn\\":\\"jsii-calc.StructA\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { @@ -29350,13 +29044,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29368,13 +29060,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: \\"jsii-calc.StructParameterType\\")] + [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] public interface IStructParameterType { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "scope", typeJson: "{\\"primitive\\":\\"string\\"}")] string Scope { get; @@ -29383,7 +29075,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "props", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] bool? Props { @@ -29394,49 +29086,45 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// Verifies that a \\"pure\\" implementation of an interface works correctly. + /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: \\"jsii-calc.IStructReturningDelegate\\")] + [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] public interface IStructReturningDelegate { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"returnStruct\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + [JsiiMethod(name: "returnStruct", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StructB\\"}}")] Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct(); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// Verifies that a \\"pure\\" implementation of an interface works correctly. + /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: \\"jsii-calc.IStructReturningDelegate\\")] + [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate { private IStructReturningDelegateProxy(ByRefValue reference): base(reference) @@ -29446,20 +29134,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"returnStruct\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}}\\")] + [JsiiMethod(name: "returnStruct", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StructB\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29468,13 +29154,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.StructWithJavaReservedWords\\")] + [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] public interface IStructWithJavaReservedWords { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "default", typeJson: "{\\"primitive\\":\\"string\\"}")] string Default { get; @@ -29483,7 +29169,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "assert", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Assert { @@ -29496,7 +29182,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "result", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Result { @@ -29509,7 +29195,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "that", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? That { @@ -29520,13 +29206,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29535,14 +29219,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] public interface ISupportsNiceJavaBuilderProps { /// Some number, like 42. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] double Bar { get; @@ -29554,7 +29238,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Id { @@ -29565,13 +29249,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29580,14 +29262,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: \\"jsii-calc.TopLevelStruct\\")] + [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] public interface ITopLevelStruct { /// This is a required field. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "required", typeJson: "{\\"primitive\\":\\"string\\"}")] string Required { get; @@ -29597,7 +29279,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\")] + [JsiiProperty(name: "secondLevel", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.SecondLevelStruct\\"}]}}")] object SecondLevel { get; @@ -29607,7 +29289,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Optional { @@ -29618,13 +29300,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29633,13 +29313,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: \\"jsii-calc.UnionProperties\\")] + [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] public interface IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.AllTypes\\"}]}}")] object Bar { get; @@ -29648,7 +29328,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"}]}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? Foo { @@ -29659,13 +29339,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29674,7 +29352,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: \\"jsii-calc.ImplementInternalInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.ImplementInternalInterface")] public class ImplementInternalInterface : DeputyBase { /// @@ -29685,14 +29363,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementInternalInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementInternalInterface(DeputyProps props): base(props) { @@ -29701,7 +29379,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Prop { get => GetInstanceProperty(); @@ -29709,13 +29387,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29724,7 +29400,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: \\"jsii-calc.Implementation\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: "jsii-calc.Implementation")] public class Implementation : DeputyBase { /// @@ -29735,14 +29411,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Implementation(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Implementation(DeputyProps props): base(props) { @@ -29751,20 +29427,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Value { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29773,7 +29447,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: \\"jsii-calc.ImplementsInterfaceWithInternal\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternal")] public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal { /// @@ -29784,14 +29458,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsInterfaceWithInternal(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsInterfaceWithInternal(DeputyProps props): base(props) { @@ -29800,20 +29474,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"visible\\", isOverride: true)] + [JsiiMethod(name: "visible", isOverride: true)] public virtual void Visible() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29822,7 +29494,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternalSubclass")] public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal { /// @@ -29833,27 +29505,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsInterfaceWithInternalSubclass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsInterfaceWithInternalSubclass(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29862,7 +29532,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: \\"jsii-calc.ImplementsPrivateInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.ImplementsPrivateInterface")] public class ImplementsPrivateInterface : DeputyBase { /// @@ -29873,14 +29543,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsPrivateInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ImplementsPrivateInterface(DeputyProps props): base(props) { @@ -29889,7 +29559,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"private\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "private", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Private { get => GetInstanceProperty(); @@ -29897,13 +29567,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29914,27 +29582,27 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ImplictBaseOfBase\\")] + [JsiiByValue(fqn: "jsii-calc.ImplictBaseOfBase")] public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "goo", typeJson: "{\\"primitive\\":\\"date\\"}", isOverride: true)] public System.DateTime Goo { get; set; } - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Bar { get; set; } - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get; @@ -29942,13 +29610,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -29957,7 +29623,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: \\"jsii-calc.ImplictBaseOfBase\\")] + [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase { private ImplictBaseOfBaseProxy(ByRefValue reference): base(reference) @@ -29967,32 +29633,30 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\")] + [JsiiProperty(name: "goo", typeJson: "{\\"primitive\\":\\"date\\"}")] public System.DateTime Goo { get => GetInstanceProperty(); } - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Bar { get => GetInstanceProperty(); } - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base-of-base.Very\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30001,7 +29665,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: \\"jsii-calc.InbetweenClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: "jsii-calc.InbetweenClass")] public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 { /// @@ -30012,14 +29676,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InbetweenClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InbetweenClass(DeputyProps props): base(props) { @@ -30028,20 +29692,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"ciao\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "ciao", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Ciao() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30053,18 +29715,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: \\"jsii-calc.InterfaceCollections\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: "jsii-calc.InterfaceCollections")] public class InterfaceCollections : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InterfaceCollections(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InterfaceCollections(DeputyProps props): base(props) { @@ -30073,7 +29735,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"listOfInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IBell\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); @@ -30082,7 +29744,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"listOfStructs\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\")] + [JsiiMethod(name: "listOfStructs", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.StructA\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); @@ -30091,7 +29753,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"mapOfInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IBell\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IBell\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary MapOfInterfaces() { return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); @@ -30100,20 +29762,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"mapOfStructs\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}\\")] + [JsiiMethod(name: "mapOfStructs", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.StructA\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary MapOfStructs() { return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30122,7 +29782,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo")] public class Foo : DeputyBase { /// @@ -30133,14 +29793,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Foo(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Foo(DeputyProps props): base(props) { @@ -30150,7 +29810,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public virtual string? Bar { get => GetInstanceProperty(); @@ -30158,13 +29818,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30175,13 +29833,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] public double Foo { get; @@ -30189,13 +29847,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30204,7 +29860,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello { private HelloProxy(ByRefValue reference): base(reference) @@ -30214,20 +29870,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30236,26 +29890,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] public interface IHello { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] double Foo { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30266,13 +29918,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] public double Foo { get; @@ -30280,13 +29932,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30295,7 +29945,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello { private HelloProxy(ByRefValue reference): base(reference) @@ -30305,20 +29955,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30327,26 +29975,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] public interface IHello { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] double Foo { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30356,18 +30002,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: \\"jsii-calc.InterfacesMaker\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: "jsii-calc.InterfacesMaker")] public class InterfacesMaker : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InterfacesMaker(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InterfacesMaker(DeputyProps props): base(props) { @@ -30376,20 +30022,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInterfaces\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IDoublable\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "makeInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IDoublable\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Internal/DependencyResolution/Anchor.cs 1`] = ` -Object { - Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 +#pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace.Internal.DependencyResolution { @@ -30403,26 +30047,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Internal.DependencyResolution } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Isomorphism.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// Checks the \\"same instance\\" isomorphism is preserved within the constructor. + /// Checks the "same instance" isomorphism is preserved within the constructor. /// /// Create a subclass of this, and assert that this.myself() actually returns /// this from within the constructor. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: \\"jsii-calc.Isomorphism\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: "jsii-calc.Isomorphism")] public abstract class Isomorphism : DeputyBase { /// @@ -30433,14 +30075,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Isomorphism(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Isomorphism(DeputyProps props): base(props) { @@ -30449,33 +30091,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"myself\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Isomorphism\\\\\\"}}\\")] + [JsiiMethod(name: "myself", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Isomorphism\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Isomorphism Myself() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IsomorphismProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// Checks the \\"same instance\\" isomorphism is preserved within the constructor. + /// Checks the "same instance" isomorphism is preserved within the constructor. /// /// Create a subclass of this, and assert that this.myself() actually returns /// this from within the constructor. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: \\"jsii-calc.Isomorphism\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: "jsii-calc.Isomorphism")] internal sealed class IsomorphismProxy : Amazon.JSII.Tests.CalculatorNamespace.Isomorphism { private IsomorphismProxy(ByRefValue reference): base(reference) @@ -30483,13 +30123,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30498,7 +30136,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: \\"jsii-calc.JSII417Derived\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"property\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: "jsii-calc.JSII417Derived", parametersJson: "[{\\"name\\":\\"property\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase { /// @@ -30509,14 +30147,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSII417Derived(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSII417Derived(DeputyProps props): base(props) { @@ -30525,7 +30163,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"bar\\")] + [JsiiMethod(name: "bar")] public virtual void Bar() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30534,7 +30172,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"baz\\")] + [JsiiMethod(name: "baz")] public virtual void Baz() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30543,20 +30181,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string Property { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30565,7 +30201,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: \\"jsii-calc.JSII417PublicBaseOfBase\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.JSII417PublicBaseOfBase")] public class JSII417PublicBaseOfBase : DeputyBase { /// @@ -30576,14 +30212,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSII417PublicBaseOfBase(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSII417PublicBaseOfBase(DeputyProps props): base(props) { @@ -30592,7 +30228,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"makeInstance\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.JSII417PublicBaseOfBase\\\\\\"}}\\")] + [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.JSII417PublicBaseOfBase\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); @@ -30601,7 +30237,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"foo\\")] + [JsiiMethod(name: "foo")] public virtual void Foo() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30610,20 +30246,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"hasRoot\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool HasRoot { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30632,7 +30266,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralForInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.JSObjectLiteralForInterface")] public class JSObjectLiteralForInterface : DeputyBase { /// @@ -30643,14 +30277,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralForInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralForInterface(DeputyProps props): base(props) { @@ -30659,7 +30293,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeFriendly\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}\\")] + [JsiiMethod(name: "giveMeFriendly", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly GiveMeFriendly() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -30668,20 +30302,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeFriendlyGenerator\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IFriendlyRandomGenerator\\\\\\"}}\\")] + [JsiiMethod(name: "giveMeFriendlyGenerator", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IFriendlyRandomGenerator\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator GiveMeFriendlyGenerator() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30690,7 +30322,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralToNative\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNative")] public class JSObjectLiteralToNative : DeputyBase { /// @@ -30701,14 +30333,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralToNative(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralToNative(DeputyProps props): base(props) { @@ -30717,20 +30349,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"returnLiteral\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.JSObjectLiteralToNativeClass\\\\\\"}}\\")] + [JsiiMethod(name: "returnLiteral", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.JSObjectLiteralToNativeClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30739,7 +30369,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: \\"jsii-calc.JSObjectLiteralToNativeClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNativeClass")] public class JSObjectLiteralToNativeClass : DeputyBase { /// @@ -30750,14 +30380,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralToNativeClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JSObjectLiteralToNativeClass(DeputyProps props): base(props) { @@ -30766,7 +30396,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"propA\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "propA", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string PropA { get => GetInstanceProperty(); @@ -30776,7 +30406,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"propB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "propB", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double PropB { get => GetInstanceProperty(); @@ -30784,13 +30414,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -30799,7 +30427,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: \\"jsii-calc.JavaReservedWords\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: "jsii-calc.JavaReservedWords")] public class JavaReservedWords : DeputyBase { /// @@ -30810,14 +30438,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JavaReservedWords(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JavaReservedWords(DeputyProps props): base(props) { @@ -30826,7 +30454,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"abstract\\")] + [JsiiMethod(name: "abstract")] public virtual void Abstract() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30835,7 +30463,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"assert\\")] + [JsiiMethod(name: "assert")] public virtual void Assert() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30844,7 +30472,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"boolean\\")] + [JsiiMethod(name: "boolean")] public virtual void Boolean() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30853,7 +30481,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"break\\")] + [JsiiMethod(name: "break")] public virtual void Break() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30862,7 +30490,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"byte\\")] + [JsiiMethod(name: "byte")] public virtual void Byte() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30871,7 +30499,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"case\\")] + [JsiiMethod(name: "case")] public virtual void Case() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30880,7 +30508,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"catch\\")] + [JsiiMethod(name: "catch")] public virtual void Catch() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30889,7 +30517,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"char\\")] + [JsiiMethod(name: "char")] public virtual void Char() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30898,7 +30526,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"class\\")] + [JsiiMethod(name: "class")] public virtual void Class() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30907,7 +30535,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"const\\")] + [JsiiMethod(name: "const")] public virtual void Const() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30916,7 +30544,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"continue\\")] + [JsiiMethod(name: "continue")] public virtual void Continue() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30925,7 +30553,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"default\\")] + [JsiiMethod(name: "default")] public virtual void Default() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30934,7 +30562,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"do\\")] + [JsiiMethod(name: "do")] public virtual void Do() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30943,7 +30571,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"double\\")] + [JsiiMethod(name: "double")] public virtual void Double() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30952,7 +30580,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"else\\")] + [JsiiMethod(name: "else")] public virtual void Else() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30961,7 +30589,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"enum\\")] + [JsiiMethod(name: "enum")] public virtual void Enum() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30970,7 +30598,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"extends\\")] + [JsiiMethod(name: "extends")] public virtual void Extends() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30979,7 +30607,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"false\\")] + [JsiiMethod(name: "false")] public virtual void False() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30988,7 +30616,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"final\\")] + [JsiiMethod(name: "final")] public virtual void Final() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -30997,7 +30625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"finally\\")] + [JsiiMethod(name: "finally")] public virtual void Finally() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31006,7 +30634,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"float\\")] + [JsiiMethod(name: "float")] public virtual void Float() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31015,7 +30643,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"for\\")] + [JsiiMethod(name: "for")] public virtual void For() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31024,7 +30652,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"goto\\")] + [JsiiMethod(name: "goto")] public virtual void Goto() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31033,7 +30661,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"if\\")] + [JsiiMethod(name: "if")] public virtual void If() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31042,7 +30670,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"implements\\")] + [JsiiMethod(name: "implements")] public virtual void Implements() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31051,7 +30679,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"import\\")] + [JsiiMethod(name: "import")] public virtual void Import() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31060,7 +30688,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"instanceof\\")] + [JsiiMethod(name: "instanceof")] public virtual void Instanceof() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31069,7 +30697,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"int\\")] + [JsiiMethod(name: "int")] public virtual void Int() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31078,7 +30706,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"interface\\")] + [JsiiMethod(name: "interface")] public virtual void Interface() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31087,7 +30715,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"long\\")] + [JsiiMethod(name: "long")] public virtual void Long() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31096,7 +30724,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"native\\")] + [JsiiMethod(name: "native")] public virtual void Native() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31105,7 +30733,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"new\\")] + [JsiiMethod(name: "new")] public virtual void New() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31114,7 +30742,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"null\\")] + [JsiiMethod(name: "null")] public virtual void Null() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31123,7 +30751,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"package\\")] + [JsiiMethod(name: "package")] public virtual void Package() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31132,7 +30760,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"private\\")] + [JsiiMethod(name: "private")] public virtual void Private() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31141,7 +30769,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"protected\\")] + [JsiiMethod(name: "protected")] public virtual void Protected() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31150,7 +30778,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"public\\")] + [JsiiMethod(name: "public")] public virtual void Public() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31159,7 +30787,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"return\\")] + [JsiiMethod(name: "return")] public virtual void Return() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31168,7 +30796,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"short\\")] + [JsiiMethod(name: "short")] public virtual void Short() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31177,7 +30805,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"static\\")] + [JsiiMethod(name: "static")] public virtual void Static() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31186,7 +30814,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"strictfp\\")] + [JsiiMethod(name: "strictfp")] public virtual void Strictfp() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31195,7 +30823,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"super\\")] + [JsiiMethod(name: "super")] public virtual void Super() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31204,7 +30832,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"switch\\")] + [JsiiMethod(name: "switch")] public virtual void Switch() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31213,7 +30841,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"synchronized\\")] + [JsiiMethod(name: "synchronized")] public virtual void Synchronized() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31222,7 +30850,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"this\\")] + [JsiiMethod(name: "this")] public virtual void This() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31231,7 +30859,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"throw\\")] + [JsiiMethod(name: "throw")] public virtual void Throw() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31240,7 +30868,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"throws\\")] + [JsiiMethod(name: "throws")] public virtual void Throws() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31249,7 +30877,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"transient\\")] + [JsiiMethod(name: "transient")] public virtual void Transient() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31258,7 +30886,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"true\\")] + [JsiiMethod(name: "true")] public virtual void True() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31267,7 +30895,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"try\\")] + [JsiiMethod(name: "try")] public virtual void Try() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31276,7 +30904,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"void\\")] + [JsiiMethod(name: "void")] public virtual void Void() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31285,7 +30913,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"volatile\\")] + [JsiiMethod(name: "volatile")] public virtual void Volatile() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -31294,7 +30922,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"while\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "while", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string While { get => GetInstanceProperty(); @@ -31302,13 +30930,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31317,7 +30943,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: \\"jsii-calc.Jsii487Derived\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: "jsii-calc.Jsii487Derived")] public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External { /// @@ -31328,27 +30954,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Jsii487Derived(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Jsii487Derived(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31357,7 +30981,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: \\"jsii-calc.Jsii496Derived\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: "jsii-calc.Jsii496Derived")] public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 { /// @@ -31368,27 +30992,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Jsii496Derived(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Jsii496Derived(DeputyProps props): base(props) { } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31398,7 +31020,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: \\"jsii-calc.JsiiAgent\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: "jsii-calc.JsiiAgent")] public class JsiiAgent_ : DeputyBase { /// @@ -31409,14 +31031,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JsiiAgent_(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JsiiAgent_(DeputyProps props): base(props) { @@ -31427,20 +31049,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"jsiiAgent\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "jsiiAgent", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public static string? JsiiAgent { get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_)); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31452,18 +31072,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/aws-cdk/issues/5066 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: \\"jsii-calc.JsonFormatter\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: "jsii-calc.JsonFormatter")] public class JsonFormatter : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JsonFormatter(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected JsonFormatter(DeputyProps props): base(props) { @@ -31472,7 +31092,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyArray", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyArray() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31481,7 +31101,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyBooleanFalse\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyBooleanFalse", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyBooleanFalse() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31490,7 +31110,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyBooleanTrue\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyBooleanTrue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyBooleanTrue() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31499,7 +31119,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyDate\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyDate", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyDate() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31508,7 +31128,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyEmptyString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyEmptyString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyEmptyString() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31517,7 +31137,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyFunction\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyFunction", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyFunction() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31526,7 +31146,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyHash\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyHash", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyHash() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31535,7 +31155,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyNull\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyNull", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyNull() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31544,7 +31164,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyNumber() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31553,7 +31173,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyRef\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyRef", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyRef() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31562,7 +31182,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyString() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31571,7 +31191,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyUndefined\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyUndefined", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyUndefined() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31580,7 +31200,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"anyZero\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "anyZero", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyZero() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); @@ -31589,20 +31209,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"stringify\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "stringify", returnsJson: "{\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public static string? Stringify(object? @value = null) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31612,7 +31230,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + [JsiiByValue(fqn: "jsii-calc.LoadBalancedFargateServiceProps")] public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. @@ -31624,7 +31242,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "containerPort", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true, isOverride: true)] public double? ContainerPort { get; @@ -31647,7 +31265,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "cpu", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Cpu { get; @@ -31676,7 +31294,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "memoryMiB", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? MemoryMiB { get; @@ -31690,7 +31308,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true, isOverride: true)] public bool? PublicLoadBalancer { get; @@ -31704,7 +31322,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "publicTasks", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true, isOverride: true)] public bool? PublicTasks { get; @@ -31712,13 +31330,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31728,7 +31344,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: \\"jsii-calc.LoadBalancedFargateServiceProps\\")] + [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps { private LoadBalancedFargateServicePropsProxy(ByRefValue reference): base(reference) @@ -31744,7 +31360,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"containerPort\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "containerPort", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? ContainerPort { get => GetInstanceProperty(); @@ -31766,7 +31382,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"cpu\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "cpu", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Cpu { get => GetInstanceProperty(); @@ -31794,7 +31410,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"memoryMiB\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "memoryMiB", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? MemoryMiB { get => GetInstanceProperty(); @@ -31807,7 +31423,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"publicLoadBalancer\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "publicLoadBalancer", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] public bool? PublicLoadBalancer { get => GetInstanceProperty(); @@ -31820,20 +31436,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"publicTasks\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "publicTasks", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] public bool? PublicTasks { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/MethodNamedProperty.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -31842,7 +31456,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.MethodNamedProperty), fullyQualifiedName: \\"jsii-calc.MethodNamedProperty\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.MethodNamedProperty), fullyQualifiedName: "jsii-calc.MethodNamedProperty")] public class MethodNamedProperty : DeputyBase { /// @@ -31853,14 +31467,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected MethodNamedProperty(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected MethodNamedProperty(DeputyProps props): base(props) { @@ -31869,7 +31483,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"property\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "property", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string Property() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -31878,35 +31492,33 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"elite\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "elite", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Elite { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Multiply.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// The \\"*\\" binary operation. + /// The "*" binary operation. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Multiply), fullyQualifiedName: \\"jsii-calc.Multiply\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Left-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"lhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"Right-hand side operand.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rhs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Multiply), fullyQualifiedName: "jsii-calc.Multiply", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"Left-hand side operand.\\"},\\"name\\":\\"lhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}},{\\"docs\\":{\\"summary\\":\\"Right-hand side operand.\\"},\\"name\\":\\"rhs\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public class Multiply : Amazon.JSII.Tests.CalculatorNamespace.BinaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier, Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator { /// Creates a BinaryOperation. - /// Left-hand side operand. - /// Right-hand side operand. + /// Left-hand side operand. + /// Right-hand side operand. /// /// Stability: Experimental /// @@ -31915,14 +31527,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Multiply(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Multiply(DeputyProps props): base(props) { @@ -31932,7 +31544,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Farewell() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -31942,7 +31554,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Goodbye() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -31952,7 +31564,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"next\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isOverride: true)] public virtual double Next() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -31962,7 +31574,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -31972,20 +31584,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NamespaceDoc.cs 1`] = ` -Object { - Symbol(file): "#pragma warning disable CS0672,CS0809,CS1591 +#pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { @@ -32015,7 +31625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] @@ -32023,23 +31633,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Negate.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// The negation operation (\\"-value\\"). + /// The negation operation ("-value"). /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Negate), fullyQualifiedName: \\"jsii-calc.Negate\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"operand\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Negate), fullyQualifiedName: "jsii-calc.Negate", parametersJson: "[{\\"name\\":\\"operand\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public class Negate : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier { /// @@ -32050,14 +31658,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Negate(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Negate(DeputyProps props): base(props) { @@ -32067,7 +31675,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"farewell\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Farewell() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32077,7 +31685,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"goodbye\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Goodbye() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32087,7 +31695,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32097,7 +31705,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32107,20 +31715,58 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { get => GetInstanceProperty(); } } } -", + +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedClassInstance.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NestedClassInstance), fullyQualifiedName: "jsii-calc.NestedClassInstance")] + public class NestedClassInstance : DeputyBase + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestedClassInstance(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected NestedClassInstance(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.NestingClass.NestedClass\\"}}")] + public static Amazon.JSII.Tests.CustomSubmoduleName.NestingClass.NestedClass MakeInstance() + { + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.NestedClassInstance), new System.Type[]{}, new object[]{}); + } + } } + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32131,14 +31777,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.NestedStruct\\")] + [JsiiByValue(fqn: "jsii-calc.NestedStruct")] public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.INestedStruct { /// When provided, must be > 0. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "numberProp", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] public double NumberProp { get; @@ -32146,13 +31792,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32161,7 +31805,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: \\"jsii-calc.NestedStruct\\")] + [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INestedStruct { private NestedStructProxy(ByRefValue reference): base(reference) @@ -32172,20 +31816,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"numberProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "numberProp", typeJson: "{\\"primitive\\":\\"number\\"}")] public double NumberProp { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32195,7 +31837,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: \\"jsii-calc.NodeStandardLibrary\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.NodeStandardLibrary")] public class NodeStandardLibrary : DeputyBase { /// @@ -32206,80 +31848,78 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NodeStandardLibrary(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NodeStandardLibrary(DeputyProps props): base(props) { } - /// Uses node.js \\"crypto\\" module to calculate sha256 of a string. - /// \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + /// Uses node.js "crypto" module to calculate sha256 of a string. + /// "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" /// /// Stability: Experimental /// - [JsiiMethod(name: \\"cryptoSha256\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "cryptoSha256", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string CryptoSha256() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// Reads a local resource file (resource.txt) asynchronously. - /// \\"Hello, resource!\\" + /// "Hello, resource!" /// /// Stability: Experimental /// - [JsiiMethod(name: \\"fsReadFile\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "fsReadFile", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isAsync: true)] public virtual string FsReadFile() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// Sync version of fsReadFile. - /// \\"Hello, resource! SYNC!\\" + /// "Hello, resource! SYNC!" /// /// Stability: Experimental /// - [JsiiMethod(name: \\"fsReadFileSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "fsReadFileSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string FsReadFileSync() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } - /// Returns the current os.platform() from the \\"os\\" node module. + /// Returns the current os.platform() from the "os" node module. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"osPlatform\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "osPlatform", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string OsPlatform { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + /// jsii#282, aws-cdk#157: null should be treated as "undefined". /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefined\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_param1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"optional\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefined", parametersJson: "[{\\"name\\":\\"_param1\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"optional\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public class NullShouldBeTreatedAsUndefined : DeputyBase { /// @@ -32290,14 +31930,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NullShouldBeTreatedAsUndefined(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NullShouldBeTreatedAsUndefined(DeputyProps props): base(props) { @@ -32306,7 +31946,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeUndefined\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "giveMeUndefined", parametersJson: "[{\\"name\\":\\"value\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public virtual void GiveMeUndefined(object? @value = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{@value}); @@ -32315,7 +31955,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"giveMeUndefinedInsideAnObject\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"input\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\\\\\"}}]\\")] + [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\\"name\\":\\"input\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\"}}]")] public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData input) { InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); @@ -32324,7 +31964,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"verifyPropertyIsUndefined\\")] + [JsiiMethod(name: "verifyPropertyIsUndefined")] public virtual void VerifyPropertyIsUndefined() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -32334,7 +31974,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"changeMeToUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "changeMeToUndefined", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public virtual string? ChangeMeToUndefined { get => GetInstanceProperty(); @@ -32342,13 +31982,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32359,13 +31997,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + [JsiiByValue(fqn: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\", isOverride: true)] + [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}", isOverride: true)] public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument { get; @@ -32376,7 +32014,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true, isOverride: true)] public object? ThisShouldBeUndefined { get; @@ -32384,13 +32022,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32399,7 +32035,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")] + [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData { private NullShouldBeTreatedAsUndefinedDataProxy(ByRefValue reference): base(reference) @@ -32409,7 +32045,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument { get => GetInstanceProperty(); @@ -32419,20 +32055,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"thisShouldBeUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "thisShouldBeUndefined", typeJson: "{\\"primitive\\":\\"any\\"}", isOptional: true)] public object? ThisShouldBeUndefined { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32442,7 +32076,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: \\"jsii-calc.NumberGenerator\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"generator\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: "jsii-calc.NumberGenerator", parametersJson: "[{\\"name\\":\\"generator\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}}]")] public class NumberGenerator : DeputyBase { /// @@ -32453,14 +32087,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NumberGenerator(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected NumberGenerator(DeputyProps props): base(props) { @@ -32469,7 +32103,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"isSameGenerator\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"gen\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}}]\\")] + [JsiiMethod(name: "isSameGenerator", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"gen\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}}]")] public virtual bool IsSameGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator gen) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator)}, new object[]{gen}); @@ -32478,7 +32112,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"nextTimes100\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "nextTimes100", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double NextTimes100() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32487,7 +32121,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"generator\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IRandomNumberGenerator\\\\\\"}\\")] + [JsiiProperty(name: "generator", typeJson: "{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator Generator { get => GetInstanceProperty(); @@ -32495,13 +32129,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32511,7 +32143,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: \\"jsii-calc.ObjectRefsInCollections\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.ObjectRefsInCollections")] public class ObjectRefsInCollections : DeputyBase { /// @@ -32522,14 +32154,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ObjectRefsInCollections(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ObjectRefsInCollections(DeputyProps props): base(props) { @@ -32539,7 +32171,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"sumFromArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}]\\")] + [JsiiMethod(name: "sumFromArray", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"array\\"}}}]")] public virtual double SumFromArray(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] values) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[])}, new object[]{values}); @@ -32549,20 +32181,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"sumFromMap\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + [JsiiMethod(name: "sumFromMap", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"map\\"}}}]")] public virtual double SumFromMap(System.Collections.Generic.IDictionary values) { return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{values}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32571,18 +32201,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: \\"jsii-calc.ObjectWithPropertyProvider\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.ObjectWithPropertyProvider")] public class ObjectWithPropertyProvider : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ObjectWithPropertyProvider(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ObjectWithPropertyProvider(DeputyProps props): base(props) { @@ -32591,20 +32221,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"provide\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IObjectWithProperty\\\\\\"}}\\")] + [JsiiMethod(name: "provide", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IObjectWithProperty\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32614,8 +32242,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: \\"jsii-calc.Old\\")] - [System.Obsolete(\\"Use the new class\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: "jsii-calc.Old")] + [System.Obsolete("Use the new class")] public class Old : DeputyBase { /// @@ -32626,14 +32254,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Old(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Old(DeputyProps props): base(props) { @@ -32643,7 +32271,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"doAThing\\")] + [JsiiMethod(name: "doAThing")] [System.Obsolete()] public virtual void DoAThing() { @@ -32651,13 +32279,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32666,7 +32292,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: \\"jsii-calc.OptionalArgumentInvoker\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.OptionalArgumentInvoker", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\"}}]")] public class OptionalArgumentInvoker : DeputyBase { /// @@ -32677,14 +32303,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalArgumentInvoker(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalArgumentInvoker(DeputyProps props): base(props) { @@ -32693,7 +32319,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"invokeWithOptional\\")] + [JsiiMethod(name: "invokeWithOptional")] public virtual void InvokeWithOptional() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -32702,20 +32328,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"invokeWithoutOptional\\")] + [JsiiMethod(name: "invokeWithoutOptional")] public virtual void InvokeWithoutOptional() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32724,7 +32348,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: \\"jsii-calc.OptionalConstructorArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.OptionalConstructorArgument", parametersJson: "[{\\"name\\":\\"arg1\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"arg2\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg3\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"date\\"}}]")] public class OptionalConstructorArgument : DeputyBase { /// @@ -32735,14 +32359,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalConstructorArgument(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalConstructorArgument(DeputyProps props): base(props) { @@ -32751,7 +32375,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arg1\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "arg1", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Arg1 { get => GetInstanceProperty(); @@ -32760,7 +32384,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"arg2\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "arg2", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Arg2 { get => GetInstanceProperty(); @@ -32770,20 +32394,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"arg3\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "arg3", typeJson: "{\\"primitive\\":\\"date\\"}", isOptional: true)] public virtual System.DateTime? Arg3 { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32792,14 +32414,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.OptionalStruct\\")] + [JsiiByValue(fqn: "jsii-calc.OptionalStruct")] public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "field", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Field { get; @@ -32807,13 +32429,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32822,7 +32442,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: \\"jsii-calc.OptionalStructConsumer\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"optionalStruct\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.OptionalStruct\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.OptionalStructConsumer", parametersJson: "[{\\"name\\":\\"optionalStruct\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.OptionalStruct\\"}}]")] public class OptionalStructConsumer : DeputyBase { /// @@ -32833,14 +32453,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalStructConsumer(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OptionalStructConsumer(DeputyProps props): base(props) { @@ -32849,7 +32469,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"parameterWasUndefined\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "parameterWasUndefined", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool ParameterWasUndefined { get => GetInstanceProperty(); @@ -32859,20 +32479,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"fieldValue\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "fieldValue", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public virtual string? FieldValue { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32881,7 +32499,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: \\"jsii-calc.OptionalStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct { private OptionalStructProxy(ByRefValue reference): base(reference) @@ -32892,20 +32510,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"field\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "field", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Field { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -32916,7 +32532,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/jsii/issues/903 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: \\"jsii-calc.OverridableProtectedMember\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.OverridableProtectedMember")] public class OverridableProtectedMember : DeputyBase { /// @@ -32927,14 +32543,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OverridableProtectedMember(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OverridableProtectedMember(DeputyProps props): base(props) { @@ -32943,7 +32559,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMe\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "overrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] protected virtual string OverrideMe() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32952,7 +32568,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"switchModes\\")] + [JsiiMethod(name: "switchModes")] public virtual void SwitchModes() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -32961,7 +32577,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"valueFromProtected\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "valueFromProtected", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string ValueFromProtected() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -32970,7 +32586,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"overrideReadOnly\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "overrideReadOnly", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string OverrideReadOnly { get => GetInstanceProperty(); @@ -32979,7 +32595,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"overrideReadWrite\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "overrideReadWrite", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string OverrideReadWrite { get => GetInstanceProperty(); @@ -32987,13 +32603,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33002,7 +32616,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: \\"jsii-calc.OverrideReturnsObject\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.OverrideReturnsObject")] public class OverrideReturnsObject : DeputyBase { /// @@ -33013,14 +32627,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OverrideReturnsObject(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OverrideReturnsObject(DeputyProps props): base(props) { @@ -33029,20 +32643,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"test\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IReturnsNumber\\\\\\"}}]\\")] + [JsiiMethod(name: "test", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IReturnsNumber\\"}}]")] public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33054,13 +32666,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.ParentStruct982\\")] + [JsiiByValue(fqn: "jsii-calc.ParentStruct982")] public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Foo { get; @@ -33068,13 +32680,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33084,7 +32694,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: \\"jsii-calc.ParentStruct982\\")] + [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { private ParentStruct982Proxy(ByRefValue reference): base(reference) @@ -33094,20 +32704,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33116,7 +32724,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: \\"jsii-calc.PartiallyInitializedThisConsumer\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] public abstract class PartiallyInitializedThisConsumer : DeputyBase { /// @@ -33127,14 +32735,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PartiallyInitializedThisConsumer(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PartiallyInitializedThisConsumer(DeputyProps props): base(props) { @@ -33143,18 +32751,16 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"consumePartiallyInitializedThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConstructorPassesThisOut\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"dt\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"ev\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}]\\")] + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.ConstructorPassesThisOut\\"}},{\\"name\\":\\"dt\\",\\"type\\":{\\"primitive\\":\\"date\\"}},{\\"name\\":\\"ev\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}}]")] public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33163,7 +32769,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: \\"jsii-calc.PartiallyInitializedThisConsumer\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer { private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) @@ -33173,20 +32779,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"consumePartiallyInitializedThis\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.ConstructorPassesThisOut\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"dt\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"ev\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypesEnum\\\\\\"}}]\\")] + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.ConstructorPassesThisOut\\"}},{\\"name\\":\\"dt\\",\\"type\\":{\\"primitive\\":\\"date\\"}},{\\"name\\":\\"ev\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}}]")] public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33195,7 +32799,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: \\"jsii-calc.Polymorphism\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: "jsii-calc.Polymorphism")] public class Polymorphism : DeputyBase { /// @@ -33206,14 +32810,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Polymorphism(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Polymorphism(DeputyProps props): base(props) { @@ -33222,20 +32826,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"sayHello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"friendly\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.IFriendly\\\\\\"}}]\\")] + [JsiiMethod(name: "sayHello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"friendly\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}]")] public virtual string SayHello(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33245,12 +32847,12 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Power), fullyQualifiedName: \\"jsii-calc.Power\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The base of the power.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"base\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The number of times to multiply.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"pow\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Power), fullyQualifiedName: "jsii-calc.Power", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The base of the power.\\"},\\"name\\":\\"base\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}},{\\"docs\\":{\\"summary\\":\\"The number of times to multiply.\\"},\\"name\\":\\"pow\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public class Power : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// Creates a Power operation. - /// The base of the power. - /// The number of times to multiply. + /// The base of the power. + /// The number of times to multiply. /// /// Stability: Experimental /// @@ -33259,14 +32861,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Power(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Power(DeputyProps props): base(props) { @@ -33276,7 +32878,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"base\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "base", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Base { get => GetInstanceProperty(); @@ -33288,7 +32890,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression { get => GetInstanceProperty(); @@ -33298,30 +32900,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"pow\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "pow", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Pow { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PropertyNamedProperty.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - /// Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + /// Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PropertyNamedProperty), fullyQualifiedName: \\"jsii-calc.PropertyNamedProperty\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PropertyNamedProperty), fullyQualifiedName: "jsii-calc.PropertyNamedProperty")] public class PropertyNamedProperty : DeputyBase { /// @@ -33332,14 +32932,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PropertyNamedProperty(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PropertyNamedProperty(DeputyProps props): base(props) { @@ -33348,7 +32948,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Property { get => GetInstanceProperty(); @@ -33357,20 +32957,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool YetAnoterOne { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33379,7 +32977,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: \\"jsii-calc.PublicClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: "jsii-calc.PublicClass")] public class PublicClass : DeputyBase { /// @@ -33390,14 +32988,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PublicClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PublicClass(DeputyProps props): base(props) { @@ -33406,20 +33004,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\")] + [JsiiMethod(name: "hello")] public virtual void Hello() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33428,7 +33024,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: \\"jsii-calc.PythonReservedWords\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: "jsii-calc.PythonReservedWords")] public class PythonReservedWords : DeputyBase { /// @@ -33439,14 +33035,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PythonReservedWords(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected PythonReservedWords(DeputyProps props): base(props) { @@ -33455,7 +33051,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"and\\")] + [JsiiMethod(name: "and")] public virtual void And() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33464,7 +33060,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"as\\")] + [JsiiMethod(name: "as")] public virtual void As() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33473,7 +33069,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"assert\\")] + [JsiiMethod(name: "assert")] public virtual void Assert() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33482,7 +33078,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"async\\")] + [JsiiMethod(name: "async")] public virtual void Async() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33491,7 +33087,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"await\\")] + [JsiiMethod(name: "await")] public virtual void Await() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33500,7 +33096,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"break\\")] + [JsiiMethod(name: "break")] public virtual void Break() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33509,7 +33105,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"class\\")] + [JsiiMethod(name: "class")] public virtual void Class() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33518,7 +33114,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"continue\\")] + [JsiiMethod(name: "continue")] public virtual void Continue() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33527,7 +33123,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"def\\")] + [JsiiMethod(name: "def")] public virtual void Def() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33536,7 +33132,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"del\\")] + [JsiiMethod(name: "del")] public virtual void Del() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33545,7 +33141,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"elif\\")] + [JsiiMethod(name: "elif")] public virtual void Elif() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33554,7 +33150,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"else\\")] + [JsiiMethod(name: "else")] public virtual void Else() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33563,7 +33159,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"except\\")] + [JsiiMethod(name: "except")] public virtual void Except() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33572,7 +33168,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"finally\\")] + [JsiiMethod(name: "finally")] public virtual void Finally() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33581,7 +33177,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"for\\")] + [JsiiMethod(name: "for")] public virtual void For() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33590,7 +33186,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"from\\")] + [JsiiMethod(name: "from")] public virtual void From() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33599,7 +33195,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"global\\")] + [JsiiMethod(name: "global")] public virtual void Global() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33608,7 +33204,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"if\\")] + [JsiiMethod(name: "if")] public virtual void If() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33617,7 +33213,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"import\\")] + [JsiiMethod(name: "import")] public virtual void Import() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33626,7 +33222,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"in\\")] + [JsiiMethod(name: "in")] public virtual void In() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33635,7 +33231,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"is\\")] + [JsiiMethod(name: "is")] public virtual void Is() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33644,7 +33240,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"lambda\\")] + [JsiiMethod(name: "lambda")] public virtual void Lambda() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33653,7 +33249,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"nonlocal\\")] + [JsiiMethod(name: "nonlocal")] public virtual void Nonlocal() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33662,7 +33258,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"not\\")] + [JsiiMethod(name: "not")] public virtual void Not() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33671,7 +33267,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"or\\")] + [JsiiMethod(name: "or")] public virtual void Or() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33680,7 +33276,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"pass\\")] + [JsiiMethod(name: "pass")] public virtual void Pass() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33689,7 +33285,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"raise\\")] + [JsiiMethod(name: "raise")] public virtual void Raise() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33698,7 +33294,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"return\\")] + [JsiiMethod(name: "return")] public virtual void Return() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33707,7 +33303,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"try\\")] + [JsiiMethod(name: "try")] public virtual void Try() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33716,7 +33312,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"while\\")] + [JsiiMethod(name: "while")] public virtual void While() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33725,7 +33321,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"with\\")] + [JsiiMethod(name: "with")] public virtual void With() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -33734,20 +33330,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"yield\\")] + [JsiiMethod(name: "yield")] public virtual void Yield() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelf.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33756,7 +33350,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.ClassWithSelf\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelf", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class ClassWithSelf : DeputyBase { /// @@ -33767,14 +33361,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithSelf(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithSelf(DeputyProps props): base(props) { @@ -33783,7 +33377,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual string Method(double self) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); @@ -33792,20 +33386,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Self { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/ClassWithSelfKwarg.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33814,7 +33406,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelfKwarg), fullyQualifiedName: \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PythonSelf.StructWithSelf\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelfKwarg), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelfKwarg", parametersJson: "[{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.PythonSelf.StructWithSelf\\"}}]")] public class ClassWithSelfKwarg : DeputyBase { /// @@ -33825,14 +33417,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithSelfKwarg(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ClassWithSelfKwarg(DeputyProps props): base(props) { @@ -33841,20 +33433,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.PythonSelf.StructWithSelf\\\\\\"}\\")] + [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.PythonSelf.StructWithSelf\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf Props { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelf.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33863,23 +33453,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\")] + [JsiiInterface(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.IInterfaceWithSelf")] public interface IInterfaceWithSelf { /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] string Method(double self); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IInterfaceWithSelfProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33888,7 +33476,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\")] + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.IInterfaceWithSelf")] internal sealed class IInterfaceWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IInterfaceWithSelf { private IInterfaceWithSelfProxy(ByRefValue reference): base(reference) @@ -33898,20 +33486,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"self\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public string Method(double self) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/IStructWithSelf.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33920,26 +33506,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + [JsiiInterface(nativeType: typeof(IStructWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.StructWithSelf")] public interface IStructWithSelf { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}")] string Self { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelf.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33950,13 +33534,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + [JsiiByValue(fqn: "jsii-calc.PythonSelf.StructWithSelf")] public class StructWithSelf : Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Self { get; @@ -33964,13 +33548,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonSelf/StructWithSelfProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -33979,7 +33561,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructWithSelf), fullyQualifiedName: \\"jsii-calc.PythonSelf.StructWithSelf\\")] + [JsiiTypeProxy(nativeType: typeof(IStructWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.StructWithSelf")] internal sealed class StructWithSelfProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf { private StructWithSelfProxy(ByRefValue reference): base(reference) @@ -33989,20 +33571,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf /// /// Stability: Experimental /// - [JsiiProperty(name: \\"self\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Self { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34012,7 +33592,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: \\"jsii-calc.ReferenceEnumFromScopedPackage\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.ReferenceEnumFromScopedPackage")] public class ReferenceEnumFromScopedPackage : DeputyBase { /// @@ -34023,14 +33603,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ReferenceEnumFromScopedPackage(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ReferenceEnumFromScopedPackage(DeputyProps props): base(props) { @@ -34039,7 +33619,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"loadFoo\\", returnsJson: \\"{\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}}\\")] + [JsiiMethod(name: "loadFoo", returnsJson: "{\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.EnumFromScopedModule\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? LoadFoo() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -34048,7 +33628,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"saveFoo\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}}]\\")] + [JsiiMethod(name: "saveFoo", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.EnumFromScopedModule\\"}}]")] public virtual void SaveFoo(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule)}, new object[]{@value}); @@ -34058,7 +33638,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.EnumFromScopedModule\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.EnumFromScopedModule\\"}", isOptional: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.EnumFromScopedModule? Foo { get => GetInstanceProperty(); @@ -34066,13 +33646,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34085,7 +33663,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/jsii/issues/320 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.ReturnsPrivateImplementationOfInterface")] public class ReturnsPrivateImplementationOfInterface : DeputyBase { /// @@ -34096,14 +33674,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ReturnsPrivateImplementationOfInterface(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected ReturnsPrivateImplementationOfInterface(DeputyProps props): base(props) { @@ -34112,20 +33690,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"privateImplementation\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPrivatelyImplemented\\\\\\"}\\")] + [JsiiProperty(name: "privateImplementation", typeJson: "{\\"fqn\\":\\"jsii-calc.IPrivatelyImplemented\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34135,19 +33711,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// - /// This is cheating with the (current) declared types, but this is the \\"more - /// idiomatic\\" way for Pythonists. + /// This is cheating with the (current) declared types, but this is the "more + /// idiomatic" way for Pythonists. /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.RootStruct\\")] + [JsiiByValue(fqn: "jsii-calc.RootStruct")] public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.IRootStruct { /// May not be empty. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "stringProp", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string StringProp { get; @@ -34158,7 +33734,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "nestedStruct", typeJson: "{\\"fqn\\":\\"jsii-calc.NestedStruct\\"}", isOptional: true, isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { get; @@ -34166,13 +33742,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34180,12 +33754,12 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// - /// This is cheating with the (current) declared types, but this is the \\"more - /// idiomatic\\" way for Pythonists. + /// This is cheating with the (current) declared types, but this is the "more + /// idiomatic" way for Pythonists. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: \\"jsii-calc.RootStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRootStruct { private RootStructProxy(ByRefValue reference): base(reference) @@ -34196,7 +33770,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"stringProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "stringProp", typeJson: "{\\"primitive\\":\\"string\\"}")] public string StringProp { get => GetInstanceProperty(); @@ -34206,20 +33780,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"nestedStruct\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.NestedStruct\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "nestedStruct", typeJson: "{\\"fqn\\":\\"jsii-calc.NestedStruct\\"}", isOptional: true)] public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34228,18 +33800,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: \\"jsii-calc.RootStructValidator\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: "jsii-calc.RootStructValidator")] public class RootStructValidator : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected RootStructValidator(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected RootStructValidator(DeputyProps props): base(props) { @@ -34248,20 +33820,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"validate\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.RootStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "validate", parametersJson: "[{\\"name\\":\\"struct\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.RootStruct\\"}}]")] public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct @struct) { InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct)}, new object[]{@struct}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34270,7 +33840,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: \\"jsii-calc.RuntimeTypeChecking\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.RuntimeTypeChecking")] public class RuntimeTypeChecking : DeputyBase { /// @@ -34281,14 +33851,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected RuntimeTypeChecking(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected RuntimeTypeChecking(DeputyProps props): base(props) { @@ -34297,7 +33867,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"methodWithDefaultedArguments\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + [JsiiMethod(name: "methodWithDefaultedArguments", parametersJson: "[{\\"name\\":\\"arg1\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"arg2\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg3\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"date\\"}}]")] public virtual void MethodWithDefaultedArguments(double? arg1 = null, string? arg2 = null, System.DateTime? arg3 = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); @@ -34306,7 +33876,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"methodWithOptionalAnyArgument\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}]\\")] + [JsiiMethod(name: "methodWithOptionalAnyArgument", parametersJson: "[{\\"name\\":\\"arg\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public virtual void MethodWithOptionalAnyArgument(object? arg = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(object)}, new object?[]{arg}); @@ -34316,20 +33886,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"methodWithOptionalArguments\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"arg1\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg2\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"arg3\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"date\\\\\\"}}]\\")] + [JsiiMethod(name: "methodWithOptionalArguments", parametersJson: "[{\\"name\\":\\"arg1\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"arg2\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"arg3\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"date\\"}}]")] public virtual void MethodWithOptionalArguments(double arg1, string arg2, System.DateTime? arg3 = null) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double), typeof(string), typeof(System.DateTime)}, new object?[]{arg1, arg2, arg3}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34340,14 +33908,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.SecondLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.SecondLevelStruct")] public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct { /// It's long and required. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string DeeperRequiredProp { get; @@ -34359,7 +33927,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? DeeperOptionalProp { get; @@ -34367,13 +33935,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34382,7 +33948,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: \\"jsii-calc.SecondLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct { private SecondLevelStructProxy(ByRefValue reference): base(reference) @@ -34393,7 +33959,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"deeperRequiredProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\\"primitive\\":\\"string\\"}")] public string DeeperRequiredProp { get => GetInstanceProperty(); @@ -34404,20 +33970,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"deeperOptionalProp\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "deeperOptionalProp", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? DeeperOptionalProp { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34431,7 +33995,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: \\"jsii-calc.SingleInstanceTwoTypes\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.SingleInstanceTwoTypes")] public class SingleInstanceTwoTypes : DeputyBase { /// @@ -34442,14 +34006,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingleInstanceTwoTypes(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingleInstanceTwoTypes(DeputyProps props): base(props) { @@ -34458,7 +34022,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"interface1\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.InbetweenClass\\\\\\"}}\\")] + [JsiiMethod(name: "interface1", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.InbetweenClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -34467,20 +34031,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"interface2\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IPublicInterface\\\\\\"}}\\")] + [JsiiMethod(name: "interface2", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34492,18 +34054,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: \\"jsii-calc.SingletonInt\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: "jsii-calc.SingletonInt")] public class SingletonInt : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingletonInt(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingletonInt(DeputyProps props): base(props) { @@ -34512,20 +34074,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"isSingletonInt\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "isSingletonInt", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual bool IsSingletonInt(double @value) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{@value}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34536,24 +34096,22 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: \\"jsii-calc.SingletonIntEnum\\")] + [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.SingletonIntEnum")] public enum SingletonIntEnum { /// Elite! /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"SINGLETON_INT\\")] + [JsiiEnumMember(name: "SINGLETON_INT")] SINGLETON_INT } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34565,18 +34123,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: \\"jsii-calc.SingletonString\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: "jsii-calc.SingletonString")] public class SingletonString : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingletonString(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SingletonString(DeputyProps props): base(props) { @@ -34585,20 +34143,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"isSingletonString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "isSingletonString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual bool IsSingletonString(string @value) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34609,24 +34165,22 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: \\"jsii-calc.SingletonStringEnum\\")] + [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.SingletonStringEnum")] public enum SingletonStringEnum { /// 1337. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"SINGLETON_STRING\\")] + [JsiiEnumMember(name: "SINGLETON_STRING")] SINGLETON_STRING } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34637,13 +34191,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.SmellyStruct\\")] + [JsiiByValue(fqn: "jsii-calc.SmellyStruct")] public class SmellyStruct : Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Property { get; @@ -34653,7 +34207,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOverride: true)] public bool YetAnoterOne { get; @@ -34661,13 +34215,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SmellyStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34676,7 +34228,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISmellyStruct), fullyQualifiedName: \\"jsii-calc.SmellyStruct\\")] + [JsiiTypeProxy(nativeType: typeof(ISmellyStruct), fullyQualifiedName: "jsii-calc.SmellyStruct")] internal sealed class SmellyStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISmellyStruct { private SmellyStructProxy(ByRefValue reference): base(reference) @@ -34686,7 +34238,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"property\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { get => GetInstanceProperty(); @@ -34695,20 +34247,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"yetAnoterOne\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool YetAnoterOne { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34717,7 +34267,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: \\"jsii-calc.SomeTypeJsii976\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.SomeTypeJsii976")] public class SomeTypeJsii976 : DeputyBase { /// @@ -34728,14 +34278,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SomeTypeJsii976(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SomeTypeJsii976(DeputyProps props): base(props) { @@ -34744,7 +34294,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"returnAnonymous\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "returnAnonymous", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object ReturnAnonymous() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); @@ -34753,26 +34303,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"returnReturn\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IReturnJsii976\\\\\\"}}\\")] + [JsiiMethod(name: "returnReturn", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IReturnJsii976\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: \\"jsii-calc.StableClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"readonlyString\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"mutableNumber\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: "jsii-calc.StableClass", parametersJson: "[{\\"name\\":\\"readonlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"mutableNumber\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public class StableClass : DeputyBase { public StableClass(string readonlyString, double? mutableNumber = null): base(new DeputyProps(new object?[]{readonlyString, mutableNumber})) @@ -34780,33 +34328,33 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StableClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StableClass(DeputyProps props): base(props) { } - [JsiiMethod(name: \\"method\\")] + [JsiiMethod(name: "method")] public virtual void Method() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { get => GetInstanceProperty(); } [JsiiOptional] - [JsiiProperty(name: \\"mutableProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "mutableProperty", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public virtual double? MutableProperty { get => GetInstanceProperty(); @@ -34814,35 +34362,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: \\"jsii-calc.StableEnum\\")] + [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.StableEnum")] public enum StableEnum { - [JsiiEnumMember(name: \\"OPTION_A\\")] + [JsiiEnumMember(name: "OPTION_A")] OPTION_A, - [JsiiEnumMember(name: \\"OPTION_B\\")] + [JsiiEnumMember(name: "OPTION_B")] OPTION_B } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34850,10 +34394,10 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 - [JsiiByValue(fqn: \\"jsii-calc.StableStruct\\")] + [JsiiByValue(fqn: "jsii-calc.StableStruct")] public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.IStableStruct { - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string ReadonlyProperty { get; @@ -34861,39 +34405,35 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { - [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: \\"jsii-calc.StableStruct\\")] + [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableStruct { private StableStructProxy(ByRefValue reference): base(reference) { } - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34905,18 +34445,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: \\"jsii-calc.StaticContext\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: "jsii-calc.StaticContext")] public class StaticContext : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StaticContext(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StaticContext(DeputyProps props): base(props) { @@ -34925,7 +34465,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"canAccessStaticContext\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\")] + [JsiiMethod(name: "canAccessStaticContext", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public static bool CanAccessStaticContext() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); @@ -34934,7 +34474,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"staticVariable\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "staticVariable", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public static bool StaticVariable { get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); @@ -34942,13 +34482,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -34957,7 +34495,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: \\"jsii-calc.Statics\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: "jsii-calc.Statics", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class Statics : DeputyBase { /// @@ -34968,25 +34506,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Statics(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Statics(DeputyProps props): base(props) { } /// Jsdocs for static method. - /// The name of the person to say hello to. + /// The name of the person to say hello to. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"staticMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"The name of the person to say hello to.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "staticMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The name of the person to say hello to.\\"},\\"name\\":\\"name\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static string StaticMethod(string name) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); @@ -34995,7 +34533,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"justMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "justMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string JustMethod() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -35005,7 +34543,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"BAR\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "BAR", typeJson: "{\\"primitive\\":\\"number\\"}")] public static double BAR { get; @@ -35015,7 +34553,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"ConstObj\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.DoubleTrouble\\\\\\"}\\")] + [JsiiProperty(name: "ConstObj", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}")] public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj { get; @@ -35026,7 +34564,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"Foo\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "Foo", typeJson: "{\\"primitive\\":\\"string\\"}")] public static string Foo { get; @@ -35037,7 +34575,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"zooBar\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}\\")] + [JsiiProperty(name: "zooBar", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] public static System.Collections.Generic.IDictionary ZooBar { get; @@ -35050,7 +34588,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"instance\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.Statics\\\\\\"}\\")] + [JsiiProperty(name: "instance", typeJson: "{\\"fqn\\":\\"jsii-calc.Statics\\"}")] public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance { get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); @@ -35060,7 +34598,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"nonConstStatic\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "nonConstStatic", typeJson: "{\\"primitive\\":\\"number\\"}")] public static double NonConstStatic { get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); @@ -35070,20 +34608,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Value { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35093,33 +34629,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: \\"jsii-calc.StringEnum\\")] + [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.StringEnum")] public enum StringEnum { /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"A\\")] + [JsiiEnumMember(name: "A")] A, /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"B\\")] + [JsiiEnumMember(name: "B")] B, /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"C\\")] + [JsiiEnumMember(name: "C")] C } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35128,7 +34662,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: \\"jsii-calc.StripInternal\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: "jsii-calc.StripInternal")] public class StripInternal : DeputyBase { /// @@ -35139,14 +34673,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StripInternal(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StripInternal(DeputyProps props): base(props) { @@ -35155,7 +34689,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"youSeeMe\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "youSeeMe", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string YouSeeMe { get => GetInstanceProperty(); @@ -35163,13 +34697,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35181,13 +34713,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.StructA\\")] + [JsiiByValue(fqn: "jsii-calc.StructA")] public class StructA : Amazon.JSII.Tests.CalculatorNamespace.IStructA { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string RequiredString { get; @@ -35198,7 +34730,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalNumber", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true, isOverride: true)] public double? OptionalNumber { get; @@ -35209,7 +34741,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalString", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? OptionalString { get; @@ -35217,13 +34749,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35233,7 +34763,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: \\"jsii-calc.StructA\\")] + [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructA { private StructAProxy(ByRefValue reference): base(reference) @@ -35243,7 +34773,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string RequiredString { get => GetInstanceProperty(); @@ -35253,7 +34783,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalNumber\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalNumber", typeJson: "{\\"primitive\\":\\"number\\"}", isOptional: true)] public double? OptionalNumber { get => GetInstanceProperty(); @@ -35263,20 +34793,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalString", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? OptionalString { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35288,13 +34816,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.StructB\\")] + [JsiiByValue(fqn: "jsii-calc.StructB")] public class StructB : Amazon.JSII.Tests.CalculatorNamespace.IStructB { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string RequiredString { get; @@ -35305,7 +34833,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalBoolean", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true, isOverride: true)] public bool? OptionalBoolean { get; @@ -35316,7 +34844,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optionalStructA", typeJson: "{\\"fqn\\":\\"jsii-calc.StructA\\"}", isOptional: true, isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { get; @@ -35324,13 +34852,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35340,7 +34866,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: \\"jsii-calc.StructB\\")] + [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructB { private StructBProxy(ByRefValue reference): base(reference) @@ -35350,7 +34876,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"requiredString\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string RequiredString { get => GetInstanceProperty(); @@ -35360,7 +34886,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalBoolean\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalBoolean", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] public bool? OptionalBoolean { get => GetInstanceProperty(); @@ -35370,20 +34896,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optionalStructA\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optionalStructA", typeJson: "{\\"fqn\\":\\"jsii-calc.StructA\\"}", isOptional: true)] public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35397,13 +34921,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.StructParameterType\\")] + [JsiiByValue(fqn: "jsii-calc.StructParameterType")] public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "scope", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Scope { get; @@ -35414,7 +34938,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "props", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true, isOverride: true)] public bool? Props { get; @@ -35422,13 +34946,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35440,7 +34962,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: \\"jsii-calc.StructParameterType\\")] + [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType { private StructParameterTypeProxy(ByRefValue reference): base(reference) @@ -35450,7 +34972,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"scope\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "scope", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Scope { get => GetInstanceProperty(); @@ -35460,27 +34982,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "props", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOptional: true)] public bool? Props { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace Amazon.JSII.Tests.CalculatorNamespace { /// Just because we can. - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: \\"jsii-calc.StructPassing\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: "jsii-calc.StructPassing")] public class StructPassing : DeputyBase { /// @@ -35491,39 +35011,37 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StructPassing(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StructPassing(DeputyProps props): base(props) { } - [JsiiMethod(name: \\"howManyVarArgsDidIPass\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_positional\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"inputs\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"_positional\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"inputs\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"},\\"variadic\\":true}]")] public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); } - [JsiiMethod(name: \\"roundTrip\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"_positional\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"name\\\\\\":\\\\\\"input\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.TopLevelStruct\\\\\\"}}]\\")] + [JsiiMethod(name: "roundTrip", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"}}", parametersJson: "[{\\"name\\":\\"_positional\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"input\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35532,18 +35050,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: \\"jsii-calc.StructUnionConsumer\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: "jsii-calc.StructUnionConsumer")] public class StructUnionConsumer : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StructUnionConsumer(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected StructUnionConsumer(DeputyProps props): base(props) { @@ -35552,7 +35070,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"isStructA\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}]}}}]\\")] + [JsiiMethod(name: "isStructA", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"struct\\",\\"type\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"jsii-calc.StructA\\"},{\\"fqn\\":\\"jsii-calc.StructB\\"}]}}}]")] public static bool IsStructA(object @struct) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); @@ -35561,20 +35079,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"isStructB\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"struct\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructA\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.StructB\\\\\\"}]}}}]\\")] + [JsiiMethod(name: "isStructB", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"struct\\",\\"type\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"jsii-calc.StructA\\"},{\\"fqn\\":\\"jsii-calc.StructB\\"}]}}}]")] public static bool IsStructB(object @struct) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35585,13 +35101,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.StructWithJavaReservedWords\\")] + [JsiiByValue(fqn: "jsii-calc.StructWithJavaReservedWords")] public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "default", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Default { get; @@ -35602,7 +35118,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "assert", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Assert { get; @@ -35613,7 +35129,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "result", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Result { get; @@ -35624,7 +35140,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "that", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? That { get; @@ -35632,13 +35148,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35647,7 +35161,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: \\"jsii-calc.StructWithJavaReservedWords\\")] + [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords { private StructWithJavaReservedWordsProxy(ByRefValue reference): base(reference) @@ -35657,7 +35171,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"default\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "default", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Default { get => GetInstanceProperty(); @@ -35667,7 +35181,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"assert\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "assert", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Assert { get => GetInstanceProperty(); @@ -35677,7 +35191,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"result\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "result", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Result { get => GetInstanceProperty(); @@ -35687,20 +35201,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"that\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "that", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? That { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35709,26 +35221,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IMyClassReference), fullyQualifiedName: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + [JsiiInterface(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] public interface IMyClassReference { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\")] + [JsiiProperty(name: "reference", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.MyClass\\"}")] Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35739,13 +35249,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + [JsiiByValue(fqn: "jsii-calc.submodule.back_references.MyClassReference")] public class MyClassReference : Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "reference", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.MyClass\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference { get; @@ -35753,13 +35263,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35768,7 +35276,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IMyClassReference), fullyQualifiedName: \\"jsii-calc.submodule.back_references.MyClassReference\\")] + [JsiiTypeProxy(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] internal sealed class MyClassReferenceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference { private MyClassReferenceProxy(ByRefValue reference): base(reference) @@ -35778,20 +35286,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences /// /// Stability: Experimental /// - [JsiiProperty(name: \\"reference\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.MyClass\\\\\\"}\\")] + [JsiiProperty(name: "reference", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.MyClass\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Awesomeness.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35801,24 +35307,22 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(Awesomeness), fullyQualifiedName: \\"jsii-calc.submodule.child.Awesomeness\\")] + [JsiiEnum(nativeType: typeof(Awesomeness), fullyQualifiedName: "jsii-calc.submodule.child.Awesomeness")] public enum Awesomeness { /// It was awesome! /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"AWESOME\\")] + [JsiiEnumMember(name: "AWESOME")] AWESOME } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35828,36 +35332,34 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(Goodness), fullyQualifiedName: \\"jsii-calc.submodule.child.Goodness\\")] + [JsiiEnum(nativeType: typeof(Goodness), fullyQualifiedName: "jsii-calc.submodule.child.Goodness")] public enum Goodness { /// It's pretty good. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"PRETTY_GOOD\\")] + [JsiiEnumMember(name: "PRETTY_GOOD")] PRETTY_GOOD, /// It's really good. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"REALLY_GOOD\\")] + [JsiiEnumMember(name: "REALLY_GOOD")] REALLY_GOOD, /// It's amazingly good. /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"AMAZINGLY_GOOD\\")] + [JsiiEnumMember(name: "AMAZINGLY_GOOD")] AMAZINGLY_GOOD } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IKwargsProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35866,13 +35368,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IKwargsProps), fullyQualifiedName: \\"jsii-calc.submodule.child.KwargsProps\\")] + [JsiiInterface(nativeType: typeof(IKwargsProps), fullyQualifiedName: "jsii-calc.submodule.child.KwargsProps")] public interface IKwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "extra", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] string? Extra { @@ -35883,13 +35385,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/ISomeStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35898,26 +35398,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISomeStruct), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeStruct\\")] + [JsiiInterface(nativeType: typeof(ISomeStruct), fullyQualifiedName: "jsii-calc.submodule.child.SomeStruct")] public interface ISomeStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}")] Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35926,26 +35424,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructure), fullyQualifiedName: \\"jsii-calc.submodule.child.Structure\\")] + [JsiiInterface(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] public interface IStructure { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] bool Bool { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/InnerClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -35954,7 +35450,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass), fullyQualifiedName: \\"jsii-calc.submodule.child.InnerClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass), fullyQualifiedName: "jsii-calc.submodule.child.InnerClass")] public class InnerClass : DeputyBase { /// @@ -35965,14 +35461,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InnerClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected InnerClass(DeputyProps props): base(props) { @@ -35981,7 +35477,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"staticProp\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}\\")] + [JsiiProperty(name: "staticProp", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeStruct\\"}")] public static Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct StaticProp { get; @@ -35989,13 +35485,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass)); } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36004,14 +35498,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.submodule.child.KwargsProps\\")] + [JsiiByValue(fqn: "jsii-calc.submodule.child.KwargsProps")] public class KwargsProps : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "extra", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Extra { get; @@ -36021,7 +35515,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { get; @@ -36029,13 +35523,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/KwargsPropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36044,7 +35536,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IKwargsProps), fullyQualifiedName: \\"jsii-calc.submodule.child.KwargsProps\\")] + [JsiiTypeProxy(nativeType: typeof(IKwargsProps), fullyQualifiedName: "jsii-calc.submodule.child.KwargsProps")] internal sealed class KwargsPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps { private KwargsPropsProxy(ByRefValue reference): base(reference) @@ -36055,7 +35547,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"extra\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "extra", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Extra { get => GetInstanceProperty(); @@ -36064,20 +35556,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/OuterClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36089,7 +35579,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// See: : https://github.com/aws/jsii/pull/1706 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.OuterClass), fullyQualifiedName: \\"jsii-calc.submodule.child.OuterClass\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.OuterClass), fullyQualifiedName: "jsii-calc.submodule.child.OuterClass")] public class OuterClass : DeputyBase { /// @@ -36100,14 +35590,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OuterClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected OuterClass(DeputyProps props): base(props) { @@ -36116,20 +35606,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"innerClass\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.InnerClass\\\\\\"}\\")] + [JsiiProperty(name: "innerClass", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.InnerClass\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass InnerClass { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeEnum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36139,23 +35627,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SomeEnum), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeEnum\\")] + [JsiiEnum(nativeType: typeof(SomeEnum), fullyQualifiedName: "jsii-calc.submodule.child.SomeEnum")] public enum SomeEnum { /// /// Stability: Experimental /// - [JsiiEnumMember(name: \\"SOME\\")] + [JsiiEnumMember(name: "SOME")] SOME } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36166,13 +35652,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.submodule.child.SomeStruct\\")] + [JsiiByValue(fqn: "jsii-calc.submodule.child.SomeStruct")] public class SomeStruct : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}", isOverride: true)] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { get; @@ -36180,13 +35666,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/SomeStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36195,7 +35679,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISomeStruct), fullyQualifiedName: \\"jsii-calc.submodule.child.SomeStruct\\")] + [JsiiTypeProxy(nativeType: typeof(ISomeStruct), fullyQualifiedName: "jsii-calc.submodule.child.SomeStruct")] internal sealed class SomeStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct { private SomeStructProxy(ByRefValue reference): base(reference) @@ -36205,20 +35689,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"prop\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeEnum\\\\\\"}\\")] + [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36229,13 +35711,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.submodule.child.Structure\\")] + [JsiiByValue(fqn: "jsii-calc.submodule.child.Structure")] public class Structure : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}", isOverride: true)] public bool Bool { get; @@ -36243,13 +35725,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36258,7 +35738,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructure), fullyQualifiedName: \\"jsii-calc.submodule.child.Structure\\")] + [JsiiTypeProxy(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] internal sealed class StructureProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure { private StructureProxy(ByRefValue reference): base(reference) @@ -36268,20 +35748,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bool\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Bool { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36291,18 +35769,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), fullyQualifiedName: \\"jsii-calc.submodule.isolated.Kwargs\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), fullyQualifiedName: "jsii-calc.submodule.isolated.Kwargs")] public class Kwargs : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Kwargs(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Kwargs(DeputyProps props): base(props) { @@ -36311,20 +35789,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated /// /// Stability: Experimental /// - [JsiiMethod(name: \\"method\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.KwargsProps\\\\\\"}}]\\")] + [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"props\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.submodule.child.KwargsProps\\"}}]")] public static bool Method(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps? props = null) { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps)}, new object?[]{props}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36333,7 +35809,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: \\"jsii-calc.submodule.MyClass\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass", parametersJson: "[{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.submodule.child.SomeStruct\\"}}]")] public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { /// @@ -36344,14 +35820,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected MyClass(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected MyClass(DeputyProps props): base(props) { @@ -36360,7 +35836,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"awesomeness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Awesomeness\\\\\\"}\\")] + [JsiiProperty(name: "awesomeness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Awesomeness\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Awesomeness Awesomeness { get => GetInstanceProperty(); @@ -36369,7 +35845,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string DefinedAt { get => GetInstanceProperty(); @@ -36378,7 +35854,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness { get => GetInstanceProperty(); @@ -36387,7 +35863,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"props\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.SomeStruct\\\\\\"}\\")] + [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeStruct\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct Props { get => GetInstanceProperty(); @@ -36397,7 +35873,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"allTypes\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "allTypes", typeJson: "{\\"fqn\\":\\"jsii-calc.AllTypes\\"}", isOptional: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypes? AllTypes { get => GetInstanceProperty(); @@ -36405,13 +35881,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36420,26 +35894,24 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Deeply /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INamespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\")] + [JsiiInterface(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] public interface INamespaced { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] string DefinedAt { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36448,7 +35920,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Deeply /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INamespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\")] + [JsiiTypeProxy(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] internal sealed class INamespacedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { private INamespacedProxy(ByRefValue reference): base(reference) @@ -36458,20 +35930,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Deeply /// /// Stability: Experimental /// - [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public string DefinedAt { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36480,18 +35950,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.Namespaced\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] public abstract class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Namespaced(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Namespaced(DeputyProps props): base(props) { @@ -36500,7 +35970,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"definedAt\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string DefinedAt { get => GetInstanceProperty(); @@ -36509,20 +35979,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] public abstract Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness { get; } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36531,7 +35999,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: \\"jsii-calc.submodule.nested_submodule.Namespaced\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] internal sealed class NamespacedProxy : Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced { private NamespacedProxy(ByRefValue reference): base(reference) @@ -36541,20 +36009,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// /// Stability: Experimental /// - [JsiiProperty(name: \\"goodness\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.submodule.child.Goodness\\\\\\"}\\")] + [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36564,7 +36030,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: \\"jsii-calc.Sum\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: "jsii-calc.Sum")] public class Sum : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// @@ -36575,14 +36041,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Sum(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Sum(DeputyProps props): base(props) { @@ -36594,7 +36060,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"expression\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Expression { get => GetInstanceProperty(); @@ -36604,7 +36070,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"parts\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "parts", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_[] Parts { get => GetInstanceProperty(); @@ -36612,13 +36078,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36627,13 +36091,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilder\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some identifier.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the default value of \`bar\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"defaultBar\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some props once can provide.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SupportsNiceJavaBuilderProps\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a variadic continuation.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"rest\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilder", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"some identifier.\\"},\\"name\\":\\"id\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"docs\\":{\\"summary\\":\\"the default value of \`bar\`.\\"},\\"name\\":\\"defaultBar\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"docs\\":{\\"summary\\":\\"some props once can provide.\\"},\\"name\\":\\"props\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.SupportsNiceJavaBuilderProps\\"}},{\\"docs\\":{\\"summary\\":\\"a variadic continuation.\\"},\\"name\\":\\"rest\\",\\"type\\":{\\"primitive\\":\\"string\\"},\\"variadic\\":true}]")] public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps { - /// some identifier. - /// the default value of \`bar\`. - /// some props once can provide. - /// a variadic continuation. + /// some identifier. + /// the default value of \`bar\`. + /// some props once can provide. + /// a variadic continuation. /// /// Stability: Experimental /// @@ -36642,14 +36106,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SupportsNiceJavaBuilder(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SupportsNiceJavaBuilder(DeputyProps props): base(props) { @@ -36659,7 +36123,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Id { get => GetInstanceProperty(); @@ -36668,20 +36132,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"rest\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "rest", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] Rest { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36692,14 +36154,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + [JsiiByValue(fqn: "jsii-calc.SupportsNiceJavaBuilderProps")] public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps { /// Some number, like 42. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] public double Bar { get; @@ -36713,7 +36175,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Id { get; @@ -36721,13 +36183,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36736,7 +36196,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderProps\\")] + [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps { private SupportsNiceJavaBuilderPropsProxy(ByRefValue reference): base(reference) @@ -36747,7 +36207,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Bar { get => GetInstanceProperty(); @@ -36760,20 +36220,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Id { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36783,11 +36241,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some identifier of your choice.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"some properties.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"props\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SupportsNiceJavaBuilderProps\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"some identifier of your choice.\\"},\\"name\\":\\"id\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"docs\\":{\\"summary\\":\\"some properties.\\"},\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.SupportsNiceJavaBuilderProps\\"}}]")] public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase { - /// some identifier of your choice. - /// some properties. + /// some identifier of your choice. + /// some properties. /// /// Stability: Experimental /// @@ -36796,14 +36254,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SupportsNiceJavaBuilderWithRequiredProps(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SupportsNiceJavaBuilderWithRequiredProps(DeputyProps props): base(props) { @@ -36812,7 +36270,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Bar { get => GetInstanceProperty(); @@ -36822,7 +36280,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"id\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Id { get => GetInstanceProperty(); @@ -36832,20 +36290,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"propId\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "propId", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public virtual string? PropId { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -36854,7 +36310,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: \\"jsii-calc.SyncVirtualMethods\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.SyncVirtualMethods")] public class SyncVirtualMethods : DeputyBase { /// @@ -36865,14 +36321,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SyncVirtualMethods(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected SyncVirtualMethods(DeputyProps props): base(props) { @@ -36881,7 +36337,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callerIsAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", isAsync: true)] + [JsiiMethod(name: "callerIsAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallerIsAsync() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36890,7 +36346,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callerIsMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "callerIsMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double CallerIsMethod() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36899,7 +36355,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"modifyOtherProperty\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "modifyOtherProperty", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual void ModifyOtherProperty(string @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); @@ -36908,7 +36364,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"modifyValueOfTheProperty\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "modifyValueOfTheProperty", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual void ModifyValueOfTheProperty(string @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(string)}, new object[]{@value}); @@ -36917,7 +36373,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"readA\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "readA", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double ReadA() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36926,7 +36382,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"retrieveOtherProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "retrieveOtherProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveOtherProperty() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36935,7 +36391,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"retrieveReadOnlyProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "retrieveReadOnlyProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveReadOnlyProperty() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36944,7 +36400,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"retrieveValueOfTheProperty\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "retrieveValueOfTheProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveValueOfTheProperty() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -36953,7 +36409,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"virtualMethod\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"n\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "virtualMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"n\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double VirtualMethod(double n) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{n}); @@ -36962,7 +36418,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"writeA\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "writeA", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual void WriteA(double @value) { InvokeInstanceVoidMethod(new System.Type[]{typeof(double)}, new object[]{@value}); @@ -36971,7 +36427,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"readonlyProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { get => GetInstanceProperty(); @@ -36980,7 +36436,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"a\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double A { get => GetInstanceProperty(); @@ -36990,7 +36446,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"callerIsProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "callerIsProperty", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double CallerIsProperty { get => GetInstanceProperty(); @@ -37000,7 +36456,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"otherProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "otherProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string OtherProperty { get => GetInstanceProperty(); @@ -37010,7 +36466,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"theProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "theProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string TheProperty { get => GetInstanceProperty(); @@ -37020,7 +36476,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"valueOfOtherProperty\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "valueOfOtherProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ValueOfOtherProperty { get => GetInstanceProperty(); @@ -37028,13 +36484,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37043,7 +36497,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: \\"jsii-calc.Thrower\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: "jsii-calc.Thrower")] public class Thrower : DeputyBase { /// @@ -37054,14 +36508,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Thrower(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected Thrower(DeputyProps props): base(props) { @@ -37070,20 +36524,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"throwError\\")] + [JsiiMethod(name: "throwError")] public virtual void ThrowError() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37094,14 +36546,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.TopLevelStruct\\")] + [JsiiByValue(fqn: "jsii-calc.TopLevelStruct")] public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct { /// This is a required field. /// /// Stability: Experimental /// - [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOverride: true)] + [JsiiProperty(name: "required", typeJson: "{\\"primitive\\":\\"string\\"}", isOverride: true)] public string Required { get; @@ -37112,7 +36564,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\", isOverride: true)] + [JsiiProperty(name: "secondLevel", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.SecondLevelStruct\\"}]}}", isOverride: true)] public object SecondLevel { get; @@ -37124,7 +36576,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "optional", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true, isOverride: true)] public string? Optional { get; @@ -37132,13 +36584,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37147,7 +36597,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: \\"jsii-calc.TopLevelStruct\\")] + [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct { private TopLevelStructProxy(ByRefValue reference): base(reference) @@ -37158,7 +36608,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"required\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\")] + [JsiiProperty(name: "required", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Required { get => GetInstanceProperty(); @@ -37168,7 +36618,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"secondLevel\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.SecondLevelStruct\\\\\\"}]}}\\")] + [JsiiProperty(name: "secondLevel", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.SecondLevelStruct\\"}]}}")] public object SecondLevel { get => GetInstanceProperty(); @@ -37179,20 +36629,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"optional\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}\\", isOptional: true)] + [JsiiProperty(name: "optional", typeJson: "{\\"primitive\\":\\"string\\"}", isOptional: true)] public string? Optional { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37204,18 +36652,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/jsii/issues/1765 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: \\"jsii-calc.UmaskCheck\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: "jsii-calc.UmaskCheck")] public class UmaskCheck : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UmaskCheck(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UmaskCheck(DeputyProps props): base(props) { @@ -37225,20 +36673,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"mode\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\")] + [JsiiMethod(name: "mode", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public static double Mode() { return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperation.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37248,7 +36694,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: \\"jsii-calc.UnaryOperation\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"operand\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: "jsii-calc.UnaryOperation", parametersJson: "[{\\"name\\":\\"operand\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}}]")] public abstract class UnaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { /// @@ -37259,14 +36705,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UnaryOperation(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UnaryOperation(DeputyProps props): base(props) { @@ -37275,20 +36721,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"operand\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.Value\\\\\\"}\\")] + [JsiiProperty(name: "operand", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Value\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ Operand { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnaryOperationProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37298,7 +36742,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: \\"jsii-calc.UnaryOperation\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: "jsii-calc.UnaryOperation")] internal sealed class UnaryOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation { private UnaryOperationProxy(ByRefValue reference): base(reference) @@ -37309,7 +36753,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiProperty(name: \\"value\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}\\")] + [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] [System.Obsolete()] public override double Value { @@ -37320,7 +36764,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Deprecated /// - [JsiiMethod(name: \\"toString\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", isOverride: true)] + [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] [System.Obsolete()] public override string ToString() { @@ -37328,13 +36772,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37345,13 +36787,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: \\"jsii-calc.UnionProperties\\")] + [JsiiByValue(fqn: "jsii-calc.UnionProperties")] public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.AllTypes\\"}]}}", isOverride: true)] public object Bar { get; @@ -37362,7 +36804,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true, isOverride: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"}]}}", isOptional: true, isOverride: true)] public object? Foo { get; @@ -37370,13 +36812,11 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37385,7 +36825,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: \\"jsii-calc.UnionProperties\\")] + [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties { private UnionPropertiesProxy(ByRefValue reference): base(reference) @@ -37395,7 +36835,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"bar\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.AllTypes\\\\\\"}]}}\\")] + [JsiiProperty(name: "bar", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.AllTypes\\"}]}}")] public object Bar { get => GetInstanceProperty(); @@ -37405,20 +36845,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: \\"foo\\", typeJson: \\"{\\\\\\"union\\\\\\":{\\\\\\"types\\\\\\":[{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"},{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}]}}\\", isOptional: true)] + [JsiiProperty(name: "foo", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"}]}}", isOptional: true)] public object? Foo { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UpcasingReflectable.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37428,7 +36866,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable), fullyQualifiedName: \\"jsii-calc.UpcasingReflectable\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"delegate\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"map\\\\\\"}}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable), fullyQualifiedName: "jsii-calc.UpcasingReflectable", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public class UpcasingReflectable : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable { /// @@ -37439,14 +36877,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UpcasingReflectable(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UpcasingReflectable(DeputyProps props): base(props) { @@ -37455,7 +36893,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"reflector\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.Reflector\\\\\\"}\\")] + [JsiiProperty(name: "reflector", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.Reflector\\"}")] public static Amazon.JSII.Tests.CustomSubmoduleName.Reflector Reflector { get; @@ -37465,20 +36903,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"entries\\", typeJson: \\"{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}\\")] + [JsiiProperty(name: "entries", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37487,7 +36923,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: \\"jsii-calc.UseBundledDependency\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: "jsii-calc.UseBundledDependency")] public class UseBundledDependency : DeputyBase { /// @@ -37498,14 +36934,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UseBundledDependency(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UseBundledDependency(DeputyProps props): base(props) { @@ -37514,20 +36950,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"value\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"any\\\\\\"}}\\")] + [JsiiMethod(name: "value", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object Value() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37537,7 +36971,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: \\"jsii-calc.UseCalcBase\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: "jsii-calc.UseCalcBase")] public class UseCalcBase : DeputyBase { /// @@ -37548,14 +36982,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UseCalcBase(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UseCalcBase(DeputyProps props): base(props) { @@ -37564,20 +36998,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"hello\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"@scope/jsii-calc-base.Base\\\\\\"}}\\")] + [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-base.Base\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base Hello() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37586,7 +37018,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: \\"jsii-calc.UsesInterfaceWithProperties\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"obj\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithProperties\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.UsesInterfaceWithProperties", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithProperties\\"}}]")] public class UsesInterfaceWithProperties : DeputyBase { /// @@ -37597,14 +37029,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UsesInterfaceWithProperties(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected UsesInterfaceWithProperties(DeputyProps props): base(props) { @@ -37613,7 +37045,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"justRead\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\")] + [JsiiMethod(name: "justRead", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string JustRead() { return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); @@ -37622,7 +37054,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"readStringAndNumber\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"ext\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithPropertiesExtension\\\\\\"}}]\\")] + [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"ext\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithPropertiesExtension\\"}}]")] public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) { return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); @@ -37631,7 +37063,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"writeAndRead\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"value\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiMethod(name: "writeAndRead", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string WriteAndRead(string @value) { return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); @@ -37640,20 +37072,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"obj\\", typeJson: \\"{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.IInterfaceWithProperties\\\\\\"}\\")] + [JsiiProperty(name: "obj", typeJson: "{\\"fqn\\":\\"jsii-calc.IInterfaceWithProperties\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37662,7 +37092,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: \\"jsii-calc.VariadicInvoker\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"method\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"fqn\\\\\\":\\\\\\"jsii-calc.VariadicMethod\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: "jsii-calc.VariadicInvoker", parametersJson: "[{\\"name\\":\\"method\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.VariadicMethod\\"}}]")] public class VariadicInvoker : DeputyBase { /// @@ -37673,14 +37103,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VariadicInvoker(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VariadicInvoker(DeputyProps props): base(props) { @@ -37689,20 +37119,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"asArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"values\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiMethod(name: "asArray", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"primitive\\":\\"number\\"},\\"variadic\\":true}]")] public virtual double[] AsArray(params double[] values) { return InvokeInstanceMethod(new System.Type[]{typeof(double[])}, new object[]{values}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37711,10 +37139,10 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: \\"jsii-calc.VariadicMethod\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"a prefix that will be use for all values returned by \`#asArray\`.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"prefix\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: "jsii-calc.VariadicMethod", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"a prefix that will be use for all values returned by \`#asArray\`.\\"},\\"name\\":\\"prefix\\",\\"type\\":{\\"primitive\\":\\"number\\"},\\"variadic\\":true}]")] public class VariadicMethod : DeputyBase { - /// a prefix that will be use for all values returned by \`#asArray\`. + /// a prefix that will be use for all values returned by \`#asArray\`. /// /// Stability: Experimental /// @@ -37723,38 +37151,36 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VariadicMethod(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VariadicMethod(DeputyProps props): base(props) { } - /// the first element of the array to be returned (after the \`prefix\` provided at construction time). - /// other elements to be included in the array. + /// the first element of the array to be returned (after the \`prefix\` provided at construction time). + /// other elements to be included in the array. /// /// Stability: Experimental /// - [JsiiMethod(name: \\"asArray\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"collection\\\\\\":{\\\\\\"elementtype\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"kind\\\\\\":\\\\\\"array\\\\\\"}}}\\", parametersJson: \\"[{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"first\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}},{\\\\\\"docs\\\\\\":{\\\\\\"summary\\\\\\":\\\\\\"other elements to be included in the array.\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"others\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"},\\\\\\"variadic\\\\\\":true}]\\")] + [JsiiMethod(name: "asArray", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\"},\\"name\\":\\"first\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"docs\\":{\\"summary\\":\\"other elements to be included in the array.\\"},\\"name\\":\\"others\\",\\"type\\":{\\"primitive\\":\\"number\\"},\\"variadic\\":true}]")] public virtual double[] AsArray(double first, params double[] others) { return InvokeInstanceMethod(new System.Type[]{typeof(double), typeof(double[])}, new object[]{first, others}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37763,7 +37189,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: \\"jsii-calc.VirtualMethodPlayground\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.VirtualMethodPlayground")] public class VirtualMethodPlayground : DeputyBase { /// @@ -37774,14 +37200,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VirtualMethodPlayground(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VirtualMethodPlayground(DeputyProps props): base(props) { @@ -37790,7 +37216,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMeAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"index\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + [JsiiMethod(name: "overrideMeAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"index\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double OverrideMeAsync(double index) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); @@ -37799,7 +37225,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMeSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"index\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "overrideMeSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"index\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double OverrideMeSync(double index) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); @@ -37808,7 +37234,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"parallelSumAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + [JsiiMethod(name: "parallelSumAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double ParallelSumAsync(double count) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); @@ -37817,7 +37243,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"serialSumAsync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\", isAsync: true)] + [JsiiMethod(name: "serialSumAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double SerialSumAsync(double count) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); @@ -37826,20 +37252,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"sumSync\\", returnsJson: \\"{\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"count\\\\\\",\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"number\\\\\\"}}]\\")] + [JsiiMethod(name: "sumSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double SumSync(double count) { return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37847,7 +37271,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// This test is used to validate the runtimes can return correctly from a void callback. /// - /// + /// /// Implement overrideMe (method does not have to do anything). /// Invoke callMe /// Verify that methodWasCalled is true. @@ -37855,7 +37279,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: \\"jsii-calc.VoidCallback\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] public abstract class VoidCallback : DeputyBase { /// @@ -37866,14 +37290,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VoidCallback(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected VoidCallback(DeputyProps props): base(props) { @@ -37882,7 +37306,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"callMe\\")] + [JsiiMethod(name: "callMe")] public virtual void CallMe() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); @@ -37891,27 +37315,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMe\\")] + [JsiiMethod(name: "overrideMe")] protected abstract void OverrideMe(); /// /// Stability: Experimental /// - [JsiiProperty(name: \\"methodWasCalled\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "methodWasCalled", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool MethodWasCalled { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37919,7 +37341,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// This test is used to validate the runtimes can return correctly from a void callback. /// - /// + /// /// Implement overrideMe (method does not have to do anything). /// Invoke callMe /// Verify that methodWasCalled is true. @@ -37927,7 +37349,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: \\"jsii-calc.VoidCallback\\")] + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.VoidCallback { private VoidCallbackProxy(ByRefValue reference): base(reference) @@ -37937,20 +37359,18 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiMethod(name: \\"overrideMe\\")] + [JsiiMethod(name: "overrideMe")] protected override void OverrideMe() { InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 @@ -37960,7 +37380,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: \\"jsii-calc.WithPrivatePropertyInConstructor\\", parametersJson: \\"[{\\\\\\"name\\\\\\":\\\\\\"privateField\\\\\\",\\\\\\"optional\\\\\\":true,\\\\\\"type\\\\\\":{\\\\\\"primitive\\\\\\":\\\\\\"string\\\\\\"}}]\\")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.WithPrivatePropertyInConstructor", parametersJson: "[{\\"name\\":\\"privateField\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class WithPrivatePropertyInConstructor : DeputyBase { /// @@ -37971,14 +37391,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace } /// Used by jsii to construct an instance of this class from a Javascript-owned object reference - /// The Javascript-owned object reference + /// The Javascript-owned object reference [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected WithPrivatePropertyInConstructor(ByRefValue reference): base(reference) { } /// Used by jsii to construct an instance of this class from DeputyProps - /// The deputy props + /// The deputy props [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected WithPrivatePropertyInConstructor(DeputyProps props): base(props) { @@ -37987,32 +37407,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiProperty(name: \\"success\\", typeJson: \\"{\\\\\\"primitive\\\\\\":\\\\\\"boolean\\\\\\"}\\")] + [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Success { get => GetInstanceProperty(); } } } -", -} + `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/AssemblyInfo.cs 1`] = ` -Object { - Symbol(file): "using Amazon.JSII.Runtime.Deputy; +using Amazon.JSII.Runtime.Deputy; + +[assembly: JsiiAssembly("jsii-calc", "0.0.0", "jsii-calc-0.0.0.tgz")] -[assembly: JsiiAssembly(\\"jsii-calc\\", \\"0.0.0\\", \\"jsii-calc-0.0.0.tgz\\")] -", -} `; exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz 1`] = `dotnet/Amazon.JSII.Tests.CalculatorPackageId/jsii-calc-0.0.0.tgz is a tarball`; exports[`Generated code for "jsii-calc": /java/pom.xml 1`] = ` -Object { - Symbol(file): " - + + 4.0.0 \${project.groupId}:\${project.artifactId} A simple calcuator built on JSII. @@ -38191,13 +37607,11 @@ Object { -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; import static java.util.Arrays.asList; @@ -38222,13 +37636,13 @@ public final class $Module extends JsiiModule { private static Map load() { final Map result = new HashMap<>(); final ClassLoader cl = $Module.class.getClassLoader(); - try (final InputStream is = cl.getResourceAsStream(\\"software/amazon/jsii/tests/calculator/$Module.txt\\"); + try (final InputStream is = cl.getResourceAsStream("software/amazon/jsii/tests/calculator/$Module.txt"); final Reader rd = new InputStreamReader(is, StandardCharsets.UTF_8); final BufferedReader br = new BufferedReader(rd)) { br.lines() .filter(line -> !line.trim().isEmpty()) .forEach(line -> { - final String[] parts = line.split(\\"=\\", 2); + final String[] parts = line.split("=", 2); final String fqn = parts[0]; final String className = parts[1]; result.put(fqn, className); @@ -38243,7 +37657,7 @@ public final class $Module extends JsiiModule { private final Map> cache = new HashMap<>(); public $Module() { - super(\\"jsii-calc\\", \\"0.0.0\\", $Module.class, \\"jsii-calc@0.0.0.jsii.tgz\\"); + super("jsii-calc", "0.0.0", $Module.class, "jsii-calc@0.0.0.jsii.tgz"); } @Override @@ -38254,7 +37668,7 @@ public final class $Module extends JsiiModule { @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { if (!MODULE_TYPES.containsKey(fqn)) { - throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn); + throw new ClassNotFoundException("Unknown JSII type: " + fqn); } String className = MODULE_TYPES.get(fqn); if (!this.cache.containsKey(className)) { @@ -38272,20 +37686,18 @@ public final class $Module extends JsiiModule { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClass") public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.AbstractClassBase implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { protected AbstractClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38318,7 +37730,7 @@ public abstract class AbstractClass extends software.amazon.jsii.tests.calculato */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number nonAbstractMethod() { - return this.jsiiCall(\\"nonAbstractMethod\\", java.lang.Number.class); + return this.jsiiCall("nonAbstractMethod", java.lang.Number.class); } /** @@ -38327,7 +37739,7 @@ public abstract class AbstractClass extends software.amazon.jsii.tests.calculato @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + return this.jsiiGet("propFromInterface", java.lang.String.class); } /** @@ -38344,7 +37756,7 @@ public abstract class AbstractClass extends software.amazon.jsii.tests.calculato @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + return this.jsiiGet("propFromInterface", java.lang.String.class); } /** @@ -38353,7 +37765,7 @@ public abstract class AbstractClass extends software.amazon.jsii.tests.calculato @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { - return this.jsiiGet(\\"abstractProperty\\", java.lang.String.class); + return this.jsiiGet("abstractProperty", java.lang.String.class); } /** @@ -38364,24 +37776,22 @@ public abstract class AbstractClass extends software.amazon.jsii.tests.calculato @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String abstractMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return this.jsiiCall(\\"abstractMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, \\"name is required\\") }); + return this.jsiiCall("abstractMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClassBase\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassBase") public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject { protected AbstractClassBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38421,24 +37831,22 @@ public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getAbstractProperty() { - return this.jsiiGet(\\"abstractProperty\\", java.lang.String.class); + return this.jsiiGet("abstractProperty", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractClassReturner\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassReturner") public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { protected AbstractClassReturner(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38463,7 +37871,7 @@ public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClass giveMeAbstract() { - return this.jsiiCall(\\"giveMeAbstract\\", software.amazon.jsii.tests.calculator.AbstractClass.class); + return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.AbstractClass.class); } /** @@ -38471,7 +37879,7 @@ public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass giveMeInterface() { - return this.jsiiCall(\\"giveMeInterface\\", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); + return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); } /** @@ -38479,25 +37887,23 @@ public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClassBase getReturnAbstractFromProperty() { - return this.jsiiGet(\\"returnAbstractFromProperty\\", software.amazon.jsii.tests.calculator.AbstractClassBase.class); + return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.AbstractClassBase.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AbstractSuite.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Ensures abstract members implementations correctly register overrides in various languages. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AbstractSuite\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractSuite") public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { protected AbstractSuite(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38534,7 +37940,7 @@ public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String workItAll(final @org.jetbrains.annotations.NotNull java.lang.String seed) { - return this.jsiiCall(\\"workItAll\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(seed, \\"seed is required\\") }); + return this.jsiiCall("workItAll", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(seed, "seed is required") }); } /** @@ -38563,7 +37969,7 @@ public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet(\\"property\\", java.lang.String.class); + return this.jsiiGet("property", java.lang.String.class); } /** @@ -38572,7 +37978,7 @@ public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"property\\", java.util.Objects.requireNonNull(value, \\"property is required\\")); + this.jsiiSet("property", java.util.Objects.requireNonNull(value, "property is required")); } /** @@ -38583,26 +37989,24 @@ public abstract class AbstractSuite extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override protected @org.jetbrains.annotations.NotNull java.lang.String someMethod(final @org.jetbrains.annotations.NotNull java.lang.String str) { - return this.jsiiCall(\\"someMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(str, \\"str is required\\") }); + return this.jsiiCall("someMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(str, "str is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Add.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * The \\"+\\" binary operation. + * The "+" binary operation. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Add\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Add") public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { protected Add(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38624,7 +38028,7 @@ public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Add(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); } /** @@ -38635,7 +38039,7 @@ public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } /** @@ -38646,16 +38050,14 @@ public class Add extends software.amazon.jsii.tests.calculator.BinaryOperation { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This class includes property for all types supported by jsii. @@ -38665,9 +38067,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllTypes\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypes") public class AllTypes extends software.amazon.jsii.JsiiObject { protected AllTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -38694,7 +38096,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void anyIn(final @org.jetbrains.annotations.NotNull java.lang.Object inp) { - this.jsiiCall(\\"anyIn\\", software.amazon.jsii.NativeType.VOID, new Object[] { inp }); + this.jsiiCall("anyIn", software.amazon.jsii.NativeType.VOID, new Object[] { inp }); } /** @@ -38702,7 +38104,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object anyOut() { - return this.jsiiCall(\\"anyOut\\", java.lang.Object.class); + return this.jsiiCall("anyOut", java.lang.Object.class); } /** @@ -38712,7 +38114,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum value) { - return this.jsiiCall(\\"enumMethod\\", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -38720,7 +38122,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getEnumPropertyValue() { - return this.jsiiGet(\\"enumPropertyValue\\", java.lang.Number.class); + return this.jsiiGet("enumPropertyValue", java.lang.Number.class); } /** @@ -38728,7 +38130,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getAnyArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"anyArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("anyArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -38736,7 +38138,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setAnyArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"anyArrayProperty\\", java.util.Objects.requireNonNull(value, \\"anyArrayProperty is required\\")); + this.jsiiSet("anyArrayProperty", java.util.Objects.requireNonNull(value, "anyArrayProperty is required")); } /** @@ -38744,7 +38146,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map getAnyMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"anyMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("anyMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -38752,7 +38154,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setAnyMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet(\\"anyMapProperty\\", java.util.Objects.requireNonNull(value, \\"anyMapProperty is required\\")); + this.jsiiSet("anyMapProperty", java.util.Objects.requireNonNull(value, "anyMapProperty is required")); } /** @@ -38760,7 +38162,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object getAnyProperty() { - return this.jsiiGet(\\"anyProperty\\", java.lang.Object.class); + return this.jsiiGet("anyProperty", java.lang.Object.class); } /** @@ -38768,7 +38170,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setAnyProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { - this.jsiiSet(\\"anyProperty\\", java.util.Objects.requireNonNull(value, \\"anyProperty is required\\")); + this.jsiiSet("anyProperty", java.util.Objects.requireNonNull(value, "anyProperty is required")); } /** @@ -38776,7 +38178,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"arrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("arrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -38784,7 +38186,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"arrayProperty\\", java.util.Objects.requireNonNull(value, \\"arrayProperty is required\\")); + this.jsiiSet("arrayProperty", java.util.Objects.requireNonNull(value, "arrayProperty is required")); } /** @@ -38792,7 +38194,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getBooleanProperty() { - return this.jsiiGet(\\"booleanProperty\\", java.lang.Boolean.class); + return this.jsiiGet("booleanProperty", java.lang.Boolean.class); } /** @@ -38800,7 +38202,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setBooleanProperty(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - this.jsiiSet(\\"booleanProperty\\", java.util.Objects.requireNonNull(value, \\"booleanProperty is required\\")); + this.jsiiSet("booleanProperty", java.util.Objects.requireNonNull(value, "booleanProperty is required")); } /** @@ -38808,7 +38210,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.time.Instant getDateProperty() { - return this.jsiiGet(\\"dateProperty\\", java.time.Instant.class); + return this.jsiiGet("dateProperty", java.time.Instant.class); } /** @@ -38816,7 +38218,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setDateProperty(final @org.jetbrains.annotations.NotNull java.time.Instant value) { - this.jsiiSet(\\"dateProperty\\", java.util.Objects.requireNonNull(value, \\"dateProperty is required\\")); + this.jsiiSet("dateProperty", java.util.Objects.requireNonNull(value, "dateProperty is required")); } /** @@ -38824,7 +38226,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum getEnumProperty() { - return this.jsiiGet(\\"enumProperty\\", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.AllTypesEnum.class); } /** @@ -38832,7 +38234,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum value) { - this.jsiiSet(\\"enumProperty\\", java.util.Objects.requireNonNull(value, \\"enumProperty is required\\")); + this.jsiiSet("enumProperty", java.util.Objects.requireNonNull(value, "enumProperty is required")); } /** @@ -38840,7 +38242,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode getJsonProperty() { - return this.jsiiGet(\\"jsonProperty\\", com.fasterxml.jackson.databind.node.ObjectNode.class); + return this.jsiiGet("jsonProperty", com.fasterxml.jackson.databind.node.ObjectNode.class); } /** @@ -38848,7 +38250,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setJsonProperty(final @org.jetbrains.annotations.NotNull com.fasterxml.jackson.databind.node.ObjectNode value) { - this.jsiiSet(\\"jsonProperty\\", java.util.Objects.requireNonNull(value, \\"jsonProperty is required\\")); + this.jsiiSet("jsonProperty", java.util.Objects.requireNonNull(value, "jsonProperty is required")); } /** @@ -38856,7 +38258,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map getMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"mapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Number.class)))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("mapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Number.class)))); } /** @@ -38864,7 +38266,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet(\\"mapProperty\\", java.util.Objects.requireNonNull(value, \\"mapProperty is required\\")); + this.jsiiSet("mapProperty", java.util.Objects.requireNonNull(value, "mapProperty is required")); } /** @@ -38872,7 +38274,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getNumberProperty() { - return this.jsiiGet(\\"numberProperty\\", java.lang.Number.class); + return this.jsiiGet("numberProperty", java.lang.Number.class); } /** @@ -38880,7 +38282,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setNumberProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"numberProperty\\", java.util.Objects.requireNonNull(value, \\"numberProperty is required\\")); + this.jsiiSet("numberProperty", java.util.Objects.requireNonNull(value, "numberProperty is required")); } /** @@ -38888,7 +38290,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getStringProperty() { - return this.jsiiGet(\\"stringProperty\\", java.lang.String.class); + return this.jsiiGet("stringProperty", java.lang.String.class); } /** @@ -38896,7 +38298,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setStringProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"stringProperty\\", java.util.Objects.requireNonNull(value, \\"stringProperty is required\\")); + this.jsiiSet("stringProperty", java.util.Objects.requireNonNull(value, "stringProperty is required")); } /** @@ -38904,7 +38306,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getUnionArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"unionArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("unionArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -38912,7 +38314,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"unionArrayProperty\\", java.util.Objects.requireNonNull(value, \\"unionArrayProperty is required\\")); + this.jsiiSet("unionArrayProperty", java.util.Objects.requireNonNull(value, "unionArrayProperty is required")); } /** @@ -38920,7 +38322,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map getUnionMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"unionMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("unionMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -38928,7 +38330,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet(\\"unionMapProperty\\", java.util.Objects.requireNonNull(value, \\"unionMapProperty is required\\")); + this.jsiiSet("unionMapProperty", java.util.Objects.requireNonNull(value, "unionMapProperty is required")); } /** @@ -38936,7 +38338,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object getUnionProperty() { - return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + return this.jsiiGet("unionProperty", java.lang.Object.class); } /** @@ -38944,7 +38346,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); } /** @@ -38952,7 +38354,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); } /** @@ -38960,7 +38362,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Multiply value) { - this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); } /** @@ -38968,7 +38370,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number value) { - this.jsiiSet(\\"unionProperty\\", java.util.Objects.requireNonNull(value, \\"unionProperty is required\\")); + this.jsiiSet("unionProperty", java.util.Objects.requireNonNull(value, "unionProperty is required")); } /** @@ -38976,7 +38378,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getUnknownArrayProperty() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"unknownArrayProperty\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("unknownArrayProperty", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -38984,7 +38386,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnknownArrayProperty(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"unknownArrayProperty\\", java.util.Objects.requireNonNull(value, \\"unknownArrayProperty is required\\")); + this.jsiiSet("unknownArrayProperty", java.util.Objects.requireNonNull(value, "unknownArrayProperty is required")); } /** @@ -38992,7 +38394,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map getUnknownMapProperty() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"unknownMapProperty\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("unknownMapProperty", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -39000,7 +38402,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnknownMapProperty(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet(\\"unknownMapProperty\\", java.util.Objects.requireNonNull(value, \\"unknownMapProperty is required\\")); + this.jsiiSet("unknownMapProperty", java.util.Objects.requireNonNull(value, "unknownMapProperty is required")); } /** @@ -39008,7 +38410,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object getUnknownProperty() { - return this.jsiiGet(\\"unknownProperty\\", java.lang.Object.class); + return this.jsiiGet("unknownProperty", java.lang.Object.class); } /** @@ -39016,7 +38418,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnknownProperty(final @org.jetbrains.annotations.NotNull java.lang.Object value) { - this.jsiiSet(\\"unknownProperty\\", java.util.Objects.requireNonNull(value, \\"unknownProperty is required\\")); + this.jsiiSet("unknownProperty", java.util.Objects.requireNonNull(value, "unknownProperty is required")); } /** @@ -39024,7 +38426,7 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum getOptionalEnumValue() { - return this.jsiiGet(\\"optionalEnumValue\\", software.amazon.jsii.tests.calculator.StringEnum.class); + return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.StringEnum.class); } /** @@ -39032,23 +38434,21 @@ public class AllTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum value) { - this.jsiiSet(\\"optionalEnumValue\\", value); + this.jsiiSet("optionalEnumValue", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllTypesEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypesEnum") public enum AllTypesEnum { /** * EXPERIMENTAL @@ -39066,20 +38466,18 @@ public enum AllTypesEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) THIS_IS_GREAT, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AllowedMethodNames\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllowedMethodNames") public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { protected AllowedMethodNames(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39107,7 +38505,7 @@ public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void getBar(final @org.jetbrains.annotations.NotNull java.lang.String _p1, final @org.jetbrains.annotations.NotNull java.lang.Number _p2) { - this.jsiiCall(\\"getBar\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_p1, \\"_p1 is required\\"), java.util.Objects.requireNonNull(_p2, \\"_p2 is required\\") }); + this.jsiiCall("getBar", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_p1, "_p1 is required"), java.util.Objects.requireNonNull(_p2, "_p2 is required") }); } /** @@ -39119,7 +38517,7 @@ public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getFoo(final @org.jetbrains.annotations.NotNull java.lang.String withParam) { - return this.jsiiCall(\\"getFoo\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(withParam, \\"withParam is required\\") }); + return this.jsiiCall("getFoo", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(withParam, "withParam is required") }); } /** @@ -39131,7 +38529,7 @@ public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setBar(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y, final @org.jetbrains.annotations.NotNull java.lang.Boolean _z) { - this.jsiiCall(\\"setBar\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, \\"_x is required\\"), java.util.Objects.requireNonNull(_y, \\"_y is required\\"), java.util.Objects.requireNonNull(_z, \\"_z is required\\") }); + this.jsiiCall("setBar", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, "_x is required"), java.util.Objects.requireNonNull(_y, "_y is required"), java.util.Objects.requireNonNull(_z, "_z is required") }); } /** @@ -39144,23 +38542,21 @@ public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.String _x, final @org.jetbrains.annotations.NotNull java.lang.Number _y) { - this.jsiiCall(\\"setFoo\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, \\"_x is required\\"), java.util.Objects.requireNonNull(_y, \\"_y is required\\") }); + this.jsiiCall("setFoo", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_x, "_x is required"), java.util.Objects.requireNonNull(_y, "_y is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AmbiguousParameters\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AmbiguousParameters") public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { protected AmbiguousParameters(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39180,7 +38576,7 @@ public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \\"scope is required\\"), java.util.Objects.requireNonNull(props, \\"props is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** @@ -39188,7 +38584,7 @@ public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType getProps() { - return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.StructParameterType.class); + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.StructParameterType.class); } /** @@ -39196,7 +38592,7 @@ public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell getScope() { - return this.jsiiGet(\\"scope\\", software.amazon.jsii.tests.calculator.Bell.class); + return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.Bell.class); } /** @@ -39260,20 +38656,18 @@ public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AnonymousImplementationProvider\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AnonymousImplementationProvider") public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39299,7 +38693,7 @@ public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiOb @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall(\\"provideAsClass\\", software.amazon.jsii.tests.calculator.Implementation.class); + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); } /** @@ -39308,23 +38702,21 @@ public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiOb @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall(\\"provideAsInterface\\", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AsyncVirtualMethods\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AsyncVirtualMethods") public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39349,31 +38741,31 @@ public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number callMe() { - return this.jsiiAsyncCall(\\"callMe\\", java.lang.Number.class); + return this.jsiiAsyncCall("callMe", java.lang.Number.class); } /** - * Just calls \\"overrideMeToo\\". + * Just calls "overrideMeToo". *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number callMe2() { - return this.jsiiAsyncCall(\\"callMe2\\", java.lang.Number.class); + return this.jsiiAsyncCall("callMe2", java.lang.Number.class); } /** - * This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + * This method calls the "callMe" async method indirectly, which will then invoke a virtual method. *

- * This is a \\"double promise\\" situation, which + * This is a "double promise" situation, which * means that callbacks are not going to be available immediate, but only - * after an \\"immediates\\" cycle. + * after an "immediates" cycle. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number callMeDoublePromise() { - return this.jsiiAsyncCall(\\"callMeDoublePromise\\", java.lang.Number.class); + return this.jsiiAsyncCall("callMeDoublePromise", java.lang.Number.class); } /** @@ -39381,7 +38773,7 @@ public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number dontOverrideMe() { - return this.jsiiCall(\\"dontOverrideMe\\", java.lang.Number.class); + return this.jsiiCall("dontOverrideMe", java.lang.Number.class); } /** @@ -39391,7 +38783,7 @@ public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number overrideMe(final @org.jetbrains.annotations.NotNull java.lang.Number mult) { - return this.jsiiAsyncCall(\\"overrideMe\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(mult, \\"mult is required\\") }); + return this.jsiiAsyncCall("overrideMe", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(mult, "mult is required") }); } /** @@ -39399,23 +38791,21 @@ public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeToo() { - return this.jsiiAsyncCall(\\"overrideMeToo\\", java.lang.Number.class); + return this.jsiiAsyncCall("overrideMeToo", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.AugmentableClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AugmentableClass") public class AugmentableClass extends software.amazon.jsii.JsiiObject { protected AugmentableClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39440,7 +38830,7 @@ public class AugmentableClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodOne() { - this.jsiiCall(\\"methodOne\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("methodOne", software.amazon.jsii.NativeType.VOID); } /** @@ -39448,23 +38838,21 @@ public class AugmentableClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodTwo() { - this.jsiiCall(\\"methodTwo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("methodTwo", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BaseJsii976\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BaseJsii976") public class BaseJsii976 extends software.amazon.jsii.JsiiObject { protected BaseJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39484,20 +38872,18 @@ public class BaseJsii976 extends software.amazon.jsii.JsiiObject { software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Bell\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Bell") public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { protected Bell(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39523,7 +38909,7 @@ public class Bell extends software.amazon.jsii.JsiiObject implements software.am @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void ring() { - this.jsiiCall(\\"ring\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("ring", software.amazon.jsii.NativeType.VOID); } /** @@ -39531,7 +38917,7 @@ public class Bell extends software.amazon.jsii.JsiiObject implements software.am */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getRung() { - return this.jsiiGet(\\"rung\\", java.lang.Boolean.class); + return this.jsiiGet("rung", java.lang.Boolean.class); } /** @@ -39539,25 +38925,23 @@ public class Bell extends software.amazon.jsii.JsiiObject implements software.am */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setRung(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - this.jsiiSet(\\"rung\\", java.util.Objects.requireNonNull(value, \\"rung is required\\")); + this.jsiiSet("rung", java.util.Objects.requireNonNull(value, "rung is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BinaryOperation.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Represents an operation with two operands. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BinaryOperation\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BinaryOperation") public abstract class BinaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation implements software.amazon.jsii.tests.calculator.lib.IFriendly { protected BinaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39579,7 +38963,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected BinaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); } /** @@ -39590,7 +38974,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } /** @@ -39600,7 +38984,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getLhs() { - return this.jsiiGet(\\"lhs\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("lhs", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -39610,7 +38994,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getRhs() { - return this.jsiiGet(\\"rhs\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("rhs", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -39628,7 +39012,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -39638,7 +39022,7 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } /** @@ -39648,26 +39032,24 @@ public abstract class BinaryOperation extends software.amazon.jsii.tests.calcula @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/BurriedAnonymousObject.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * See https://github.com/aws/aws-cdk/issues/7977. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.BurriedAnonymousObject\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BurriedAnonymousObject") public abstract class BurriedAnonymousObject extends software.amazon.jsii.JsiiObject { protected BurriedAnonymousObject(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39692,7 +39074,7 @@ public abstract class BurriedAnonymousObject extends software.amazon.jsii.JsiiOb */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean check() { - return this.jsiiCall(\\"check\\", java.lang.Boolean.class); + return this.jsiiCall("check", java.lang.Boolean.class); } /** @@ -39725,17 +39107,15 @@ public abstract class BurriedAnonymousObject extends software.amazon.jsii.JsiiOb @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Object giveItBack(final @org.jetbrains.annotations.NotNull java.lang.Object value) { - return this.jsiiCall(\\"giveItBack\\", java.lang.Object.class, new Object[] { value }); + return this.jsiiCall("giveItBack", java.lang.Object.class, new Object[] { value }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Calculator.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * A calculator which maintains a current value and allows adding operations. @@ -39763,9 +39143,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Calculator\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Calculator") public class Calculator extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { protected Calculator(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -39809,7 +39189,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void add(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall(\\"add\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("add", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -39821,7 +39201,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void mul(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall(\\"mul\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("mul", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -39831,7 +39211,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void neg() { - this.jsiiCall(\\"neg\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("neg", software.amazon.jsii.NativeType.VOID); } /** @@ -39843,7 +39223,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void pow(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall(\\"pow\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("pow", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -39853,7 +39233,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number readUnionValue() { - return this.jsiiCall(\\"readUnionValue\\", java.lang.Number.class); + return this.jsiiCall("readUnionValue", java.lang.Number.class); } /** @@ -39864,7 +39244,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -39874,7 +39254,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getOperationsLog() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"operationsLog\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("operationsLog", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); } /** @@ -39884,7 +39264,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map> getOperationsMap() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"operationsMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("operationsMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))))); } /** @@ -39894,7 +39274,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getCurr() { - return this.jsiiGet(\\"curr\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("curr", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -39904,7 +39284,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setCurr(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value value) { - this.jsiiSet(\\"curr\\", java.util.Objects.requireNonNull(value, \\"curr is required\\")); + this.jsiiSet("curr", java.util.Objects.requireNonNull(value, "curr is required")); } /** @@ -39914,7 +39294,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Number getMaxValue() { - return this.jsiiGet(\\"maxValue\\", java.lang.Number.class); + return this.jsiiGet("maxValue", java.lang.Number.class); } /** @@ -39924,7 +39304,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMaxValue(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"maxValue\\", value); + this.jsiiSet("maxValue", value); } /** @@ -39934,7 +39314,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { - return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + return this.jsiiGet("unionProperty", java.lang.Object.class); } /** @@ -39944,7 +39324,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Add value) { - this.jsiiSet(\\"unionProperty\\", value); + this.jsiiSet("unionProperty", value); } /** @@ -39954,7 +39334,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Multiply value) { - this.jsiiSet(\\"unionProperty\\", value); + this.jsiiSet("unionProperty", value); } /** @@ -39964,7 +39344,7 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Power value) { - this.jsiiSet(\\"unionProperty\\", value); + this.jsiiSet("unionProperty", value); } /** @@ -40040,21 +39420,19 @@ public class Calculator extends software.amazon.jsii.tests.calculator.compositio } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/CalculatorProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Properties for Calculator. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.CalculatorProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.CalculatorProps") @software.amazon.jsii.Jsii.Proxy(CalculatorProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { @@ -40149,8 +39527,8 @@ public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.initialValue = this.jsiiGet(\\"initialValue\\", java.lang.Number.class); - this.maximumValue = this.jsiiGet(\\"maximumValue\\", java.lang.Number.class); + this.initialValue = this.jsiiGet("initialValue", java.lang.Number.class); + this.maximumValue = this.jsiiGet("maximumValue", java.lang.Number.class); } /** @@ -40178,18 +39556,18 @@ public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getInitialValue() != null) { - data.set(\\"initialValue\\", om.valueToTree(this.getInitialValue())); + data.set("initialValue", om.valueToTree(this.getInitialValue())); } if (this.getMaximumValue() != null) { - data.set(\\"maximumValue\\", om.valueToTree(this.getMaximumValue())); + data.set("maximumValue", om.valueToTree(this.getMaximumValue())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.CalculatorProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.CalculatorProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -40213,19 +39591,17 @@ public interface CalculatorProps extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ChildStruct982\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ChildStruct982") @software.amazon.jsii.Jsii.Proxy(ChildStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.ParentStruct982 { @@ -40299,8 +39675,8 @@ public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, s */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.bar = this.jsiiGet(\\"bar\\", java.lang.Number.class); - this.foo = this.jsiiGet(\\"foo\\", java.lang.String.class); + this.bar = this.jsiiGet("bar", java.lang.Number.class); + this.foo = this.jsiiGet("foo", java.lang.String.class); } /** @@ -40308,8 +39684,8 @@ public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, s */ private Jsii$Proxy(final java.lang.Number bar, final java.lang.String foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -40327,15 +39703,15 @@ public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, s final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"bar\\", om.valueToTree(this.getBar())); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("bar", om.valueToTree(this.getBar())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ChildStruct982\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ChildStruct982")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -40359,20 +39735,18 @@ public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, s } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassThatImplementsTheInternalInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsTheInternalInterface") public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40398,7 +39772,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet(\\"a\\", java.lang.String.class); + return this.jsiiGet("a", java.lang.String.class); } /** @@ -40407,7 +39781,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); } /** @@ -40416,7 +39790,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet(\\"b\\", java.lang.String.class); + return this.jsiiGet("b", java.lang.String.class); } /** @@ -40425,7 +39799,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); } /** @@ -40434,7 +39808,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet(\\"c\\", java.lang.String.class); + return this.jsiiGet("c", java.lang.String.class); } /** @@ -40443,7 +39817,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); } /** @@ -40451,7 +39825,7 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getD() { - return this.jsiiGet(\\"d\\", java.lang.String.class); + return this.jsiiGet("d", java.lang.String.class); } /** @@ -40459,23 +39833,21 @@ public class ClassThatImplementsTheInternalInterface extends software.amazon.jsi */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setD(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"d\\", java.util.Objects.requireNonNull(value, \\"d is required\\")); + this.jsiiSet("d", java.util.Objects.requireNonNull(value, "d is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassThatImplementsThePrivateInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsThePrivateInterface") public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40501,7 +39873,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet(\\"a\\", java.lang.String.class); + return this.jsiiGet("a", java.lang.String.class); } /** @@ -40510,7 +39882,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); } /** @@ -40519,7 +39891,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet(\\"b\\", java.lang.String.class); + return this.jsiiGet("b", java.lang.String.class); } /** @@ -40528,7 +39900,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); } /** @@ -40537,7 +39909,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet(\\"c\\", java.lang.String.class); + return this.jsiiGet("c", java.lang.String.class); } /** @@ -40546,7 +39918,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); } /** @@ -40554,7 +39926,7 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getE() { - return this.jsiiGet(\\"e\\", java.lang.String.class); + return this.jsiiGet("e", java.lang.String.class); } /** @@ -40562,23 +39934,21 @@ public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setE(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"e\\", java.util.Objects.requireNonNull(value, \\"e is required\\")); + this.jsiiSet("e", java.util.Objects.requireNonNull(value, "e is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithCollections\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithCollections") public class ClassWithCollections extends software.amazon.jsii.JsiiObject { protected ClassWithCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40598,7 +39968,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.Map map, final @org.jetbrains.annotations.NotNull java.util.List array) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(map, \\"map is required\\"), java.util.Objects.requireNonNull(array, \\"array is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(map, "map is required"), java.util.Objects.requireNonNull(array, "array is required") }); } /** @@ -40606,7 +39976,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List createAList() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"createAList\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40614,7 +39984,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map createAMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"createAMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40622,7 +39992,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List getStaticArray() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40630,7 +40000,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticArray\\", java.util.Objects.requireNonNull(value, \\"staticArray is required\\")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); } /** @@ -40638,7 +40008,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map getStaticMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40646,7 +40016,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, \\"staticMap\\", java.util.Objects.requireNonNull(value, \\"staticMap is required\\")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); } /** @@ -40654,7 +40024,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getArray() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"array\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("array", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40662,7 +40032,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"array\\", java.util.Objects.requireNonNull(value, \\"array is required\\")); + this.jsiiSet("array", java.util.Objects.requireNonNull(value, "array is required")); } /** @@ -40670,7 +40040,7 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.Map getMap() { - return java.util.Collections.unmodifiableMap(this.jsiiGet(\\"map\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(this.jsiiGet("map", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -40678,16 +40048,14 @@ public class ClassWithCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - this.jsiiSet(\\"map\\", java.util.Objects.requireNonNull(value, \\"map is required\\")); + this.jsiiSet("map", java.util.Objects.requireNonNull(value, "map is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This class has docs. @@ -40703,9 +40071,9 @@ Object { *

* @see https://aws.amazon.com/ */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithDocs\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithDocs") public class ClassWithDocs extends software.amazon.jsii.JsiiObject { protected ClassWithDocs(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40725,20 +40093,18 @@ public class ClassWithDocs extends software.amazon.jsii.JsiiObject { software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithJavaReservedWords\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithJavaReservedWords") public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject { protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40757,7 +40123,7 @@ public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ClassWithJavaReservedWords(final @org.jetbrains.annotations.NotNull java.lang.String intValue) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(intValue, \\"intValue is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(intValue, "intValue is required") }); } /** @@ -40767,7 +40133,7 @@ public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String doImport(final @org.jetbrains.annotations.NotNull java.lang.String assertValue) { - return this.jsiiCall(\\"import\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(assertValue, \\"assertValue is required\\") }); + return this.jsiiCall("import", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(assertValue, "assertValue is required") }); } /** @@ -40775,23 +40141,21 @@ public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getIntValue() { - return this.jsiiGet(\\"int\\", java.lang.String.class); + return this.jsiiGet("int", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithMutableObjectLiteralProperty\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithMutableObjectLiteralProperty") public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii.JsiiObject { protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40816,7 +40180,7 @@ public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral getMutableObject() { - return this.jsiiGet(\\"mutableObject\\", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); + return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); } /** @@ -40824,25 +40188,23 @@ public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral value) { - this.jsiiSet(\\"mutableObject\\", java.util.Objects.requireNonNull(value, \\"mutableObject is required\\")); + this.jsiiSet("mutableObject", java.util.Objects.requireNonNull(value, "mutableObject is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Class that implements interface properties automatically, but using a private constructor. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties") public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40861,7 +40223,7 @@ public class ClassWithPrivateConstructorAndAutomaticProperties extends software. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, \\"create\\", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, \\"readOnlyString is required\\"), java.util.Objects.requireNonNull(readWriteString, \\"readWriteString is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); } /** @@ -40870,7 +40232,7 @@ public class ClassWithPrivateConstructorAndAutomaticProperties extends software. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + return this.jsiiGet("readOnlyString", java.lang.String.class); } /** @@ -40879,7 +40241,7 @@ public class ClassWithPrivateConstructorAndAutomaticProperties extends software. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + return this.jsiiGet("readWriteString", java.lang.String.class); } /** @@ -40888,16 +40250,14 @@ public class ClassWithPrivateConstructorAndAutomaticProperties extends software. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This tries to confuse Jackson by having overloaded property setters. @@ -40906,9 +40266,9 @@ Object { *

* @see https://github.com/aws/aws-cdk/issues/4080 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConfusingToJackson\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJackson") public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { protected ConfusingToJackson(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -40924,7 +40284,7 @@ public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJackson makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, \\"makeInstance\\", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); } /** @@ -40932,7 +40292,7 @@ public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct makeStructInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, \\"makeStructInstance\\", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); } /** @@ -40940,7 +40300,7 @@ public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Object getUnionProperty() { - return this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + return this.jsiiGet("unionProperty", java.lang.Object.class); } /** @@ -40948,7 +40308,7 @@ public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.IFriendly value) { - this.jsiiSet(\\"unionProperty\\", value); + this.jsiiSet("unionProperty", value); } /** @@ -40956,22 +40316,20 @@ public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setUnionProperty(final @org.jetbrains.annotations.Nullable java.util.List value) { - this.jsiiSet(\\"unionProperty\\", value); + this.jsiiSet("unionProperty", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConfusingToJacksonStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJacksonStruct") @software.amazon.jsii.Jsii.Proxy(ConfusingToJacksonStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSerializable { @@ -41045,7 +40403,7 @@ public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSeria */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.unionProperty = this.jsiiGet(\\"unionProperty\\", java.lang.Object.class); + this.unionProperty = this.jsiiGet("unionProperty", java.lang.Object.class); } /** @@ -41067,15 +40425,15 @@ public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSeria final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getUnionProperty() != null) { - data.set(\\"unionProperty\\", om.valueToTree(this.getUnionProperty())); + data.set("unionProperty", om.valueToTree(this.getUnionProperty())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ConfusingToJacksonStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ConfusingToJacksonStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -41097,20 +40455,18 @@ public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSeria } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConstructorPassesThisOut\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConstructorPassesThisOut") public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41129,23 +40485,21 @@ public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer consumer) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, \\"consumer is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, "consumer is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Constructors\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Constructors") public class Constructors extends software.amazon.jsii.JsiiObject { protected Constructors(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41170,7 +40524,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface hiddenInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenInterface\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); } /** @@ -41178,7 +40532,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } /** @@ -41186,7 +40540,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"hiddenSubInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } /** @@ -41194,7 +40548,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PublicClass makeClass() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeClass\\", software.amazon.jsii.tests.calculator.PublicClass.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.PublicClass.class); } /** @@ -41202,7 +40556,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface makeInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterface\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); } /** @@ -41210,7 +40564,7 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface2 makeInterface2() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterface2\\", software.amazon.jsii.tests.calculator.IPublicInterface2.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.IPublicInterface2.class); } /** @@ -41218,23 +40572,21 @@ public class Constructors extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, \\"makeInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumePureInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumePureInterface") public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { protected ConsumePureInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41253,7 +40605,7 @@ public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IStructReturningDelegate delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } /** @@ -41261,16 +40613,14 @@ public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB workItBaby() { - return this.jsiiCall(\\"workItBaby\\", software.amazon.jsii.tests.calculator.StructB.class); + return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.StructB.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Test calling back to consumers that implement interfaces. @@ -41280,9 +40630,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumerCanRingBell\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumerCanRingBell") public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41313,7 +40663,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByObjectLiteral\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41327,7 +40677,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByPrivateClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41341,7 +40691,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticImplementedByPublicClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41355,7 +40705,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, \\"staticWhenTypedAsClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41369,7 +40719,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall(\\"implementedByObjectLiteral\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return this.jsiiCall("implementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41383,7 +40733,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall(\\"implementedByPrivateClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return this.jsiiCall("implementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41397,7 +40747,7 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return this.jsiiCall(\\"implementedByPublicClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return this.jsiiCall("implementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -41411,23 +40761,21 @@ public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { - return this.jsiiCall(\\"whenTypedAsClass\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, \\"ringer is required\\") }); + return this.jsiiCall("whenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumersOfThisCrazyTypeSystem") public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObject { protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41454,7 +40802,7 @@ public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnotherPublicInterface obj) { - return this.jsiiCall(\\"consumeAnotherPublicInterface\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + return this.jsiiCall("consumeAnotherPublicInterface", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } /** @@ -41464,25 +40812,23 @@ public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.INonInternalInterface obj) { - return this.jsiiCall(\\"consumeNonInternalInterface\\", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + return this.jsiiCall("consumeNonInternalInterface", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies proper type handling through dynamic overrides. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DataRenderer\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DataRenderer") public class DataRenderer extends software.amazon.jsii.JsiiObject { protected DataRenderer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41509,7 +40855,7 @@ public class DataRenderer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String render(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.MyFirstStruct data) { - return this.jsiiCall(\\"render\\", java.lang.String.class, new Object[] { data }); + return this.jsiiCall("render", java.lang.String.class, new Object[] { data }); } /** @@ -41517,7 +40863,7 @@ public class DataRenderer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String render() { - return this.jsiiCall(\\"render\\", java.lang.String.class); + return this.jsiiCall("render", java.lang.String.class); } /** @@ -41527,7 +40873,7 @@ public class DataRenderer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String renderArbitrary(final @org.jetbrains.annotations.NotNull java.util.Map data) { - return this.jsiiCall(\\"renderArbitrary\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(data, \\"data is required\\") }); + return this.jsiiCall("renderArbitrary", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(data, "data is required") }); } /** @@ -41537,23 +40883,21 @@ public class DataRenderer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String renderMap(final @org.jetbrains.annotations.NotNull java.util.Map map) { - return this.jsiiCall(\\"renderMap\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(map, \\"map is required\\") }); + return this.jsiiCall("renderMap", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(map, "map is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DefaultedConstructorArgument\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DefaultedConstructorArgument") public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObject { protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41614,7 +40958,7 @@ public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { - return this.jsiiGet(\\"arg1\\", java.lang.Number.class); + return this.jsiiGet("arg1", java.lang.Number.class); } /** @@ -41622,7 +40966,7 @@ public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.time.Instant getArg3() { - return this.jsiiGet(\\"arg3\\", java.time.Instant.class); + return this.jsiiGet("arg3", java.time.Instant.class); } /** @@ -41630,16 +40974,14 @@ public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getArg2() { - return this.jsiiGet(\\"arg2\\", java.lang.String.class); + return this.jsiiGet("arg2", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * 1. @@ -41649,9 +40991,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Demonstrate982\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Demonstrate982") public class Demonstrate982 extends software.amazon.jsii.JsiiObject { protected Demonstrate982(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41678,7 +41020,7 @@ public class Demonstrate982 extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ChildStruct982 takeThis() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, \\"takeThis\\", software.amazon.jsii.tests.calculator.ChildStruct982.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.ChildStruct982.class); } /** @@ -41688,24 +41030,22 @@ public class Demonstrate982 extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ParentStruct982 takeThisToo() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, \\"takeThisToo\\", software.amazon.jsii.tests.calculator.ParentStruct982.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.ParentStruct982.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * @deprecated a pretty boring class */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedClass") public class DeprecatedClass extends software.amazon.jsii.JsiiObject { protected DeprecatedClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -41717,7 +41057,7 @@ public class DeprecatedClass extends software.amazon.jsii.JsiiObject { } /** - * @deprecated this constructor is \\"just\\" okay + * @deprecated this constructor is "just" okay * @param readonlyString This parameter is required. * @param mutableNumber */ @@ -41725,18 +41065,18 @@ public class DeprecatedClass extends software.amazon.jsii.JsiiObject { @Deprecated public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); } /** - * @deprecated this constructor is \\"just\\" okay + * @deprecated this constructor is "just" okay * @param readonlyString This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public DeprecatedClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); } /** @@ -41745,16 +41085,16 @@ public class DeprecatedClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } /** - * @deprecated this is not always \\"wazoo\\", be ready to be disappointed + * @deprecated this is not always "wazoo", be ready to be disappointed */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + return this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -41763,7 +41103,7 @@ public class DeprecatedClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -41772,24 +41112,22 @@ public class DeprecatedClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * @deprecated your deprecated selection of bad options */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedEnum") public enum DeprecatedEnum { /** * @deprecated option A is not great @@ -41804,19 +41142,17 @@ public enum DeprecatedEnum { @Deprecated OPTION_B, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * @deprecated it just wraps a string */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DeprecatedStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedStruct") @software.amazon.jsii.Jsii.Proxy(DeprecatedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -41885,7 +41221,7 @@ public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -41893,7 +41229,7 @@ public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable */ private Jsii$Proxy(final java.lang.String readonlyProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); } @Override @@ -41906,14 +41242,14 @@ public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DeprecatedStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DeprecatedStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -41935,21 +41271,19 @@ public interface DeprecatedStruct extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * A struct which derives from another struct. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedStruct") @software.amazon.jsii.Jsii.Proxy(DerivedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.MyFirstStruct { @@ -42157,15 +41491,15 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.anotherRequired = this.jsiiGet(\\"anotherRequired\\", java.time.Instant.class); - this.bool = this.jsiiGet(\\"bool\\", java.lang.Boolean.class); - this.nonPrimitive = this.jsiiGet(\\"nonPrimitive\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class); - this.anotherOptional = this.jsiiGet(\\"anotherOptional\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); - this.optionalAny = this.jsiiGet(\\"optionalAny\\", java.lang.Object.class); - this.optionalArray = this.jsiiGet(\\"optionalArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); - this.anumber = this.jsiiGet(\\"anumber\\", java.lang.Number.class); - this.astring = this.jsiiGet(\\"astring\\", java.lang.String.class); - this.firstOptional = this.jsiiGet(\\"firstOptional\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + this.anotherRequired = this.jsiiGet("anotherRequired", java.time.Instant.class); + this.bool = this.jsiiGet("bool", java.lang.Boolean.class); + this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + this.anotherOptional = this.jsiiGet("anotherOptional", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); + this.optionalAny = this.jsiiGet("optionalAny", java.lang.Object.class); + this.optionalArray = this.jsiiGet("optionalArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); + this.anumber = this.jsiiGet("anumber", java.lang.Number.class); + this.astring = this.jsiiGet("astring", java.lang.String.class); + this.firstOptional = this.jsiiGet("firstOptional", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); } /** @@ -42173,14 +41507,14 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so */ private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, \\"anotherRequired is required\\"); - this.bool = java.util.Objects.requireNonNull(bool, \\"bool is required\\"); - this.nonPrimitive = java.util.Objects.requireNonNull(nonPrimitive, \\"nonPrimitive is required\\"); + this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, "anotherRequired is required"); + this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); + this.nonPrimitive = java.util.Objects.requireNonNull(nonPrimitive, "nonPrimitive is required"); this.anotherOptional = anotherOptional; this.optionalAny = optionalAny; this.optionalArray = optionalArray; - this.anumber = java.util.Objects.requireNonNull(anumber, \\"anumber is required\\"); - this.astring = java.util.Objects.requireNonNull(astring, \\"astring is required\\"); + this.anumber = java.util.Objects.requireNonNull(anumber, "anumber is required"); + this.astring = java.util.Objects.requireNonNull(astring, "astring is required"); this.firstOptional = firstOptional; } @@ -42234,30 +41568,30 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"anotherRequired\\", om.valueToTree(this.getAnotherRequired())); - data.set(\\"bool\\", om.valueToTree(this.getBool())); - data.set(\\"nonPrimitive\\", om.valueToTree(this.getNonPrimitive())); + data.set("anotherRequired", om.valueToTree(this.getAnotherRequired())); + data.set("bool", om.valueToTree(this.getBool())); + data.set("nonPrimitive", om.valueToTree(this.getNonPrimitive())); if (this.getAnotherOptional() != null) { - data.set(\\"anotherOptional\\", om.valueToTree(this.getAnotherOptional())); + data.set("anotherOptional", om.valueToTree(this.getAnotherOptional())); } if (this.getOptionalAny() != null) { - data.set(\\"optionalAny\\", om.valueToTree(this.getOptionalAny())); + data.set("optionalAny", om.valueToTree(this.getOptionalAny())); } if (this.getOptionalArray() != null) { - data.set(\\"optionalArray\\", om.valueToTree(this.getOptionalArray())); + data.set("optionalArray", om.valueToTree(this.getOptionalArray())); } - data.set(\\"anumber\\", om.valueToTree(this.getAnumber())); - data.set(\\"astring\\", om.valueToTree(this.getAstring())); + data.set("anumber", om.valueToTree(this.getAnumber())); + data.set("astring", om.valueToTree(this.getAstring())); if (this.getFirstOptional() != null) { - data.set(\\"firstOptional\\", om.valueToTree(this.getFirstOptional())); + data.set("firstOptional", om.valueToTree(this.getFirstOptional())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DerivedStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DerivedStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -42295,19 +41629,17 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceBaseLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceBaseLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceBaseLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -42368,7 +41700,7 @@ public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); } /** @@ -42376,7 +41708,7 @@ public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii. */ private Jsii$Proxy(final java.lang.String baseLevelProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); } @Override @@ -42389,14 +41721,14 @@ public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii. final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceBaseLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceBaseLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -42418,19 +41750,17 @@ public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii. } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceFirstMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { @@ -42504,8 +41834,8 @@ public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.j */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.firstMidLevelProperty = this.jsiiGet(\\"firstMidLevelProperty\\", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + this.firstMidLevelProperty = this.jsiiGet("firstMidLevelProperty", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); } /** @@ -42513,8 +41843,8 @@ public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.j */ private Jsii$Proxy(final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, \\"firstMidLevelProperty is required\\"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, "firstMidLevelProperty is required"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); } @Override @@ -42532,15 +41862,15 @@ public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.j final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"firstMidLevelProperty\\", om.valueToTree(this.getFirstMidLevelProperty())); - data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + data.set("firstMidLevelProperty", om.valueToTree(this.getFirstMidLevelProperty())); + data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceFirstMidLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -42564,19 +41894,17 @@ public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.j } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceSecondMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { @@ -42650,8 +41978,8 @@ public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.secondMidLevelProperty = this.jsiiGet(\\"secondMidLevelProperty\\", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); + this.secondMidLevelProperty = this.jsiiGet("secondMidLevelProperty", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); } /** @@ -42659,8 +41987,8 @@ public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon. */ private Jsii$Proxy(final java.lang.String secondMidLevelProperty, final java.lang.String baseLevelProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, \\"secondMidLevelProperty is required\\"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); + this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, "secondMidLevelProperty is required"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); } @Override @@ -42678,15 +42006,15 @@ public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon. final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"secondMidLevelProperty\\", om.valueToTree(this.getSecondMidLevelProperty())); - data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); + data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); + data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceSecondMidLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -42710,19 +42038,17 @@ public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon. } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DiamondInheritanceTopLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceTopLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceTopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct { @@ -42822,10 +42148,10 @@ public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.J */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.topLevelProperty = this.jsiiGet(\\"topLevelProperty\\", java.lang.String.class); - this.firstMidLevelProperty = this.jsiiGet(\\"firstMidLevelProperty\\", java.lang.String.class); - this.baseLevelProperty = this.jsiiGet(\\"baseLevelProperty\\", java.lang.String.class); - this.secondMidLevelProperty = this.jsiiGet(\\"secondMidLevelProperty\\", java.lang.String.class); + this.topLevelProperty = this.jsiiGet("topLevelProperty", java.lang.String.class); + this.firstMidLevelProperty = this.jsiiGet("firstMidLevelProperty", java.lang.String.class); + this.baseLevelProperty = this.jsiiGet("baseLevelProperty", java.lang.String.class); + this.secondMidLevelProperty = this.jsiiGet("secondMidLevelProperty", java.lang.String.class); } /** @@ -42833,10 +42159,10 @@ public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.J */ private Jsii$Proxy(final java.lang.String topLevelProperty, final java.lang.String firstMidLevelProperty, final java.lang.String baseLevelProperty, final java.lang.String secondMidLevelProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.topLevelProperty = java.util.Objects.requireNonNull(topLevelProperty, \\"topLevelProperty is required\\"); - this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, \\"firstMidLevelProperty is required\\"); - this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, \\"baseLevelProperty is required\\"); - this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, \\"secondMidLevelProperty is required\\"); + this.topLevelProperty = java.util.Objects.requireNonNull(topLevelProperty, "topLevelProperty is required"); + this.firstMidLevelProperty = java.util.Objects.requireNonNull(firstMidLevelProperty, "firstMidLevelProperty is required"); + this.baseLevelProperty = java.util.Objects.requireNonNull(baseLevelProperty, "baseLevelProperty is required"); + this.secondMidLevelProperty = java.util.Objects.requireNonNull(secondMidLevelProperty, "secondMidLevelProperty is required"); } @Override @@ -42864,17 +42190,17 @@ public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.J final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"topLevelProperty\\", om.valueToTree(this.getTopLevelProperty())); - data.set(\\"firstMidLevelProperty\\", om.valueToTree(this.getFirstMidLevelProperty())); - data.set(\\"baseLevelProperty\\", om.valueToTree(this.getBaseLevelProperty())); - data.set(\\"secondMidLevelProperty\\", om.valueToTree(this.getSecondMidLevelProperty())); + data.set("topLevelProperty", om.valueToTree(this.getTopLevelProperty())); + data.set("firstMidLevelProperty", om.valueToTree(this.getFirstMidLevelProperty())); + data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); + data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.DiamondInheritanceTopLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceTopLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -42902,13 +42228,11 @@ public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.J } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that null/undefined can be returned for optional collections. @@ -42917,9 +42241,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DisappointingCollectionSource\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DisappointingCollectionSource") public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObject { protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -42931,8 +42255,8 @@ public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObje } static { - MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, \\"maybeList\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); - MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, \\"maybeMap\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); + MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); + MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); } /** @@ -42955,20 +42279,18 @@ public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObje @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static java.util.Map MAYBE_MAP; } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoNotOverridePrivates\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotOverridePrivates") public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -42995,7 +42317,7 @@ public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void changePrivatePropertyValue(final @org.jetbrains.annotations.NotNull java.lang.String newValue) { - this.jsiiCall(\\"changePrivatePropertyValue\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(newValue, \\"newValue is required\\") }); + this.jsiiCall("changePrivatePropertyValue", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(newValue, "newValue is required") }); } /** @@ -43003,7 +42325,7 @@ public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String privateMethodValue() { - return this.jsiiCall(\\"privateMethodValue\\", java.lang.String.class); + return this.jsiiCall("privateMethodValue", java.lang.String.class); } /** @@ -43011,25 +42333,23 @@ public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String privatePropertyValue() { - return this.jsiiCall(\\"privatePropertyValue\\", java.lang.String.class); + return this.jsiiCall("privatePropertyValue", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * jsii#284: do not recognize \\"any\\" as an optional argument. + * jsii#284: do not recognize "any" as an optional argument. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoNotRecognizeAnyAsOptional\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotRecognizeAnyAsOptional") public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject { protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43058,7 +42378,7 @@ public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny, final @org.jetbrains.annotations.Nullable java.lang.String _optionalString) { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny, _optionalString }); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny, _optionalString }); } /** @@ -43069,7 +42389,7 @@ public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny, final @org.jetbrains.annotations.Nullable java.lang.Object _optionalAny) { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny }); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny, _optionalAny }); } /** @@ -43079,16 +42399,14 @@ public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void method(final @org.jetbrains.annotations.NotNull java.lang.Object _requiredAny) { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny }); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID, new Object[] { _requiredAny }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Here's the first line of the TSDoc comment. @@ -43098,9 +42416,9 @@ Object { *

* Multiple paragraphs are separated by an empty line. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DocumentedClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DocumentedClass") public class DocumentedClass extends software.amazon.jsii.JsiiObject { protected DocumentedClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43131,7 +42449,7 @@ public class DocumentedClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Greetee greetee) { - return this.jsiiCall(\\"greet\\", java.lang.Number.class, new Object[] { greetee }); + return this.jsiiCall("greet", java.lang.Number.class, new Object[] { greetee }); } /** @@ -43144,7 +42462,7 @@ public class DocumentedClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Number greet() { - return this.jsiiCall(\\"greet\\", java.lang.Number.class); + return this.jsiiCall("greet", java.lang.Number.class); } /** @@ -43154,23 +42472,21 @@ public class DocumentedClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void hola() { - this.jsiiCall(\\"hola\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("hola", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DontComplainAboutVariadicAfterOptional\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DontComplainAboutVariadicAfterOptional") public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii.JsiiObject { protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43198,23 +42514,21 @@ public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String optionalAndVariadic(final @org.jetbrains.annotations.Nullable java.lang.String optional, final @org.jetbrains.annotations.NotNull java.lang.String... things) { - return this.jsiiCall(\\"optionalAndVariadic\\", java.lang.String.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { optional }), java.util.Arrays.stream(things)).toArray(Object[]::new)); + return this.jsiiCall("optionalAndVariadic", java.lang.String.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { optional }), java.util.Arrays.stream(things)).toArray(Object[]::new)); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DoubleTrouble\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoubleTrouble") public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { protected DoubleTrouble(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43242,7 +42556,7 @@ public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements so @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } /** @@ -43253,23 +42567,21 @@ public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements so @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall(\\"next\\", java.lang.Number.class); + return this.jsiiCall("next", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EnumDispenser\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EnumDispenser") public class EnumDispenser extends software.amazon.jsii.JsiiObject { protected EnumDispenser(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43285,7 +42597,7 @@ public class EnumDispenser extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum randomIntegerLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, \\"randomIntegerLikeEnum\\", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.AllTypesEnum.class); } /** @@ -43293,23 +42605,21 @@ public class EnumDispenser extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum randomStringLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, \\"randomStringLikeEnum\\", software.amazon.jsii.tests.calculator.StringEnum.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.StringEnum.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EraseUndefinedHashValues\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValues") public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43342,42 +42652,40 @@ public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"doesKeyExist\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, \\"opts is required\\"), java.util.Objects.requireNonNull(key, \\"key is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); } /** - * We expect \\"prop1\\" to be erased. + * We expect "prop1" to be erased. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop1IsNull() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"prop1IsNull\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** - * We expect \\"prop2\\" to be erased. + * We expect "prop2" to be erased. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop2IsUndefined() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, \\"prop2IsUndefined\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.EraseUndefinedHashValuesOptions\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValuesOptions") @software.amazon.jsii.Jsii.Proxy(EraseUndefinedHashValuesOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.JsiiSerializable { @@ -43461,8 +42769,8 @@ public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.Js */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.option1 = this.jsiiGet(\\"option1\\", java.lang.String.class); - this.option2 = this.jsiiGet(\\"option2\\", java.lang.String.class); + this.option1 = this.jsiiGet("option1", java.lang.String.class); + this.option2 = this.jsiiGet("option2", java.lang.String.class); } /** @@ -43490,18 +42798,18 @@ public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.Js final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getOption1() != null) { - data.set(\\"option1\\", om.valueToTree(this.getOption1())); + data.set("option1", om.valueToTree(this.getOption1())); } if (this.getOption2() != null) { - data.set(\\"option2\\", om.valueToTree(this.getOption2())); + data.set("option2", om.valueToTree(this.getOption2())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.EraseUndefinedHashValuesOptions\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.EraseUndefinedHashValuesOptions")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -43525,20 +42833,18 @@ public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.Js } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalClass") public class ExperimentalClass extends software.amazon.jsii.JsiiObject { protected ExperimentalClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43558,7 +42864,7 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); } /** @@ -43569,7 +42875,7 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ExperimentalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); } /** @@ -43577,7 +42883,7 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } /** @@ -43585,7 +42891,7 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + return this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -43593,7 +42899,7 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -43601,23 +42907,21 @@ public class ExperimentalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalEnum") public enum ExperimentalEnum { /** * EXPERIMENTAL @@ -43630,19 +42934,17 @@ public enum ExperimentalEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) OPTION_B, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExperimentalStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalStruct") @software.amazon.jsii.Jsii.Proxy(ExperimentalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializable { @@ -43703,7 +43005,7 @@ public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializabl */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -43711,7 +43013,7 @@ public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializabl */ private Jsii$Proxy(final java.lang.String readonlyProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); } @Override @@ -43724,14 +43026,14 @@ public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializabl final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExperimentalStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ExperimentalStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -43753,20 +43055,18 @@ public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializabl } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExportedBaseClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExportedBaseClass") public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { protected ExportedBaseClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43785,7 +43085,7 @@ public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ExportedBaseClass(final @org.jetbrains.annotations.NotNull java.lang.Boolean success) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(success, \\"success is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(success, "success is required") }); } /** @@ -43793,22 +43093,20 @@ public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + return this.jsiiGet("success", java.lang.Boolean.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExtendsInternalInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExtendsInternalInterface") @software.amazon.jsii.Jsii.Proxy(ExtendsInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSerializable { @@ -43888,8 +43186,8 @@ public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSeria */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.boom = this.jsiiGet(\\"boom\\", java.lang.Boolean.class); - this.prop = this.jsiiGet(\\"prop\\", java.lang.String.class); + this.boom = this.jsiiGet("boom", java.lang.Boolean.class); + this.prop = this.jsiiGet("prop", java.lang.String.class); } /** @@ -43897,8 +43195,8 @@ public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSeria */ private Jsii$Proxy(final java.lang.Boolean boom, final java.lang.String prop) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.boom = java.util.Objects.requireNonNull(boom, \\"boom is required\\"); - this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + this.boom = java.util.Objects.requireNonNull(boom, "boom is required"); + this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); } @Override @@ -43916,15 +43214,15 @@ public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSeria final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"boom\\", om.valueToTree(this.getBoom())); - data.set(\\"prop\\", om.valueToTree(this.getProp())); + data.set("boom", om.valueToTree(this.getBoom())); + data.set("prop", om.valueToTree(this.getProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExtendsInternalInterface\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ExtendsInternalInterface")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -43948,20 +43246,18 @@ public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSeria } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalClass") public class ExternalClass extends software.amazon.jsii.JsiiObject { protected ExternalClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -43981,7 +43277,7 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); } /** @@ -43992,7 +43288,7 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ExternalClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); } /** @@ -44000,7 +43296,7 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } /** @@ -44008,7 +43304,7 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + return this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -44016,7 +43312,7 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -44024,23 +43320,21 @@ public class ExternalClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalEnum") public enum ExternalEnum { /** * EXPERIMENTAL @@ -44053,19 +43347,17 @@ public enum ExternalEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) OPTION_B, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ExternalStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ExternalStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExternalStruct") @software.amazon.jsii.Jsii.Proxy(ExternalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { @@ -44126,7 +43418,7 @@ public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -44134,7 +43426,7 @@ public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String readonlyProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); } @Override @@ -44147,14 +43439,14 @@ public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ExternalStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ExternalStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -44176,20 +43468,18 @@ public interface ExternalStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.GiveMeStructs\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GiveMeStructs") public class GiveMeStructs extends software.amazon.jsii.JsiiObject { protected GiveMeStructs(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -44218,7 +43508,7 @@ public class GiveMeStructs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { - return this.jsiiCall(\\"derivedToFirst\\", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, \\"derived is required\\") }); + return this.jsiiCall("derivedToFirst", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } /** @@ -44230,11 +43520,11 @@ public class GiveMeStructs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { - return this.jsiiCall(\\"readDerivedNonPrimitive\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, \\"derived is required\\") }); + return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } /** - * Returns the \\"anumber\\" from a MyFirstStruct struct; + * Returns the "anumber" from a MyFirstStruct struct; *

* EXPERIMENTAL *

@@ -44242,7 +43532,7 @@ public class GiveMeStructs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number readFirstNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct first) { - return this.jsiiCall(\\"readFirstNumber\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(first, \\"first is required\\") }); + return this.jsiiCall("readFirstNumber", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(first, "first is required") }); } /** @@ -44250,24 +43540,22 @@ public class GiveMeStructs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals getStructLiteral() { - return this.jsiiGet(\\"structLiteral\\", software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals.class); + return this.jsiiGet("structLiteral", software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * These are some arguments you can pass to a method. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Greetee\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Greetee") @software.amazon.jsii.Jsii.Proxy(Greetee.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Greetee extends software.amazon.jsii.JsiiSerializable { @@ -44334,7 +43622,7 @@ public interface Greetee extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.name = this.jsiiGet(\\"name\\", java.lang.String.class); + this.name = this.jsiiGet("name", java.lang.String.class); } /** @@ -44356,15 +43644,15 @@ public interface Greetee extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getName() != null) { - data.set(\\"name\\", om.valueToTree(this.getName())); + data.set("name", om.valueToTree(this.getName())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.Greetee\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.Greetee")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -44386,20 +43674,18 @@ public interface Greetee extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.GreetingAugmenter\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GreetingAugmenter") public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { protected GreetingAugmenter(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -44426,24 +43712,22 @@ public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String betterGreeting(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { - return this.jsiiCall(\\"betterGreeting\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, \\"friendly is required\\") }); + return this.jsiiCall("betterGreeting", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, "friendly is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * We can return an anonymous interface implementation from an override without losing the interface declarations. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnonymousImplementationProvider\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymousImplementationProvider") @software.amazon.jsii.Jsii.Proxy(IAnonymousImplementationProvider.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymousImplementationProvider extends software.amazon.jsii.JsiiSerializable { @@ -44474,7 +43758,7 @@ public interface IAnonymousImplementationProvider extends software.amazon.jsii.J @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall(\\"provideAsClass\\", software.amazon.jsii.tests.calculator.Implementation.class); + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); } /** @@ -44483,23 +43767,21 @@ public interface IAnonymousImplementationProvider extends software.amazon.jsii.J @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall(\\"provideAsInterface\\", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnonymouslyImplementMe\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymouslyImplementMe") @software.amazon.jsii.Jsii.Proxy(IAnonymouslyImplementMe.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerializable { @@ -44530,7 +43812,7 @@ public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerial @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -44539,23 +43821,21 @@ public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerial @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String verb() { - return this.jsiiCall(\\"verb\\", java.lang.String.class); + return this.jsiiCall("verb", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IAnotherPublicInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnotherPublicInterface") @software.amazon.jsii.Jsii.Proxy(IAnotherPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -44585,7 +43865,7 @@ public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerial @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet(\\"a\\", java.lang.String.class); + return this.jsiiGet("a", java.lang.String.class); } /** @@ -44594,23 +43874,21 @@ public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerial @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IBell\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBell") @software.amazon.jsii.Jsii.Proxy(IBell.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBell extends software.amazon.jsii.JsiiSerializable { @@ -44635,25 +43913,23 @@ public interface IBell extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void ring() { - this.jsiiCall(\\"ring\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("ring", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Takes the object parameter as an interface. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IBellRinger\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBellRinger") @software.amazon.jsii.Jsii.Proxy(IBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -44682,25 +43958,23 @@ public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell) { - this.jsiiCall(\\"yourTurn\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, \\"bell is required\\") }); + this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Takes the object parameter as a calss. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IConcreteBellRinger\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IConcreteBellRinger") @software.amazon.jsii.Jsii.Proxy(IConcreteBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -44729,23 +44003,21 @@ public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializab @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell) { - this.jsiiCall(\\"yourTurn\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, \\"bell is required\\") }); + this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * @deprecated useless interface */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IDeprecatedInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IDeprecatedInterface") @software.amazon.jsii.Jsii.Proxy(IDeprecatedInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -44765,7 +44037,7 @@ public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializa */ @software.amazon.jsii.Optional default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); } /** @@ -44790,7 +44062,7 @@ public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializa @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -44800,7 +44072,7 @@ public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializa @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } /** @@ -44810,23 +44082,21 @@ public interface IDeprecatedInterface extends software.amazon.jsii.JsiiSerializa @Deprecated @Override public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExperimentalInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExperimentalInterface") @software.amazon.jsii.Jsii.Proxy(IExperimentalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExperimentalInterface extends software.amazon.jsii.JsiiSerializable { @@ -44844,7 +44114,7 @@ public interface IExperimentalInterface extends software.amazon.jsii.JsiiSeriali */ @software.amazon.jsii.Optional default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); } /** @@ -44867,7 +44137,7 @@ public interface IExperimentalInterface extends software.amazon.jsii.JsiiSeriali @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -44876,7 +44146,7 @@ public interface IExperimentalInterface extends software.amazon.jsii.JsiiSeriali @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } /** @@ -44885,23 +44155,21 @@ public interface IExperimentalInterface extends software.amazon.jsii.JsiiSeriali @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExtendsPrivateInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExtendsPrivateInterface") @software.amazon.jsii.Jsii.Proxy(IExtendsPrivateInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSerializable { @@ -44937,7 +44205,7 @@ public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getMoreThings() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"moreThings\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("moreThings", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -44946,7 +44214,7 @@ public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { - return this.jsiiGet(\\"private\\", java.lang.String.class); + return this.jsiiGet("private", java.lang.String.class); } /** @@ -44955,23 +44223,21 @@ public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"private\\", java.util.Objects.requireNonNull(value, \\"private is required\\")); + this.jsiiSet("private", java.util.Objects.requireNonNull(value, "private is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IExternalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IExternalInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExternalInterface") @software.amazon.jsii.Jsii.Proxy(IExternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExternalInterface extends software.amazon.jsii.JsiiSerializable { @@ -44989,7 +44255,7 @@ public interface IExternalInterface extends software.amazon.jsii.JsiiSerializabl */ @software.amazon.jsii.Optional default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); } /** @@ -45012,7 +44278,7 @@ public interface IExternalInterface extends software.amazon.jsii.JsiiSerializabl @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -45021,7 +44287,7 @@ public interface IExternalInterface extends software.amazon.jsii.JsiiSerializabl @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } /** @@ -45030,25 +44296,23 @@ public interface IExternalInterface extends software.amazon.jsii.JsiiSerializabl @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlier.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Even friendlier classes can implement this interface. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IFriendlier\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IFriendlier") @software.amazon.jsii.Jsii.Proxy(IFriendlier.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.IFriendly { @@ -45087,7 +44351,7 @@ public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, soft @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall(\\"farewell\\", java.lang.String.class); + return this.jsiiCall("farewell", java.lang.String.class); } /** @@ -45100,7 +44364,7 @@ public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, soft @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + return this.jsiiCall("goodbye", java.lang.String.class); } /** @@ -45110,23 +44374,21 @@ public interface IFriendlier extends software.amazon.jsii.JsiiSerializable, soft @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IFriendlyRandomGenerator.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IFriendlyRandomGenerator\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IFriendlyRandomGenerator") @software.amazon.jsii.Jsii.Proxy(IFriendlyRandomGenerator.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IFriendlyRandomGenerator extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IRandomNumberGenerator, software.amazon.jsii.tests.calculator.lib.IFriendly { @@ -45149,7 +44411,7 @@ public interface IFriendlyRandomGenerator extends software.amazon.jsii.JsiiSeria @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall(\\"next\\", java.lang.Number.class); + return this.jsiiCall("next", java.lang.Number.class); } /** @@ -45159,25 +44421,23 @@ public interface IFriendlyRandomGenerator extends software.amazon.jsii.JsiiSeria @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * awslabs/jsii#220 Abstract return type. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceImplementedByAbstractClass\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceImplementedByAbstractClass") @software.amazon.jsii.Jsii.Proxy(IInterfaceImplementedByAbstractClass.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceImplementedByAbstractClass extends software.amazon.jsii.JsiiSerializable { @@ -45202,25 +44462,23 @@ public interface IInterfaceImplementedByAbstractClass extends software.amazon.js @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPropFromInterface() { - return this.jsiiGet(\\"propFromInterface\\", java.lang.String.class); + return this.jsiiGet("propFromInterface", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceThatShouldNotBeADataType") @software.amazon.jsii.Jsii.Proxy(IInterfaceThatShouldNotBeADataType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithMethods { @@ -45245,7 +44503,7 @@ public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getOtherValue() { - return this.jsiiGet(\\"otherValue\\", java.lang.String.class); + return this.jsiiGet("otherValue", java.lang.String.class); } /** @@ -45254,7 +44512,7 @@ public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet(\\"value\\", java.lang.String.class); + return this.jsiiGet("value", java.lang.String.class); } /** @@ -45263,23 +44521,21 @@ public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void doThings() { - this.jsiiCall(\\"doThings\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("doThings", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithInternal\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithInternal") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithInternal.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSerializable { @@ -45304,23 +44560,21 @@ public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSeriali @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void visible() { - this.jsiiCall(\\"visible\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("visible", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithMethods\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithMethods") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithMethods.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializable { @@ -45351,7 +44605,7 @@ public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet(\\"value\\", java.lang.String.class); + return this.jsiiGet("value", java.lang.String.class); } /** @@ -45360,25 +44614,23 @@ public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void doThings() { - this.jsiiCall(\\"doThings\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("doThings", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithOptionalMethodArguments") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithOptionalMethodArguments.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithOptionalMethodArguments extends software.amazon.jsii.JsiiSerializable { @@ -45417,7 +44669,7 @@ public interface IInterfaceWithOptionalMethodArguments extends software.amazon.j @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.Nullable java.lang.Number arg2) { - this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), arg2 }); + this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), arg2 }); } /** @@ -45428,23 +44680,21 @@ public interface IInterfaceWithOptionalMethodArguments extends software.amazon.j @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void hello(final @org.jetbrains.annotations.NotNull java.lang.String arg1) { - this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\") }); + this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithProperties\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithProperties") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { @@ -45480,7 +44730,7 @@ public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + return this.jsiiGet("readOnlyString", java.lang.String.class); } /** @@ -45489,7 +44739,7 @@ public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + return this.jsiiGet("readWriteString", java.lang.String.class); } /** @@ -45498,23 +44748,21 @@ public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IInterfaceWithPropertiesExtension\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithPropertiesExtension") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithPropertiesExtension.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithProperties { @@ -45544,7 +44792,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { - return this.jsiiGet(\\"foo\\", java.lang.Number.class); + return this.jsiiGet("foo", java.lang.Number.class); } /** @@ -45553,7 +44801,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setFoo(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"foo\\", java.util.Objects.requireNonNull(value, \\"foo is required\\")); + this.jsiiSet("foo", java.util.Objects.requireNonNull(value, "foo is required")); } /** @@ -45562,7 +44810,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadOnlyString() { - return this.jsiiGet(\\"readOnlyString\\", java.lang.String.class); + return this.jsiiGet("readOnlyString", java.lang.String.class); } /** @@ -45571,7 +44819,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadWriteString() { - return this.jsiiGet(\\"readWriteString\\", java.lang.String.class); + return this.jsiiGet("readWriteString", java.lang.String.class); } /** @@ -45580,23 +44828,21 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setReadWriteString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"readWriteString\\", java.util.Objects.requireNonNull(value, \\"readWriteString is required\\")); + this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJSII417Derived\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417Derived") @software.amazon.jsii.Jsii.Proxy(IJSII417Derived.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { @@ -45633,7 +44879,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet(\\"property\\", java.lang.String.class); + return this.jsiiGet("property", java.lang.String.class); } /** @@ -45642,7 +44888,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + return this.jsiiGet("hasRoot", java.lang.Boolean.class); } /** @@ -45651,7 +44897,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void bar() { - this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); } /** @@ -45660,7 +44906,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void baz() { - this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); } /** @@ -45669,23 +44915,21 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJSII417PublicBaseOfBase\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417PublicBaseOfBase") @software.amazon.jsii.Jsii.Proxy(IJSII417PublicBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSerializable { @@ -45716,7 +44960,7 @@ public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSeria @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + return this.jsiiGet("hasRoot", java.lang.Boolean.class); } /** @@ -45725,23 +44969,21 @@ public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSeria @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii487External\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External") @software.amazon.jsii.Jsii.Proxy(IJsii487External.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External extends software.amazon.jsii.JsiiSerializable { @@ -45755,19 +44997,17 @@ public interface IJsii487External extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii487External2\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External2") @software.amazon.jsii.Jsii.Proxy(IJsii487External2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable { @@ -45781,19 +45021,17 @@ public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IJsii496\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii496") @software.amazon.jsii.Jsii.Proxy(IJsii496.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { @@ -45807,19 +45045,17 @@ public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IMutableObjectLiteral\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IMutableObjectLiteral") @software.amazon.jsii.Jsii.Proxy(IMutableObjectLiteral.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { @@ -45849,7 +45085,7 @@ public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet(\\"value\\", java.lang.String.class); + return this.jsiiGet("value", java.lang.String.class); } /** @@ -45858,23 +45094,21 @@ public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"value\\", java.util.Objects.requireNonNull(value, \\"value is required\\")); + this.jsiiSet("value", java.util.Objects.requireNonNull(value, "value is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.INonInternalInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.INonInternalInterface") @software.amazon.jsii.Jsii.Proxy(INonInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IAnotherPublicInterface { @@ -45915,7 +45149,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getB() { - return this.jsiiGet(\\"b\\", java.lang.String.class); + return this.jsiiGet("b", java.lang.String.class); } /** @@ -45924,7 +45158,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setB(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"b\\", java.util.Objects.requireNonNull(value, \\"b is required\\")); + this.jsiiSet("b", java.util.Objects.requireNonNull(value, "b is required")); } /** @@ -45933,7 +45167,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getC() { - return this.jsiiGet(\\"c\\", java.lang.String.class); + return this.jsiiGet("c", java.lang.String.class); } /** @@ -45942,7 +45176,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setC(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"c\\", java.util.Objects.requireNonNull(value, \\"c is required\\")); + this.jsiiSet("c", java.util.Objects.requireNonNull(value, "c is required")); } /** @@ -45951,7 +45185,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getA() { - return this.jsiiGet(\\"a\\", java.lang.String.class); + return this.jsiiGet("a", java.lang.String.class); } /** @@ -45960,25 +45194,23 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Make sure that setters are properly called on objects with interfaces. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IObjectWithProperty\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IObjectWithProperty") @software.amazon.jsii.Jsii.Proxy(IObjectWithProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializable { @@ -46014,7 +45246,7 @@ public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializab @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet(\\"property\\", java.lang.String.class); + return this.jsiiGet("property", java.lang.String.class); } /** @@ -46023,7 +45255,7 @@ public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializab @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"property\\", java.util.Objects.requireNonNull(value, \\"property is required\\")); + this.jsiiSet("property", java.util.Objects.requireNonNull(value, "property is required")); } /** @@ -46032,25 +45264,23 @@ public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializab @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Boolean wasSet() { - return this.jsiiCall(\\"wasSet\\", java.lang.Boolean.class); + return this.jsiiCall("wasSet", java.lang.Boolean.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Checks that optional result from interface method code generates correctly. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IOptionalMethod\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IOptionalMethod") @software.amazon.jsii.Jsii.Proxy(IOptionalMethod.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { @@ -46075,23 +45305,21 @@ public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.Nullable java.lang.String optional() { - return this.jsiiCall(\\"optional\\", java.lang.String.class); + return this.jsiiCall("optional", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPrivatelyImplemented\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPrivatelyImplemented") @software.amazon.jsii.Jsii.Proxy(IPrivatelyImplemented.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializable { @@ -46116,23 +45344,21 @@ public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + return this.jsiiGet("success", java.lang.Boolean.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPublicInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface") @software.amazon.jsii.Jsii.Proxy(IPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -46157,23 +45383,21 @@ public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String bye() { - return this.jsiiCall(\\"bye\\", java.lang.String.class); + return this.jsiiCall("bye", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IPublicInterface2\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface2") @software.amazon.jsii.Jsii.Proxy(IPublicInterface2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable { @@ -46198,25 +45422,23 @@ public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String ciao() { - return this.jsiiCall(\\"ciao\\", java.lang.String.class); + return this.jsiiCall("ciao", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IRandomNumberGenerator.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Generates random numbers. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IRandomNumberGenerator\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IRandomNumberGenerator") @software.amazon.jsii.Jsii.Proxy(IRandomNumberGenerator.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IRandomNumberGenerator extends software.amazon.jsii.JsiiSerializable { @@ -46249,25 +45471,23 @@ public interface IRandomNumberGenerator extends software.amazon.jsii.JsiiSeriali @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall(\\"next\\", java.lang.Number.class); + return this.jsiiCall("next", java.lang.Number.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Returns a subclass of a known class which implements an interface. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IReturnJsii976\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnJsii976") @software.amazon.jsii.Jsii.Proxy(IReturnJsii976.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { @@ -46292,23 +45512,21 @@ public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getFoo() { - return this.jsiiGet(\\"foo\\", java.lang.Number.class); + return this.jsiiGet("foo", java.lang.Number.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IReturnsNumber\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnsNumber") @software.amazon.jsii.Jsii.Proxy(IReturnsNumber.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { @@ -46339,7 +45557,7 @@ public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Number getNumberProp() { - return this.jsiiGet(\\"numberProp\\", software.amazon.jsii.tests.calculator.lib.Number.class); + return this.jsiiGet("numberProp", software.amazon.jsii.tests.calculator.lib.Number.class); } /** @@ -46348,22 +45566,20 @@ public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IDoublable obtainNumber() { - return this.jsiiCall(\\"obtainNumber\\", software.amazon.jsii.tests.calculator.lib.IDoublable.class); + return this.jsiiCall("obtainNumber", software.amazon.jsii.tests.calculator.lib.IDoublable.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IStableInterface\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStableInterface") @software.amazon.jsii.Jsii.Proxy(IStableInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface IStableInterface extends software.amazon.jsii.JsiiSerializable { @@ -46379,7 +45595,7 @@ public interface IStableInterface extends software.amazon.jsii.JsiiSerializable */ @software.amazon.jsii.Optional default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - throw new UnsupportedOperationException(\\"'void \\" + getClass().getCanonicalName() + \\"#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!\\"); + throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setMutableProperty(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!"); } /** @@ -46400,7 +45616,7 @@ public interface IStableInterface extends software.amazon.jsii.JsiiSerializable @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** @@ -46408,7 +45624,7 @@ public interface IStableInterface extends software.amazon.jsii.JsiiSerializable @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } /** @@ -46416,25 +45632,23 @@ public interface IStableInterface extends software.amazon.jsii.JsiiSerializable @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * Verifies that a \\"pure\\" implementation of an interface works correctly. + * Verifies that a "pure" implementation of an interface works correctly. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.IStructReturningDelegate\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStructReturningDelegate") @software.amazon.jsii.Jsii.Proxy(IStructReturningDelegate.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSerializable { @@ -46459,24 +45673,22 @@ public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSeria @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct() { - return this.jsiiCall(\\"returnStruct\\", software.amazon.jsii.tests.calculator.StructB.class); + return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.StructB.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementInternalInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementInternalInterface") public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject { protected ImplementInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46501,7 +45713,7 @@ public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getProp() { - return this.jsiiGet(\\"prop\\", java.lang.String.class); + return this.jsiiGet("prop", java.lang.String.class); } /** @@ -46509,23 +45721,21 @@ public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"prop\\", java.util.Objects.requireNonNull(value, \\"prop is required\\")); + this.jsiiSet("prop", java.util.Objects.requireNonNull(value, "prop is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Implementation\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Implementation") public class Implementation extends software.amazon.jsii.JsiiObject { protected Implementation(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46550,23 +45760,21 @@ public class Implementation extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsInterfaceWithInternal\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternal") public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46592,23 +45800,21 @@ public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiOb @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public void visible() { - this.jsiiCall(\\"visible\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("visible", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternalSubclass") public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal { protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46628,20 +45834,18 @@ public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsi software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplementsPrivateInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsPrivateInterface") public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject { protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46666,7 +45870,7 @@ public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPrivateValue() { - return this.jsiiGet(\\"private\\", java.lang.String.class); + return this.jsiiGet("private", java.lang.String.class); } /** @@ -46674,22 +45878,20 @@ public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setPrivateValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"private\\", java.util.Objects.requireNonNull(value, \\"private is required\\")); + this.jsiiSet("private", java.util.Objects.requireNonNull(value, "private is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ImplictBaseOfBase\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplictBaseOfBase") @software.amazon.jsii.Jsii.Proxy(ImplictBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.BaseProps { @@ -46774,9 +45976,9 @@ public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.goo = this.jsiiGet(\\"goo\\", java.time.Instant.class); - this.bar = this.jsiiGet(\\"bar\\", java.lang.String.class); - this.foo = this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.baseofbase.Very.class); + this.goo = this.jsiiGet("goo", java.time.Instant.class); + this.bar = this.jsiiGet("bar", java.lang.String.class); + this.foo = this.jsiiGet("foo", software.amazon.jsii.tests.calculator.baseofbase.Very.class); } /** @@ -46784,9 +45986,9 @@ public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable */ private Jsii$Proxy(final java.time.Instant goo, final java.lang.String bar, final software.amazon.jsii.tests.calculator.baseofbase.Very foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.goo = java.util.Objects.requireNonNull(goo, \\"goo is required\\"); - this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.goo = java.util.Objects.requireNonNull(goo, "goo is required"); + this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -46809,16 +46011,16 @@ public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"goo\\", om.valueToTree(this.getGoo())); - data.set(\\"bar\\", om.valueToTree(this.getBar())); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("goo", om.valueToTree(this.getGoo())); + data.set("bar", om.valueToTree(this.getBar())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ImplictBaseOfBase\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ImplictBaseOfBase")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -46844,20 +46046,18 @@ public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InbetweenClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InbetweenClass") public class InbetweenClass extends software.amazon.jsii.tests.calculator.PublicClass implements software.amazon.jsii.tests.calculator.IPublicInterface2 { protected InbetweenClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46883,16 +46083,14 @@ public class InbetweenClass extends software.amazon.jsii.tests.calculator.Public @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String ciao() { - return this.jsiiCall(\\"ciao\\", java.lang.String.class); + return this.jsiiCall("ciao", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that collections of interfaces or structs are correctly handled. @@ -46901,9 +46099,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceCollections\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceCollections") public class InterfaceCollections extends software.amazon.jsii.JsiiObject { protected InterfaceCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46919,7 +46117,7 @@ public class InterfaceCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"listOfInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); } /** @@ -46927,7 +46125,7 @@ public class InterfaceCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"listOfStructs\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); } /** @@ -46935,7 +46133,7 @@ public class InterfaceCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"mapOfInterfaces\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); } /** @@ -46943,25 +46141,23 @@ public class InterfaceCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, \\"mapOfStructs\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * We can return arrays of interfaces See aws/aws-cdk#2362. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfacesMaker\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfacesMaker") public class InterfacesMaker extends software.amazon.jsii.JsiiObject { protected InterfacesMaker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -46979,28 +46175,26 @@ public class InterfacesMaker extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, \\"makeInterfaces\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") })); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Isomorphism.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * Checks the \\"same instance\\" isomorphism is preserved within the constructor. + * Checks the "same instance" isomorphism is preserved within the constructor. *

* Create a subclass of this, and assert that this.myself() actually returns * this from within the constructor. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Isomorphism\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Isomorphism") public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { protected Isomorphism(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47025,7 +46219,7 @@ public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Isomorphism myself() { - return this.jsiiCall(\\"myself\\", software.amazon.jsii.tests.calculator.Isomorphism.class); + return this.jsiiCall("myself", software.amazon.jsii.tests.calculator.Isomorphism.class); } /** @@ -47037,20 +46231,18 @@ public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSII417Derived\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417Derived") public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase { protected JSII417Derived(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47069,7 +46261,7 @@ public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII41 @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public JSII417Derived(final @org.jetbrains.annotations.NotNull java.lang.String property) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(property, \\"property is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(property, "property is required") }); } /** @@ -47077,7 +46269,7 @@ public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII41 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void bar() { - this.jsiiCall(\\"bar\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("bar", software.amazon.jsii.NativeType.VOID); } /** @@ -47085,7 +46277,7 @@ public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII41 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void baz() { - this.jsiiCall(\\"baz\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("baz", software.amazon.jsii.NativeType.VOID); } /** @@ -47093,23 +46285,21 @@ public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII41 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet(\\"property\\", java.lang.String.class); + return this.jsiiGet("property", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSII417PublicBaseOfBase\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417PublicBaseOfBase") public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47134,7 +46324,7 @@ public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, \\"makeInstance\\", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); } /** @@ -47142,7 +46332,7 @@ public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void foo() { - this.jsiiCall(\\"foo\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("foo", software.amazon.jsii.NativeType.VOID); } /** @@ -47150,23 +46340,21 @@ public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getHasRoot() { - return this.jsiiGet(\\"hasRoot\\", java.lang.Boolean.class); + return this.jsiiGet("hasRoot", java.lang.Boolean.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralForInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralForInterface") public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47191,7 +46379,7 @@ public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly giveMeFriendly() { - return this.jsiiCall(\\"giveMeFriendly\\", software.amazon.jsii.tests.calculator.lib.IFriendly.class); + return this.jsiiCall("giveMeFriendly", software.amazon.jsii.tests.calculator.lib.IFriendly.class); } /** @@ -47199,23 +46387,21 @@ public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator giveMeFriendlyGenerator() { - return this.jsiiCall(\\"giveMeFriendlyGenerator\\", software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class); + return this.jsiiCall("giveMeFriendlyGenerator", software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralToNative\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNative") public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47240,23 +46426,21 @@ public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass returnLiteral() { - return this.jsiiCall(\\"returnLiteral\\", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); + return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JSObjectLiteralToNativeClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNativeClass") public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47281,7 +46465,7 @@ public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getPropA() { - return this.jsiiGet(\\"propA\\", java.lang.String.class); + return this.jsiiGet("propA", java.lang.String.class); } /** @@ -47289,7 +46473,7 @@ public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setPropA(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"propA\\", java.util.Objects.requireNonNull(value, \\"propA is required\\")); + this.jsiiSet("propA", java.util.Objects.requireNonNull(value, "propA is required")); } /** @@ -47297,7 +46481,7 @@ public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getPropB() { - return this.jsiiGet(\\"propB\\", java.lang.Number.class); + return this.jsiiGet("propB", java.lang.Number.class); } /** @@ -47305,23 +46489,21 @@ public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObjec */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setPropB(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"propB\\", java.util.Objects.requireNonNull(value, \\"propB is required\\")); + this.jsiiSet("propB", java.util.Objects.requireNonNull(value, "propB is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JavaReservedWords\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JavaReservedWords") public class JavaReservedWords extends software.amazon.jsii.JsiiObject { protected JavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47346,7 +46528,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doAbstract() { - this.jsiiCall(\\"abstract\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("abstract", software.amazon.jsii.NativeType.VOID); } /** @@ -47354,7 +46536,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doAssert() { - this.jsiiCall(\\"assert\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("assert", software.amazon.jsii.NativeType.VOID); } /** @@ -47362,7 +46544,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doBoolean() { - this.jsiiCall(\\"boolean\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("boolean", software.amazon.jsii.NativeType.VOID); } /** @@ -47370,7 +46552,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doBreak() { - this.jsiiCall(\\"break\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("break", software.amazon.jsii.NativeType.VOID); } /** @@ -47378,7 +46560,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doByte() { - this.jsiiCall(\\"byte\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("byte", software.amazon.jsii.NativeType.VOID); } /** @@ -47386,7 +46568,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doCase() { - this.jsiiCall(\\"case\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("case", software.amazon.jsii.NativeType.VOID); } /** @@ -47394,7 +46576,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doCatch() { - this.jsiiCall(\\"catch\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("catch", software.amazon.jsii.NativeType.VOID); } /** @@ -47402,7 +46584,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doChar() { - this.jsiiCall(\\"char\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("char", software.amazon.jsii.NativeType.VOID); } /** @@ -47410,7 +46592,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doClass() { - this.jsiiCall(\\"class\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("class", software.amazon.jsii.NativeType.VOID); } /** @@ -47418,7 +46600,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doConst() { - this.jsiiCall(\\"const\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("const", software.amazon.jsii.NativeType.VOID); } /** @@ -47426,7 +46608,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doContinue() { - this.jsiiCall(\\"continue\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("continue", software.amazon.jsii.NativeType.VOID); } /** @@ -47434,7 +46616,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doDefault() { - this.jsiiCall(\\"default\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("default", software.amazon.jsii.NativeType.VOID); } /** @@ -47442,7 +46624,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doDo() { - this.jsiiCall(\\"do\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("do", software.amazon.jsii.NativeType.VOID); } /** @@ -47450,7 +46632,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doDouble() { - this.jsiiCall(\\"double\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("double", software.amazon.jsii.NativeType.VOID); } /** @@ -47458,7 +46640,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doElse() { - this.jsiiCall(\\"else\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("else", software.amazon.jsii.NativeType.VOID); } /** @@ -47466,7 +46648,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doEnum() { - this.jsiiCall(\\"enum\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("enum", software.amazon.jsii.NativeType.VOID); } /** @@ -47474,7 +46656,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doExtends() { - this.jsiiCall(\\"extends\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("extends", software.amazon.jsii.NativeType.VOID); } /** @@ -47482,7 +46664,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFalse() { - this.jsiiCall(\\"false\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("false", software.amazon.jsii.NativeType.VOID); } /** @@ -47490,7 +46672,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFinal() { - this.jsiiCall(\\"final\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("final", software.amazon.jsii.NativeType.VOID); } /** @@ -47498,7 +46680,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFinally() { - this.jsiiCall(\\"finally\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("finally", software.amazon.jsii.NativeType.VOID); } /** @@ -47506,7 +46688,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFloat() { - this.jsiiCall(\\"float\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("float", software.amazon.jsii.NativeType.VOID); } /** @@ -47514,7 +46696,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFor() { - this.jsiiCall(\\"for\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("for", software.amazon.jsii.NativeType.VOID); } /** @@ -47522,7 +46704,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doGoto() { - this.jsiiCall(\\"goto\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("goto", software.amazon.jsii.NativeType.VOID); } /** @@ -47530,7 +46712,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doIf() { - this.jsiiCall(\\"if\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("if", software.amazon.jsii.NativeType.VOID); } /** @@ -47538,7 +46720,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doImplements() { - this.jsiiCall(\\"implements\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("implements", software.amazon.jsii.NativeType.VOID); } /** @@ -47546,7 +46728,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doImport() { - this.jsiiCall(\\"import\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("import", software.amazon.jsii.NativeType.VOID); } /** @@ -47554,7 +46736,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doInstanceof() { - this.jsiiCall(\\"instanceof\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("instanceof", software.amazon.jsii.NativeType.VOID); } /** @@ -47562,7 +46744,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doInt() { - this.jsiiCall(\\"int\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("int", software.amazon.jsii.NativeType.VOID); } /** @@ -47570,7 +46752,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doInterface() { - this.jsiiCall(\\"interface\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("interface", software.amazon.jsii.NativeType.VOID); } /** @@ -47578,7 +46760,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doLong() { - this.jsiiCall(\\"long\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("long", software.amazon.jsii.NativeType.VOID); } /** @@ -47586,7 +46768,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doNative() { - this.jsiiCall(\\"native\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("native", software.amazon.jsii.NativeType.VOID); } /** @@ -47594,7 +46776,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doNew() { - this.jsiiCall(\\"new\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("new", software.amazon.jsii.NativeType.VOID); } /** @@ -47602,7 +46784,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doNull() { - this.jsiiCall(\\"null\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("null", software.amazon.jsii.NativeType.VOID); } /** @@ -47610,7 +46792,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doPackage() { - this.jsiiCall(\\"package\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("package", software.amazon.jsii.NativeType.VOID); } /** @@ -47618,7 +46800,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doPrivate() { - this.jsiiCall(\\"private\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("private", software.amazon.jsii.NativeType.VOID); } /** @@ -47626,7 +46808,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doProtected() { - this.jsiiCall(\\"protected\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("protected", software.amazon.jsii.NativeType.VOID); } /** @@ -47634,7 +46816,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doPublic() { - this.jsiiCall(\\"public\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("public", software.amazon.jsii.NativeType.VOID); } /** @@ -47642,7 +46824,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doReturn() { - this.jsiiCall(\\"return\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("return", software.amazon.jsii.NativeType.VOID); } /** @@ -47650,7 +46832,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doShort() { - this.jsiiCall(\\"short\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("short", software.amazon.jsii.NativeType.VOID); } /** @@ -47658,7 +46840,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doStatic() { - this.jsiiCall(\\"static\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("static", software.amazon.jsii.NativeType.VOID); } /** @@ -47666,7 +46848,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doStrictfp() { - this.jsiiCall(\\"strictfp\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("strictfp", software.amazon.jsii.NativeType.VOID); } /** @@ -47674,7 +46856,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doSuper() { - this.jsiiCall(\\"super\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("super", software.amazon.jsii.NativeType.VOID); } /** @@ -47682,7 +46864,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doSwitch() { - this.jsiiCall(\\"switch\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("switch", software.amazon.jsii.NativeType.VOID); } /** @@ -47690,7 +46872,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doSynchronized() { - this.jsiiCall(\\"synchronized\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("synchronized", software.amazon.jsii.NativeType.VOID); } /** @@ -47698,7 +46880,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doThis() { - this.jsiiCall(\\"this\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("this", software.amazon.jsii.NativeType.VOID); } /** @@ -47706,7 +46888,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doThrow() { - this.jsiiCall(\\"throw\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("throw", software.amazon.jsii.NativeType.VOID); } /** @@ -47714,7 +46896,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doThrows() { - this.jsiiCall(\\"throws\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("throws", software.amazon.jsii.NativeType.VOID); } /** @@ -47722,7 +46904,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doTransient() { - this.jsiiCall(\\"transient\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("transient", software.amazon.jsii.NativeType.VOID); } /** @@ -47730,7 +46912,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doTrue() { - this.jsiiCall(\\"true\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("true", software.amazon.jsii.NativeType.VOID); } /** @@ -47738,7 +46920,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doTry() { - this.jsiiCall(\\"try\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("try", software.amazon.jsii.NativeType.VOID); } /** @@ -47746,7 +46928,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doVoid() { - this.jsiiCall(\\"void\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("void", software.amazon.jsii.NativeType.VOID); } /** @@ -47754,7 +46936,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doVolatile() { - this.jsiiCall(\\"volatile\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("volatile", software.amazon.jsii.NativeType.VOID); } /** @@ -47762,7 +46944,7 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getWhileValue() { - return this.jsiiGet(\\"while\\", java.lang.String.class); + return this.jsiiGet("while", java.lang.String.class); } /** @@ -47770,23 +46952,21 @@ public class JavaReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setWhileValue(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"while\\", java.util.Objects.requireNonNull(value, \\"while is required\\")); + this.jsiiSet("while", java.util.Objects.requireNonNull(value, "while is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Jsii487Derived\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii487Derived") public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2, software.amazon.jsii.tests.calculator.IJsii487External { protected Jsii487Derived(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47806,20 +46986,18 @@ public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements s software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Jsii496Derived\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii496Derived") public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { protected Jsii496Derived(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47839,22 +47017,20 @@ public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements s software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Host runtime version should be set via JSII_AGENT. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JsiiAgent\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsiiAgent") public class JsiiAgent extends software.amazon.jsii.JsiiObject { protected JsiiAgent(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47881,16 +47057,14 @@ public class JsiiAgent extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String getJsiiAgent() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, \\"jsiiAgent\\", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, "jsiiAgent", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Make sure structs are un-decorated on the way in. @@ -47899,9 +47073,9 @@ Object { *

* @see https://github.com/aws/aws-cdk/issues/5066 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.JsonFormatter\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsonFormatter") public class JsonFormatter extends software.amazon.jsii.JsiiObject { protected JsonFormatter(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -47917,7 +47091,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyArray() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyArray\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyArray", java.lang.Object.class); } /** @@ -47925,7 +47099,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanFalse() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyBooleanFalse\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); } /** @@ -47933,7 +47107,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanTrue() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyBooleanTrue\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); } /** @@ -47941,7 +47115,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyDate() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyDate\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyDate", java.lang.Object.class); } /** @@ -47949,7 +47123,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyEmptyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyEmptyString\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); } /** @@ -47957,7 +47131,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyFunction() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyFunction\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyFunction", java.lang.Object.class); } /** @@ -47965,7 +47139,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyHash() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyHash\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyHash", java.lang.Object.class); } /** @@ -47973,7 +47147,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNull() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyNull\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNull", java.lang.Object.class); } /** @@ -47981,7 +47155,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNumber() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyNumber\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNumber", java.lang.Object.class); } /** @@ -47989,7 +47163,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyRef() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyRef\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyRef", java.lang.Object.class); } /** @@ -47997,7 +47171,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyString\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyString", java.lang.Object.class); } /** @@ -48005,7 +47179,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyUndefined() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyUndefined\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyUndefined", java.lang.Object.class); } /** @@ -48013,7 +47187,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyZero() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"anyZero\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyZero", java.lang.Object.class); } /** @@ -48023,7 +47197,7 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"stringify\\", java.lang.String.class, new Object[] { value }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); } /** @@ -48031,24 +47205,22 @@ public class JsonFormatter extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, \\"stringify\\", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * jsii#298: show default values in sphinx documentation, and respect newlines. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.LoadBalancedFargateServiceProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.LoadBalancedFargateServiceProps") @software.amazon.jsii.Jsii.Proxy(LoadBalancedFargateServiceProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable { @@ -48264,11 +47436,11 @@ public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.Js */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.containerPort = this.jsiiGet(\\"containerPort\\", java.lang.Number.class); - this.cpu = this.jsiiGet(\\"cpu\\", java.lang.String.class); - this.memoryMiB = this.jsiiGet(\\"memoryMiB\\", java.lang.String.class); - this.publicLoadBalancer = this.jsiiGet(\\"publicLoadBalancer\\", java.lang.Boolean.class); - this.publicTasks = this.jsiiGet(\\"publicTasks\\", java.lang.Boolean.class); + this.containerPort = this.jsiiGet("containerPort", java.lang.Number.class); + this.cpu = this.jsiiGet("cpu", java.lang.String.class); + this.memoryMiB = this.jsiiGet("memoryMiB", java.lang.String.class); + this.publicLoadBalancer = this.jsiiGet("publicLoadBalancer", java.lang.Boolean.class); + this.publicTasks = this.jsiiGet("publicTasks", java.lang.Boolean.class); } /** @@ -48314,27 +47486,27 @@ public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.Js final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getContainerPort() != null) { - data.set(\\"containerPort\\", om.valueToTree(this.getContainerPort())); + data.set("containerPort", om.valueToTree(this.getContainerPort())); } if (this.getCpu() != null) { - data.set(\\"cpu\\", om.valueToTree(this.getCpu())); + data.set("cpu", om.valueToTree(this.getCpu())); } if (this.getMemoryMiB() != null) { - data.set(\\"memoryMiB\\", om.valueToTree(this.getMemoryMiB())); + data.set("memoryMiB", om.valueToTree(this.getMemoryMiB())); } if (this.getPublicLoadBalancer() != null) { - data.set(\\"publicLoadBalancer\\", om.valueToTree(this.getPublicLoadBalancer())); + data.set("publicLoadBalancer", om.valueToTree(this.getPublicLoadBalancer())); } if (this.getPublicTasks() != null) { - data.set(\\"publicTasks\\", om.valueToTree(this.getPublicTasks())); + data.set("publicTasks", om.valueToTree(this.getPublicTasks())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.LoadBalancedFargateServiceProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.LoadBalancedFargateServiceProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -48364,20 +47536,18 @@ public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.Js } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/MethodNamedProperty.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.MethodNamedProperty\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.MethodNamedProperty") public class MethodNamedProperty extends software.amazon.jsii.JsiiObject { protected MethodNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -48402,7 +47572,7 @@ public class MethodNamedProperty extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String property() { - return this.jsiiCall(\\"property\\", java.lang.String.class); + return this.jsiiCall("property", java.lang.String.class); } /** @@ -48410,25 +47580,23 @@ public class MethodNamedProperty extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getElite() { - return this.jsiiGet(\\"elite\\", java.lang.Number.class); + return this.jsiiGet("elite", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Multiply.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * The \\"*\\" binary operation. + * The "*" binary operation. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Multiply\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Multiply") public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier, software.amazon.jsii.tests.calculator.IRandomNumberGenerator { protected Multiply(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -48450,7 +47618,7 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Multiply(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value lhs, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value rhs) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, \\"lhs is required\\"), java.util.Objects.requireNonNull(rhs, \\"rhs is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lhs, "lhs is required"), java.util.Objects.requireNonNull(rhs, "rhs is required") }); } /** @@ -48461,7 +47629,7 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall(\\"farewell\\", java.lang.String.class); + return this.jsiiCall("farewell", java.lang.String.class); } /** @@ -48472,7 +47640,7 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + return this.jsiiCall("goodbye", java.lang.String.class); } /** @@ -48483,7 +47651,7 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.Number next() { - return this.jsiiCall(\\"next\\", java.lang.Number.class); + return this.jsiiCall("next", java.lang.Number.class); } /** @@ -48494,7 +47662,7 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } /** @@ -48505,25 +47673,23 @@ public class Multiply extends software.amazon.jsii.tests.calculator.BinaryOperat @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Negate.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * The negation operation (\\"-value\\"). + * The negation operation ("-value"). *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Negate\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Negate") public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation implements software.amazon.jsii.tests.calculator.IFriendlier { protected Negate(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -48542,7 +47708,7 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Negate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, \\"operand is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, "operand is required") }); } /** @@ -48553,7 +47719,7 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String farewell() { - return this.jsiiCall(\\"farewell\\", java.lang.String.class); + return this.jsiiCall("farewell", java.lang.String.class); } /** @@ -48564,7 +47730,7 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String goodbye() { - return this.jsiiCall(\\"goodbye\\", java.lang.String.class); + return this.jsiiCall("goodbye", java.lang.String.class); } /** @@ -48575,7 +47741,7 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String hello() { - return this.jsiiCall(\\"hello\\", java.lang.String.class); + return this.jsiiCall("hello", java.lang.String.class); } /** @@ -48586,7 +47752,7 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } /** @@ -48597,22 +47763,50 @@ public class Negate extends software.amazon.jsii.tests.calculator.UnaryOperation @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } } -", + +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NestedClassInstance.java 1`] = ` +package software.amazon.jsii.tests.calculator; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NestedClassInstance") +public class NestedClassInstance extends software.amazon.jsii.JsiiObject { + + protected NestedClassInstance(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected NestedClassInstance(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.custom_submodule_name.NestingClass.NestedClass makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.NestedClassInstance.class, "makeInstance", software.amazon.jsii.tests.calculator.custom_submodule_name.NestingClass.NestedClass.class); + } } + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NestedStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NestedStruct") @software.amazon.jsii.Jsii.Proxy(NestedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { @@ -48675,7 +47869,7 @@ public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.numberProp = this.jsiiGet(\\"numberProp\\", java.lang.Number.class); + this.numberProp = this.jsiiGet("numberProp", java.lang.Number.class); } /** @@ -48683,7 +47877,7 @@ public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Number numberProp) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.numberProp = java.util.Objects.requireNonNull(numberProp, \\"numberProp is required\\"); + this.numberProp = java.util.Objects.requireNonNull(numberProp, "numberProp is required"); } @Override @@ -48696,14 +47890,14 @@ public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"numberProp\\", om.valueToTree(this.getNumberProp())); + data.set("numberProp", om.valueToTree(this.getNumberProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.NestedStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.NestedStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -48725,22 +47919,20 @@ public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Test fixture to verify that jsii modules can use the node standard library. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NodeStandardLibrary\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NodeStandardLibrary") public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { protected NodeStandardLibrary(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -48761,15 +47953,15 @@ public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { } /** - * Uses node.js \\"crypto\\" module to calculate sha256 of a string. + * Uses node.js "crypto" module to calculate sha256 of a string. *

* EXPERIMENTAL *

- * @return \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + * @return "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String cryptoSha256() { - return this.jsiiCall(\\"cryptoSha256\\", java.lang.String.class); + return this.jsiiCall("cryptoSha256", java.lang.String.class); } /** @@ -48777,11 +47969,11 @@ public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { *

* EXPERIMENTAL *

- * @return \\"Hello, resource!\\" + * @return "Hello, resource!" */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String fsReadFile() { - return this.jsiiAsyncCall(\\"fsReadFile\\", java.lang.String.class); + return this.jsiiAsyncCall("fsReadFile", java.lang.String.class); } /** @@ -48789,39 +47981,37 @@ public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { *

* EXPERIMENTAL *

- * @return \\"Hello, resource! SYNC!\\" + * @return "Hello, resource! SYNC!" */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String fsReadFileSync() { - return this.jsiiCall(\\"fsReadFileSync\\", java.lang.String.class); + return this.jsiiCall("fsReadFileSync", java.lang.String.class); } /** - * Returns the current os.platform() from the \\"os\\" node module. + * Returns the current os.platform() from the "os" node module. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getOsPlatform() { - return this.jsiiGet(\\"osPlatform\\", java.lang.String.class); + return this.jsiiGet("osPlatform", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + * jsii#282, aws-cdk#157: null should be treated as "undefined". *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NullShouldBeTreatedAsUndefined\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefined") public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObject { protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -48841,7 +48031,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1, final @org.jetbrains.annotations.Nullable java.lang.Object optional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, \\"_param1 is required\\"), optional }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, "_param1 is required"), optional }); } /** @@ -48852,7 +48042,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public NullShouldBeTreatedAsUndefined(final @org.jetbrains.annotations.NotNull java.lang.String _param1) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, \\"_param1 is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(_param1, "_param1 is required") }); } /** @@ -48862,7 +48052,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void giveMeUndefined(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - this.jsiiCall(\\"giveMeUndefined\\", software.amazon.jsii.NativeType.VOID, new Object[] { value }); + this.jsiiCall("giveMeUndefined", software.amazon.jsii.NativeType.VOID, new Object[] { value }); } /** @@ -48870,7 +48060,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void giveMeUndefined() { - this.jsiiCall(\\"giveMeUndefined\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("giveMeUndefined", software.amazon.jsii.NativeType.VOID); } /** @@ -48880,7 +48070,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData input) { - this.jsiiCall(\\"giveMeUndefinedInsideAnObject\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, \\"input is required\\") }); + this.jsiiCall("giveMeUndefinedInsideAnObject", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, "input is required") }); } /** @@ -48888,7 +48078,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void verifyPropertyIsUndefined() { - this.jsiiCall(\\"verifyPropertyIsUndefined\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("verifyPropertyIsUndefined", software.amazon.jsii.NativeType.VOID); } /** @@ -48896,7 +48086,7 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getChangeMeToUndefined() { - return this.jsiiGet(\\"changeMeToUndefined\\", java.lang.String.class); + return this.jsiiGet("changeMeToUndefined", java.lang.String.class); } /** @@ -48904,22 +48094,20 @@ public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setChangeMeToUndefined(final @org.jetbrains.annotations.Nullable java.lang.String value) { - this.jsiiSet(\\"changeMeToUndefined\\", value); + this.jsiiSet("changeMeToUndefined", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefinedData") @software.amazon.jsii.Jsii.Proxy(NullShouldBeTreatedAsUndefinedData.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii.JsiiSerializable { @@ -49001,8 +48189,8 @@ public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.arrayWithThreeElementsAndUndefinedAsSecondArgument = this.jsiiGet(\\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))); - this.thisShouldBeUndefined = this.jsiiGet(\\"thisShouldBeUndefined\\", java.lang.Object.class); + this.arrayWithThreeElementsAndUndefinedAsSecondArgument = this.jsiiGet("arrayWithThreeElementsAndUndefinedAsSecondArgument", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))); + this.thisShouldBeUndefined = this.jsiiGet("thisShouldBeUndefined", java.lang.Object.class); } /** @@ -49010,7 +48198,7 @@ public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii */ private Jsii$Proxy(final java.util.List arrayWithThreeElementsAndUndefinedAsSecondArgument, final java.lang.Object thisShouldBeUndefined) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.arrayWithThreeElementsAndUndefinedAsSecondArgument = java.util.Objects.requireNonNull(arrayWithThreeElementsAndUndefinedAsSecondArgument, \\"arrayWithThreeElementsAndUndefinedAsSecondArgument is required\\"); + this.arrayWithThreeElementsAndUndefinedAsSecondArgument = java.util.Objects.requireNonNull(arrayWithThreeElementsAndUndefinedAsSecondArgument, "arrayWithThreeElementsAndUndefinedAsSecondArgument is required"); this.thisShouldBeUndefined = thisShouldBeUndefined; } @@ -49029,17 +48217,17 @@ public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", om.valueToTree(this.getArrayWithThreeElementsAndUndefinedAsSecondArgument())); + data.set("arrayWithThreeElementsAndUndefinedAsSecondArgument", om.valueToTree(this.getArrayWithThreeElementsAndUndefinedAsSecondArgument())); if (this.getThisShouldBeUndefined() != null) { - data.set(\\"thisShouldBeUndefined\\", om.valueToTree(this.getThisShouldBeUndefined())); + data.set("thisShouldBeUndefined", om.valueToTree(this.getThisShouldBeUndefined())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.NullShouldBeTreatedAsUndefinedData")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -49063,22 +48251,20 @@ public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This allows us to test that a reference can be stored for objects that implement interfaces. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.NumberGenerator\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NumberGenerator") public class NumberGenerator extends software.amazon.jsii.JsiiObject { protected NumberGenerator(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49097,7 +48283,7 @@ public class NumberGenerator extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public NumberGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator generator) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(generator, \\"generator is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(generator, "generator is required") }); } /** @@ -49107,7 +48293,7 @@ public class NumberGenerator extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean isSameGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator gen) { - return this.jsiiCall(\\"isSameGenerator\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(gen, \\"gen is required\\") }); + return this.jsiiCall("isSameGenerator", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(gen, "gen is required") }); } /** @@ -49115,7 +48301,7 @@ public class NumberGenerator extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number nextTimes100() { - return this.jsiiCall(\\"nextTimes100\\", java.lang.Number.class); + return this.jsiiCall("nextTimes100", java.lang.Number.class); } /** @@ -49123,7 +48309,7 @@ public class NumberGenerator extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator getGenerator() { - return this.jsiiGet(\\"generator\\", software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class); + return this.jsiiGet("generator", software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class); } /** @@ -49131,25 +48317,23 @@ public class NumberGenerator extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setGenerator(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IRandomNumberGenerator value) { - this.jsiiSet(\\"generator\\", java.util.Objects.requireNonNull(value, \\"generator is required\\")); + this.jsiiSet("generator", java.util.Objects.requireNonNull(value, "generator is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verify that object references can be passed inside collections. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ObjectRefsInCollections\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectRefsInCollections") public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49178,7 +48362,7 @@ public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number sumFromArray(final @org.jetbrains.annotations.NotNull java.util.List values) { - return this.jsiiCall(\\"sumFromArray\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, \\"values is required\\") }); + return this.jsiiCall("sumFromArray", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, "values is required") }); } /** @@ -49190,23 +48374,21 @@ public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number sumFromMap(final @org.jetbrains.annotations.NotNull java.util.Map values) { - return this.jsiiCall(\\"sumFromMap\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, \\"values is required\\") }); + return this.jsiiCall("sumFromMap", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(values, "values is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ObjectWithPropertyProvider\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectWithPropertyProvider") public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject { protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49222,26 +48404,24 @@ public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IObjectWithProperty provide() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, \\"provide\\", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Old.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Old class. *

* @deprecated Use the new class */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Old\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Old") public class Old extends software.amazon.jsii.JsiiObject { protected Old(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49267,23 +48447,21 @@ public class Old extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public void doAThing() { - this.jsiiCall(\\"doAThing\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("doAThing", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalArgumentInvoker\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalArgumentInvoker") public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49302,7 +48480,7 @@ public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } /** @@ -49310,7 +48488,7 @@ public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void invokeWithOptional() { - this.jsiiCall(\\"invokeWithOptional\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("invokeWithOptional", software.amazon.jsii.NativeType.VOID); } /** @@ -49318,23 +48496,21 @@ public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void invokeWithoutOptional() { - this.jsiiCall(\\"invokeWithoutOptional\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("invokeWithoutOptional", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalConstructorArgument\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalConstructorArgument") public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject { protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49355,7 +48531,7 @@ public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\"), arg3 }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required"), arg3 }); } /** @@ -49367,7 +48543,7 @@ public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public OptionalConstructorArgument(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required") }); } /** @@ -49375,7 +48551,7 @@ public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getArg1() { - return this.jsiiGet(\\"arg1\\", java.lang.Number.class); + return this.jsiiGet("arg1", java.lang.Number.class); } /** @@ -49383,7 +48559,7 @@ public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getArg2() { - return this.jsiiGet(\\"arg2\\", java.lang.String.class); + return this.jsiiGet("arg2", java.lang.String.class); } /** @@ -49391,22 +48567,20 @@ public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.time.Instant getArg3() { - return this.jsiiGet(\\"arg3\\", java.time.Instant.class); + return this.jsiiGet("arg3", java.time.Instant.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStruct") @software.amazon.jsii.Jsii.Proxy(OptionalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { @@ -49469,7 +48643,7 @@ public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.field = this.jsiiGet(\\"field\\", java.lang.String.class); + this.field = this.jsiiGet("field", java.lang.String.class); } /** @@ -49491,15 +48665,15 @@ public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getField() != null) { - data.set(\\"field\\", om.valueToTree(this.getField())); + data.set("field", om.valueToTree(this.getField())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.OptionalStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.OptionalStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -49521,20 +48695,18 @@ public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OptionalStructConsumer\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStructConsumer") public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { protected OptionalStructConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49570,7 +48742,7 @@ public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getParameterWasUndefined() { - return this.jsiiGet(\\"parameterWasUndefined\\", java.lang.Boolean.class); + return this.jsiiGet("parameterWasUndefined", java.lang.Boolean.class); } /** @@ -49578,7 +48750,7 @@ public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getFieldValue() { - return this.jsiiGet(\\"fieldValue\\", java.lang.String.class); + return this.jsiiGet("fieldValue", java.lang.String.class); } /** @@ -49632,22 +48804,20 @@ public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL *

* @see https://github.com/aws/jsii/issues/903 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OverridableProtectedMember\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverridableProtectedMember") public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject { protected OverridableProtectedMember(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49672,7 +48842,7 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected @org.jetbrains.annotations.NotNull java.lang.String overrideMe() { - return this.jsiiCall(\\"overrideMe\\", java.lang.String.class); + return this.jsiiCall("overrideMe", java.lang.String.class); } /** @@ -49680,7 +48850,7 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void switchModes() { - this.jsiiCall(\\"switchModes\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("switchModes", software.amazon.jsii.NativeType.VOID); } /** @@ -49688,7 +48858,7 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String valueFromProtected() { - return this.jsiiCall(\\"valueFromProtected\\", java.lang.String.class); + return this.jsiiCall("valueFromProtected", java.lang.String.class); } /** @@ -49696,7 +48866,7 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadOnly() { - return this.jsiiGet(\\"overrideReadOnly\\", java.lang.String.class); + return this.jsiiGet("overrideReadOnly", java.lang.String.class); } /** @@ -49704,7 +48874,7 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected @org.jetbrains.annotations.NotNull java.lang.String getOverrideReadWrite() { - return this.jsiiGet(\\"overrideReadWrite\\", java.lang.String.class); + return this.jsiiGet("overrideReadWrite", java.lang.String.class); } /** @@ -49712,23 +48882,21 @@ public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected void setOverrideReadWrite(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"overrideReadWrite\\", java.util.Objects.requireNonNull(value, \\"overrideReadWrite is required\\")); + this.jsiiSet("overrideReadWrite", java.util.Objects.requireNonNull(value, "overrideReadWrite is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.OverrideReturnsObject\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverrideReturnsObject") public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { protected OverrideReturnsObject(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49755,24 +48923,22 @@ public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnsNumber obj) { - return this.jsiiCall(\\"test\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + return this.jsiiCall("test", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * https://github.com/aws/jsii/issues/982. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ParentStruct982\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ParentStruct982") @software.amazon.jsii.Jsii.Proxy(ParentStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { @@ -49833,7 +48999,7 @@ public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.foo = this.jsiiGet(\\"foo\\", java.lang.String.class); + this.foo = this.jsiiGet("foo", java.lang.String.class); } /** @@ -49841,7 +49007,7 @@ public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -49854,14 +49020,14 @@ public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.ParentStruct982\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.ParentStruct982")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -49883,20 +49049,18 @@ public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PartiallyInitializedThisConsumer\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PartiallyInitializedThisConsumer") public abstract class PartiallyInitializedThisConsumer extends software.amazon.jsii.JsiiObject { protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49944,24 +49108,22 @@ public abstract class PartiallyInitializedThisConsumer extends software.amazon.j @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev) { - return this.jsiiCall(\\"consumePartiallyInitializedThis\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\"), java.util.Objects.requireNonNull(dt, \\"dt is required\\"), java.util.Objects.requireNonNull(ev, \\"ev is required\\") }); + return this.jsiiCall("consumePartiallyInitializedThis", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required"), java.util.Objects.requireNonNull(dt, "dt is required"), java.util.Objects.requireNonNull(ev, "ev is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Polymorphism\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Polymorphism") public class Polymorphism extends software.amazon.jsii.JsiiObject { protected Polymorphism(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -49988,25 +49150,23 @@ public class Polymorphism extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String sayHello(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.IFriendly friendly) { - return this.jsiiCall(\\"sayHello\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, \\"friendly is required\\") }); + return this.jsiiCall("sayHello", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(friendly, "friendly is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Power.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * The power operation. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Power\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Power") public class Power extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { protected Power(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50028,7 +49188,7 @@ public class Power extends software.amazon.jsii.tests.calculator.composition.Com @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Power(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value base, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value pow) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(base, \\"base is required\\"), java.util.Objects.requireNonNull(pow, \\"pow is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(base, "base is required"), java.util.Objects.requireNonNull(pow, "pow is required") }); } /** @@ -50038,7 +49198,7 @@ public class Power extends software.amazon.jsii.tests.calculator.composition.Com */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getBase() { - return this.jsiiGet(\\"base\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("base", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -50051,7 +49211,7 @@ public class Power extends software.amazon.jsii.tests.calculator.composition.Com @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -50061,25 +49221,23 @@ public class Power extends software.amazon.jsii.tests.calculator.composition.Com */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getPow() { - return this.jsiiGet(\\"pow\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("pow", software.amazon.jsii.tests.calculator.lib.Value.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PropertyNamedProperty.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** - * Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + * Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PropertyNamedProperty\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PropertyNamedProperty") public class PropertyNamedProperty extends software.amazon.jsii.JsiiObject { protected PropertyNamedProperty(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50104,7 +49262,7 @@ public class PropertyNamedProperty extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getProperty() { - return this.jsiiGet(\\"property\\", java.lang.String.class); + return this.jsiiGet("property", java.lang.String.class); } /** @@ -50112,23 +49270,21 @@ public class PropertyNamedProperty extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getYetAnoterOne() { - return this.jsiiGet(\\"yetAnoterOne\\", java.lang.Boolean.class); + return this.jsiiGet("yetAnoterOne", java.lang.Boolean.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PublicClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PublicClass") public class PublicClass extends software.amazon.jsii.JsiiObject { protected PublicClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50153,23 +49309,21 @@ public class PublicClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void hello() { - this.jsiiCall(\\"hello\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("hello", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonReservedWords\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonReservedWords") public class PythonReservedWords extends software.amazon.jsii.JsiiObject { protected PythonReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50194,7 +49348,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void and() { - this.jsiiCall(\\"and\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("and", software.amazon.jsii.NativeType.VOID); } /** @@ -50202,7 +49356,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void as() { - this.jsiiCall(\\"as\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("as", software.amazon.jsii.NativeType.VOID); } /** @@ -50210,7 +49364,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doAssert() { - this.jsiiCall(\\"assert\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("assert", software.amazon.jsii.NativeType.VOID); } /** @@ -50218,7 +49372,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void async() { - this.jsiiCall(\\"async\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("async", software.amazon.jsii.NativeType.VOID); } /** @@ -50226,7 +49380,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void await() { - this.jsiiCall(\\"await\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("await", software.amazon.jsii.NativeType.VOID); } /** @@ -50234,7 +49388,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doBreak() { - this.jsiiCall(\\"break\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("break", software.amazon.jsii.NativeType.VOID); } /** @@ -50242,7 +49396,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doClass() { - this.jsiiCall(\\"class\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("class", software.amazon.jsii.NativeType.VOID); } /** @@ -50250,7 +49404,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doContinue() { - this.jsiiCall(\\"continue\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("continue", software.amazon.jsii.NativeType.VOID); } /** @@ -50258,7 +49412,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void def() { - this.jsiiCall(\\"def\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("def", software.amazon.jsii.NativeType.VOID); } /** @@ -50266,7 +49420,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void del() { - this.jsiiCall(\\"del\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("del", software.amazon.jsii.NativeType.VOID); } /** @@ -50274,7 +49428,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void elif() { - this.jsiiCall(\\"elif\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("elif", software.amazon.jsii.NativeType.VOID); } /** @@ -50282,7 +49436,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doElse() { - this.jsiiCall(\\"else\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("else", software.amazon.jsii.NativeType.VOID); } /** @@ -50290,7 +49444,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void except() { - this.jsiiCall(\\"except\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("except", software.amazon.jsii.NativeType.VOID); } /** @@ -50298,7 +49452,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFinally() { - this.jsiiCall(\\"finally\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("finally", software.amazon.jsii.NativeType.VOID); } /** @@ -50306,7 +49460,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doFor() { - this.jsiiCall(\\"for\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("for", software.amazon.jsii.NativeType.VOID); } /** @@ -50314,7 +49468,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void from() { - this.jsiiCall(\\"from\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("from", software.amazon.jsii.NativeType.VOID); } /** @@ -50322,7 +49476,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void global() { - this.jsiiCall(\\"global\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("global", software.amazon.jsii.NativeType.VOID); } /** @@ -50330,7 +49484,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doIf() { - this.jsiiCall(\\"if\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("if", software.amazon.jsii.NativeType.VOID); } /** @@ -50338,7 +49492,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doImport() { - this.jsiiCall(\\"import\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("import", software.amazon.jsii.NativeType.VOID); } /** @@ -50346,7 +49500,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void in() { - this.jsiiCall(\\"in\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("in", software.amazon.jsii.NativeType.VOID); } /** @@ -50354,7 +49508,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void is() { - this.jsiiCall(\\"is\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("is", software.amazon.jsii.NativeType.VOID); } /** @@ -50362,7 +49516,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void lambda() { - this.jsiiCall(\\"lambda\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("lambda", software.amazon.jsii.NativeType.VOID); } /** @@ -50370,7 +49524,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void nonlocal() { - this.jsiiCall(\\"nonlocal\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("nonlocal", software.amazon.jsii.NativeType.VOID); } /** @@ -50378,7 +49532,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void not() { - this.jsiiCall(\\"not\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("not", software.amazon.jsii.NativeType.VOID); } /** @@ -50386,7 +49540,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void or() { - this.jsiiCall(\\"or\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("or", software.amazon.jsii.NativeType.VOID); } /** @@ -50394,7 +49548,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void pass() { - this.jsiiCall(\\"pass\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("pass", software.amazon.jsii.NativeType.VOID); } /** @@ -50402,7 +49556,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void raise() { - this.jsiiCall(\\"raise\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("raise", software.amazon.jsii.NativeType.VOID); } /** @@ -50410,7 +49564,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doReturn() { - this.jsiiCall(\\"return\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("return", software.amazon.jsii.NativeType.VOID); } /** @@ -50418,7 +49572,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doTry() { - this.jsiiCall(\\"try\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("try", software.amazon.jsii.NativeType.VOID); } /** @@ -50426,7 +49580,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void doWhile() { - this.jsiiCall(\\"while\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("while", software.amazon.jsii.NativeType.VOID); } /** @@ -50434,7 +49588,7 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void with() { - this.jsiiCall(\\"with\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("with", software.amazon.jsii.NativeType.VOID); } /** @@ -50442,25 +49596,23 @@ public class PythonReservedWords extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void yield() { - this.jsiiCall(\\"yield\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("yield", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * See awslabs/jsii#138. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ReferenceEnumFromScopedPackage\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReferenceEnumFromScopedPackage") public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObject { protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50485,7 +49637,7 @@ public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule loadFoo() { - return this.jsiiCall(\\"loadFoo\\", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); + return this.jsiiCall("loadFoo", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); } /** @@ -50495,7 +49647,7 @@ public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void saveFoo(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { - this.jsiiCall(\\"saveFoo\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("saveFoo", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -50503,7 +49655,7 @@ public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule getFoo() { - return this.jsiiGet(\\"foo\\", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); + return this.jsiiGet("foo", software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule.class); } /** @@ -50511,16 +49663,14 @@ public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObj */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setFoo(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule value) { - this.jsiiSet(\\"foo\\", value); + this.jsiiSet("foo", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. @@ -50530,9 +49680,9 @@ Object { * @return an instance of an un-exported class that extends \`ExportedBaseClass\`, declared as \`IPrivatelyImplemented\`. * @see https://github.com/aws/jsii/issues/320 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.ReturnsPrivateImplementationOfInterface\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReturnsPrivateImplementationOfInterface") public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsii.JsiiObject { protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50557,27 +49707,25 @@ public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsi */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPrivatelyImplemented getPrivateImplementation() { - return this.jsiiGet(\\"privateImplementation\\", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); + return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. *

- * This is cheating with the (current) declared types, but this is the \\"more - * idiomatic\\" way for Pythonists. + * This is cheating with the (current) declared types, but this is the "more + * idiomatic" way for Pythonists. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RootStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStruct") @software.amazon.jsii.Jsii.Proxy(RootStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface RootStruct extends software.amazon.jsii.JsiiSerializable { @@ -50661,8 +49809,8 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.stringProp = this.jsiiGet(\\"stringProp\\", java.lang.String.class); - this.nestedStruct = this.jsiiGet(\\"nestedStruct\\", software.amazon.jsii.tests.calculator.NestedStruct.class); + this.stringProp = this.jsiiGet("stringProp", java.lang.String.class); + this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.NestedStruct.class); } /** @@ -50670,7 +49818,7 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.stringProp = java.util.Objects.requireNonNull(stringProp, \\"stringProp is required\\"); + this.stringProp = java.util.Objects.requireNonNull(stringProp, "stringProp is required"); this.nestedStruct = nestedStruct; } @@ -50689,17 +49837,17 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"stringProp\\", om.valueToTree(this.getStringProp())); + data.set("stringProp", om.valueToTree(this.getStringProp())); if (this.getNestedStruct() != null) { - data.set(\\"nestedStruct\\", om.valueToTree(this.getNestedStruct())); + data.set("nestedStruct", om.valueToTree(this.getNestedStruct())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.RootStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.RootStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -50723,20 +49871,18 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RootStructValidator\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStructValidator") public class RootStructValidator extends software.amazon.jsii.JsiiObject { protected RootStructValidator(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50754,23 +49900,21 @@ public class RootStructValidator extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.RootStruct struct) { - software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, \\"validate\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.RuntimeTypeChecking\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RuntimeTypeChecking") public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50799,7 +49943,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2, arg3 }); + this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2, arg3 }); } /** @@ -50810,7 +49954,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1, final @org.jetbrains.annotations.Nullable java.lang.String arg2) { - this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2 }); + this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1, arg2 }); } /** @@ -50820,7 +49964,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithDefaultedArguments(final @org.jetbrains.annotations.Nullable java.lang.Number arg1) { - this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg1 }); + this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID, new Object[] { arg1 }); } /** @@ -50828,7 +49972,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithDefaultedArguments() { - this.jsiiCall(\\"methodWithDefaultedArguments\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("methodWithDefaultedArguments", software.amazon.jsii.NativeType.VOID); } /** @@ -50838,7 +49982,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithOptionalAnyArgument(final @org.jetbrains.annotations.Nullable java.lang.Object arg) { - this.jsiiCall(\\"methodWithOptionalAnyArgument\\", software.amazon.jsii.NativeType.VOID, new Object[] { arg }); + this.jsiiCall("methodWithOptionalAnyArgument", software.amazon.jsii.NativeType.VOID, new Object[] { arg }); } /** @@ -50846,7 +49990,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithOptionalAnyArgument() { - this.jsiiCall(\\"methodWithOptionalAnyArgument\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("methodWithOptionalAnyArgument", software.amazon.jsii.NativeType.VOID); } /** @@ -50860,7 +50004,7 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2, final @org.jetbrains.annotations.Nullable java.time.Instant arg3) { - this.jsiiCall(\\"methodWithOptionalArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\"), arg3 }); + this.jsiiCall("methodWithOptionalArguments", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required"), arg3 }); } /** @@ -50873,22 +50017,20 @@ public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void methodWithOptionalArguments(final @org.jetbrains.annotations.NotNull java.lang.Number arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) { - this.jsiiCall(\\"methodWithOptionalArguments\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, \\"arg1 is required\\"), java.util.Objects.requireNonNull(arg2, \\"arg2 is required\\") }); + this.jsiiCall("methodWithOptionalArguments", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SecondLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SecondLevelStruct") @software.amazon.jsii.Jsii.Proxy(SecondLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -50974,8 +50116,8 @@ public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.deeperRequiredProp = this.jsiiGet(\\"deeperRequiredProp\\", java.lang.String.class); - this.deeperOptionalProp = this.jsiiGet(\\"deeperOptionalProp\\", java.lang.String.class); + this.deeperRequiredProp = this.jsiiGet("deeperRequiredProp", java.lang.String.class); + this.deeperOptionalProp = this.jsiiGet("deeperOptionalProp", java.lang.String.class); } /** @@ -50983,7 +50125,7 @@ public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable */ private Jsii$Proxy(final java.lang.String deeperRequiredProp, final java.lang.String deeperOptionalProp) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.deeperRequiredProp = java.util.Objects.requireNonNull(deeperRequiredProp, \\"deeperRequiredProp is required\\"); + this.deeperRequiredProp = java.util.Objects.requireNonNull(deeperRequiredProp, "deeperRequiredProp is required"); this.deeperOptionalProp = deeperOptionalProp; } @@ -51002,17 +50144,17 @@ public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"deeperRequiredProp\\", om.valueToTree(this.getDeeperRequiredProp())); + data.set("deeperRequiredProp", om.valueToTree(this.getDeeperRequiredProp())); if (this.getDeeperOptionalProp() != null) { - data.set(\\"deeperOptionalProp\\", om.valueToTree(this.getDeeperOptionalProp())); + data.set("deeperOptionalProp", om.valueToTree(this.getDeeperOptionalProp())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SecondLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.SecondLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -51036,13 +50178,11 @@ public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Test that a single instance can be returned under two different FQNs. @@ -51053,9 +50193,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingleInstanceTwoTypes\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingleInstanceTwoTypes") public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51080,7 +50220,7 @@ public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.InbetweenClass interface1() { - return this.jsiiCall(\\"interface1\\", software.amazon.jsii.tests.calculator.InbetweenClass.class); + return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.InbetweenClass.class); } /** @@ -51088,16 +50228,14 @@ public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface interface2() { - return this.jsiiCall(\\"interface2\\", software.amazon.jsii.tests.calculator.IPublicInterface.class); + return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.IPublicInterface.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that singleton enums are handled correctly. @@ -51106,9 +50244,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonInt\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonInt") public class SingletonInt extends software.amazon.jsii.JsiiObject { protected SingletonInt(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51126,25 +50264,23 @@ public class SingletonInt extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonInt(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - return this.jsiiCall(\\"isSingletonInt\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + return this.jsiiCall("isSingletonInt", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * A singleton integer. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonIntEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonIntEnum") public enum SingletonIntEnum { /** * Elite! @@ -51154,13 +50290,11 @@ public enum SingletonIntEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) SINGLETON_INT, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that singleton enums are handled correctly. @@ -51169,9 +50303,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonString\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonString") public class SingletonString extends software.amazon.jsii.JsiiObject { protected SingletonString(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51189,25 +50323,23 @@ public class SingletonString extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean isSingletonString(final @org.jetbrains.annotations.NotNull java.lang.String value) { - return this.jsiiCall(\\"isSingletonString\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + return this.jsiiCall("isSingletonString", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * A singleton string. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SingletonStringEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonStringEnum") public enum SingletonStringEnum { /** * 1337. @@ -51217,19 +50349,17 @@ public enum SingletonStringEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) SINGLETON_STRING, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SmellyStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SmellyStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SmellyStruct") @software.amazon.jsii.Jsii.Proxy(SmellyStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { @@ -51309,8 +50439,8 @@ public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.property = this.jsiiGet(\\"property\\", java.lang.String.class); - this.yetAnoterOne = this.jsiiGet(\\"yetAnoterOne\\", java.lang.Boolean.class); + this.property = this.jsiiGet("property", java.lang.String.class); + this.yetAnoterOne = this.jsiiGet("yetAnoterOne", java.lang.Boolean.class); } /** @@ -51318,8 +50448,8 @@ public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String property, final java.lang.Boolean yetAnoterOne) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.property = java.util.Objects.requireNonNull(property, \\"property is required\\"); - this.yetAnoterOne = java.util.Objects.requireNonNull(yetAnoterOne, \\"yetAnoterOne is required\\"); + this.property = java.util.Objects.requireNonNull(property, "property is required"); + this.yetAnoterOne = java.util.Objects.requireNonNull(yetAnoterOne, "yetAnoterOne is required"); } @Override @@ -51337,15 +50467,15 @@ public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"property\\", om.valueToTree(this.getProperty())); - data.set(\\"yetAnoterOne\\", om.valueToTree(this.getYetAnoterOne())); + data.set("property", om.valueToTree(this.getProperty())); + data.set("yetAnoterOne", om.valueToTree(this.getYetAnoterOne())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SmellyStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.SmellyStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -51369,20 +50499,18 @@ public interface SmellyStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SomeTypeJsii976\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SomeTypeJsii976") public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { protected SomeTypeJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51407,7 +50535,7 @@ public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object returnAnonymous() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, \\"returnAnonymous\\", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); } /** @@ -51415,22 +50543,20 @@ public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnJsii976 returnReturn() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, \\"returnReturn\\", software.amazon.jsii.tests.calculator.IReturnJsii976.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.IReturnJsii976.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableClass") public class StableClass extends software.amazon.jsii.JsiiObject { protected StableClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51448,7 +50574,7 @@ public class StableClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString, final @org.jetbrains.annotations.Nullable java.lang.Number mutableNumber) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\"), mutableNumber }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required"), mutableNumber }); } /** @@ -51457,50 +50583,48 @@ public class StableClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public StableClass(final @org.jetbrains.annotations.NotNull java.lang.String readonlyString) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, \\"readonlyString is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(readonlyString, "readonlyString is required") }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void method() { - this.jsiiCall(\\"method\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("method", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + return this.jsiiGet("readonlyProperty", java.lang.String.class); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Number getMutableProperty() { - return this.jsiiGet(\\"mutableProperty\\", java.lang.Number.class); + return this.jsiiGet("mutableProperty", java.lang.Number.class); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setMutableProperty(final @org.jetbrains.annotations.Nullable java.lang.Number value) { - this.jsiiSet(\\"mutableProperty\\", value); + this.jsiiSet("mutableProperty", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableEnum") public enum StableEnum { /** */ @@ -51511,18 +50635,16 @@ public enum StableEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) OPTION_B, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StableStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableStruct") @software.amazon.jsii.Jsii.Proxy(StableStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface StableStruct extends software.amazon.jsii.JsiiSerializable { @@ -51582,7 +50704,7 @@ public interface StableStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.readonlyProperty = this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + this.readonlyProperty = this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -51590,7 +50712,7 @@ public interface StableStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String readonlyProperty) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, \\"readonlyProperty is required\\"); + this.readonlyProperty = java.util.Objects.requireNonNull(readonlyProperty, "readonlyProperty is required"); } @Override @@ -51603,14 +50725,14 @@ public interface StableStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"readonlyProperty\\", om.valueToTree(this.getReadonlyProperty())); + data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StableStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.StableStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -51632,13 +50754,11 @@ public interface StableStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This is used to validate the ability to use \`this\` from within a static context. @@ -51647,9 +50767,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StaticContext\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StaticContext") public class StaticContext extends software.amazon.jsii.JsiiObject { protected StaticContext(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51665,7 +50785,7 @@ public class StaticContext extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean canAccessStaticContext() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, \\"canAccessStaticContext\\", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); } /** @@ -51673,7 +50793,7 @@ public class StaticContext extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean getStaticVariable() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, \\"staticVariable\\", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.lang.Boolean.class); } /** @@ -51681,23 +50801,21 @@ public class StaticContext extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticVariable(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, \\"staticVariable\\", java.util.Objects.requireNonNull(value, \\"staticVariable is required\\")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Statics\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Statics") public class Statics extends software.amazon.jsii.JsiiObject { protected Statics(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51709,10 +50827,10 @@ public class Statics extends software.amazon.jsii.JsiiObject { } static { - BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"BAR\\", java.lang.Number.class); - CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"ConstObj\\", software.amazon.jsii.tests.calculator.DoubleTrouble.class); - FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"Foo\\", java.lang.String.class); - ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"zooBar\\", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "BAR", java.lang.Number.class); + CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "Foo", java.lang.String.class); + ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -51723,7 +50841,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -51735,7 +50853,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.String staticMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, \\"staticMethod\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, \\"name is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); } /** @@ -51743,7 +50861,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String justMethod() { - return this.jsiiCall(\\"justMethod\\", java.lang.String.class); + return this.jsiiCall("justMethod", java.lang.String.class); } /** @@ -51785,7 +50903,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics getInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"instance\\", software.amazon.jsii.tests.calculator.Statics.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "instance", software.amazon.jsii.tests.calculator.Statics.class); } /** @@ -51797,7 +50915,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, \\"instance\\", java.util.Objects.requireNonNull(value, \\"instance is required\\")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); } /** @@ -51805,7 +50923,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Number getNonConstStatic() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, \\"nonConstStatic\\", java.lang.Number.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.lang.Number.class); } /** @@ -51813,7 +50931,7 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setNonConstStatic(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, \\"nonConstStatic\\", java.util.Objects.requireNonNull(value, \\"nonConstStatic is required\\")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); } /** @@ -51821,23 +50939,21 @@ public class Statics extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getValue() { - return this.jsiiGet(\\"value\\", java.lang.String.class); + return this.jsiiGet("value", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StringEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StringEnum") public enum StringEnum { /** * EXPERIMENTAL @@ -51855,20 +50971,18 @@ public enum StringEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) C, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StripInternal\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StripInternal") public class StripInternal extends software.amazon.jsii.JsiiObject { protected StripInternal(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -51893,7 +51007,7 @@ public class StripInternal extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getYouSeeMe() { - return this.jsiiGet(\\"youSeeMe\\", java.lang.String.class); + return this.jsiiGet("youSeeMe", java.lang.String.class); } /** @@ -51901,24 +51015,22 @@ public class StripInternal extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setYouSeeMe(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"youSeeMe\\", java.util.Objects.requireNonNull(value, \\"youSeeMe is required\\")); + this.jsiiSet("youSeeMe", java.util.Objects.requireNonNull(value, "youSeeMe is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * We can serialize and deserialize structs without silently ignoring optional fields. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructA\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructA") @software.amazon.jsii.Jsii.Proxy(StructA.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructA extends software.amazon.jsii.JsiiSerializable { @@ -52021,9 +51133,9 @@ public interface StructA extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.requiredString = this.jsiiGet(\\"requiredString\\", java.lang.String.class); - this.optionalNumber = this.jsiiGet(\\"optionalNumber\\", java.lang.Number.class); - this.optionalString = this.jsiiGet(\\"optionalString\\", java.lang.String.class); + this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); + this.optionalNumber = this.jsiiGet("optionalNumber", java.lang.Number.class); + this.optionalString = this.jsiiGet("optionalString", java.lang.String.class); } /** @@ -52031,7 +51143,7 @@ public interface StructA extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Number optionalNumber, final java.lang.String optionalString) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.requiredString = java.util.Objects.requireNonNull(requiredString, \\"requiredString is required\\"); + this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); this.optionalNumber = optionalNumber; this.optionalString = optionalString; } @@ -52056,20 +51168,20 @@ public interface StructA extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"requiredString\\", om.valueToTree(this.getRequiredString())); + data.set("requiredString", om.valueToTree(this.getRequiredString())); if (this.getOptionalNumber() != null) { - data.set(\\"optionalNumber\\", om.valueToTree(this.getOptionalNumber())); + data.set("optionalNumber", om.valueToTree(this.getOptionalNumber())); } if (this.getOptionalString() != null) { - data.set(\\"optionalString\\", om.valueToTree(this.getOptionalString())); + data.set("optionalString", om.valueToTree(this.getOptionalString())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructA\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.StructA")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -52095,21 +51207,19 @@ public interface StructA extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructB\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructB") @software.amazon.jsii.Jsii.Proxy(StructB.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructB extends software.amazon.jsii.JsiiSerializable { @@ -52212,9 +51322,9 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.requiredString = this.jsiiGet(\\"requiredString\\", java.lang.String.class); - this.optionalBoolean = this.jsiiGet(\\"optionalBoolean\\", java.lang.Boolean.class); - this.optionalStructA = this.jsiiGet(\\"optionalStructA\\", software.amazon.jsii.tests.calculator.StructA.class); + this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); + this.optionalBoolean = this.jsiiGet("optionalBoolean", java.lang.Boolean.class); + this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.StructA.class); } /** @@ -52222,7 +51332,7 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.StructA optionalStructA) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.requiredString = java.util.Objects.requireNonNull(requiredString, \\"requiredString is required\\"); + this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); this.optionalBoolean = optionalBoolean; this.optionalStructA = optionalStructA; } @@ -52247,20 +51357,20 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"requiredString\\", om.valueToTree(this.getRequiredString())); + data.set("requiredString", om.valueToTree(this.getRequiredString())); if (this.getOptionalBoolean() != null) { - data.set(\\"optionalBoolean\\", om.valueToTree(this.getOptionalBoolean())); + data.set("optionalBoolean", om.valueToTree(this.getOptionalBoolean())); } if (this.getOptionalStructA() != null) { - data.set(\\"optionalStructA\\", om.valueToTree(this.getOptionalStructA())); + data.set("optionalStructA", om.valueToTree(this.getOptionalStructA())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructB\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.StructB")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -52286,13 +51396,11 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. @@ -52301,8 +51409,8 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructParameterType\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructParameterType") @software.amazon.jsii.Jsii.Proxy(StructParameterType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructParameterType extends software.amazon.jsii.JsiiSerializable { @@ -52384,8 +51492,8 @@ public interface StructParameterType extends software.amazon.jsii.JsiiSerializab */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.scope = this.jsiiGet(\\"scope\\", java.lang.String.class); - this.props = this.jsiiGet(\\"props\\", java.lang.Boolean.class); + this.scope = this.jsiiGet("scope", java.lang.String.class); + this.props = this.jsiiGet("props", java.lang.Boolean.class); } /** @@ -52393,7 +51501,7 @@ public interface StructParameterType extends software.amazon.jsii.JsiiSerializab */ private Jsii$Proxy(final java.lang.String scope, final java.lang.Boolean props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.scope = java.util.Objects.requireNonNull(scope, \\"scope is required\\"); + this.scope = java.util.Objects.requireNonNull(scope, "scope is required"); this.props = props; } @@ -52412,17 +51520,17 @@ public interface StructParameterType extends software.amazon.jsii.JsiiSerializab final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"scope\\", om.valueToTree(this.getScope())); + data.set("scope", om.valueToTree(this.getScope())); if (this.getProps() != null) { - data.set(\\"props\\", om.valueToTree(this.getProps())); + data.set("props", om.valueToTree(this.getProps())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructParameterType\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.StructParameterType")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -52446,20 +51554,18 @@ public interface StructParameterType extends software.amazon.jsii.JsiiSerializab } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Just because we can. */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructPassing\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructPassing") public class StructPassing extends software.amazon.jsii.JsiiObject { protected StructPassing(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -52485,7 +51591,7 @@ public class StructPassing extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct... inputs) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, \\"howManyVarArgsDidIPass\\", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, \\"_positional is required\\") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); } /** @@ -52494,23 +51600,21 @@ public class StructPassing extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct input) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, \\"roundTrip\\", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, \\"_positional is required\\"), java.util.Objects.requireNonNull(input, \\"input is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructUnionConsumer\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructUnionConsumer") public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { protected StructUnionConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -52528,7 +51632,7 @@ public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructA(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, \\"isStructA\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } /** @@ -52538,22 +51642,20 @@ public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructB(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, \\"isStructB\\", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, \\"struct is required\\") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.StructWithJavaReservedWords\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructWithJavaReservedWords") @software.amazon.jsii.Jsii.Proxy(StructWithJavaReservedWords.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSerializable { @@ -52677,10 +51779,10 @@ public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSe */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.defaultValue = this.jsiiGet(\\"default\\", java.lang.String.class); - this.assertValue = this.jsiiGet(\\"assert\\", java.lang.String.class); - this.result = this.jsiiGet(\\"result\\", java.lang.String.class); - this.that = this.jsiiGet(\\"that\\", java.lang.String.class); + this.defaultValue = this.jsiiGet("default", java.lang.String.class); + this.assertValue = this.jsiiGet("assert", java.lang.String.class); + this.result = this.jsiiGet("result", java.lang.String.class); + this.that = this.jsiiGet("that", java.lang.String.class); } /** @@ -52688,7 +51790,7 @@ public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSe */ private Jsii$Proxy(final java.lang.String defaultValue, final java.lang.String assertValue, final java.lang.String result, final java.lang.String that) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.defaultValue = java.util.Objects.requireNonNull(defaultValue, \\"defaultValue is required\\"); + this.defaultValue = java.util.Objects.requireNonNull(defaultValue, "defaultValue is required"); this.assertValue = assertValue; this.result = result; this.that = that; @@ -52719,23 +51821,23 @@ public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSe final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"default\\", om.valueToTree(this.getDefaultValue())); + data.set("default", om.valueToTree(this.getDefaultValue())); if (this.getAssertValue() != null) { - data.set(\\"assert\\", om.valueToTree(this.getAssertValue())); + data.set("assert", om.valueToTree(this.getAssertValue())); } if (this.getResult() != null) { - data.set(\\"result\\", om.valueToTree(this.getResult())); + data.set("result", om.valueToTree(this.getResult())); } if (this.getThat() != null) { - data.set(\\"that\\", om.valueToTree(this.getThat())); + data.set("that", om.valueToTree(this.getThat())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.StructWithJavaReservedWords\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.StructWithJavaReservedWords")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -52763,22 +51865,20 @@ public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSe } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Sum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * An operation that sums multiple values. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Sum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Sum") public class Sum extends software.amazon.jsii.tests.calculator.composition.CompositeOperation { protected Sum(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -52808,7 +51908,7 @@ public class Sum extends software.amazon.jsii.tests.calculator.composition.Compo @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -52818,7 +51918,7 @@ public class Sum extends software.amazon.jsii.tests.calculator.composition.Compo */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getParts() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"parts\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("parts", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class)))); } /** @@ -52828,23 +51928,21 @@ public class Sum extends software.amazon.jsii.tests.calculator.composition.Compo */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setParts(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"parts\\", java.util.Objects.requireNonNull(value, \\"parts is required\\")); + this.jsiiSet("parts", java.util.Objects.requireNonNull(value, "parts is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilder\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilder") public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps { protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -52866,7 +51964,7 @@ public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, \\"id is required\\"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, "id is required"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); } /** @@ -52877,7 +51975,7 @@ public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculat @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getId() { - return this.jsiiGet(\\"id\\", java.lang.Number.class); + return this.jsiiGet("id", java.lang.Number.class); } /** @@ -52885,7 +51983,7 @@ public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculat */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getRest() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"rest\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("rest", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -52979,19 +52077,17 @@ public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculat } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilderProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderProps") @software.amazon.jsii.Jsii.Proxy(SupportsNiceJavaBuilderProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiSerializable { @@ -53080,8 +52176,8 @@ public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiS */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.bar = this.jsiiGet(\\"bar\\", java.lang.Number.class); - this.id = this.jsiiGet(\\"id\\", java.lang.String.class); + this.bar = this.jsiiGet("bar", java.lang.Number.class); + this.id = this.jsiiGet("id", java.lang.String.class); } /** @@ -53089,7 +52185,7 @@ public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiS */ private Jsii$Proxy(final java.lang.Number bar, final java.lang.String id) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); this.id = id; } @@ -53108,17 +52204,17 @@ public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiS final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"bar\\", om.valueToTree(this.getBar())); + data.set("bar", om.valueToTree(this.getBar())); if (this.getId() != null) { - data.set(\\"id\\", om.valueToTree(this.getId())); + data.set("id", om.valueToTree(this.getId())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.SupportsNiceJavaBuilderProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.SupportsNiceJavaBuilderProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -53142,22 +52238,20 @@ public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiS } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps") public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.jsii.JsiiObject { protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -53177,7 +52271,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.js @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, \\"id is required\\"), java.util.Objects.requireNonNull(props, \\"props is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** @@ -53185,7 +52279,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.js */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getBar() { - return this.jsiiGet(\\"bar\\", java.lang.Number.class); + return this.jsiiGet("bar", java.lang.Number.class); } /** @@ -53195,7 +52289,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.js */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getId() { - return this.jsiiGet(\\"id\\", java.lang.Number.class); + return this.jsiiGet("id", java.lang.Number.class); } /** @@ -53203,7 +52297,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.js */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getPropId() { - return this.jsiiGet(\\"propId\\", java.lang.String.class); + return this.jsiiGet("propId", java.lang.String.class); } /** @@ -53273,20 +52367,18 @@ public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.js } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.SyncVirtualMethods\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SyncVirtualMethods") public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected SyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -53311,7 +52403,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number callerIsAsync() { - return this.jsiiAsyncCall(\\"callerIsAsync\\", java.lang.Number.class); + return this.jsiiAsyncCall("callerIsAsync", java.lang.Number.class); } /** @@ -53319,7 +52411,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number callerIsMethod() { - return this.jsiiCall(\\"callerIsMethod\\", java.lang.Number.class); + return this.jsiiCall("callerIsMethod", java.lang.Number.class); } /** @@ -53329,7 +52421,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void modifyOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiCall(\\"modifyOtherProperty\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("modifyOtherProperty", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -53339,7 +52431,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void modifyValueOfTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiCall(\\"modifyValueOfTheProperty\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("modifyValueOfTheProperty", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -53347,7 +52439,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number readA() { - return this.jsiiCall(\\"readA\\", java.lang.Number.class); + return this.jsiiCall("readA", java.lang.Number.class); } /** @@ -53355,7 +52447,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String retrieveOtherProperty() { - return this.jsiiCall(\\"retrieveOtherProperty\\", java.lang.String.class); + return this.jsiiCall("retrieveOtherProperty", java.lang.String.class); } /** @@ -53363,7 +52455,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String retrieveReadOnlyProperty() { - return this.jsiiCall(\\"retrieveReadOnlyProperty\\", java.lang.String.class); + return this.jsiiCall("retrieveReadOnlyProperty", java.lang.String.class); } /** @@ -53371,7 +52463,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String retrieveValueOfTheProperty() { - return this.jsiiCall(\\"retrieveValueOfTheProperty\\", java.lang.String.class); + return this.jsiiCall("retrieveValueOfTheProperty", java.lang.String.class); } /** @@ -53381,7 +52473,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number virtualMethod(final @org.jetbrains.annotations.NotNull java.lang.Number n) { - return this.jsiiCall(\\"virtualMethod\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(n, \\"n is required\\") }); + return this.jsiiCall("virtualMethod", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(n, "n is required") }); } /** @@ -53391,7 +52483,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void writeA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiCall(\\"writeA\\", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + this.jsiiCall("writeA", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -53399,7 +52491,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getReadonlyProperty() { - return this.jsiiGet(\\"readonlyProperty\\", java.lang.String.class); + return this.jsiiGet("readonlyProperty", java.lang.String.class); } /** @@ -53407,7 +52499,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getA() { - return this.jsiiGet(\\"a\\", java.lang.Number.class); + return this.jsiiGet("a", java.lang.Number.class); } /** @@ -53415,7 +52507,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setA(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"a\\", java.util.Objects.requireNonNull(value, \\"a is required\\")); + this.jsiiSet("a", java.util.Objects.requireNonNull(value, "a is required")); } /** @@ -53423,7 +52515,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getCallerIsProperty() { - return this.jsiiGet(\\"callerIsProperty\\", java.lang.Number.class); + return this.jsiiGet("callerIsProperty", java.lang.Number.class); } /** @@ -53431,7 +52523,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setCallerIsProperty(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - this.jsiiSet(\\"callerIsProperty\\", java.util.Objects.requireNonNull(value, \\"callerIsProperty is required\\")); + this.jsiiSet("callerIsProperty", java.util.Objects.requireNonNull(value, "callerIsProperty is required")); } /** @@ -53439,7 +52531,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getOtherProperty() { - return this.jsiiGet(\\"otherProperty\\", java.lang.String.class); + return this.jsiiGet("otherProperty", java.lang.String.class); } /** @@ -53447,7 +52539,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"otherProperty\\", java.util.Objects.requireNonNull(value, \\"otherProperty is required\\")); + this.jsiiSet("otherProperty", java.util.Objects.requireNonNull(value, "otherProperty is required")); } /** @@ -53455,7 +52547,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getTheProperty() { - return this.jsiiGet(\\"theProperty\\", java.lang.String.class); + return this.jsiiGet("theProperty", java.lang.String.class); } /** @@ -53463,7 +52555,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setTheProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"theProperty\\", java.util.Objects.requireNonNull(value, \\"theProperty is required\\")); + this.jsiiSet("theProperty", java.util.Objects.requireNonNull(value, "theProperty is required")); } /** @@ -53471,7 +52563,7 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getValueOfOtherProperty() { - return this.jsiiGet(\\"valueOfOtherProperty\\", java.lang.String.class); + return this.jsiiGet("valueOfOtherProperty", java.lang.String.class); } /** @@ -53479,23 +52571,21 @@ public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setValueOfOtherProperty(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"valueOfOtherProperty\\", java.util.Objects.requireNonNull(value, \\"valueOfOtherProperty is required\\")); + this.jsiiSet("valueOfOtherProperty", java.util.Objects.requireNonNull(value, "valueOfOtherProperty is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.Thrower\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Thrower") public class Thrower extends software.amazon.jsii.JsiiObject { protected Thrower(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -53520,22 +52610,20 @@ public class Thrower extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void throwError() { - this.jsiiCall(\\"throwError\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("throwError", software.amazon.jsii.NativeType.VOID); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.TopLevelStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.TopLevelStruct") @software.amazon.jsii.Jsii.Proxy(TopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -53653,9 +52741,9 @@ public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.required = this.jsiiGet(\\"required\\", java.lang.String.class); - this.secondLevel = this.jsiiGet(\\"secondLevel\\", java.lang.Object.class); - this.optional = this.jsiiGet(\\"optional\\", java.lang.String.class); + this.required = this.jsiiGet("required", java.lang.String.class); + this.secondLevel = this.jsiiGet("secondLevel", java.lang.Object.class); + this.optional = this.jsiiGet("optional", java.lang.String.class); } /** @@ -53663,8 +52751,8 @@ public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String required, final java.lang.Object secondLevel, final java.lang.String optional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.required = java.util.Objects.requireNonNull(required, \\"required is required\\"); - this.secondLevel = java.util.Objects.requireNonNull(secondLevel, \\"secondLevel is required\\"); + this.required = java.util.Objects.requireNonNull(required, "required is required"); + this.secondLevel = java.util.Objects.requireNonNull(secondLevel, "secondLevel is required"); this.optional = optional; } @@ -53688,18 +52776,18 @@ public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"required\\", om.valueToTree(this.getRequired())); - data.set(\\"secondLevel\\", om.valueToTree(this.getSecondLevel())); + data.set("required", om.valueToTree(this.getRequired())); + data.set("secondLevel", om.valueToTree(this.getSecondLevel())); if (this.getOptional() != null) { - data.set(\\"optional\\", om.valueToTree(this.getOptional())); + data.set("optional", om.valueToTree(this.getOptional())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.TopLevelStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.TopLevelStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -53725,13 +52813,11 @@ public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Checks the current file permissions are cool (no funky UMASK down-scoping happened). @@ -53740,9 +52826,9 @@ Object { *

* @see https://github.com/aws/jsii/issues/1765 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UmaskCheck\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck") public class UmaskCheck extends software.amazon.jsii.JsiiObject { protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -53760,25 +52846,23 @@ public class UmaskCheck extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, \\"mode\\", java.lang.Number.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UnaryOperation.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * An operation on a single operand. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UnaryOperation\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnaryOperation") public abstract class UnaryOperation extends software.amazon.jsii.tests.calculator.lib.Operation { protected UnaryOperation(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -53797,7 +52881,7 @@ public abstract class UnaryOperation extends software.amazon.jsii.tests.calculat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected UnaryOperation(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value operand) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, \\"operand is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(operand, "operand is required") }); } /** @@ -53805,7 +52889,7 @@ public abstract class UnaryOperation extends software.amazon.jsii.tests.calculat */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getOperand() { - return this.jsiiGet(\\"operand\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("operand", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -53823,7 +52907,7 @@ public abstract class UnaryOperation extends software.amazon.jsii.tests.calculat @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -53833,23 +52917,21 @@ public abstract class UnaryOperation extends software.amazon.jsii.tests.calculat @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UnionProperties\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnionProperties") @software.amazon.jsii.Jsii.Proxy(UnionProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { @@ -53964,8 +53046,8 @@ public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.bar = this.jsiiGet(\\"bar\\", java.lang.Object.class); - this.foo = this.jsiiGet(\\"foo\\", java.lang.Object.class); + this.bar = this.jsiiGet("bar", java.lang.Object.class); + this.foo = this.jsiiGet("foo", java.lang.Object.class); } /** @@ -53973,7 +53055,7 @@ public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Object bar, final java.lang.Object foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bar = java.util.Objects.requireNonNull(bar, \\"bar is required\\"); + this.bar = java.util.Objects.requireNonNull(bar, "bar is required"); this.foo = foo; } @@ -53992,17 +53074,17 @@ public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"bar\\", om.valueToTree(this.getBar())); + data.set("bar", om.valueToTree(this.getBar())); if (this.getFoo() != null) { - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("foo", om.valueToTree(this.getFoo())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.UnionProperties\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.UnionProperties")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -54026,22 +53108,20 @@ public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UpcasingReflectable.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Ensures submodule-imported types from dependencies can be used correctly. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UpcasingReflectable\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UpcasingReflectable") public class UpcasingReflectable extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.custom_submodule_name.IReflectable { protected UpcasingReflectable(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54053,7 +53133,7 @@ public class UpcasingReflectable extends software.amazon.jsii.JsiiObject impleme } static { - REFLECTOR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.UpcasingReflectable.class, \\"reflector\\", software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector.class); + REFLECTOR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.UpcasingReflectable.class, "reflector", software.amazon.jsii.tests.calculator.custom_submodule_name.Reflector.class); } /** @@ -54064,7 +53144,7 @@ public class UpcasingReflectable extends software.amazon.jsii.JsiiObject impleme @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public UpcasingReflectable(final @org.jetbrains.annotations.NotNull java.util.Map delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, \\"delegate is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } /** @@ -54079,23 +53159,21 @@ public class UpcasingReflectable extends software.amazon.jsii.JsiiObject impleme @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getEntries() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"entries\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("entries", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.custom_submodule_name.ReflectableEntry.class)))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UseBundledDependency\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseBundledDependency") public class UseBundledDependency extends software.amazon.jsii.JsiiObject { protected UseBundledDependency(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54120,25 +53198,23 @@ public class UseBundledDependency extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Object value() { - return this.jsiiCall(\\"value\\", java.lang.Object.class); + return this.jsiiCall("value", java.lang.Object.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UseCalcBase\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseCalcBase") public class UseCalcBase extends software.amazon.jsii.JsiiObject { protected UseCalcBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54163,23 +53239,21 @@ public class UseCalcBase extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.base.Base hello() { - return this.jsiiCall(\\"hello\\", software.amazon.jsii.tests.calculator.base.Base.class); + return this.jsiiCall("hello", software.amazon.jsii.tests.calculator.base.Base.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.UsesInterfaceWithProperties\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UsesInterfaceWithProperties") public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject { protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54198,7 +53272,7 @@ public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties obj) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, \\"obj is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } /** @@ -54206,7 +53280,7 @@ public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String justRead() { - return this.jsiiCall(\\"justRead\\", java.lang.String.class); + return this.jsiiCall("justRead", java.lang.String.class); } /** @@ -54216,7 +53290,7 @@ public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension ext) { - return this.jsiiCall(\\"readStringAndNumber\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, \\"ext is required\\") }); + return this.jsiiCall("readStringAndNumber", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, "ext is required") }); } /** @@ -54226,7 +53300,7 @@ public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String writeAndRead(final @org.jetbrains.annotations.NotNull java.lang.String value) { - return this.jsiiCall(\\"writeAndRead\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(value, \\"value is required\\") }); + return this.jsiiCall("writeAndRead", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -54234,23 +53308,21 @@ public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties getObj() { - return this.jsiiGet(\\"obj\\", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); + return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VariadicInvoker\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicInvoker") public class VariadicInvoker extends software.amazon.jsii.JsiiObject { protected VariadicInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54269,7 +53341,7 @@ public class VariadicInvoker extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.VariadicMethod method) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, \\"method is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, "method is required") }); } /** @@ -54279,23 +53351,21 @@ public class VariadicInvoker extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number... values) { - return java.util.Collections.unmodifiableList(this.jsiiCall(\\"asArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.Arrays.stream(values).toArray(Object[]::new))); + return java.util.Collections.unmodifiableList(this.jsiiCall("asArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.Arrays.stream(values).toArray(Object[]::new))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VariadicMethod\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicMethod") public class VariadicMethod extends software.amazon.jsii.JsiiObject { protected VariadicMethod(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54325,23 +53395,21 @@ public class VariadicMethod extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List asArray(final @org.jetbrains.annotations.NotNull java.lang.Number first, final @org.jetbrains.annotations.NotNull java.lang.Number... others) { - return java.util.Collections.unmodifiableList(this.jsiiCall(\\"asArray\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(first, \\"first is required\\") }), java.util.Arrays.stream(others)).toArray(Object[]::new))); + return java.util.Collections.unmodifiableList(this.jsiiCall("asArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)), java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(first, "first is required") }), java.util.Arrays.stream(others)).toArray(Object[]::new))); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VirtualMethodPlayground\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VirtualMethodPlayground") public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54368,7 +53436,7 @@ public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeAsync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { - return this.jsiiAsyncCall(\\"overrideMeAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, \\"index is required\\") }); + return this.jsiiAsyncCall("overrideMeAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, "index is required") }); } /** @@ -54378,7 +53446,7 @@ public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number overrideMeSync(final @org.jetbrains.annotations.NotNull java.lang.Number index) { - return this.jsiiCall(\\"overrideMeSync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, \\"index is required\\") }); + return this.jsiiCall("overrideMeSync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(index, "index is required") }); } /** @@ -54388,7 +53456,7 @@ public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number parallelSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiAsyncCall(\\"parallelSumAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + return this.jsiiAsyncCall("parallelSumAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); } /** @@ -54398,7 +53466,7 @@ public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number serialSumAsync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiAsyncCall(\\"serialSumAsync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + return this.jsiiAsyncCall("serialSumAsync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); } /** @@ -54408,16 +53476,14 @@ public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number sumSync(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return this.jsiiCall(\\"sumSync\\", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, \\"count is required\\") }); + return this.jsiiCall("sumSync", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(count, "count is required") }); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * This test is used to validate the runtimes can return correctly from a void callback. @@ -54430,9 +53496,9 @@ Object { *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.VoidCallback\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VoidCallback") public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { protected VoidCallback(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54457,7 +53523,7 @@ public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void callMe() { - this.jsiiCall(\\"callMe\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("callMe", software.amazon.jsii.NativeType.VOID); } /** @@ -54471,7 +53537,7 @@ public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getMethodWasCalled() { - return this.jsiiGet(\\"methodWasCalled\\", java.lang.Boolean.class); + return this.jsiiGet("methodWasCalled", java.lang.Boolean.class); } /** @@ -54488,26 +53554,24 @@ public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override protected void overrideMe() { - this.jsiiCall(\\"overrideMe\\", software.amazon.jsii.NativeType.VOID); + this.jsiiCall("overrideMe", software.amazon.jsii.NativeType.VOID); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator; /** * Verifies that private property declarations in constructor arguments are hidden. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.WithPrivatePropertyInConstructor\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.WithPrivatePropertyInConstructor") public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiObject { protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54543,25 +53607,23 @@ public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiO */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean getSuccess() { - return this.jsiiGet(\\"success\\", java.lang.Boolean.class); + return this.jsiiGet("success", java.lang.Boolean.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/composition/CompositeOperation.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.composition; +package software.amazon.jsii.tests.calculator.composition; /** * Abstract operation composed from an expression of other operations. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.composition.CompositeOperation\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.composition.CompositeOperation") public abstract class CompositeOperation extends software.amazon.jsii.tests.calculator.lib.Operation { protected CompositeOperation(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54585,7 +53647,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } /** @@ -54606,7 +53668,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -54616,7 +53678,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getDecorationPostfixes() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"decorationPostfixes\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("decorationPostfixes", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -54626,7 +53688,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setDecorationPostfixes(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"decorationPostfixes\\", java.util.Objects.requireNonNull(value, \\"decorationPostfixes is required\\")); + this.jsiiSet("decorationPostfixes", java.util.Objects.requireNonNull(value, "decorationPostfixes is required")); } /** @@ -54636,7 +53698,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getDecorationPrefixes() { - return java.util.Collections.unmodifiableList(this.jsiiGet(\\"decorationPrefixes\\", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(this.jsiiGet("decorationPrefixes", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -54646,7 +53708,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setDecorationPrefixes(final @org.jetbrains.annotations.NotNull java.util.List value) { - this.jsiiSet(\\"decorationPrefixes\\", java.util.Objects.requireNonNull(value, \\"decorationPrefixes is required\\")); + this.jsiiSet("decorationPrefixes", java.util.Objects.requireNonNull(value, "decorationPrefixes is required")); } /** @@ -54656,7 +53718,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle getStringStyle() { - return this.jsiiGet(\\"stringStyle\\", software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class); + return this.jsiiGet("stringStyle", software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class); } /** @@ -54666,7 +53728,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setStringStyle(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle value) { - this.jsiiSet(\\"stringStyle\\", java.util.Objects.requireNonNull(value, \\"stringStyle is required\\")); + this.jsiiSet("stringStyle", java.util.Objects.requireNonNull(value, "stringStyle is required")); } /** * Style of .toString() output for CompositeOperation. @@ -54674,7 +53736,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\") + @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.composition.CompositeOperation.CompositionStringStyle") public enum CompositionStringStyle { /** * Normal string expression. @@ -54710,7 +53772,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.Value getExpression() { - return this.jsiiGet(\\"expression\\", software.amazon.jsii.tests.calculator.lib.Value.class); + return this.jsiiGet("expression", software.amazon.jsii.tests.calculator.lib.Value.class); } /** @@ -54720,7 +53782,7 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.NotNull java.lang.Number getValue() { - return this.jsiiGet(\\"value\\", java.lang.Number.class); + return this.jsiiGet("value", java.lang.Number.class); } /** @@ -54730,24 +53792,22 @@ public abstract class CompositeOperation extends software.amazon.jsii.tests.calc @Deprecated @Override public @org.jetbrains.annotations.NotNull java.lang.String toString() { - return this.jsiiCall(\\"toString\\", java.lang.String.class); + return this.jsiiCall("toString", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; +package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedClassHasNoProperties.Base\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Base") public class Base extends software.amazon.jsii.JsiiObject { protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54772,7 +53832,7 @@ public class Base extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getProp() { - return this.jsiiGet(\\"prop\\", java.lang.String.class); + return this.jsiiGet("prop", java.lang.String.class); } /** @@ -54780,23 +53840,21 @@ public class Base extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setProp(final @org.jetbrains.annotations.NotNull java.lang.String value) { - this.jsiiSet(\\"prop\\", java.util.Objects.requireNonNull(value, \\"prop is required\\")); + this.jsiiSet("prop", java.util.Objects.requireNonNull(value, "prop is required")); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; +package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.DerivedClassHasNoProperties.Derived\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Derived") public class Derived extends software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base { protected Derived(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54816,20 +53874,18 @@ public class Derived extends software.amazon.jsii.tests.calculator.derived_class software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; +package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo") public class Foo extends software.amazon.jsii.JsiiObject { protected Foo(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54854,7 +53910,7 @@ public class Foo extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getBar() { - return this.jsiiGet(\\"bar\\", java.lang.String.class); + return this.jsiiGet("bar", java.lang.String.class); } /** @@ -54862,22 +53918,20 @@ public class Foo extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setBar(final @org.jetbrains.annotations.Nullable java.lang.String value) { - this.jsiiSet(\\"bar\\", value); + this.jsiiSet("bar", value); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; +package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -54938,7 +53992,7 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.foo = this.jsiiGet(\\"foo\\", java.lang.Number.class); + this.foo = this.jsiiGet("foo", java.lang.Number.class); } /** @@ -54946,7 +54000,7 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Number foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -54959,14 +54013,14 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -54988,19 +54042,17 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface; +package software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -55061,7 +54113,7 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.foo = this.jsiiGet(\\"foo\\", java.lang.Number.class); + this.foo = this.jsiiGet("foo", java.lang.Number.class); } /** @@ -55069,7 +54121,7 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Number foo) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.foo = java.util.Objects.requireNonNull(foo, \\"foo is required\\"); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); } @Override @@ -55082,14 +54134,14 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"foo\\", om.valueToTree(this.getFoo())); + data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -55111,13 +54163,11 @@ public interface Hello extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/package-info.java 1`] = ` -Object { - Symbol(file): "/** +/** *

jsii Calculator

*

* This library is used to demonstrate and test the features of JSII @@ -55143,25 +54193,23 @@ Object { *

  * // Example automatically generated. See https://github.com/aws/jsii/issues/826
  * /* This is totes a magic comment in here, just you wait! *{@literal /}
- * String foo = \\"bar\\";
+ * String foo = "bar";
  * 
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) package software.amazon.jsii.tests.calculator; -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelf.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; +package software.amazon.jsii.tests.calculator.python_self; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.ClassWithSelf\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.ClassWithSelf") public class ClassWithSelf extends software.amazon.jsii.JsiiObject { protected ClassWithSelf(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -55180,7 +54228,7 @@ public class ClassWithSelf extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ClassWithSelf(final @org.jetbrains.annotations.NotNull java.lang.String self) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); } /** @@ -55190,7 +54238,7 @@ public class ClassWithSelf extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { - return this.jsiiCall(\\"method\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + return this.jsiiCall("method", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); } /** @@ -55198,23 +54246,21 @@ public class ClassWithSelf extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getSelf() { - return this.jsiiGet(\\"self\\", java.lang.String.class); + return this.jsiiGet("self", java.lang.String.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/ClassWithSelfKwarg.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; +package software.amazon.jsii.tests.calculator.python_self; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.ClassWithSelfKwarg") public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { protected ClassWithSelfKwarg(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -55233,7 +54279,7 @@ public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public ClassWithSelfKwarg(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, \\"props is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** @@ -55241,7 +54287,7 @@ public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.python_self.StructWithSelf getProps() { - return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.python_self.StructWithSelf.class); + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.python_self.StructWithSelf.class); } /** @@ -55289,19 +54335,17 @@ public class ClassWithSelfKwarg extends software.amazon.jsii.JsiiObject { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/IInterfaceWithSelf.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; +package software.amazon.jsii.tests.calculator.python_self; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.IInterfaceWithSelf") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithSelf.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithSelf extends software.amazon.jsii.JsiiSerializable { @@ -55330,23 +54374,21 @@ public interface IInterfaceWithSelf extends software.amazon.jsii.JsiiSerializabl @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull java.lang.String method(final @org.jetbrains.annotations.NotNull java.lang.Number self) { - return this.jsiiCall(\\"method\\", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, \\"self is required\\") }); + return this.jsiiCall("method", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(self, "self is required") }); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/python_self/StructWithSelf.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.python_self; +package software.amazon.jsii.tests.calculator.python_self; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.PythonSelf.StructWithSelf\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonSelf.StructWithSelf") @software.amazon.jsii.Jsii.Proxy(StructWithSelf.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { @@ -55407,7 +54449,7 @@ public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.self = this.jsiiGet(\\"self\\", java.lang.String.class); + this.self = this.jsiiGet("self", java.lang.String.class); } /** @@ -55415,7 +54457,7 @@ public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.String self) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.self = java.util.Objects.requireNonNull(self, \\"self is required\\"); + this.self = java.util.Objects.requireNonNull(self, "self is required"); } @Override @@ -55428,14 +54470,14 @@ public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"self\\", om.valueToTree(this.getSelf())); + data.set("self", om.valueToTree(this.getSelf())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.PythonSelf.StructWithSelf\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.PythonSelf.StructWithSelf")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -55457,20 +54499,18 @@ public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule; +package software.amazon.jsii.tests.calculator.submodule; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.MyClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.MyClass") public class MyClass extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { protected MyClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -55489,7 +54529,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public MyClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, \\"props is required\\") }); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** @@ -55497,7 +54537,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Awesomeness getAwesomeness() { - return this.jsiiGet(\\"awesomeness\\", software.amazon.jsii.tests.calculator.submodule.child.Awesomeness.class); + return this.jsiiGet("awesomeness", software.amazon.jsii.tests.calculator.submodule.child.Awesomeness.class); } /** @@ -55506,7 +54546,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + return this.jsiiGet("definedAt", java.lang.String.class); } /** @@ -55514,7 +54554,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { - return this.jsiiGet(\\"goodness\\", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); } /** @@ -55522,7 +54562,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct getProps() { - return this.jsiiGet(\\"props\\", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); } /** @@ -55530,7 +54570,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes getAllTypes() { - return this.jsiiGet(\\"allTypes\\", software.amazon.jsii.tests.calculator.AllTypes.class); + return this.jsiiGet("allTypes", software.amazon.jsii.tests.calculator.AllTypes.class); } /** @@ -55538,7 +54578,7 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) { - this.jsiiSet(\\"allTypes\\", value); + this.jsiiSet("allTypes", value); } /** @@ -55586,19 +54626,17 @@ public class MyClass extends software.amazon.jsii.JsiiObject implements software } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.back_references; +package software.amazon.jsii.tests.calculator.submodule.back_references; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.back_references.MyClassReference\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.back_references.MyClassReference") @software.amazon.jsii.Jsii.Proxy(MyClassReference.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface MyClassReference extends software.amazon.jsii.JsiiSerializable { @@ -55659,7 +54697,7 @@ public interface MyClassReference extends software.amazon.jsii.JsiiSerializable */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.reference = this.jsiiGet(\\"reference\\", software.amazon.jsii.tests.calculator.submodule.MyClass.class); + this.reference = this.jsiiGet("reference", software.amazon.jsii.tests.calculator.submodule.MyClass.class); } /** @@ -55667,7 +54705,7 @@ public interface MyClassReference extends software.amazon.jsii.JsiiSerializable */ private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.MyClass reference) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.reference = java.util.Objects.requireNonNull(reference, \\"reference is required\\"); + this.reference = java.util.Objects.requireNonNull(reference, "reference is required"); } @Override @@ -55680,14 +54718,14 @@ public interface MyClassReference extends software.amazon.jsii.JsiiSerializable final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"reference\\", om.valueToTree(this.getReference())); + data.set("reference", om.valueToTree(this.getReference())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.back_references.MyClassReference\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.back_references.MyClassReference")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -55709,20 +54747,18 @@ public interface MyClassReference extends software.amazon.jsii.JsiiSerializable } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Awesomeness.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Awesomeness\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Awesomeness") public enum Awesomeness { /** * It was awesome! @@ -55732,20 +54768,18 @@ public enum Awesomeness { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) AWESOME, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Goodness\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Goodness") public enum Goodness { /** * It's pretty good. @@ -55769,20 +54803,18 @@ public enum Goodness { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) AMAZINGLY_GOOD, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/InnerClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.InnerClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.InnerClass") public class InnerClass extends software.amazon.jsii.JsiiObject { protected InnerClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -55794,7 +54826,7 @@ public class InnerClass extends software.amazon.jsii.JsiiObject { } static { - STATIC_PROP = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class, \\"staticProp\\", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); + STATIC_PROP = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class, "staticProp", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class); } /** @@ -55812,19 +54844,17 @@ public class InnerClass extends software.amazon.jsii.JsiiObject { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.jsii.tests.calculator.submodule.child.SomeStruct STATIC_PROP; } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/KwargsProps.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.KwargsProps\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.KwargsProps") @software.amazon.jsii.Jsii.Proxy(KwargsProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.submodule.child.SomeStruct { @@ -55900,8 +54930,8 @@ public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, soft */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.extra = this.jsiiGet(\\"extra\\", java.lang.String.class); - this.prop = this.jsiiGet(\\"prop\\", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); + this.extra = this.jsiiGet("extra", java.lang.String.class); + this.prop = this.jsiiGet("prop", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); } /** @@ -55910,7 +54940,7 @@ public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, soft private Jsii$Proxy(final java.lang.String extra, final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.extra = extra; - this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); } @Override @@ -55929,16 +54959,16 @@ public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, soft final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getExtra() != null) { - data.set(\\"extra\\", om.valueToTree(this.getExtra())); + data.set("extra", om.valueToTree(this.getExtra())); } - data.set(\\"prop\\", om.valueToTree(this.getProp())); + data.set("prop", om.valueToTree(this.getProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.KwargsProps\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.KwargsProps")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -55962,13 +54992,11 @@ public interface KwargsProps extends software.amazon.jsii.JsiiSerializable, soft } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/OuterClass.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * Checks that classes can self-reference during initialization. @@ -55977,9 +55005,9 @@ Object { *

* @see : https://github.com/aws/jsii/pull/1706 */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.OuterClass\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.OuterClass") public class OuterClass extends software.amazon.jsii.JsiiObject { protected OuterClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -56004,23 +55032,21 @@ public class OuterClass extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.InnerClass getInnerClass() { - return this.jsiiGet(\\"innerClass\\", software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class); + return this.jsiiGet("innerClass", software.amazon.jsii.tests.calculator.submodule.child.InnerClass.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeEnum.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.SomeEnum\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.SomeEnum") public enum SomeEnum { /** * EXPERIMENTAL @@ -56028,19 +55054,17 @@ public enum SomeEnum { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) SOME, } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/SomeStruct.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.SomeStruct\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.SomeStruct") @software.amazon.jsii.Jsii.Proxy(SomeStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { @@ -56101,7 +55125,7 @@ public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.prop = this.jsiiGet(\\"prop\\", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); + this.prop = this.jsiiGet("prop", software.amazon.jsii.tests.calculator.submodule.child.SomeEnum.class); } /** @@ -56109,7 +55133,7 @@ public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.prop = java.util.Objects.requireNonNull(prop, \\"prop is required\\"); + this.prop = java.util.Objects.requireNonNull(prop, "prop is required"); } @Override @@ -56122,14 +55146,14 @@ public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"prop\\", om.valueToTree(this.getProp())); + data.set("prop", om.valueToTree(this.getProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.SomeStruct\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.SomeStruct")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -56151,19 +55175,17 @@ public interface SomeStruct extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.child; +package software.amazon.jsii.tests.calculator.submodule.child; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.child.Structure\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Structure") @software.amazon.jsii.Jsii.Proxy(Structure.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Structure extends software.amazon.jsii.JsiiSerializable { @@ -56224,7 +55246,7 @@ public interface Structure extends software.amazon.jsii.JsiiSerializable { */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); - this.bool = this.jsiiGet(\\"bool\\", java.lang.Boolean.class); + this.bool = this.jsiiGet("bool", java.lang.Boolean.class); } /** @@ -56232,7 +55254,7 @@ public interface Structure extends software.amazon.jsii.JsiiSerializable { */ private Jsii$Proxy(final java.lang.Boolean bool) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); - this.bool = java.util.Objects.requireNonNull(bool, \\"bool is required\\"); + this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); } @Override @@ -56245,14 +55267,14 @@ public interface Structure extends software.amazon.jsii.JsiiSerializable { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - data.set(\\"bool\\", om.valueToTree(this.getBool())); + data.set("bool", om.valueToTree(this.getBool())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set(\\"fqn\\", om.valueToTree(\\"jsii-calc.submodule.child.Structure\\")); - struct.set(\\"data\\", data); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.Structure")); + struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - obj.set(\\"$jsii.struct\\", struct); + obj.set("$jsii.struct", struct); return obj; } @@ -56274,22 +55296,20 @@ public interface Structure extends software.amazon.jsii.JsiiSerializable { } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/isolated/Kwargs.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.isolated; +package software.amazon.jsii.tests.calculator.submodule.isolated; /** * Ensures imports are correctly registered for kwargs lifted properties from super-structs. *

* EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.isolated.Kwargs\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.isolated.Kwargs") public class Kwargs extends software.amazon.jsii.JsiiObject { protected Kwargs(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -56307,7 +55327,7 @@ public class Kwargs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean method(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.submodule.child.KwargsProps props) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, \\"method\\", java.lang.Boolean.class, new Object[] { props }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, "method", java.lang.Boolean.class, new Object[] { props }); } /** @@ -56315,23 +55335,21 @@ public class Kwargs extends software.amazon.jsii.JsiiObject { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean method() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, \\"method\\", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs.class, "method", java.lang.Boolean.class); } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.nested_submodule; +package software.amazon.jsii.tests.calculator.submodule.nested_submodule; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") +@javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.nested_submodule.Namespaced\\") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.Namespaced") public abstract class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { protected Namespaced(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -56348,7 +55366,7 @@ public abstract class Namespaced extends software.amazon.jsii.JsiiObject impleme @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + return this.jsiiGet("definedAt", java.lang.String.class); } /** @@ -56371,7 +55389,7 @@ public abstract class Namespaced extends software.amazon.jsii.JsiiObject impleme @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { - return this.jsiiGet(\\"goodness\\", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); } /** @@ -56380,23 +55398,21 @@ public abstract class Namespaced extends software.amazon.jsii.JsiiObject impleme @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + return this.jsiiGet("definedAt", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java 1`] = ` -Object { - Symbol(file): "package software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested; +package software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested; /** * EXPERIMENTAL */ -@javax.annotation.Generated(value = \\"jsii-pacmak\\") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\") +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced") @software.amazon.jsii.Jsii.Proxy(INamespaced.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface INamespaced extends software.amazon.jsii.JsiiSerializable { @@ -56421,17 +55437,15 @@ public interface INamespaced extends software.amazon.jsii.JsiiSerializable { @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { - return this.jsiiGet(\\"definedAt\\", java.lang.String.class); + return this.jsiiGet("definedAt", java.lang.String.class); } } } -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt 1`] = ` -Object { - Symbol(file): "jsii-calc.AbstractClass=software.amazon.jsii.tests.calculator.AbstractClass +jsii-calc.AbstractClass=software.amazon.jsii.tests.calculator.AbstractClass jsii-calc.AbstractClassBase=software.amazon.jsii.tests.calculator.AbstractClassBase jsii-calc.AbstractClassReturner=software.amazon.jsii.tests.calculator.AbstractClassReturner jsii-calc.AbstractSuite=software.amazon.jsii.tests.calculator.AbstractSuite @@ -56560,6 +55574,7 @@ jsii-calc.LoadBalancedFargateServiceProps=software.amazon.jsii.tests.calculator. jsii-calc.MethodNamedProperty=software.amazon.jsii.tests.calculator.MethodNamedProperty jsii-calc.Multiply=software.amazon.jsii.tests.calculator.Multiply jsii-calc.Negate=software.amazon.jsii.tests.calculator.Negate +jsii-calc.NestedClassInstance=software.amazon.jsii.tests.calculator.NestedClassInstance jsii-calc.NestedStruct=software.amazon.jsii.tests.calculator.NestedStruct jsii-calc.NodeStandardLibrary=software.amazon.jsii.tests.calculator.NodeStandardLibrary jsii-calc.NullShouldBeTreatedAsUndefined=software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefined @@ -56645,8 +55660,7 @@ jsii-calc.submodule.child.Structure=software.amazon.jsii.tests.calculator.submod jsii-calc.submodule.isolated.Kwargs=software.amazon.jsii.tests.calculator.submodule.isolated.Kwargs jsii-calc.submodule.nested_submodule.Namespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced=software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced -", -} + `; exports[`Generated code for "jsii-calc": /java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz 1`] = `java/src/main/resources/software/amazon/jsii/tests/calculator/jsii-calc@0.0.0.jsii.tgz is a tarball`; @@ -56654,15 +55668,12 @@ exports[`Generated code for "jsii-calc": /java/src/main/resources/softwa exports[`Generated code for "jsii-calc": /js/jsii-calc@0.0.0.jsii.tgz 1`] = `js/jsii-calc@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "jsii-calc": /python/MANIFEST.in 1`] = ` -Object { - Symbol(file): "include pyproject.toml -", -} +include pyproject.toml + `; exports[`Generated code for "jsii-calc": /python/README.md 1`] = ` -Object { - Symbol(file): "# jsii Calculator +# jsii Calculator This library is used to demonstrate and test the features of JSII @@ -56687,101 +55698,98 @@ calculator.add(10) \`\`\`python # Example automatically generated. See https://github.com/aws/jsii/issues/826 # This is totes a magic comment in here, just you wait! -foo = \\"bar\\" +foo = "bar" \`\`\` -", -} + `; exports[`Generated code for "jsii-calc": /python/pyproject.toml 1`] = ` -Object { - Symbol(file): "[build-system] -requires = [\\"setuptools >= 38.6.0\\", \\"wheel >= 0.31.0\\"] -build-backend = \\"setuptools.build_meta\\" -", -} +[build-system] +requires = ["setuptools >= 49.3.1", "wheel >= 0.34.2"] +build-backend = "setuptools.build_meta" + `; exports[`Generated code for "jsii-calc": /python/setup.py 1`] = ` -Object { - Symbol(file): "import json +import json import setuptools kwargs = json.loads( - \\"\\"\\" + """ { - \\"name\\": \\"jsii-calc\\", - \\"version\\": \\"0.0.0\\", - \\"description\\": \\"A simple calcuator built on JSII.\\", - \\"license\\": \\"Apache-2.0\\", - \\"url\\": \\"https://github.com/aws/jsii\\", - \\"long_description_content_type\\": \\"text/markdown\\", - \\"author\\": \\"Amazon Web Services\\", - \\"project_urls\\": { - \\"Source\\": \\"https://github.com/aws/jsii.git\\" + "name": "jsii-calc", + "version": "0.0.0", + "description": "A simple calcuator built on JSII.", + "license": "Apache-2.0", + "url": "https://github.com/aws/jsii", + "long_description_content_type": "text/markdown", + "author": "Amazon Web Services", + "bdist_wheel": { + "universal": true + }, + "project_urls": { + "Source": "https://github.com/aws/jsii.git" }, - \\"package_dir\\": { - \\"\\": \\"src\\" + "package_dir": { + "": "src" }, - \\"packages\\": [ - \\"jsii_calc\\", - \\"jsii_calc._jsii\\", - \\"jsii_calc.composition\\", - \\"jsii_calc.derived_class_has_no_properties\\", - \\"jsii_calc.interface_in_namespace_includes_classes\\", - \\"jsii_calc.interface_in_namespace_only_interface\\", - \\"jsii_calc.python_self\\", - \\"jsii_calc.submodule\\", - \\"jsii_calc.submodule.back_references\\", - \\"jsii_calc.submodule.child\\", - \\"jsii_calc.submodule.isolated\\", - \\"jsii_calc.submodule.nested_submodule\\", - \\"jsii_calc.submodule.nested_submodule.deeply_nested\\" + "packages": [ + "jsii_calc", + "jsii_calc._jsii", + "jsii_calc.composition", + "jsii_calc.derived_class_has_no_properties", + "jsii_calc.interface_in_namespace_includes_classes", + "jsii_calc.interface_in_namespace_only_interface", + "jsii_calc.python_self", + "jsii_calc.submodule", + "jsii_calc.submodule.back_references", + "jsii_calc.submodule.child", + "jsii_calc.submodule.isolated", + "jsii_calc.submodule.nested_submodule", + "jsii_calc.submodule.nested_submodule.deeply_nested" ], - \\"package_data\\": { - \\"jsii_calc._jsii\\": [ - \\"jsii-calc@0.0.0.jsii.tgz\\" + "package_data": { + "jsii_calc._jsii": [ + "jsii-calc@0.0.0.jsii.tgz" ], - \\"jsii_calc\\": [ - \\"py.typed\\" + "jsii_calc": [ + "py.typed" ] }, - \\"python_requires\\": \\">=3.6\\", - \\"install_requires\\": [ - \\"jsii>=0.0.0, <0.0.1\\", - \\"publication>=0.0.3\\", - \\"scope.jsii-calc-base>=0.0.0, <0.0.1\\", - \\"scope.jsii-calc-base-of-base>=0.0.0, <0.0.1\\", - \\"scope.jsii-calc-lib>=0.0.0, <0.0.1\\" + "python_requires": ">=3.6", + "install_requires": [ + "jsii>=0.0.0, <0.0.1", + "publication>=0.0.3", + "scope.jsii-calc-base-of-base>=0.0.0, <0.0.1", + "scope.jsii-calc-base>=0.0.0, <0.0.1", + "scope.jsii-calc-lib>=0.0.0, <0.0.1" ], - \\"classifiers\\": [ - \\"Intended Audience :: Developers\\", - \\"Operating System :: OS Independent\\", - \\"Programming Language :: JavaScript\\", - \\"Programming Language :: Python :: 3 :: Only\\", - \\"Programming Language :: Python :: 3.6\\", - \\"Programming Language :: Python :: 3.7\\", - \\"Programming Language :: Python :: 3.8\\", - \\"Typing :: Typed\\", - \\"Development Status :: 4 - Beta\\", - \\"License :: OSI Approved\\" + "classifiers": [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: JavaScript", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Typing :: Typed", + "Development Status :: 4 - Beta", + "License :: OSI Approved" ] } -\\"\\"\\" +""" ) -with open(\\"README.md\\") as fp: - kwargs[\\"long_description\\"] = fp.read() +with open("README.md") as fp: + kwargs["long_description"] = fp.read() setuptools.setup(**kwargs) -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/__init__.py 1`] = ` -Object { - Symbol(file): "\\"\\"\\" +""" # jsii Calculator This library is used to demonstrate and test the features of JSII @@ -56807,9 +55815,9 @@ calculator.add(10) \`\`\`python # Example automatically generated. See https://github.com/aws/jsii/issues/826 # This is totes a magic comment in here, just you wait! -foo = \\"bar\\" +foo = "bar" \`\`\` -\\"\\"\\" +""" import abc import builtins import datetime @@ -56830,137 +55838,137 @@ from .composition import CompositeOperation as _CompositeOperation_1c4d123b class AbstractClassBase( - metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.AbstractClassBase\\" + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractClassBaseProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AbstractClassBase, self, []) @builtins.property - @jsii.member(jsii_name=\\"abstractProperty\\") + @jsii.member(jsii_name="abstractProperty") @abc.abstractmethod def abstract_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _AbstractClassBaseProxy(AbstractClassBase): @builtins.property - @jsii.member(jsii_name=\\"abstractProperty\\") + @jsii.member(jsii_name="abstractProperty") def abstract_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"abstractProperty\\") + """ + return jsii.get(self, "abstractProperty") class AbstractClassReturner( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AbstractClassReturner\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AbstractClassReturner, self, []) - @jsii.member(jsii_name=\\"giveMeAbstract\\") - def give_me_abstract(self) -> \\"AbstractClass\\": - \\"\\"\\" + @jsii.member(jsii_name="giveMeAbstract") + def give_me_abstract(self) -> "AbstractClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveMeAbstract\\", []) + """ + return jsii.invoke(self, "giveMeAbstract", []) - @jsii.member(jsii_name=\\"giveMeInterface\\") - def give_me_interface(self) -> \\"IInterfaceImplementedByAbstractClass\\": - \\"\\"\\" + @jsii.member(jsii_name="giveMeInterface") + def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveMeInterface\\", []) + """ + return jsii.invoke(self, "giveMeInterface", []) @builtins.property - @jsii.member(jsii_name=\\"returnAbstractFromProperty\\") - def return_abstract_from_property(self) -> \\"AbstractClassBase\\": - \\"\\"\\" + @jsii.member(jsii_name="returnAbstractFromProperty") + def return_abstract_from_property(self) -> "AbstractClassBase": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"returnAbstractFromProperty\\") + """ + return jsii.get(self, "returnAbstractFromProperty") class AbstractSuite( - metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.AbstractSuite\\" + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite" ): - \\"\\"\\"Ensures abstract members implementations correctly register overrides in various languages. + """Ensures abstract members implementations correctly register overrides in various languages. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractSuiteProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AbstractSuite, self, []) - @jsii.member(jsii_name=\\"someMethod\\") + @jsii.member(jsii_name="someMethod") @abc.abstractmethod def _some_method(self, str: str) -> str: - \\"\\"\\" + """ :param str: - stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"workItAll\\") + @jsii.member(jsii_name="workItAll") def work_it_all(self, seed: str) -> str: - \\"\\"\\"Sets \`\`seed\`\` to \`\`this.property\`\`, then calls \`\`someMethod\`\` with \`\`this.property\`\` and returns the result. + """Sets \`\`seed\`\` to \`\`this.property\`\`, then calls \`\`someMethod\`\` with \`\`this.property\`\` and returns the result. :param seed: a \`\`string\`\`. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"workItAll\\", [seed]) + """ + return jsii.invoke(self, "workItAll", [seed]) @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") @abc.abstractmethod def _property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @_property.setter @@ -56970,576 +55978,576 @@ class AbstractSuite( class _AbstractSuiteProxy(AbstractSuite): - @jsii.member(jsii_name=\\"someMethod\\") + @jsii.member(jsii_name="someMethod") def _some_method(self, str: str) -> str: - \\"\\"\\" + """ :param str: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"someMethod\\", [str]) + """ + return jsii.invoke(self, "someMethod", [str]) @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def _property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"property\\") + """ + return jsii.get(self, "property") @_property.setter def _property(self, value: str) -> None: - jsii.set(self, \\"property\\", value) + jsii.set(self, "property", value) -class AllTypes(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllTypes\\"): - \\"\\"\\"This class includes property for all types supported by jsii. +class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"): + """This class includes property for all types supported by jsii. The setters will validate that the value set is of the expected type and throw otherwise. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AllTypes, self, []) - @jsii.member(jsii_name=\\"anyIn\\") + @jsii.member(jsii_name="anyIn") def any_in(self, inp: typing.Any) -> None: - \\"\\"\\" + """ :param inp: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"anyIn\\", [inp]) + """ + return jsii.invoke(self, "anyIn", [inp]) - @jsii.member(jsii_name=\\"anyOut\\") + @jsii.member(jsii_name="anyOut") def any_out(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"anyOut\\", []) + """ + return jsii.invoke(self, "anyOut", []) - @jsii.member(jsii_name=\\"enumMethod\\") - def enum_method(self, value: \\"StringEnum\\") -> \\"StringEnum\\": - \\"\\"\\" + @jsii.member(jsii_name="enumMethod") + def enum_method(self, value: "StringEnum") -> "StringEnum": + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"enumMethod\\", [value]) + """ + return jsii.invoke(self, "enumMethod", [value]) @builtins.property - @jsii.member(jsii_name=\\"enumPropertyValue\\") + @jsii.member(jsii_name="enumPropertyValue") def enum_property_value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"enumPropertyValue\\") + """ + return jsii.get(self, "enumPropertyValue") @builtins.property - @jsii.member(jsii_name=\\"anyArrayProperty\\") + @jsii.member(jsii_name="anyArrayProperty") def any_array_property(self) -> typing.List[typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"anyArrayProperty\\") + """ + return jsii.get(self, "anyArrayProperty") @any_array_property.setter def any_array_property(self, value: typing.List[typing.Any]) -> None: - jsii.set(self, \\"anyArrayProperty\\", value) + jsii.set(self, "anyArrayProperty", value) @builtins.property - @jsii.member(jsii_name=\\"anyMapProperty\\") + @jsii.member(jsii_name="anyMapProperty") def any_map_property(self) -> typing.Mapping[str, typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"anyMapProperty\\") + """ + return jsii.get(self, "anyMapProperty") @any_map_property.setter def any_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: - jsii.set(self, \\"anyMapProperty\\", value) + jsii.set(self, "anyMapProperty", value) @builtins.property - @jsii.member(jsii_name=\\"anyProperty\\") + @jsii.member(jsii_name="anyProperty") def any_property(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"anyProperty\\") + """ + return jsii.get(self, "anyProperty") @any_property.setter def any_property(self, value: typing.Any) -> None: - jsii.set(self, \\"anyProperty\\", value) + jsii.set(self, "anyProperty", value) @builtins.property - @jsii.member(jsii_name=\\"arrayProperty\\") + @jsii.member(jsii_name="arrayProperty") def array_property(self) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arrayProperty\\") + """ + return jsii.get(self, "arrayProperty") @array_property.setter def array_property(self, value: typing.List[str]) -> None: - jsii.set(self, \\"arrayProperty\\", value) + jsii.set(self, "arrayProperty", value) @builtins.property - @jsii.member(jsii_name=\\"booleanProperty\\") + @jsii.member(jsii_name="booleanProperty") def boolean_property(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"booleanProperty\\") + """ + return jsii.get(self, "booleanProperty") @boolean_property.setter def boolean_property(self, value: bool) -> None: - jsii.set(self, \\"booleanProperty\\", value) + jsii.set(self, "booleanProperty", value) @builtins.property - @jsii.member(jsii_name=\\"dateProperty\\") + @jsii.member(jsii_name="dateProperty") def date_property(self) -> datetime.datetime: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"dateProperty\\") + """ + return jsii.get(self, "dateProperty") @date_property.setter def date_property(self, value: datetime.datetime) -> None: - jsii.set(self, \\"dateProperty\\", value) + jsii.set(self, "dateProperty", value) @builtins.property - @jsii.member(jsii_name=\\"enumProperty\\") - def enum_property(self) -> \\"AllTypesEnum\\": - \\"\\"\\" + @jsii.member(jsii_name="enumProperty") + def enum_property(self) -> "AllTypesEnum": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"enumProperty\\") + """ + return jsii.get(self, "enumProperty") @enum_property.setter - def enum_property(self, value: \\"AllTypesEnum\\") -> None: - jsii.set(self, \\"enumProperty\\", value) + def enum_property(self, value: "AllTypesEnum") -> None: + jsii.set(self, "enumProperty", value) @builtins.property - @jsii.member(jsii_name=\\"jsonProperty\\") + @jsii.member(jsii_name="jsonProperty") def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"jsonProperty\\") + """ + return jsii.get(self, "jsonProperty") @json_property.setter def json_property(self, value: typing.Mapping[typing.Any, typing.Any]) -> None: - jsii.set(self, \\"jsonProperty\\", value) + jsii.set(self, "jsonProperty", value) @builtins.property - @jsii.member(jsii_name=\\"mapProperty\\") + @jsii.member(jsii_name="mapProperty") def map_property(self) -> typing.Mapping[str, scope.jsii_calc_lib.Number]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"mapProperty\\") + """ + return jsii.get(self, "mapProperty") @map_property.setter def map_property( self, value: typing.Mapping[str, scope.jsii_calc_lib.Number] ) -> None: - jsii.set(self, \\"mapProperty\\", value) + jsii.set(self, "mapProperty", value) @builtins.property - @jsii.member(jsii_name=\\"numberProperty\\") + @jsii.member(jsii_name="numberProperty") def number_property(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"numberProperty\\") + """ + return jsii.get(self, "numberProperty") @number_property.setter def number_property(self, value: jsii.Number) -> None: - jsii.set(self, \\"numberProperty\\", value) + jsii.set(self, "numberProperty", value) @builtins.property - @jsii.member(jsii_name=\\"stringProperty\\") + @jsii.member(jsii_name="stringProperty") def string_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"stringProperty\\") + """ + return jsii.get(self, "stringProperty") @string_property.setter def string_property(self, value: str) -> None: - jsii.set(self, \\"stringProperty\\", value) + jsii.set(self, "stringProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unionArrayProperty\\") + @jsii.member(jsii_name="unionArrayProperty") def union_array_property( self, ) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unionArrayProperty\\") + """ + return jsii.get(self, "unionArrayProperty") @union_array_property.setter def union_array_property( self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]] ) -> None: - jsii.set(self, \\"unionArrayProperty\\", value) + jsii.set(self, "unionArrayProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unionMapProperty\\") + @jsii.member(jsii_name="unionMapProperty") def union_map_property( self, ) -> typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unionMapProperty\\") + """ + return jsii.get(self, "unionMapProperty") @union_map_property.setter def union_map_property( self, value: typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]], ) -> None: - jsii.set(self, \\"unionMapProperty\\", value) + jsii.set(self, "unionMapProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unionProperty\\") + @jsii.member(jsii_name="unionProperty") def union_property( self, - ) -> typing.Union[str, jsii.Number, \\"Multiply\\", scope.jsii_calc_lib.Number]: - \\"\\"\\" + ) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unionProperty\\") + """ + return jsii.get(self, "unionProperty") @union_property.setter def union_property( self, - value: typing.Union[str, jsii.Number, \\"Multiply\\", scope.jsii_calc_lib.Number], + value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number], ) -> None: - jsii.set(self, \\"unionProperty\\", value) + jsii.set(self, "unionProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unknownArrayProperty\\") + @jsii.member(jsii_name="unknownArrayProperty") def unknown_array_property(self) -> typing.List[typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unknownArrayProperty\\") + """ + return jsii.get(self, "unknownArrayProperty") @unknown_array_property.setter def unknown_array_property(self, value: typing.List[typing.Any]) -> None: - jsii.set(self, \\"unknownArrayProperty\\", value) + jsii.set(self, "unknownArrayProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unknownMapProperty\\") + @jsii.member(jsii_name="unknownMapProperty") def unknown_map_property(self) -> typing.Mapping[str, typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unknownMapProperty\\") + """ + return jsii.get(self, "unknownMapProperty") @unknown_map_property.setter def unknown_map_property(self, value: typing.Mapping[str, typing.Any]) -> None: - jsii.set(self, \\"unknownMapProperty\\", value) + jsii.set(self, "unknownMapProperty", value) @builtins.property - @jsii.member(jsii_name=\\"unknownProperty\\") + @jsii.member(jsii_name="unknownProperty") def unknown_property(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unknownProperty\\") + """ + return jsii.get(self, "unknownProperty") @unknown_property.setter def unknown_property(self, value: typing.Any) -> None: - jsii.set(self, \\"unknownProperty\\", value) + jsii.set(self, "unknownProperty", value) @builtins.property - @jsii.member(jsii_name=\\"optionalEnumValue\\") - def optional_enum_value(self) -> typing.Optional[\\"StringEnum\\"]: - \\"\\"\\" + @jsii.member(jsii_name="optionalEnumValue") + def optional_enum_value(self) -> typing.Optional["StringEnum"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"optionalEnumValue\\") + """ + return jsii.get(self, "optionalEnumValue") @optional_enum_value.setter - def optional_enum_value(self, value: typing.Optional[\\"StringEnum\\"]) -> None: - jsii.set(self, \\"optionalEnumValue\\", value) + def optional_enum_value(self, value: typing.Optional["StringEnum"]) -> None: + jsii.set(self, "optionalEnumValue", value) -@jsii.enum(jsii_type=\\"jsii-calc.AllTypesEnum\\") +@jsii.enum(jsii_type="jsii-calc.AllTypesEnum") class AllTypesEnum(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - MY_ENUM_VALUE = \\"MY_ENUM_VALUE\\" - \\"\\"\\" + MY_ENUM_VALUE = "MY_ENUM_VALUE" + """ stability :stability: experimental - \\"\\"\\" - YOUR_ENUM_VALUE = \\"YOUR_ENUM_VALUE\\" - \\"\\"\\" + """ + YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" + """ stability :stability: experimental - \\"\\"\\" - THIS_IS_GREAT = \\"THIS_IS_GREAT\\" - \\"\\"\\" + """ + THIS_IS_GREAT = "THIS_IS_GREAT" + """ stability :stability: experimental - \\"\\"\\" + """ class AllowedMethodNames( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AllowedMethodNames\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AllowedMethodNames, self, []) - @jsii.member(jsii_name=\\"getBar\\") + @jsii.member(jsii_name="getBar") def get_bar(self, _p1: str, _p2: jsii.Number) -> None: - \\"\\"\\" + """ :param _p1: - :param _p2: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"getBar\\", [_p1, _p2]) + """ + return jsii.invoke(self, "getBar", [_p1, _p2]) - @jsii.member(jsii_name=\\"getFoo\\") + @jsii.member(jsii_name="getFoo") def get_foo(self, with_param: str) -> str: - \\"\\"\\"getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. :param with_param: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"getFoo\\", [with_param]) + """ + return jsii.invoke(self, "getFoo", [with_param]) - @jsii.member(jsii_name=\\"setBar\\") + @jsii.member(jsii_name="setBar") def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: - \\"\\"\\" + """ :param _x: - :param _y: - :param _z: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"setBar\\", [_x, _y, _z]) + """ + return jsii.invoke(self, "setBar", [_x, _y, _z]) - @jsii.member(jsii_name=\\"setFoo\\") + @jsii.member(jsii_name="setFoo") def set_foo(self, _x: str, _y: jsii.Number) -> None: - \\"\\"\\"setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. :param _x: - :param _y: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"setFoo\\", [_x, _y]) + """ + return jsii.invoke(self, "setFoo", [_x, _y]) class AmbiguousParameters( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AmbiguousParameters\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__( - self, scope_: \\"Bell\\", *, scope: str, props: typing.Optional[bool] = None + self, scope_: "Bell", *, scope: str, props: typing.Optional[bool] = None ) -> None: - \\"\\"\\" + """ :param scope_: - :param scope: :param props: stability :stability: experimental - \\"\\"\\" + """ props_ = StructParameterType(scope=scope, props=props) jsii.create(AmbiguousParameters, self, [scope_, props_]) @builtins.property - @jsii.member(jsii_name=\\"props\\") - def props(self) -> \\"StructParameterType\\": - \\"\\"\\" + @jsii.member(jsii_name="props") + def props(self) -> "StructParameterType": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"props\\") + """ + return jsii.get(self, "props") @builtins.property - @jsii.member(jsii_name=\\"scope\\") - def scope(self) -> \\"Bell\\": - \\"\\"\\" + @jsii.member(jsii_name="scope") + def scope(self) -> "Bell": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"scope\\") + """ + return jsii.get(self, "scope") class AsyncVirtualMethods( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AsyncVirtualMethods\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AsyncVirtualMethods, self, []) - @jsii.member(jsii_name=\\"callMe\\") + @jsii.member(jsii_name="callMe") def call_me(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"callMe\\", []) + """ + return jsii.ainvoke(self, "callMe", []) - @jsii.member(jsii_name=\\"callMe2\\") + @jsii.member(jsii_name="callMe2") def call_me2(self) -> jsii.Number: - \\"\\"\\"Just calls \\"overrideMeToo\\". + """Just calls "overrideMeToo". stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"callMe2\\", []) + """ + return jsii.ainvoke(self, "callMe2", []) - @jsii.member(jsii_name=\\"callMeDoublePromise\\") + @jsii.member(jsii_name="callMeDoublePromise") def call_me_double_promise(self) -> jsii.Number: - \\"\\"\\"This method calls the \\"callMe\\" async method indirectly, which will then invoke a virtual method. + """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - This is a \\"double promise\\" situation, which + This is a "double promise" situation, which means that callbacks are not going to be available immediate, but only - after an \\"immediates\\" cycle. + after an "immediates" cycle. stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"callMeDoublePromise\\", []) + """ + return jsii.ainvoke(self, "callMeDoublePromise", []) - @jsii.member(jsii_name=\\"dontOverrideMe\\") + @jsii.member(jsii_name="dontOverrideMe") def dont_override_me(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"dontOverrideMe\\", []) + """ + return jsii.invoke(self, "dontOverrideMe", []) - @jsii.member(jsii_name=\\"overrideMe\\") + @jsii.member(jsii_name="overrideMe") def override_me(self, mult: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param mult: - stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"overrideMe\\", [mult]) + """ + return jsii.ainvoke(self, "overrideMe", [mult]) - @jsii.member(jsii_name=\\"overrideMeToo\\") + @jsii.member(jsii_name="overrideMeToo") def override_me_too(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"overrideMeToo\\", []) + """ + return jsii.ainvoke(self, "overrideMeToo", []) -class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AugmentableClass\\"): - \\"\\"\\" +class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AugmentableClass"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AugmentableClass, self, []) - @jsii.member(jsii_name=\\"methodOne\\") + @jsii.member(jsii_name="methodOne") def method_one(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"methodOne\\", []) + """ + return jsii.invoke(self, "methodOne", []) - @jsii.member(jsii_name=\\"methodTwo\\") + @jsii.member(jsii_name="methodTwo") def method_two(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"methodTwo\\", []) + """ + return jsii.invoke(self, "methodTwo", []) -class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.BaseJsii976\\"): - \\"\\"\\" +class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(BaseJsii976, self, []) @@ -57547,13 +56555,13 @@ class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.BaseJsii976\\" class BinaryOperation( scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.BinaryOperation\\", + jsii_type="jsii-calc.BinaryOperation", ): - \\"\\"\\"Represents an operation with two operands. + """Represents an operation with two operands. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -57562,44 +56570,44 @@ class BinaryOperation( def __init__( self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value ) -> None: - \\"\\"\\"Creates a BinaryOperation. + """Creates a BinaryOperation. :param lhs: Left-hand side operand. :param rhs: Right-hand side operand. stability :stability: experimental - \\"\\"\\" + """ jsii.create(BinaryOperation, self, [lhs, rhs]) - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> str: - \\"\\"\\"Say hello! + """Say hello! stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) @builtins.property - @jsii.member(jsii_name=\\"lhs\\") + @jsii.member(jsii_name="lhs") def lhs(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"Left-hand side operand. + """Left-hand side operand. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"lhs\\") + """ + return jsii.get(self, "lhs") @builtins.property - @jsii.member(jsii_name=\\"rhs\\") + @jsii.member(jsii_name="rhs") def rhs(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"Right-hand side operand. + """Right-hand side operand. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"rhs\\") + """ + return jsii.get(self, "rhs") class _BinaryOperationProxy( @@ -57609,37 +56617,37 @@ class _BinaryOperationProxy( class BurriedAnonymousObject( - metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.BurriedAnonymousObject\\" + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BurriedAnonymousObject" ): - \\"\\"\\"See https://github.com/aws/aws-cdk/issues/7977. + """See https://github.com/aws/aws-cdk/issues/7977. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _BurriedAnonymousObjectProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(BurriedAnonymousObject, self, []) - @jsii.member(jsii_name=\\"check\\") + @jsii.member(jsii_name="check") def check(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"check\\", []) + """ + return jsii.invoke(self, "check", []) - @jsii.member(jsii_name=\\"giveItBack\\") + @jsii.member(jsii_name="giveItBack") @abc.abstractmethod def give_it_back(self, value: typing.Any) -> typing.Any: - \\"\\"\\"Implement this method and have it return it's parameter. + """Implement this method and have it return it's parameter. :param value: the value that should be returned. @@ -57648,14 +56656,14 @@ class BurriedAnonymousObject( stability :stability: experimental - \\"\\"\\" + """ ... class _BurriedAnonymousObjectProxy(BurriedAnonymousObject): - @jsii.member(jsii_name=\\"giveItBack\\") + @jsii.member(jsii_name="giveItBack") def give_it_back(self, value: typing.Any) -> typing.Any: - \\"\\"\\"Implement this method and have it return it's parameter. + """Implement this method and have it return it's parameter. :param value: the value that should be returned. @@ -57664,16 +56672,16 @@ class _BurriedAnonymousObjectProxy(BurriedAnonymousObject): stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveItBack\\", [value]) + """ + return jsii.invoke(self, "giveItBack", [value]) class Calculator( _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.Calculator\\", + jsii_type="jsii-calc.Calculator", ): - \\"\\"\\"A calculator which maintains a current value and allows adding operations. + """A calculator which maintains a current value and allows adding operations. Here's how you use it:: @@ -57695,7 +56703,7 @@ class Calculator( calculator.add(5) calculator.mul(3) print(calculator.expression.value) - \\"\\"\\" + """ def __init__( self, @@ -57703,154 +56711,154 @@ class Calculator( initial_value: typing.Optional[jsii.Number] = None, maximum_value: typing.Optional[jsii.Number] = None, ) -> None: - \\"\\"\\"Creates a Calculator object. + """Creates a Calculator object. :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 :param maximum_value: The maximum value the calculator can store. Default: none stability :stability: experimental - \\"\\"\\" + """ props = CalculatorProps( initial_value=initial_value, maximum_value=maximum_value ) jsii.create(Calculator, self, [props]) - @jsii.member(jsii_name=\\"add\\") + @jsii.member(jsii_name="add") def add(self, value: jsii.Number) -> None: - \\"\\"\\"Adds a number to the current value. + """Adds a number to the current value. :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"add\\", [value]) + """ + return jsii.invoke(self, "add", [value]) - @jsii.member(jsii_name=\\"mul\\") + @jsii.member(jsii_name="mul") def mul(self, value: jsii.Number) -> None: - \\"\\"\\"Multiplies the current value by a number. + """Multiplies the current value by a number. :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"mul\\", [value]) + """ + return jsii.invoke(self, "mul", [value]) - @jsii.member(jsii_name=\\"neg\\") + @jsii.member(jsii_name="neg") def neg(self) -> None: - \\"\\"\\"Negates the current value. + """Negates the current value. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"neg\\", []) + """ + return jsii.invoke(self, "neg", []) - @jsii.member(jsii_name=\\"pow\\") + @jsii.member(jsii_name="pow") def pow(self, value: jsii.Number) -> None: - \\"\\"\\"Raises the current value by a power. + """Raises the current value by a power. :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"pow\\", [value]) + """ + return jsii.invoke(self, "pow", [value]) - @jsii.member(jsii_name=\\"readUnionValue\\") + @jsii.member(jsii_name="readUnionValue") def read_union_value(self) -> jsii.Number: - \\"\\"\\"Returns teh value of the union property (if defined). + """Returns teh value of the union property (if defined). stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"readUnionValue\\", []) + """ + return jsii.invoke(self, "readUnionValue", []) @builtins.property - @jsii.member(jsii_name=\\"expression\\") + @jsii.member(jsii_name="expression") def expression(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"Returns the expression. + """Returns the expression. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"expression\\") + """ + return jsii.get(self, "expression") @builtins.property - @jsii.member(jsii_name=\\"operationsLog\\") + @jsii.member(jsii_name="operationsLog") def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: - \\"\\"\\"A log of all operations. + """A log of all operations. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"operationsLog\\") + """ + return jsii.get(self, "operationsLog") @builtins.property - @jsii.member(jsii_name=\\"operationsMap\\") + @jsii.member(jsii_name="operationsMap") def operations_map( self, ) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]: - \\"\\"\\"A map of per operation name of all operations performed. + """A map of per operation name of all operations performed. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"operationsMap\\") + """ + return jsii.get(self, "operationsMap") @builtins.property - @jsii.member(jsii_name=\\"curr\\") + @jsii.member(jsii_name="curr") def curr(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The current value. + """The current value. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"curr\\") + """ + return jsii.get(self, "curr") @curr.setter def curr(self, value: scope.jsii_calc_lib.Value) -> None: - jsii.set(self, \\"curr\\", value) + jsii.set(self, "curr", value) @builtins.property - @jsii.member(jsii_name=\\"maxValue\\") + @jsii.member(jsii_name="maxValue") def max_value(self) -> typing.Optional[jsii.Number]: - \\"\\"\\"The maximum value allows in this calculator. + """The maximum value allows in this calculator. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"maxValue\\") + """ + return jsii.get(self, "maxValue") @max_value.setter def max_value(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"maxValue\\", value) + jsii.set(self, "maxValue", value) @builtins.property - @jsii.member(jsii_name=\\"unionProperty\\") + @jsii.member(jsii_name="unionProperty") def union_property( self, - ) -> typing.Optional[typing.Union[\\"Add\\", \\"Multiply\\", \\"Power\\"]]: - \\"\\"\\"Example of a property that accepts a union of types. + ) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]: + """Example of a property that accepts a union of types. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unionProperty\\") + """ + return jsii.get(self, "unionProperty") @union_property.setter def union_property( - self, value: typing.Optional[typing.Union[\\"Add\\", \\"Multiply\\", \\"Power\\"]] + self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]] ) -> None: - jsii.set(self, \\"unionProperty\\", value) + jsii.set(self, "unionProperty", value) @jsii.data_type( - jsii_type=\\"jsii-calc.CalculatorProps\\", + jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], - name_mapping={\\"initial_value\\": \\"initialValue\\", \\"maximum_value\\": \\"maximumValue\\"}, + name_mapping={"initial_value": "initialValue", "maximum_value": "maximumValue"}, ) class CalculatorProps: def __init__( @@ -57859,23 +56867,23 @@ class CalculatorProps: initial_value: typing.Optional[jsii.Number] = None, maximum_value: typing.Optional[jsii.Number] = None, ) -> None: - \\"\\"\\"Properties for Calculator. + """Properties for Calculator. :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 :param maximum_value: The maximum value the calculator can store. Default: none stability :stability: experimental - \\"\\"\\" + """ self._values = {} if initial_value is not None: - self._values[\\"initial_value\\"] = initial_value + self._values["initial_value"] = initial_value if maximum_value is not None: - self._values[\\"maximum_value\\"] = maximum_value + self._values["maximum_value"] = maximum_value @builtins.property def initial_value(self) -> typing.Optional[jsii.Number]: - \\"\\"\\"The initial value of the calculator. + """The initial value of the calculator. NOTE: Any number works here, it's fine. @@ -57884,20 +56892,20 @@ class CalculatorProps: stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"initial_value\\") + """ + return self._values.get("initial_value") @builtins.property def maximum_value(self) -> typing.Optional[jsii.Number]: - \\"\\"\\"The maximum value the calculator can store. + """The maximum value the calculator can store. default :default: none stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"maximum_value\\") + """ + return self._values.get("maximum_value") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -57906,102 +56914,102 @@ class CalculatorProps: return not (rhs == self) def __repr__(self) -> str: - return \\"CalculatorProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "CalculatorProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class ClassWithCollections( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithCollections\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, map: typing.Mapping[str, str], array: typing.List[str]) -> None: - \\"\\"\\" + """ :param map: - :param array: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassWithCollections, self, [map, array]) - @jsii.member(jsii_name=\\"createAList\\") + @jsii.member(jsii_name="createAList") @builtins.classmethod def create_a_list(cls) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"createAList\\", []) + """ + return jsii.sinvoke(cls, "createAList", []) - @jsii.member(jsii_name=\\"createAMap\\") + @jsii.member(jsii_name="createAMap") @builtins.classmethod def create_a_map(cls) -> typing.Mapping[str, str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"createAMap\\", []) + """ + return jsii.sinvoke(cls, "createAMap", []) @jsii.python.classproperty - @jsii.member(jsii_name=\\"staticArray\\") + @jsii.member(jsii_name="staticArray") def static_array(cls) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"staticArray\\") + """ + return jsii.sget(cls, "staticArray") @static_array.setter def static_array(cls, value: typing.List[str]) -> None: - jsii.sset(cls, \\"staticArray\\", value) + jsii.sset(cls, "staticArray", value) @jsii.python.classproperty - @jsii.member(jsii_name=\\"staticMap\\") + @jsii.member(jsii_name="staticMap") def static_map(cls) -> typing.Mapping[str, str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"staticMap\\") + """ + return jsii.sget(cls, "staticMap") @static_map.setter def static_map(cls, value: typing.Mapping[str, str]) -> None: - jsii.sset(cls, \\"staticMap\\", value) + jsii.sset(cls, "staticMap", value) @builtins.property - @jsii.member(jsii_name=\\"array\\") + @jsii.member(jsii_name="array") def array(self) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"array\\") + """ + return jsii.get(self, "array") @array.setter def array(self, value: typing.List[str]) -> None: - jsii.set(self, \\"array\\", value) + jsii.set(self, "array", value) @builtins.property - @jsii.member(jsii_name=\\"map\\") + @jsii.member(jsii_name="map") def map(self) -> typing.Mapping[str, str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"map\\") + """ + return jsii.get(self, "map") @map.setter def map(self, value: typing.Mapping[str, str]) -> None: - jsii.set(self, \\"map\\", value) + jsii.set(self, "map", value) -class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithDocs\\"): - \\"\\"\\"This class has docs. +class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs"): + """This class has docs. The docs are great. They're a bunch of tags. @@ -58015,161 +57023,161 @@ class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithDoc # Example automatically generated. See https://github.com/aws/jsii/issues/826 def an_example(): pass - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassWithDocs, self, []) class ClassWithJavaReservedWords( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ClassWithJavaReservedWords\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, int: str) -> None: - \\"\\"\\" + """ :param int: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassWithJavaReservedWords, self, [int]) - @jsii.member(jsii_name=\\"import\\") + @jsii.member(jsii_name="import") def import_(self, assert_: str) -> str: - \\"\\"\\" + """ :param assert_: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"import\\", [assert_]) + """ + return jsii.invoke(self, "import", [assert_]) @builtins.property - @jsii.member(jsii_name=\\"int\\") + @jsii.member(jsii_name="int") def int(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"int\\") + """ + return jsii.get(self, "int") class ClassWithMutableObjectLiteralProperty( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ClassWithMutableObjectLiteralProperty\\", + jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassWithMutableObjectLiteralProperty, self, []) @builtins.property - @jsii.member(jsii_name=\\"mutableObject\\") - def mutable_object(self) -> \\"IMutableObjectLiteral\\": - \\"\\"\\" + @jsii.member(jsii_name="mutableObject") + def mutable_object(self) -> "IMutableObjectLiteral": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"mutableObject\\") + """ + return jsii.get(self, "mutableObject") @mutable_object.setter - def mutable_object(self, value: \\"IMutableObjectLiteral\\") -> None: - jsii.set(self, \\"mutableObject\\", value) + def mutable_object(self, value: "IMutableObjectLiteral") -> None: + jsii.set(self, "mutableObject", value) class ConfusingToJackson( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConfusingToJackson\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson" ): - \\"\\"\\"This tries to confuse Jackson by having overloaded property setters. + """This tries to confuse Jackson by having overloaded property setters. see :see: https://github.com/aws/aws-cdk/issues/4080 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"makeInstance\\") + @jsii.member(jsii_name="makeInstance") @builtins.classmethod - def make_instance(cls) -> \\"ConfusingToJackson\\": - \\"\\"\\" + def make_instance(cls) -> "ConfusingToJackson": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInstance\\", []) + """ + return jsii.sinvoke(cls, "makeInstance", []) - @jsii.member(jsii_name=\\"makeStructInstance\\") + @jsii.member(jsii_name="makeStructInstance") @builtins.classmethod - def make_struct_instance(cls) -> \\"ConfusingToJacksonStruct\\": - \\"\\"\\" + def make_struct_instance(cls) -> "ConfusingToJacksonStruct": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeStructInstance\\", []) + """ + return jsii.sinvoke(cls, "makeStructInstance", []) @builtins.property - @jsii.member(jsii_name=\\"unionProperty\\") + @jsii.member(jsii_name="unionProperty") def union_property( self, - ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]]: - \\"\\"\\" + ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"unionProperty\\") + """ + return jsii.get(self, "unionProperty") @union_property.setter def union_property( self, - value: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]], + value: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]], ) -> None: - jsii.set(self, \\"unionProperty\\", value) + jsii.set(self, "unionProperty", value) @jsii.data_type( - jsii_type=\\"jsii-calc.ConfusingToJacksonStruct\\", + jsii_type="jsii-calc.ConfusingToJacksonStruct", jsii_struct_bases=[], - name_mapping={\\"union_property\\": \\"unionProperty\\"}, + name_mapping={"union_property": "unionProperty"}, ) class ConfusingToJacksonStruct: def __init__( self, *, - union_property: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]] = None, + union_property: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]] = None, ) -> None: - \\"\\"\\" + """ :param union_property: stability :stability: experimental - \\"\\"\\" + """ self._values = {} if union_property is not None: - self._values[\\"union_property\\"] = union_property + self._values["union_property"] = union_property @builtins.property def union_property( self, - ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, \\"AbstractClass\\"]]]]: - \\"\\"\\" + ) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]: + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"union_property\\") + """ + return self._values.get("union_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -58178,155 +57186,155 @@ class ConfusingToJacksonStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"ConfusingToJacksonStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ConfusingToJacksonStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class ConstructorPassesThisOut( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConstructorPassesThisOut\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, consumer: \\"PartiallyInitializedThisConsumer\\") -> None: - \\"\\"\\" + def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: + """ :param consumer: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ConstructorPassesThisOut, self, [consumer]) -class Constructors(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Constructors\\"): - \\"\\"\\" +class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Constructors, self, []) - @jsii.member(jsii_name=\\"hiddenInterface\\") + @jsii.member(jsii_name="hiddenInterface") @builtins.classmethod - def hidden_interface(cls) -> \\"IPublicInterface\\": - \\"\\"\\" + def hidden_interface(cls) -> "IPublicInterface": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"hiddenInterface\\", []) + """ + return jsii.sinvoke(cls, "hiddenInterface", []) - @jsii.member(jsii_name=\\"hiddenInterfaces\\") + @jsii.member(jsii_name="hiddenInterfaces") @builtins.classmethod - def hidden_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: - \\"\\"\\" + def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"hiddenInterfaces\\", []) + """ + return jsii.sinvoke(cls, "hiddenInterfaces", []) - @jsii.member(jsii_name=\\"hiddenSubInterfaces\\") + @jsii.member(jsii_name="hiddenSubInterfaces") @builtins.classmethod - def hidden_sub_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: - \\"\\"\\" + def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"hiddenSubInterfaces\\", []) + """ + return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - @jsii.member(jsii_name=\\"makeClass\\") + @jsii.member(jsii_name="makeClass") @builtins.classmethod - def make_class(cls) -> \\"PublicClass\\": - \\"\\"\\" + def make_class(cls) -> "PublicClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeClass\\", []) + """ + return jsii.sinvoke(cls, "makeClass", []) - @jsii.member(jsii_name=\\"makeInterface\\") + @jsii.member(jsii_name="makeInterface") @builtins.classmethod - def make_interface(cls) -> \\"IPublicInterface\\": - \\"\\"\\" + def make_interface(cls) -> "IPublicInterface": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInterface\\", []) + """ + return jsii.sinvoke(cls, "makeInterface", []) - @jsii.member(jsii_name=\\"makeInterface2\\") + @jsii.member(jsii_name="makeInterface2") @builtins.classmethod - def make_interface2(cls) -> \\"IPublicInterface2\\": - \\"\\"\\" + def make_interface2(cls) -> "IPublicInterface2": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInterface2\\", []) + """ + return jsii.sinvoke(cls, "makeInterface2", []) - @jsii.member(jsii_name=\\"makeInterfaces\\") + @jsii.member(jsii_name="makeInterfaces") @builtins.classmethod - def make_interfaces(cls) -> typing.List[\\"IPublicInterface\\"]: - \\"\\"\\" + def make_interfaces(cls) -> typing.List["IPublicInterface"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInterfaces\\", []) + """ + return jsii.sinvoke(cls, "makeInterfaces", []) class ConsumePureInterface( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumePureInterface\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, delegate: \\"IStructReturningDelegate\\") -> None: - \\"\\"\\" + def __init__(self, delegate: "IStructReturningDelegate") -> None: + """ :param delegate: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ConsumePureInterface, self, [delegate]) - @jsii.member(jsii_name=\\"workItBaby\\") - def work_it_baby(self) -> \\"StructB\\": - \\"\\"\\" + @jsii.member(jsii_name="workItBaby") + def work_it_baby(self) -> "StructB": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"workItBaby\\", []) + """ + return jsii.invoke(self, "workItBaby", []) class ConsumerCanRingBell( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumerCanRingBell\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell" ): - \\"\\"\\"Test calling back to consumers that implement interfaces. + """Test calling back to consumers that implement interfaces. Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call the method on the argument that they're passed... stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ConsumerCanRingBell, self, []) - @jsii.member(jsii_name=\\"staticImplementedByObjectLiteral\\") + @jsii.member(jsii_name="staticImplementedByObjectLiteral") @builtins.classmethod - def static_implemented_by_object_literal(cls, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using an object literal. + def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. Returns whether the bell was rung. @@ -58334,13 +57342,13 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"staticImplementedByObjectLiteral\\", [ringer]) + """ + return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) - @jsii.member(jsii_name=\\"staticImplementedByPrivateClass\\") + @jsii.member(jsii_name="staticImplementedByPrivateClass") @builtins.classmethod - def static_implemented_by_private_class(cls, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using a private class. + def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. Return whether the bell was rung. @@ -58348,13 +57356,13 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"staticImplementedByPrivateClass\\", [ringer]) + """ + return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) - @jsii.member(jsii_name=\\"staticImplementedByPublicClass\\") + @jsii.member(jsii_name="staticImplementedByPublicClass") @builtins.classmethod - def static_implemented_by_public_class(cls, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using a public class. + def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. Return whether the bell was rung. @@ -58362,13 +57370,13 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"staticImplementedByPublicClass\\", [ringer]) + """ + return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) - @jsii.member(jsii_name=\\"staticWhenTypedAsClass\\") + @jsii.member(jsii_name="staticWhenTypedAsClass") @builtins.classmethod - def static_when_typed_as_class(cls, ringer: \\"IConcreteBellRinger\\") -> bool: - \\"\\"\\"If the parameter is a concrete class instead of an interface. + def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. Return whether the bell was rung. @@ -58376,12 +57384,12 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"staticWhenTypedAsClass\\", [ringer]) + """ + return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) - @jsii.member(jsii_name=\\"implementedByObjectLiteral\\") - def implemented_by_object_literal(self, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using an object literal. + @jsii.member(jsii_name="implementedByObjectLiteral") + def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. Returns whether the bell was rung. @@ -58389,12 +57397,12 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"implementedByObjectLiteral\\", [ringer]) + """ + return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) - @jsii.member(jsii_name=\\"implementedByPrivateClass\\") - def implemented_by_private_class(self, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using a private class. + @jsii.member(jsii_name="implementedByPrivateClass") + def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. Return whether the bell was rung. @@ -58402,12 +57410,12 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"implementedByPrivateClass\\", [ringer]) + """ + return jsii.invoke(self, "implementedByPrivateClass", [ringer]) - @jsii.member(jsii_name=\\"implementedByPublicClass\\") - def implemented_by_public_class(self, ringer: \\"IBellRinger\\") -> bool: - \\"\\"\\"...if the interface is implemented using a public class. + @jsii.member(jsii_name="implementedByPublicClass") + def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. Return whether the bell was rung. @@ -58415,12 +57423,12 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"implementedByPublicClass\\", [ringer]) + """ + return jsii.invoke(self, "implementedByPublicClass", [ringer]) - @jsii.member(jsii_name=\\"whenTypedAsClass\\") - def when_typed_as_class(self, ringer: \\"IConcreteBellRinger\\") -> bool: - \\"\\"\\"If the parameter is a concrete class instead of an interface. + @jsii.member(jsii_name="whenTypedAsClass") + def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. Return whether the bell was rung. @@ -58428,63 +57436,63 @@ class ConsumerCanRingBell( stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"whenTypedAsClass\\", [ringer]) + """ + return jsii.invoke(self, "whenTypedAsClass", [ringer]) class ConsumersOfThisCrazyTypeSystem( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ConsumersOfThisCrazyTypeSystem\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - @jsii.member(jsii_name=\\"consumeAnotherPublicInterface\\") - def consume_another_public_interface(self, obj: \\"IAnotherPublicInterface\\") -> str: - \\"\\"\\" + @jsii.member(jsii_name="consumeAnotherPublicInterface") + def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: + """ :param obj: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"consumeAnotherPublicInterface\\", [obj]) + """ + return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) - @jsii.member(jsii_name=\\"consumeNonInternalInterface\\") + @jsii.member(jsii_name="consumeNonInternalInterface") def consume_non_internal_interface( - self, obj: \\"INonInternalInterface\\" + self, obj: "INonInternalInterface" ) -> typing.Any: - \\"\\"\\" + """ :param obj: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"consumeNonInternalInterface\\", [obj]) + """ + return jsii.invoke(self, "consumeNonInternalInterface", [obj]) -class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DataRenderer\\"): - \\"\\"\\"Verifies proper type handling through dynamic overrides. +class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): + """Verifies proper type handling through dynamic overrides. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DataRenderer, self, []) - @jsii.member(jsii_name=\\"render\\") + @jsii.member(jsii_name="render") def render( self, *, @@ -58492,48 +57500,48 @@ class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DataRenderer\ astring: str, first_optional: typing.Optional[typing.List[str]] = None, ) -> str: - \\"\\"\\" + """ :param anumber: An awesome number value. :param astring: A string value. :param first_optional: stability :stability: experimental - \\"\\"\\" + """ data = scope.jsii_calc_lib.MyFirstStruct( anumber=anumber, astring=astring, first_optional=first_optional ) - return jsii.invoke(self, \\"render\\", [data]) + return jsii.invoke(self, "render", [data]) - @jsii.member(jsii_name=\\"renderArbitrary\\") + @jsii.member(jsii_name="renderArbitrary") def render_arbitrary(self, data: typing.Mapping[str, typing.Any]) -> str: - \\"\\"\\" + """ :param data: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"renderArbitrary\\", [data]) + """ + return jsii.invoke(self, "renderArbitrary", [data]) - @jsii.member(jsii_name=\\"renderMap\\") + @jsii.member(jsii_name="renderMap") def render_map(self, map: typing.Mapping[str, typing.Any]) -> str: - \\"\\"\\" + """ :param map: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"renderMap\\", [map]) + """ + return jsii.invoke(self, "renderMap", [map]) class DefaultedConstructorArgument( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DefaultedConstructorArgument\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__( self, @@ -58541,182 +57549,182 @@ class DefaultedConstructorArgument( arg2: typing.Optional[str] = None, arg3: typing.Optional[datetime.datetime] = None, ) -> None: - \\"\\"\\" + """ :param arg1: - :param arg2: - :param arg3: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) @builtins.property - @jsii.member(jsii_name=\\"arg1\\") + @jsii.member(jsii_name="arg1") def arg1(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg1\\") + """ + return jsii.get(self, "arg1") @builtins.property - @jsii.member(jsii_name=\\"arg3\\") + @jsii.member(jsii_name="arg3") def arg3(self) -> datetime.datetime: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg3\\") + """ + return jsii.get(self, "arg3") @builtins.property - @jsii.member(jsii_name=\\"arg2\\") + @jsii.member(jsii_name="arg2") def arg2(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg2\\") + """ + return jsii.get(self, "arg2") -class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Demonstrate982\\"): - \\"\\"\\"1. +class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate982"): + """1. call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Demonstrate982, self, []) - @jsii.member(jsii_name=\\"takeThis\\") + @jsii.member(jsii_name="takeThis") @builtins.classmethod - def take_this(cls) -> \\"ChildStruct982\\": - \\"\\"\\"It's dangerous to go alone! + def take_this(cls) -> "ChildStruct982": + """It's dangerous to go alone! stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"takeThis\\", []) + """ + return jsii.sinvoke(cls, "takeThis", []) - @jsii.member(jsii_name=\\"takeThisToo\\") + @jsii.member(jsii_name="takeThisToo") @builtins.classmethod - def take_this_too(cls) -> \\"ParentStruct982\\": - \\"\\"\\"It's dangerous to go alone! + def take_this_too(cls) -> "ParentStruct982": + """It's dangerous to go alone! stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"takeThisToo\\", []) + """ + return jsii.sinvoke(cls, "takeThisToo", []) -class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DeprecatedClass\\"): - \\"\\"\\" +class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedClass"): + """ deprecated :deprecated: a pretty boring class stability :stability: deprecated - \\"\\"\\" + """ def __init__( self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None ) -> None: - \\"\\"\\" + """ :param readonly_string: - :param mutable_number: - deprecated - :deprecated: this constructor is \\"just\\" okay + :deprecated: this constructor is "just" okay stability :stability: deprecated - \\"\\"\\" + """ jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ deprecated :deprecated: it was a bad idea stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) @builtins.property - @jsii.member(jsii_name=\\"readonlyProperty\\") + @jsii.member(jsii_name="readonlyProperty") def readonly_property(self) -> str: - \\"\\"\\" + """ deprecated - :deprecated: this is not always \\"wazoo\\", be ready to be disappointed + :deprecated: this is not always "wazoo", be ready to be disappointed stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"readonlyProperty\\") + """ + return jsii.get(self, "readonlyProperty") @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ deprecated :deprecated: shouldn't have been mutable stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) -@jsii.enum(jsii_type=\\"jsii-calc.DeprecatedEnum\\") +@jsii.enum(jsii_type="jsii-calc.DeprecatedEnum") class DeprecatedEnum(enum.Enum): - \\"\\"\\" + """ deprecated :deprecated: your deprecated selection of bad options stability :stability: deprecated - \\"\\"\\" + """ - OPTION_A = \\"OPTION_A\\" - \\"\\"\\" + OPTION_A = "OPTION_A" + """ deprecated :deprecated: option A is not great stability :stability: deprecated - \\"\\"\\" - OPTION_B = \\"OPTION_B\\" - \\"\\"\\" + """ + OPTION_B = "OPTION_B" + """ deprecated :deprecated: option B is kinda bad, too stability :stability: deprecated - \\"\\"\\" + """ @jsii.data_type( - jsii_type=\\"jsii-calc.DeprecatedStruct\\", + jsii_type="jsii-calc.DeprecatedStruct", jsii_struct_bases=[], - name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, + name_mapping={"readonly_property": "readonlyProperty"}, ) class DeprecatedStruct: def __init__(self, *, readonly_property: str) -> None: - \\"\\"\\" + """ :param readonly_property: deprecated @@ -58724,21 +57732,21 @@ class DeprecatedStruct: stability :stability: deprecated - \\"\\"\\" + """ self._values = { - \\"readonly_property\\": readonly_property, + "readonly_property": readonly_property, } @builtins.property def readonly_property(self) -> str: - \\"\\"\\" + """ deprecated :deprecated: well, yeah stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"readonly_property\\") + """ + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -58747,24 +57755,24 @@ class DeprecatedStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"DeprecatedStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DeprecatedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.DerivedStruct\\", + jsii_type="jsii-calc.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={ - \\"anumber\\": \\"anumber\\", - \\"astring\\": \\"astring\\", - \\"first_optional\\": \\"firstOptional\\", - \\"another_required\\": \\"anotherRequired\\", - \\"bool\\": \\"bool\\", - \\"non_primitive\\": \\"nonPrimitive\\", - \\"another_optional\\": \\"anotherOptional\\", - \\"optional_any\\": \\"optionalAny\\", - \\"optional_array\\": \\"optionalArray\\", + "anumber": "anumber", + "astring": "astring", + "first_optional": "firstOptional", + "another_required": "anotherRequired", + "bool": "bool", + "non_primitive": "nonPrimitive", + "another_optional": "anotherOptional", + "optional_any": "optionalAny", + "optional_array": "optionalArray", }, ) class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): @@ -58776,12 +57784,12 @@ class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): first_optional: typing.Optional[typing.List[str]] = None, another_required: datetime.datetime, bool: bool, - non_primitive: \\"DoubleTrouble\\", + non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, ) -> None: - \\"\\"\\"A struct which derives from another struct. + """A struct which derives from another struct. :param anumber: An awesome number value. :param astring: A string value. @@ -58795,100 +57803,100 @@ class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"anumber\\": anumber, - \\"astring\\": astring, - \\"another_required\\": another_required, - \\"bool\\": bool, - \\"non_primitive\\": non_primitive, + "anumber": anumber, + "astring": astring, + "another_required": another_required, + "bool": bool, + "non_primitive": non_primitive, } if first_optional is not None: - self._values[\\"first_optional\\"] = first_optional + self._values["first_optional"] = first_optional if another_optional is not None: - self._values[\\"another_optional\\"] = another_optional + self._values["another_optional"] = another_optional if optional_any is not None: - self._values[\\"optional_any\\"] = optional_any + self._values["optional_any"] = optional_any if optional_array is not None: - self._values[\\"optional_array\\"] = optional_array + self._values["optional_array"] = optional_array @builtins.property def anumber(self) -> jsii.Number: - \\"\\"\\"An awesome number value. + """An awesome number value. stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"anumber\\") + """ + return self._values.get("anumber") @builtins.property def astring(self) -> str: - \\"\\"\\"A string value. + """A string value. stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"astring\\") + """ + return self._values.get("astring") @builtins.property def first_optional(self) -> typing.Optional[typing.List[str]]: - \\"\\"\\" + """ stability :stability: deprecated - \\"\\"\\" - return self._values.get(\\"first_optional\\") + """ + return self._values.get("first_optional") @builtins.property def another_required(self) -> datetime.datetime: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"another_required\\") + """ + return self._values.get("another_required") @builtins.property def bool(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"bool\\") + """ + return self._values.get("bool") @builtins.property - def non_primitive(self) -> \\"DoubleTrouble\\": - \\"\\"\\"An example of a non primitive property. + def non_primitive(self) -> "DoubleTrouble": + """An example of a non primitive property. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"non_primitive\\") + """ + return self._values.get("non_primitive") @builtins.property def another_optional( self, ) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]: - \\"\\"\\"This is optional. + """This is optional. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"another_optional\\") + """ + return self._values.get("another_optional") @builtins.property def optional_any(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_any\\") + """ + return self._values.get("optional_any") @builtins.property def optional_array(self) -> typing.Optional[typing.List[str]]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_array\\") + """ + return self._values.get("optional_array") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -58897,35 +57905,35 @@ class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): return not (rhs == self) def __repr__(self) -> str: - return \\"DerivedStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DerivedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.DiamondInheritanceBaseLevelStruct\\", + jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], - name_mapping={\\"base_level_property\\": \\"baseLevelProperty\\"}, + name_mapping={"base_level_property": "baseLevelProperty"}, ) class DiamondInheritanceBaseLevelStruct: def __init__(self, *, base_level_property: str) -> None: - \\"\\"\\" + """ :param base_level_property: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"base_level_property\\": base_level_property, + "base_level_property": base_level_property, } @builtins.property def base_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"base_level_property\\") + """ + return self._values.get("base_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -58934,50 +57942,50 @@ class DiamondInheritanceBaseLevelStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"DiamondInheritanceBaseLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DiamondInheritanceBaseLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.DiamondInheritanceFirstMidLevelStruct\\", + jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={ - \\"base_level_property\\": \\"baseLevelProperty\\", - \\"first_mid_level_property\\": \\"firstMidLevelProperty\\", + "base_level_property": "baseLevelProperty", + "first_mid_level_property": "firstMidLevelProperty", }, ) class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): def __init__( self, *, base_level_property: str, first_mid_level_property: str ) -> None: - \\"\\"\\" + """ :param base_level_property: :param first_mid_level_property: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"base_level_property\\": base_level_property, - \\"first_mid_level_property\\": first_mid_level_property, + "base_level_property": base_level_property, + "first_mid_level_property": first_mid_level_property, } @builtins.property def base_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"base_level_property\\") + """ + return self._values.get("base_level_property") @builtins.property def first_mid_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"first_mid_level_property\\") + """ + return self._values.get("first_mid_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -58986,50 +57994,50 @@ class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): return not (rhs == self) def __repr__(self) -> str: - return \\"DiamondInheritanceFirstMidLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DiamondInheritanceFirstMidLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.DiamondInheritanceSecondMidLevelStruct\\", + jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={ - \\"base_level_property\\": \\"baseLevelProperty\\", - \\"second_mid_level_property\\": \\"secondMidLevelProperty\\", + "base_level_property": "baseLevelProperty", + "second_mid_level_property": "secondMidLevelProperty", }, ) class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): def __init__( self, *, base_level_property: str, second_mid_level_property: str ) -> None: - \\"\\"\\" + """ :param base_level_property: :param second_mid_level_property: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"base_level_property\\": base_level_property, - \\"second_mid_level_property\\": second_mid_level_property, + "base_level_property": base_level_property, + "second_mid_level_property": second_mid_level_property, } @builtins.property def base_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"base_level_property\\") + """ + return self._values.get("base_level_property") @builtins.property def second_mid_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"second_mid_level_property\\") + """ + return self._values.get("second_mid_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59038,21 +58046,21 @@ class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): return not (rhs == self) def __repr__(self) -> str: - return \\"DiamondInheritanceSecondMidLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DiamondInheritanceSecondMidLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.DiamondInheritanceTopLevelStruct\\", + jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[ DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct ], name_mapping={ - \\"base_level_property\\": \\"baseLevelProperty\\", - \\"first_mid_level_property\\": \\"firstMidLevelProperty\\", - \\"second_mid_level_property\\": \\"secondMidLevelProperty\\", - \\"top_level_property\\": \\"topLevelProperty\\", + "base_level_property": "baseLevelProperty", + "first_mid_level_property": "firstMidLevelProperty", + "second_mid_level_property": "secondMidLevelProperty", + "top_level_property": "topLevelProperty", }, ) class DiamondInheritanceTopLevelStruct( @@ -59066,7 +58074,7 @@ class DiamondInheritanceTopLevelStruct( second_mid_level_property: str, top_level_property: str, ) -> None: - \\"\\"\\" + """ :param base_level_property: :param first_mid_level_property: :param second_mid_level_property: @@ -59074,45 +58082,45 @@ class DiamondInheritanceTopLevelStruct( stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"base_level_property\\": base_level_property, - \\"first_mid_level_property\\": first_mid_level_property, - \\"second_mid_level_property\\": second_mid_level_property, - \\"top_level_property\\": top_level_property, + "base_level_property": base_level_property, + "first_mid_level_property": first_mid_level_property, + "second_mid_level_property": second_mid_level_property, + "top_level_property": top_level_property, } @builtins.property def base_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"base_level_property\\") + """ + return self._values.get("base_level_property") @builtins.property def first_mid_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"first_mid_level_property\\") + """ + return self._values.get("first_mid_level_property") @builtins.property def second_mid_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"second_mid_level_property\\") + """ + return self._values.get("second_mid_level_property") @builtins.property def top_level_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"top_level_property\\") + """ + return self._values.get("top_level_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59121,142 +58129,142 @@ class DiamondInheritanceTopLevelStruct( return not (rhs == self) def __repr__(self) -> str: - return \\"DiamondInheritanceTopLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "DiamondInheritanceTopLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class DisappointingCollectionSource( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DisappointingCollectionSource\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource" ): - \\"\\"\\"Verifies that null/undefined can be returned for optional collections. + """Verifies that null/undefined can be returned for optional collections. This source of collections is disappointing - it'll always give you nothing :( stability :stability: experimental - \\"\\"\\" + """ @jsii.python.classproperty - @jsii.member(jsii_name=\\"maybeList\\") + @jsii.member(jsii_name="maybeList") def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: - \\"\\"\\"Some List of strings, maybe? + """Some List of strings, maybe? (Nah, just a billion dollars mistake!) stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"maybeList\\") + """ + return jsii.sget(cls, "maybeList") @jsii.python.classproperty - @jsii.member(jsii_name=\\"maybeMap\\") + @jsii.member(jsii_name="maybeMap") def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str, jsii.Number]]: - \\"\\"\\"Some Map of strings to numbers, maybe? + """Some Map of strings to numbers, maybe? (Nah, just a billion dollars mistake!) stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"maybeMap\\") + """ + return jsii.sget(cls, "maybeMap") class DoNotOverridePrivates( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoNotOverridePrivates\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DoNotOverridePrivates, self, []) - @jsii.member(jsii_name=\\"changePrivatePropertyValue\\") + @jsii.member(jsii_name="changePrivatePropertyValue") def change_private_property_value(self, new_value: str) -> None: - \\"\\"\\" + """ :param new_value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"changePrivatePropertyValue\\", [new_value]) + """ + return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) - @jsii.member(jsii_name=\\"privateMethodValue\\") + @jsii.member(jsii_name="privateMethodValue") def private_method_value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"privateMethodValue\\", []) + """ + return jsii.invoke(self, "privateMethodValue", []) - @jsii.member(jsii_name=\\"privatePropertyValue\\") + @jsii.member(jsii_name="privatePropertyValue") def private_property_value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"privatePropertyValue\\", []) + """ + return jsii.invoke(self, "privatePropertyValue", []) class DoNotRecognizeAnyAsOptional( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoNotRecognizeAnyAsOptional\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional" ): - \\"\\"\\"jsii#284: do not recognize \\"any\\" as an optional argument. + """jsii#284: do not recognize "any" as an optional argument. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DoNotRecognizeAnyAsOptional, self, []) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method( self, _required_any: typing.Any, _optional_any: typing.Any = None, _optional_string: typing.Optional[str] = None, ) -> None: - \\"\\"\\" + """ :param _required_any: - :param _optional_any: - :param _optional_string: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"method\\", [_required_any, _optional_any, _optional_string]) + """ + return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) -class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DocumentedClass\\"): - \\"\\"\\"Here's the first line of the TSDoc comment. +class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"): + """Here's the first line of the TSDoc comment. This is the meat of the TSDoc comment. It may contain multiple lines and multiple paragraphs. Multiple paragraphs are separated by an empty line. - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DocumentedClass, self, []) - @jsii.member(jsii_name=\\"greet\\") + @jsii.member(jsii_name="greet") def greet(self, *, name: typing.Optional[str] = None) -> jsii.Number: - \\"\\"\\"Greet the indicated person. + """Greet the indicated person. This will print out a friendly greeting intended for the indicated person. @@ -59265,95 +58273,95 @@ class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Documented return :return: A number that everyone knows very well - \\"\\"\\" + """ greetee = Greetee(name=name) - return jsii.invoke(self, \\"greet\\", [greetee]) + return jsii.invoke(self, "greet", [greetee]) - @jsii.member(jsii_name=\\"hola\\") + @jsii.member(jsii_name="hola") def hola(self) -> None: - \\"\\"\\"Say ¡Hola! + """Say ¡Hola! stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hola\\", []) + """ + return jsii.invoke(self, "hola", []) class DontComplainAboutVariadicAfterOptional( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.DontComplainAboutVariadicAfterOptional\\", + jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DontComplainAboutVariadicAfterOptional, self, []) - @jsii.member(jsii_name=\\"optionalAndVariadic\\") + @jsii.member(jsii_name="optionalAndVariadic") def optional_and_variadic( self, optional: typing.Optional[str] = None, *things: str ) -> str: - \\"\\"\\" + """ :param optional: - :param things: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"optionalAndVariadic\\", [optional, *things]) + """ + return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) -class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.EnumDispenser\\"): - \\"\\"\\" +class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser"): + """ stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"randomIntegerLikeEnum\\") + @jsii.member(jsii_name="randomIntegerLikeEnum") @builtins.classmethod - def random_integer_like_enum(cls) -> \\"AllTypesEnum\\": - \\"\\"\\" + def random_integer_like_enum(cls) -> "AllTypesEnum": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"randomIntegerLikeEnum\\", []) + """ + return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) - @jsii.member(jsii_name=\\"randomStringLikeEnum\\") + @jsii.member(jsii_name="randomStringLikeEnum") @builtins.classmethod - def random_string_like_enum(cls) -> \\"StringEnum\\": - \\"\\"\\" + def random_string_like_enum(cls) -> "StringEnum": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"randomStringLikeEnum\\", []) + """ + return jsii.sinvoke(cls, "randomStringLikeEnum", []) class EraseUndefinedHashValues( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.EraseUndefinedHashValues\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(EraseUndefinedHashValues, self, []) - @jsii.member(jsii_name=\\"doesKeyExist\\") + @jsii.member(jsii_name="doesKeyExist") @builtins.classmethod - def does_key_exist(cls, opts: \\"EraseUndefinedHashValuesOptions\\", key: str) -> bool: - \\"\\"\\"Returns \`\`true\`\` if \`\`key\`\` is defined in \`\`opts\`\`. + def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: + """Returns \`\`true\`\` if \`\`key\`\` is defined in \`\`opts\`\`. Used to check that undefined/null hash values are being erased when sending values from native code to JS. @@ -59363,34 +58371,34 @@ class EraseUndefinedHashValues( stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"doesKeyExist\\", [opts, key]) + """ + return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) - @jsii.member(jsii_name=\\"prop1IsNull\\") + @jsii.member(jsii_name="prop1IsNull") @builtins.classmethod def prop1_is_null(cls) -> typing.Mapping[str, typing.Any]: - \\"\\"\\"We expect \\"prop1\\" to be erased. + """We expect "prop1" to be erased. stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"prop1IsNull\\", []) + """ + return jsii.sinvoke(cls, "prop1IsNull", []) - @jsii.member(jsii_name=\\"prop2IsUndefined\\") + @jsii.member(jsii_name="prop2IsUndefined") @builtins.classmethod def prop2_is_undefined(cls) -> typing.Mapping[str, typing.Any]: - \\"\\"\\"We expect \\"prop2\\" to be erased. + """We expect "prop2" to be erased. stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"prop2IsUndefined\\", []) + """ + return jsii.sinvoke(cls, "prop2IsUndefined", []) @jsii.data_type( - jsii_type=\\"jsii-calc.EraseUndefinedHashValuesOptions\\", + jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], - name_mapping={\\"option1\\": \\"option1\\", \\"option2\\": \\"option2\\"}, + name_mapping={"option1": "option1", "option2": "option2"}, ) class EraseUndefinedHashValuesOptions: def __init__( @@ -59399,34 +58407,34 @@ class EraseUndefinedHashValuesOptions: option1: typing.Optional[str] = None, option2: typing.Optional[str] = None, ) -> None: - \\"\\"\\" + """ :param option1: :param option2: stability :stability: experimental - \\"\\"\\" + """ self._values = {} if option1 is not None: - self._values[\\"option1\\"] = option1 + self._values["option1"] = option1 if option2 is not None: - self._values[\\"option2\\"] = option2 + self._values["option2"] = option2 @builtins.property def option1(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"option1\\") + """ + return self._values.get("option1") @builtins.property def option2(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"option2\\") + """ + return self._values.get("option2") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59435,105 +58443,105 @@ class EraseUndefinedHashValuesOptions: return not (rhs == self) def __repr__(self) -> str: - return \\"EraseUndefinedHashValuesOptions(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "EraseUndefinedHashValuesOptions(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class ExperimentalClass( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExperimentalClass\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__( self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None ) -> None: - \\"\\"\\" + """ :param readonly_string: - :param mutable_number: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) @builtins.property - @jsii.member(jsii_name=\\"readonlyProperty\\") + @jsii.member(jsii_name="readonlyProperty") def readonly_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readonlyProperty\\") + """ + return jsii.get(self, "readonlyProperty") @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) -@jsii.enum(jsii_type=\\"jsii-calc.ExperimentalEnum\\") +@jsii.enum(jsii_type="jsii-calc.ExperimentalEnum") class ExperimentalEnum(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - OPTION_A = \\"OPTION_A\\" - \\"\\"\\" + OPTION_A = "OPTION_A" + """ stability :stability: experimental - \\"\\"\\" - OPTION_B = \\"OPTION_B\\" - \\"\\"\\" + """ + OPTION_B = "OPTION_B" + """ stability :stability: experimental - \\"\\"\\" + """ @jsii.data_type( - jsii_type=\\"jsii-calc.ExperimentalStruct\\", + jsii_type="jsii-calc.ExperimentalStruct", jsii_struct_bases=[], - name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, + name_mapping={"readonly_property": "readonlyProperty"}, ) class ExperimentalStruct: def __init__(self, *, readonly_property: str) -> None: - \\"\\"\\" + """ :param readonly_property: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"readonly_property\\": readonly_property, + "readonly_property": readonly_property, } @builtins.property def readonly_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"readonly_property\\") + """ + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59542,72 +58550,72 @@ class ExperimentalStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"ExperimentalStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ExperimentalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class ExportedBaseClass( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExportedBaseClass\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, success: bool) -> None: - \\"\\"\\" + """ :param success: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ExportedBaseClass, self, [success]) @builtins.property - @jsii.member(jsii_name=\\"success\\") + @jsii.member(jsii_name="success") def success(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"success\\") + """ + return jsii.get(self, "success") @jsii.data_type( - jsii_type=\\"jsii-calc.ExtendsInternalInterface\\", + jsii_type="jsii-calc.ExtendsInternalInterface", jsii_struct_bases=[], - name_mapping={\\"boom\\": \\"boom\\", \\"prop\\": \\"prop\\"}, + name_mapping={"boom": "boom", "prop": "prop"}, ) class ExtendsInternalInterface: def __init__(self, *, boom: bool, prop: str) -> None: - \\"\\"\\" + """ :param boom: :param prop: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"boom\\": boom, - \\"prop\\": prop, + "boom": boom, + "prop": prop, } @builtins.property def boom(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"boom\\") + """ + return self._values.get("boom") @builtins.property def prop(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"prop\\") + """ + return self._values.get("prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59616,23 +58624,23 @@ class ExtendsInternalInterface: return not (rhs == self) def __repr__(self) -> str: - return \\"ExtendsInternalInterface(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ExtendsInternalInterface(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExternalClass\\"): - \\"\\"\\" +class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass"): + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ def __init__( self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None ) -> None: - \\"\\"\\" + """ :param readonly_string: - :param mutable_number: - @@ -59640,99 +58648,99 @@ class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ExternalClas :stability: experimental external: :external:: true - \\"\\"\\" + """ jsii.create(ExternalClass, self, [readonly_string, mutable_number]) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) @builtins.property - @jsii.member(jsii_name=\\"readonlyProperty\\") + @jsii.member(jsii_name="readonlyProperty") def readonly_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return jsii.get(self, \\"readonlyProperty\\") + """ + return jsii.get(self, "readonlyProperty") @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) -@jsii.enum(jsii_type=\\"jsii-calc.ExternalEnum\\") +@jsii.enum(jsii_type="jsii-calc.ExternalEnum") class ExternalEnum(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ - OPTION_A = \\"OPTION_A\\" - \\"\\"\\" + OPTION_A = "OPTION_A" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - OPTION_B = \\"OPTION_B\\" - \\"\\"\\" + """ + OPTION_B = "OPTION_B" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ @jsii.data_type( - jsii_type=\\"jsii-calc.ExternalStruct\\", + jsii_type="jsii-calc.ExternalStruct", jsii_struct_bases=[], - name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, + name_mapping={"readonly_property": "readonlyProperty"}, ) class ExternalStruct: def __init__(self, *, readonly_property: str) -> None: - \\"\\"\\" + """ :param readonly_property: stability :stability: experimental external: :external:: true - \\"\\"\\" + """ self._values = { - \\"readonly_property\\": readonly_property, + "readonly_property": readonly_property, } @builtins.property def readonly_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return self._values.get(\\"readonly_property\\") + """ + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59741,31 +58749,31 @@ class ExternalStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"ExternalStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ExternalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStructs\\"): - \\"\\"\\" +class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(GiveMeStructs, self, []) - @jsii.member(jsii_name=\\"derivedToFirst\\") + @jsii.member(jsii_name="derivedToFirst") def derived_to_first( self, *, another_required: datetime.datetime, bool: bool, - non_primitive: \\"DoubleTrouble\\", + non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, @@ -59773,7 +58781,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct astring: str, first_optional: typing.Optional[typing.List[str]] = None, ) -> scope.jsii_calc_lib.MyFirstStruct: - \\"\\"\\"Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. :param another_required: :param bool: @@ -59787,7 +58795,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct stability :stability: experimental - \\"\\"\\" + """ derived = DerivedStruct( another_required=another_required, bool=bool, @@ -59800,23 +58808,23 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct first_optional=first_optional, ) - return jsii.invoke(self, \\"derivedToFirst\\", [derived]) + return jsii.invoke(self, "derivedToFirst", [derived]) - @jsii.member(jsii_name=\\"readDerivedNonPrimitive\\") + @jsii.member(jsii_name="readDerivedNonPrimitive") def read_derived_non_primitive( self, *, another_required: datetime.datetime, bool: bool, - non_primitive: \\"DoubleTrouble\\", + non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]] = None, optional_any: typing.Any = None, optional_array: typing.Optional[typing.List[str]] = None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]] = None, - ) -> \\"DoubleTrouble\\": - \\"\\"\\"Returns the boolean from a DerivedStruct struct. + ) -> "DoubleTrouble": + """Returns the boolean from a DerivedStruct struct. :param another_required: :param bool: @@ -59830,7 +58838,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct stability :stability: experimental - \\"\\"\\" + """ derived = DerivedStruct( another_required=another_required, bool=bool, @@ -59843,9 +58851,9 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct first_optional=first_optional, ) - return jsii.invoke(self, \\"readDerivedNonPrimitive\\", [derived]) + return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) - @jsii.member(jsii_name=\\"readFirstNumber\\") + @jsii.member(jsii_name="readFirstNumber") def read_first_number( self, *, @@ -59853,7 +58861,7 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct astring: str, first_optional: typing.Optional[typing.List[str]] = None, ) -> jsii.Number: - \\"\\"\\"Returns the \\"anumber\\" from a MyFirstStruct struct; + """Returns the "anumber" from a MyFirstStruct struct; :param anumber: An awesome number value. :param astring: A string value. @@ -59861,52 +58869,52 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GiveMeStruct stability :stability: experimental - \\"\\"\\" + """ first = scope.jsii_calc_lib.MyFirstStruct( anumber=anumber, astring=astring, first_optional=first_optional ) - return jsii.invoke(self, \\"readFirstNumber\\", [first]) + return jsii.invoke(self, "readFirstNumber", [first]) @builtins.property - @jsii.member(jsii_name=\\"structLiteral\\") + @jsii.member(jsii_name="structLiteral") def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"structLiteral\\") + """ + return jsii.get(self, "structLiteral") @jsii.data_type( - jsii_type=\\"jsii-calc.Greetee\\", + jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], - name_mapping={\\"name\\": \\"name\\"}, + name_mapping={"name": "name"}, ) class Greetee: def __init__(self, *, name: typing.Optional[str] = None) -> None: - \\"\\"\\"These are some arguments you can pass to a method. + """These are some arguments you can pass to a method. :param name: The name of the greetee. Default: world stability :stability: experimental - \\"\\"\\" + """ self._values = {} if name is not None: - self._values[\\"name\\"] = name + self._values["name"] = name @builtins.property def name(self) -> typing.Optional[str]: - \\"\\"\\"The name of the greetee. + """The name of the greetee. default :default: world stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"name\\") + """ + return self._values.get("name") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -59915,165 +58923,165 @@ class Greetee: return not (rhs == self) def __repr__(self) -> str: - return \\"Greetee(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "Greetee(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class GreetingAugmenter( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.GreetingAugmenter\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(GreetingAugmenter, self, []) - @jsii.member(jsii_name=\\"betterGreeting\\") + @jsii.member(jsii_name="betterGreeting") def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - \\"\\"\\" + """ :param friendly: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"betterGreeting\\", [friendly]) + """ + return jsii.invoke(self, "betterGreeting", [friendly]) -@jsii.interface(jsii_type=\\"jsii-calc.IAnonymousImplementationProvider\\") +@jsii.interface(jsii_type="jsii-calc.IAnonymousImplementationProvider") class IAnonymousImplementationProvider(jsii.compat.Protocol): - \\"\\"\\"We can return an anonymous interface implementation from an override without losing the interface declarations. + """We can return an anonymous interface implementation from an override without losing the interface declarations. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IAnonymousImplementationProviderProxy - @jsii.member(jsii_name=\\"provideAsClass\\") - def provide_as_class(self) -> \\"Implementation\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"provideAsInterface\\") - def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IAnonymousImplementationProviderProxy: - \\"\\"\\"We can return an anonymous interface implementation from an override without losing the interface declarations. + """We can return an anonymous interface implementation from an override without losing the interface declarations. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IAnonymousImplementationProvider\\" + __jsii_type__ = "jsii-calc.IAnonymousImplementationProvider" - @jsii.member(jsii_name=\\"provideAsClass\\") - def provide_as_class(self) -> \\"Implementation\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"provideAsClass\\", []) + """ + return jsii.invoke(self, "provideAsClass", []) - @jsii.member(jsii_name=\\"provideAsInterface\\") - def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"provideAsInterface\\", []) + """ + return jsii.invoke(self, "provideAsInterface", []) -@jsii.interface(jsii_type=\\"jsii-calc.IAnonymouslyImplementMe\\") +@jsii.interface(jsii_type="jsii-calc.IAnonymouslyImplementMe") class IAnonymouslyImplementMe(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IAnonymouslyImplementMeProxy @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"verb\\") + @jsii.member(jsii_name="verb") def verb(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IAnonymouslyImplementMeProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IAnonymouslyImplementMe\\" + __jsii_type__ = "jsii-calc.IAnonymouslyImplementMe" @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") - @jsii.member(jsii_name=\\"verb\\") + @jsii.member(jsii_name="verb") def verb(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"verb\\", []) + """ + return jsii.invoke(self, "verb", []) -@jsii.interface(jsii_type=\\"jsii-calc.IAnotherPublicInterface\\") +@jsii.interface(jsii_type="jsii-calc.IAnotherPublicInterface") class IAnotherPublicInterface(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IAnotherPublicInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"a\\") + @jsii.member(jsii_name="a") def a(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @a.setter @@ -60082,321 +59090,321 @@ class IAnotherPublicInterface(jsii.compat.Protocol): class _IAnotherPublicInterfaceProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IAnotherPublicInterface\\" + __jsii_type__ = "jsii-calc.IAnotherPublicInterface" @builtins.property - @jsii.member(jsii_name=\\"a\\") + @jsii.member(jsii_name="a") def a(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"a\\") + """ + return jsii.get(self, "a") @a.setter def a(self, value: str) -> None: - jsii.set(self, \\"a\\", value) + jsii.set(self, "a", value) -@jsii.interface(jsii_type=\\"jsii-calc.IBell\\") +@jsii.interface(jsii_type="jsii-calc.IBell") class IBell(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IBellProxy - @jsii.member(jsii_name=\\"ring\\") + @jsii.member(jsii_name="ring") def ring(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IBellProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IBell\\" + __jsii_type__ = "jsii-calc.IBell" - @jsii.member(jsii_name=\\"ring\\") + @jsii.member(jsii_name="ring") def ring(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"ring\\", []) + """ + return jsii.invoke(self, "ring", []) -@jsii.interface(jsii_type=\\"jsii-calc.IBellRinger\\") +@jsii.interface(jsii_type="jsii-calc.IBellRinger") class IBellRinger(jsii.compat.Protocol): - \\"\\"\\"Takes the object parameter as an interface. + """Takes the object parameter as an interface. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IBellRingerProxy - @jsii.member(jsii_name=\\"yourTurn\\") - def your_turn(self, bell: \\"IBell\\") -> None: - \\"\\"\\" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ :param bell: - stability :stability: experimental - \\"\\"\\" + """ ... class _IBellRingerProxy: - \\"\\"\\"Takes the object parameter as an interface. + """Takes the object parameter as an interface. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IBellRinger\\" + __jsii_type__ = "jsii-calc.IBellRinger" - @jsii.member(jsii_name=\\"yourTurn\\") - def your_turn(self, bell: \\"IBell\\") -> None: - \\"\\"\\" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ :param bell: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"yourTurn\\", [bell]) + """ + return jsii.invoke(self, "yourTurn", [bell]) -@jsii.interface(jsii_type=\\"jsii-calc.IConcreteBellRinger\\") +@jsii.interface(jsii_type="jsii-calc.IConcreteBellRinger") class IConcreteBellRinger(jsii.compat.Protocol): - \\"\\"\\"Takes the object parameter as a calss. + """Takes the object parameter as a calss. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IConcreteBellRingerProxy - @jsii.member(jsii_name=\\"yourTurn\\") - def your_turn(self, bell: \\"Bell\\") -> None: - \\"\\"\\" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ :param bell: - stability :stability: experimental - \\"\\"\\" + """ ... class _IConcreteBellRingerProxy: - \\"\\"\\"Takes the object parameter as a calss. + """Takes the object parameter as a calss. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IConcreteBellRinger\\" + __jsii_type__ = "jsii-calc.IConcreteBellRinger" - @jsii.member(jsii_name=\\"yourTurn\\") - def your_turn(self, bell: \\"Bell\\") -> None: - \\"\\"\\" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ :param bell: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"yourTurn\\", [bell]) + """ + return jsii.invoke(self, "yourTurn", [bell]) -@jsii.interface(jsii_type=\\"jsii-calc.IDeprecatedInterface\\") +@jsii.interface(jsii_type="jsii-calc.IDeprecatedInterface") class IDeprecatedInterface(jsii.compat.Protocol): - \\"\\"\\" + """ deprecated :deprecated: useless interface stability :stability: deprecated - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IDeprecatedInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ deprecated :deprecated: could be better stability :stability: deprecated - \\"\\"\\" + """ ... @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: ... - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ deprecated :deprecated: services no purpose stability :stability: deprecated - \\"\\"\\" + """ ... class _IDeprecatedInterfaceProxy: - \\"\\"\\" + """ deprecated :deprecated: useless interface stability :stability: deprecated - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IDeprecatedInterface\\" + __jsii_type__ = "jsii-calc.IDeprecatedInterface" @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ deprecated :deprecated: could be better stability :stability: deprecated - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ deprecated :deprecated: services no purpose stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) -@jsii.interface(jsii_type=\\"jsii-calc.IExperimentalInterface\\") +@jsii.interface(jsii_type="jsii-calc.IExperimentalInterface") class IExperimentalInterface(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IExperimentalInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: ... - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IExperimentalInterfaceProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IExperimentalInterface\\" + __jsii_type__ = "jsii-calc.IExperimentalInterface" @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) -@jsii.interface(jsii_type=\\"jsii-calc.IExtendsPrivateInterface\\") +@jsii.interface(jsii_type="jsii-calc.IExtendsPrivateInterface") class IExtendsPrivateInterface(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IExtendsPrivateInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"moreThings\\") + @jsii.member(jsii_name="moreThings") def more_things(self) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @builtins.property - @jsii.member(jsii_name=\\"private\\") + @jsii.member(jsii_name="private") def private(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @private.setter @@ -60405,381 +59413,381 @@ class IExtendsPrivateInterface(jsii.compat.Protocol): class _IExtendsPrivateInterfaceProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IExtendsPrivateInterface\\" + __jsii_type__ = "jsii-calc.IExtendsPrivateInterface" @builtins.property - @jsii.member(jsii_name=\\"moreThings\\") + @jsii.member(jsii_name="moreThings") def more_things(self) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"moreThings\\") + """ + return jsii.get(self, "moreThings") @builtins.property - @jsii.member(jsii_name=\\"private\\") + @jsii.member(jsii_name="private") def private(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"private\\") + """ + return jsii.get(self, "private") @private.setter def private(self, value: str) -> None: - jsii.set(self, \\"private\\", value) + jsii.set(self, "private", value) -@jsii.interface(jsii_type=\\"jsii-calc.IExternalInterface\\") +@jsii.interface(jsii_type="jsii-calc.IExternalInterface") class IExternalInterface(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IExternalInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ ... @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: ... - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ ... class _IExternalInterfaceProxy: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IExternalInterface\\" + __jsii_type__ = "jsii-calc.IExternalInterface" @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return jsii.get(self, \\"mutableProperty\\") + """ + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - \\"\\"\\" + """ stability :stability: experimental external: :external:: true - \\"\\"\\" - return jsii.invoke(self, \\"method\\", []) + """ + return jsii.invoke(self, "method", []) -@jsii.interface(jsii_type=\\"jsii-calc.IFriendlier\\") +@jsii.interface(jsii_type="jsii-calc.IFriendlier") class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): - \\"\\"\\"Even friendlier classes can implement this interface. + """Even friendlier classes can implement this interface. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IFriendlierProxy - @jsii.member(jsii_name=\\"farewell\\") + @jsii.member(jsii_name="farewell") def farewell(self) -> str: - \\"\\"\\"Say farewell. + """Say farewell. stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"goodbye\\") + @jsii.member(jsii_name="goodbye") def goodbye(self) -> str: - \\"\\"\\"Say goodbye. + """Say goodbye. return :return: A goodbye blessing. stability :stability: experimental - \\"\\"\\" + """ ... class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): - \\"\\"\\"Even friendlier classes can implement this interface. + """Even friendlier classes can implement this interface. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IFriendlier\\" + __jsii_type__ = "jsii-calc.IFriendlier" - @jsii.member(jsii_name=\\"farewell\\") + @jsii.member(jsii_name="farewell") def farewell(self) -> str: - \\"\\"\\"Say farewell. + """Say farewell. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"farewell\\", []) + """ + return jsii.invoke(self, "farewell", []) - @jsii.member(jsii_name=\\"goodbye\\") + @jsii.member(jsii_name="goodbye") def goodbye(self) -> str: - \\"\\"\\"Say goodbye. + """Say goodbye. return :return: A goodbye blessing. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"goodbye\\", []) + """ + return jsii.invoke(self, "goodbye", []) -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceImplementedByAbstractClass\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceImplementedByAbstractClass") class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): - \\"\\"\\"awslabs/jsii#220 Abstract return type. + """awslabs/jsii#220 Abstract return type. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceImplementedByAbstractClassProxy @builtins.property - @jsii.member(jsii_name=\\"propFromInterface\\") + @jsii.member(jsii_name="propFromInterface") def prop_from_interface(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceImplementedByAbstractClassProxy: - \\"\\"\\"awslabs/jsii#220 Abstract return type. + """awslabs/jsii#220 Abstract return type. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceImplementedByAbstractClass\\" + __jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass" @builtins.property - @jsii.member(jsii_name=\\"propFromInterface\\") + @jsii.member(jsii_name="propFromInterface") def prop_from_interface(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"propFromInterface\\") + """ + return jsii.get(self, "propFromInterface") -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithInternal\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithInternal") class IInterfaceWithInternal(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithInternalProxy - @jsii.member(jsii_name=\\"visible\\") + @jsii.member(jsii_name="visible") def visible(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceWithInternalProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceWithInternal\\" + __jsii_type__ = "jsii-calc.IInterfaceWithInternal" - @jsii.member(jsii_name=\\"visible\\") + @jsii.member(jsii_name="visible") def visible(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"visible\\", []) + """ + return jsii.invoke(self, "visible", []) -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithMethods\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithMethods") class IInterfaceWithMethods(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithMethodsProxy @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"doThings\\") + @jsii.member(jsii_name="doThings") def do_things(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceWithMethodsProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceWithMethods\\" + __jsii_type__ = "jsii-calc.IInterfaceWithMethods" @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") - @jsii.member(jsii_name=\\"doThings\\") + @jsii.member(jsii_name="doThings") def do_things(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"doThings\\", []) + """ + return jsii.invoke(self, "doThings", []) -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithOptionalMethodArguments") class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): - \\"\\"\\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithOptionalMethodArgumentsProxy - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: - \\"\\"\\" + """ :param arg1: - :param arg2: - stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceWithOptionalMethodArgumentsProxy: - \\"\\"\\"awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceWithOptionalMethodArguments\\" + __jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments" - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None: - \\"\\"\\" + """ :param arg1: - :param arg2: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", [arg1, arg2]) + """ + return jsii.invoke(self, "hello", [arg1, arg2]) -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithProperties\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithProperties") class IInterfaceWithProperties(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithPropertiesProxy @builtins.property - @jsii.member(jsii_name=\\"readOnlyString\\") + @jsii.member(jsii_name="readOnlyString") def read_only_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @builtins.property - @jsii.member(jsii_name=\\"readWriteString\\") + @jsii.member(jsii_name="readWriteString") def read_write_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @read_write_string.setter @@ -60788,54 +59796,54 @@ class IInterfaceWithProperties(jsii.compat.Protocol): class _IInterfaceWithPropertiesProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceWithProperties\\" + __jsii_type__ = "jsii-calc.IInterfaceWithProperties" @builtins.property - @jsii.member(jsii_name=\\"readOnlyString\\") + @jsii.member(jsii_name="readOnlyString") def read_only_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readOnlyString\\") + """ + return jsii.get(self, "readOnlyString") @builtins.property - @jsii.member(jsii_name=\\"readWriteString\\") + @jsii.member(jsii_name="readWriteString") def read_write_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readWriteString\\") + """ + return jsii.get(self, "readWriteString") @read_write_string.setter def read_write_string(self, value: str) -> None: - jsii.set(self, \\"readWriteString\\", value) + jsii.set(self, "readWriteString", value) -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceWithPropertiesExtension\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithPropertiesExtension") class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithPropertiesExtensionProxy @builtins.property - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @foo.setter @@ -60844,88 +59852,88 @@ class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Pr class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceWithPropertiesExtension\\" + __jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension" @builtins.property - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"foo\\") + """ + return jsii.get(self, "foo") @foo.setter def foo(self, value: jsii.Number) -> None: - jsii.set(self, \\"foo\\", value) + jsii.set(self, "foo", value) -@jsii.interface(jsii_type=\\"jsii-calc.IJSII417PublicBaseOfBase\\") +@jsii.interface(jsii_type="jsii-calc.IJSII417PublicBaseOfBase") class IJSII417PublicBaseOfBase(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IJSII417PublicBaseOfBaseProxy @builtins.property - @jsii.member(jsii_name=\\"hasRoot\\") + @jsii.member(jsii_name="hasRoot") def has_root(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IJSII417PublicBaseOfBaseProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IJSII417PublicBaseOfBase\\" + __jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase" @builtins.property - @jsii.member(jsii_name=\\"hasRoot\\") + @jsii.member(jsii_name="hasRoot") def has_root(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"hasRoot\\") + """ + return jsii.get(self, "hasRoot") - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"foo\\", []) + """ + return jsii.invoke(self, "foo", []) -@jsii.interface(jsii_type=\\"jsii-calc.IJsii487External\\") +@jsii.interface(jsii_type="jsii-calc.IJsii487External") class IJsii487External(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -60933,21 +59941,21 @@ class IJsii487External(jsii.compat.Protocol): class _IJsii487ExternalProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IJsii487External\\" + __jsii_type__ = "jsii-calc.IJsii487External" pass -@jsii.interface(jsii_type=\\"jsii-calc.IJsii487External2\\") +@jsii.interface(jsii_type="jsii-calc.IJsii487External2") class IJsii487External2(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -60955,21 +59963,21 @@ class IJsii487External2(jsii.compat.Protocol): class _IJsii487External2Proxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IJsii487External2\\" + __jsii_type__ = "jsii-calc.IJsii487External2" pass -@jsii.interface(jsii_type=\\"jsii-calc.IJsii496\\") +@jsii.interface(jsii_type="jsii-calc.IJsii496") class IJsii496(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -60977,33 +59985,33 @@ class IJsii496(jsii.compat.Protocol): class _IJsii496Proxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IJsii496\\" + __jsii_type__ = "jsii-calc.IJsii496" pass -@jsii.interface(jsii_type=\\"jsii-calc.IMutableObjectLiteral\\") +@jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral") class IMutableObjectLiteral(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IMutableObjectLiteralProxy @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @value.setter @@ -61012,45 +60020,45 @@ class IMutableObjectLiteral(jsii.compat.Protocol): class _IMutableObjectLiteralProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IMutableObjectLiteral\\" + __jsii_type__ = "jsii-calc.IMutableObjectLiteral" @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") @value.setter def value(self, value: str) -> None: - jsii.set(self, \\"value\\", value) + jsii.set(self, "value", value) -@jsii.interface(jsii_type=\\"jsii-calc.INonInternalInterface\\") +@jsii.interface(jsii_type="jsii-calc.INonInternalInterface") class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _INonInternalInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"b\\") + @jsii.member(jsii_name="b") def b(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @b.setter @@ -61058,12 +60066,12 @@ class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): ... @builtins.property - @jsii.member(jsii_name=\\"c\\") + @jsii.member(jsii_name="c") def c(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @c.setter @@ -61072,408 +60080,408 @@ class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.INonInternalInterface\\" + __jsii_type__ = "jsii-calc.INonInternalInterface" @builtins.property - @jsii.member(jsii_name=\\"b\\") + @jsii.member(jsii_name="b") def b(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"b\\") + """ + return jsii.get(self, "b") @b.setter def b(self, value: str) -> None: - jsii.set(self, \\"b\\", value) + jsii.set(self, "b", value) @builtins.property - @jsii.member(jsii_name=\\"c\\") + @jsii.member(jsii_name="c") def c(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"c\\") + """ + return jsii.get(self, "c") @c.setter def c(self, value: str) -> None: - jsii.set(self, \\"c\\", value) + jsii.set(self, "c", value) -@jsii.interface(jsii_type=\\"jsii-calc.IObjectWithProperty\\") +@jsii.interface(jsii_type="jsii-calc.IObjectWithProperty") class IObjectWithProperty(jsii.compat.Protocol): - \\"\\"\\"Make sure that setters are properly called on objects with interfaces. + """Make sure that setters are properly called on objects with interfaces. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IObjectWithPropertyProxy @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @property.setter def property(self, value: str) -> None: ... - @jsii.member(jsii_name=\\"wasSet\\") + @jsii.member(jsii_name="wasSet") def was_set(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IObjectWithPropertyProxy: - \\"\\"\\"Make sure that setters are properly called on objects with interfaces. + """Make sure that setters are properly called on objects with interfaces. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IObjectWithProperty\\" + __jsii_type__ = "jsii-calc.IObjectWithProperty" @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"property\\") + """ + return jsii.get(self, "property") @property.setter def property(self, value: str) -> None: - jsii.set(self, \\"property\\", value) + jsii.set(self, "property", value) - @jsii.member(jsii_name=\\"wasSet\\") + @jsii.member(jsii_name="wasSet") def was_set(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"wasSet\\", []) + """ + return jsii.invoke(self, "wasSet", []) -@jsii.interface(jsii_type=\\"jsii-calc.IOptionalMethod\\") +@jsii.interface(jsii_type="jsii-calc.IOptionalMethod") class IOptionalMethod(jsii.compat.Protocol): - \\"\\"\\"Checks that optional result from interface method code generates correctly. + """Checks that optional result from interface method code generates correctly. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IOptionalMethodProxy - @jsii.member(jsii_name=\\"optional\\") + @jsii.member(jsii_name="optional") def optional(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IOptionalMethodProxy: - \\"\\"\\"Checks that optional result from interface method code generates correctly. + """Checks that optional result from interface method code generates correctly. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IOptionalMethod\\" + __jsii_type__ = "jsii-calc.IOptionalMethod" - @jsii.member(jsii_name=\\"optional\\") + @jsii.member(jsii_name="optional") def optional(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"optional\\", []) + """ + return jsii.invoke(self, "optional", []) -@jsii.interface(jsii_type=\\"jsii-calc.IPrivatelyImplemented\\") +@jsii.interface(jsii_type="jsii-calc.IPrivatelyImplemented") class IPrivatelyImplemented(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IPrivatelyImplementedProxy @builtins.property - @jsii.member(jsii_name=\\"success\\") + @jsii.member(jsii_name="success") def success(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IPrivatelyImplementedProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IPrivatelyImplemented\\" + __jsii_type__ = "jsii-calc.IPrivatelyImplemented" @builtins.property - @jsii.member(jsii_name=\\"success\\") + @jsii.member(jsii_name="success") def success(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"success\\") + """ + return jsii.get(self, "success") -@jsii.interface(jsii_type=\\"jsii-calc.IPublicInterface\\") +@jsii.interface(jsii_type="jsii-calc.IPublicInterface") class IPublicInterface(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IPublicInterfaceProxy - @jsii.member(jsii_name=\\"bye\\") + @jsii.member(jsii_name="bye") def bye(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IPublicInterfaceProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IPublicInterface\\" + __jsii_type__ = "jsii-calc.IPublicInterface" - @jsii.member(jsii_name=\\"bye\\") + @jsii.member(jsii_name="bye") def bye(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"bye\\", []) + """ + return jsii.invoke(self, "bye", []) -@jsii.interface(jsii_type=\\"jsii-calc.IPublicInterface2\\") +@jsii.interface(jsii_type="jsii-calc.IPublicInterface2") class IPublicInterface2(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IPublicInterface2Proxy - @jsii.member(jsii_name=\\"ciao\\") + @jsii.member(jsii_name="ciao") def ciao(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IPublicInterface2Proxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IPublicInterface2\\" + __jsii_type__ = "jsii-calc.IPublicInterface2" - @jsii.member(jsii_name=\\"ciao\\") + @jsii.member(jsii_name="ciao") def ciao(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"ciao\\", []) + """ + return jsii.invoke(self, "ciao", []) -@jsii.interface(jsii_type=\\"jsii-calc.IRandomNumberGenerator\\") +@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") class IRandomNumberGenerator(jsii.compat.Protocol): - \\"\\"\\"Generates random numbers. + """Generates random numbers. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IRandomNumberGeneratorProxy - @jsii.member(jsii_name=\\"next\\") + @jsii.member(jsii_name="next") def next(self) -> jsii.Number: - \\"\\"\\"Returns another random number. + """Returns another random number. return :return: A random number. stability :stability: experimental - \\"\\"\\" + """ ... class _IRandomNumberGeneratorProxy: - \\"\\"\\"Generates random numbers. + """Generates random numbers. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IRandomNumberGenerator\\" + __jsii_type__ = "jsii-calc.IRandomNumberGenerator" - @jsii.member(jsii_name=\\"next\\") + @jsii.member(jsii_name="next") def next(self) -> jsii.Number: - \\"\\"\\"Returns another random number. + """Returns another random number. return :return: A random number. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"next\\", []) + """ + return jsii.invoke(self, "next", []) -@jsii.interface(jsii_type=\\"jsii-calc.IReturnJsii976\\") +@jsii.interface(jsii_type="jsii-calc.IReturnJsii976") class IReturnJsii976(jsii.compat.Protocol): - \\"\\"\\"Returns a subclass of a known class which implements an interface. + """Returns a subclass of a known class which implements an interface. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IReturnJsii976Proxy @builtins.property - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IReturnJsii976Proxy: - \\"\\"\\"Returns a subclass of a known class which implements an interface. + """Returns a subclass of a known class which implements an interface. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IReturnJsii976\\" + __jsii_type__ = "jsii-calc.IReturnJsii976" @builtins.property - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"foo\\") + """ + return jsii.get(self, "foo") -@jsii.interface(jsii_type=\\"jsii-calc.IReturnsNumber\\") +@jsii.interface(jsii_type="jsii-calc.IReturnsNumber") class IReturnsNumber(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IReturnsNumberProxy @builtins.property - @jsii.member(jsii_name=\\"numberProp\\") + @jsii.member(jsii_name="numberProp") def number_prop(self) -> scope.jsii_calc_lib.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"obtainNumber\\") + @jsii.member(jsii_name="obtainNumber") def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IReturnsNumberProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IReturnsNumber\\" + __jsii_type__ = "jsii-calc.IReturnsNumber" @builtins.property - @jsii.member(jsii_name=\\"numberProp\\") + @jsii.member(jsii_name="numberProp") def number_prop(self) -> scope.jsii_calc_lib.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"numberProp\\") + """ + return jsii.get(self, "numberProp") - @jsii.member(jsii_name=\\"obtainNumber\\") + @jsii.member(jsii_name="obtainNumber") def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"obtainNumber\\", []) + """ + return jsii.invoke(self, "obtainNumber", []) -@jsii.interface(jsii_type=\\"jsii-calc.IStableInterface\\") +@jsii.interface(jsii_type="jsii-calc.IStableInterface") class IStableInterface(jsii.compat.Protocol): @builtins.staticmethod def __jsii_proxy_class__(): return _IStableInterfaceProxy @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: ... @@ -61481,195 +60489,195 @@ class IStableInterface(jsii.compat.Protocol): def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: ... - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: ... class _IStableInterfaceProxy: - __jsii_type__ = \\"jsii-calc.IStableInterface\\" + __jsii_type__ = "jsii-calc.IStableInterface" @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, \\"mutableProperty\\") + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - return jsii.invoke(self, \\"method\\", []) + return jsii.invoke(self, "method", []) -@jsii.interface(jsii_type=\\"jsii-calc.IStructReturningDelegate\\") +@jsii.interface(jsii_type="jsii-calc.IStructReturningDelegate") class IStructReturningDelegate(jsii.compat.Protocol): - \\"\\"\\"Verifies that a \\"pure\\" implementation of an interface works correctly. + """Verifies that a "pure" implementation of an interface works correctly. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IStructReturningDelegateProxy - @jsii.member(jsii_name=\\"returnStruct\\") - def return_struct(self) -> \\"StructB\\": - \\"\\"\\" + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IStructReturningDelegateProxy: - \\"\\"\\"Verifies that a \\"pure\\" implementation of an interface works correctly. + """Verifies that a "pure" implementation of an interface works correctly. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IStructReturningDelegate\\" + __jsii_type__ = "jsii-calc.IStructReturningDelegate" - @jsii.member(jsii_name=\\"returnStruct\\") - def return_struct(self) -> \\"StructB\\": - \\"\\"\\" + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"returnStruct\\", []) + """ + return jsii.invoke(self, "returnStruct", []) class ImplementInternalInterface( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementInternalInterface\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ImplementInternalInterface, self, []) @builtins.property - @jsii.member(jsii_name=\\"prop\\") + @jsii.member(jsii_name="prop") def prop(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"prop\\") + """ + return jsii.get(self, "prop") @prop.setter def prop(self, value: str) -> None: - jsii.set(self, \\"prop\\", value) + jsii.set(self, "prop", value) -class Implementation(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Implementation\\"): - \\"\\"\\" +class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementation"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Implementation, self, []) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") @jsii.implements(IInterfaceWithInternal) class ImplementsInterfaceWithInternal( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementsInterfaceWithInternal\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ImplementsInterfaceWithInternal, self, []) - @jsii.member(jsii_name=\\"visible\\") + @jsii.member(jsii_name="visible") def visible(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"visible\\", []) + """ + return jsii.invoke(self, "visible", []) class ImplementsInterfaceWithInternalSubclass( ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ImplementsInterfaceWithInternalSubclass\\", + jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) class ImplementsPrivateInterface( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ImplementsPrivateInterface\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ImplementsPrivateInterface, self, []) @builtins.property - @jsii.member(jsii_name=\\"private\\") + @jsii.member(jsii_name="private") def private(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"private\\") + """ + return jsii.get(self, "private") @private.setter def private(self, value: str) -> None: - jsii.set(self, \\"private\\", value) + jsii.set(self, "private", value) @jsii.data_type( - jsii_type=\\"jsii-calc.ImplictBaseOfBase\\", + jsii_type="jsii-calc.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], - name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\", \\"goo\\": \\"goo\\"}, + name_mapping={"foo": "foo", "bar": "bar", "goo": "goo"}, ) class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): def __init__( @@ -61679,35 +60687,35 @@ class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): bar: str, goo: datetime.datetime, ) -> None: - \\"\\"\\" + """ :param foo: - :param bar: - :param goo: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, - \\"bar\\": bar, - \\"goo\\": goo, + "foo": foo, + "bar": bar, + "goo": goo, } @builtins.property def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get(\\"foo\\") + return self._values.get("foo") @builtins.property def bar(self) -> str: - return self._values.get(\\"bar\\") + return self._values.get("bar") @builtins.property def goo(self) -> datetime.datetime: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"goo\\") + """ + return self._values.get("goo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -61716,108 +60724,108 @@ class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): return not (rhs == self) def __repr__(self) -> str: - return \\"ImplictBaseOfBase(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ImplictBaseOfBase(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class InterfaceCollections( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InterfaceCollections\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections" ): - \\"\\"\\"Verifies that collections of interfaces or structs are correctly handled. + """Verifies that collections of interfaces or structs are correctly handled. See: https://github.com/aws/jsii/issues/1196 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"listOfInterfaces\\") + @jsii.member(jsii_name="listOfInterfaces") @builtins.classmethod - def list_of_interfaces(cls) -> typing.List[\\"IBell\\"]: - \\"\\"\\" + def list_of_interfaces(cls) -> typing.List["IBell"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"listOfInterfaces\\", []) + """ + return jsii.sinvoke(cls, "listOfInterfaces", []) - @jsii.member(jsii_name=\\"listOfStructs\\") + @jsii.member(jsii_name="listOfStructs") @builtins.classmethod - def list_of_structs(cls) -> typing.List[\\"StructA\\"]: - \\"\\"\\" + def list_of_structs(cls) -> typing.List["StructA"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"listOfStructs\\", []) + """ + return jsii.sinvoke(cls, "listOfStructs", []) - @jsii.member(jsii_name=\\"mapOfInterfaces\\") + @jsii.member(jsii_name="mapOfInterfaces") @builtins.classmethod - def map_of_interfaces(cls) -> typing.Mapping[str, \\"IBell\\"]: - \\"\\"\\" + def map_of_interfaces(cls) -> typing.Mapping[str, "IBell"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"mapOfInterfaces\\", []) + """ + return jsii.sinvoke(cls, "mapOfInterfaces", []) - @jsii.member(jsii_name=\\"mapOfStructs\\") + @jsii.member(jsii_name="mapOfStructs") @builtins.classmethod - def map_of_structs(cls) -> typing.Mapping[str, \\"StructA\\"]: - \\"\\"\\" + def map_of_structs(cls) -> typing.Mapping[str, "StructA"]: + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"mapOfStructs\\", []) + """ + return jsii.sinvoke(cls, "mapOfStructs", []) -class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InterfacesMaker\\"): - \\"\\"\\"We can return arrays of interfaces See aws/aws-cdk#2362. +class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMaker"): + """We can return arrays of interfaces See aws/aws-cdk#2362. stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"makeInterfaces\\") + @jsii.member(jsii_name="makeInterfaces") @builtins.classmethod def make_interfaces( cls, count: jsii.Number ) -> typing.List[scope.jsii_calc_lib.IDoublable]: - \\"\\"\\" + """ :param count: - stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInterfaces\\", [count]) + """ + return jsii.sinvoke(cls, "makeInterfaces", [count]) -class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.Isomorphism\\"): - \\"\\"\\"Checks the \\"same instance\\" isomorphism is preserved within the constructor. +class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.Isomorphism"): + """Checks the "same instance" isomorphism is preserved within the constructor. Create a subclass of this, and assert that \`\`this.myself()\`\` actually returns \`\`this\`\` from within the constructor. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IsomorphismProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Isomorphism, self, []) - @jsii.member(jsii_name=\\"myself\\") - def myself(self) -> \\"Isomorphism\\": - \\"\\"\\" + @jsii.member(jsii_name="myself") + def myself(self) -> "Isomorphism": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"myself\\", []) + """ + return jsii.invoke(self, "myself", []) class _IsomorphismProxy(Isomorphism): @@ -61825,792 +60833,792 @@ class _IsomorphismProxy(Isomorphism): class JSII417PublicBaseOfBase( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSII417PublicBaseOfBase\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JSII417PublicBaseOfBase, self, []) - @jsii.member(jsii_name=\\"makeInstance\\") + @jsii.member(jsii_name="makeInstance") @builtins.classmethod - def make_instance(cls) -> \\"JSII417PublicBaseOfBase\\": - \\"\\"\\" + def make_instance(cls) -> "JSII417PublicBaseOfBase": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"makeInstance\\", []) + """ + return jsii.sinvoke(cls, "makeInstance", []) - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"foo\\", []) + """ + return jsii.invoke(self, "foo", []) @builtins.property - @jsii.member(jsii_name=\\"hasRoot\\") + @jsii.member(jsii_name="hasRoot") def has_root(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"hasRoot\\") + """ + return jsii.get(self, "hasRoot") class JSObjectLiteralForInterface( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralForInterface\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JSObjectLiteralForInterface, self, []) - @jsii.member(jsii_name=\\"giveMeFriendly\\") + @jsii.member(jsii_name="giveMeFriendly") def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveMeFriendly\\", []) + """ + return jsii.invoke(self, "giveMeFriendly", []) - @jsii.member(jsii_name=\\"giveMeFriendlyGenerator\\") - def give_me_friendly_generator(self) -> \\"IFriendlyRandomGenerator\\": - \\"\\"\\" + @jsii.member(jsii_name="giveMeFriendlyGenerator") + def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveMeFriendlyGenerator\\", []) + """ + return jsii.invoke(self, "giveMeFriendlyGenerator", []) class JSObjectLiteralToNative( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralToNative\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JSObjectLiteralToNative, self, []) - @jsii.member(jsii_name=\\"returnLiteral\\") - def return_literal(self) -> \\"JSObjectLiteralToNativeClass\\": - \\"\\"\\" + @jsii.member(jsii_name="returnLiteral") + def return_literal(self) -> "JSObjectLiteralToNativeClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"returnLiteral\\", []) + """ + return jsii.invoke(self, "returnLiteral", []) class JSObjectLiteralToNativeClass( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JSObjectLiteralToNativeClass\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JSObjectLiteralToNativeClass, self, []) @builtins.property - @jsii.member(jsii_name=\\"propA\\") + @jsii.member(jsii_name="propA") def prop_a(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"propA\\") + """ + return jsii.get(self, "propA") @prop_a.setter def prop_a(self, value: str) -> None: - jsii.set(self, \\"propA\\", value) + jsii.set(self, "propA", value) @builtins.property - @jsii.member(jsii_name=\\"propB\\") + @jsii.member(jsii_name="propB") def prop_b(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"propB\\") + """ + return jsii.get(self, "propB") @prop_b.setter def prop_b(self, value: jsii.Number) -> None: - jsii.set(self, \\"propB\\", value) + jsii.set(self, "propB", value) class JavaReservedWords( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JavaReservedWords\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JavaReservedWords, self, []) - @jsii.member(jsii_name=\\"abstract\\") + @jsii.member(jsii_name="abstract") def abstract(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"abstract\\", []) + """ + return jsii.invoke(self, "abstract", []) - @jsii.member(jsii_name=\\"assert\\") + @jsii.member(jsii_name="assert") def assert_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"assert\\", []) + """ + return jsii.invoke(self, "assert", []) - @jsii.member(jsii_name=\\"boolean\\") + @jsii.member(jsii_name="boolean") def boolean(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"boolean\\", []) + """ + return jsii.invoke(self, "boolean", []) - @jsii.member(jsii_name=\\"break\\") + @jsii.member(jsii_name="break") def break_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"break\\", []) + """ + return jsii.invoke(self, "break", []) - @jsii.member(jsii_name=\\"byte\\") + @jsii.member(jsii_name="byte") def byte(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"byte\\", []) + """ + return jsii.invoke(self, "byte", []) - @jsii.member(jsii_name=\\"case\\") + @jsii.member(jsii_name="case") def case(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"case\\", []) + """ + return jsii.invoke(self, "case", []) - @jsii.member(jsii_name=\\"catch\\") + @jsii.member(jsii_name="catch") def catch(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"catch\\", []) + """ + return jsii.invoke(self, "catch", []) - @jsii.member(jsii_name=\\"char\\") + @jsii.member(jsii_name="char") def char(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"char\\", []) + """ + return jsii.invoke(self, "char", []) - @jsii.member(jsii_name=\\"class\\") + @jsii.member(jsii_name="class") def class_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"class\\", []) + """ + return jsii.invoke(self, "class", []) - @jsii.member(jsii_name=\\"const\\") + @jsii.member(jsii_name="const") def const(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"const\\", []) + """ + return jsii.invoke(self, "const", []) - @jsii.member(jsii_name=\\"continue\\") + @jsii.member(jsii_name="continue") def continue_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"continue\\", []) + """ + return jsii.invoke(self, "continue", []) - @jsii.member(jsii_name=\\"default\\") + @jsii.member(jsii_name="default") def default(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"default\\", []) + """ + return jsii.invoke(self, "default", []) - @jsii.member(jsii_name=\\"do\\") + @jsii.member(jsii_name="do") def do(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"do\\", []) + """ + return jsii.invoke(self, "do", []) - @jsii.member(jsii_name=\\"double\\") + @jsii.member(jsii_name="double") def double(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"double\\", []) + """ + return jsii.invoke(self, "double", []) - @jsii.member(jsii_name=\\"else\\") + @jsii.member(jsii_name="else") def else_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"else\\", []) + """ + return jsii.invoke(self, "else", []) - @jsii.member(jsii_name=\\"enum\\") + @jsii.member(jsii_name="enum") def enum(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"enum\\", []) + """ + return jsii.invoke(self, "enum", []) - @jsii.member(jsii_name=\\"extends\\") + @jsii.member(jsii_name="extends") def extends(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"extends\\", []) + """ + return jsii.invoke(self, "extends", []) - @jsii.member(jsii_name=\\"false\\") + @jsii.member(jsii_name="false") def false(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"false\\", []) + """ + return jsii.invoke(self, "false", []) - @jsii.member(jsii_name=\\"final\\") + @jsii.member(jsii_name="final") def final(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"final\\", []) + """ + return jsii.invoke(self, "final", []) - @jsii.member(jsii_name=\\"finally\\") + @jsii.member(jsii_name="finally") def finally_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"finally\\", []) + """ + return jsii.invoke(self, "finally", []) - @jsii.member(jsii_name=\\"float\\") + @jsii.member(jsii_name="float") def float(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"float\\", []) + """ + return jsii.invoke(self, "float", []) - @jsii.member(jsii_name=\\"for\\") + @jsii.member(jsii_name="for") def for_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"for\\", []) + """ + return jsii.invoke(self, "for", []) - @jsii.member(jsii_name=\\"goto\\") + @jsii.member(jsii_name="goto") def goto(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"goto\\", []) + """ + return jsii.invoke(self, "goto", []) - @jsii.member(jsii_name=\\"if\\") + @jsii.member(jsii_name="if") def if_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"if\\", []) + """ + return jsii.invoke(self, "if", []) - @jsii.member(jsii_name=\\"implements\\") + @jsii.member(jsii_name="implements") def implements(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"implements\\", []) + """ + return jsii.invoke(self, "implements", []) - @jsii.member(jsii_name=\\"import\\") + @jsii.member(jsii_name="import") def import_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"import\\", []) + """ + return jsii.invoke(self, "import", []) - @jsii.member(jsii_name=\\"instanceof\\") + @jsii.member(jsii_name="instanceof") def instanceof(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"instanceof\\", []) + """ + return jsii.invoke(self, "instanceof", []) - @jsii.member(jsii_name=\\"int\\") + @jsii.member(jsii_name="int") def int(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"int\\", []) + """ + return jsii.invoke(self, "int", []) - @jsii.member(jsii_name=\\"interface\\") + @jsii.member(jsii_name="interface") def interface(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"interface\\", []) + """ + return jsii.invoke(self, "interface", []) - @jsii.member(jsii_name=\\"long\\") + @jsii.member(jsii_name="long") def long(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"long\\", []) + """ + return jsii.invoke(self, "long", []) - @jsii.member(jsii_name=\\"native\\") + @jsii.member(jsii_name="native") def native(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"native\\", []) + """ + return jsii.invoke(self, "native", []) - @jsii.member(jsii_name=\\"new\\") + @jsii.member(jsii_name="new") def new(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"new\\", []) + """ + return jsii.invoke(self, "new", []) - @jsii.member(jsii_name=\\"null\\") + @jsii.member(jsii_name="null") def null(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"null\\", []) + """ + return jsii.invoke(self, "null", []) - @jsii.member(jsii_name=\\"package\\") + @jsii.member(jsii_name="package") def package(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"package\\", []) + """ + return jsii.invoke(self, "package", []) - @jsii.member(jsii_name=\\"private\\") + @jsii.member(jsii_name="private") def private(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"private\\", []) + """ + return jsii.invoke(self, "private", []) - @jsii.member(jsii_name=\\"protected\\") + @jsii.member(jsii_name="protected") def protected(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"protected\\", []) + """ + return jsii.invoke(self, "protected", []) - @jsii.member(jsii_name=\\"public\\") + @jsii.member(jsii_name="public") def public(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"public\\", []) + """ + return jsii.invoke(self, "public", []) - @jsii.member(jsii_name=\\"return\\") + @jsii.member(jsii_name="return") def return_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"return\\", []) + """ + return jsii.invoke(self, "return", []) - @jsii.member(jsii_name=\\"short\\") + @jsii.member(jsii_name="short") def short(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"short\\", []) + """ + return jsii.invoke(self, "short", []) - @jsii.member(jsii_name=\\"static\\") + @jsii.member(jsii_name="static") def static(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"static\\", []) + """ + return jsii.invoke(self, "static", []) - @jsii.member(jsii_name=\\"strictfp\\") + @jsii.member(jsii_name="strictfp") def strictfp(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"strictfp\\", []) + """ + return jsii.invoke(self, "strictfp", []) - @jsii.member(jsii_name=\\"super\\") + @jsii.member(jsii_name="super") def super(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"super\\", []) + """ + return jsii.invoke(self, "super", []) - @jsii.member(jsii_name=\\"switch\\") + @jsii.member(jsii_name="switch") def switch(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"switch\\", []) + """ + return jsii.invoke(self, "switch", []) - @jsii.member(jsii_name=\\"synchronized\\") + @jsii.member(jsii_name="synchronized") def synchronized(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"synchronized\\", []) + """ + return jsii.invoke(self, "synchronized", []) - @jsii.member(jsii_name=\\"this\\") + @jsii.member(jsii_name="this") def this(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"this\\", []) + """ + return jsii.invoke(self, "this", []) - @jsii.member(jsii_name=\\"throw\\") + @jsii.member(jsii_name="throw") def throw(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"throw\\", []) + """ + return jsii.invoke(self, "throw", []) - @jsii.member(jsii_name=\\"throws\\") + @jsii.member(jsii_name="throws") def throws(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"throws\\", []) + """ + return jsii.invoke(self, "throws", []) - @jsii.member(jsii_name=\\"transient\\") + @jsii.member(jsii_name="transient") def transient(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"transient\\", []) + """ + return jsii.invoke(self, "transient", []) - @jsii.member(jsii_name=\\"true\\") + @jsii.member(jsii_name="true") def true(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"true\\", []) + """ + return jsii.invoke(self, "true", []) - @jsii.member(jsii_name=\\"try\\") + @jsii.member(jsii_name="try") def try_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"try\\", []) + """ + return jsii.invoke(self, "try", []) - @jsii.member(jsii_name=\\"void\\") + @jsii.member(jsii_name="void") def void(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"void\\", []) + """ + return jsii.invoke(self, "void", []) - @jsii.member(jsii_name=\\"volatile\\") + @jsii.member(jsii_name="volatile") def volatile(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"volatile\\", []) + """ + return jsii.invoke(self, "volatile", []) @builtins.property - @jsii.member(jsii_name=\\"while\\") + @jsii.member(jsii_name="while") def while_(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"while\\") + """ + return jsii.get(self, "while") @while_.setter def while_(self, value: str) -> None: - jsii.set(self, \\"while\\", value) + jsii.set(self, "while", value) @jsii.implements(IJsii487External2, IJsii487External) -class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Jsii487Derived\\"): - \\"\\"\\" +class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derived"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Jsii487Derived, self, []) @jsii.implements(IJsii496) -class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Jsii496Derived\\"): - \\"\\"\\" +class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derived"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Jsii496Derived, self, []) -class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JsiiAgent\\"): - \\"\\"\\"Host runtime version should be set via JSII_AGENT. +class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"): + """Host runtime version should be set via JSII_AGENT. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(JsiiAgent, self, []) @jsii.python.classproperty - @jsii.member(jsii_name=\\"jsiiAgent\\") + @jsii.member(jsii_name="jsiiAgent") def jsii_agent(cls) -> typing.Optional[str]: - \\"\\"\\"Returns the value of the JSII_AGENT environment variable. + """Returns the value of the JSII_AGENT environment variable. stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"jsiiAgent\\") + """ + return jsii.sget(cls, "jsiiAgent") -class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.JsonFormatter\\"): - \\"\\"\\"Make sure structs are un-decorated on the way in. +class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter"): + """Make sure structs are un-decorated on the way in. see :see: https://github.com/aws/aws-cdk/issues/5066 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"anyArray\\") + @jsii.member(jsii_name="anyArray") @builtins.classmethod def any_array(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyArray\\", []) + """ + return jsii.sinvoke(cls, "anyArray", []) - @jsii.member(jsii_name=\\"anyBooleanFalse\\") + @jsii.member(jsii_name="anyBooleanFalse") @builtins.classmethod def any_boolean_false(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyBooleanFalse\\", []) + """ + return jsii.sinvoke(cls, "anyBooleanFalse", []) - @jsii.member(jsii_name=\\"anyBooleanTrue\\") + @jsii.member(jsii_name="anyBooleanTrue") @builtins.classmethod def any_boolean_true(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyBooleanTrue\\", []) + """ + return jsii.sinvoke(cls, "anyBooleanTrue", []) - @jsii.member(jsii_name=\\"anyDate\\") + @jsii.member(jsii_name="anyDate") @builtins.classmethod def any_date(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyDate\\", []) + """ + return jsii.sinvoke(cls, "anyDate", []) - @jsii.member(jsii_name=\\"anyEmptyString\\") + @jsii.member(jsii_name="anyEmptyString") @builtins.classmethod def any_empty_string(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyEmptyString\\", []) + """ + return jsii.sinvoke(cls, "anyEmptyString", []) - @jsii.member(jsii_name=\\"anyFunction\\") + @jsii.member(jsii_name="anyFunction") @builtins.classmethod def any_function(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyFunction\\", []) + """ + return jsii.sinvoke(cls, "anyFunction", []) - @jsii.member(jsii_name=\\"anyHash\\") + @jsii.member(jsii_name="anyHash") @builtins.classmethod def any_hash(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyHash\\", []) + """ + return jsii.sinvoke(cls, "anyHash", []) - @jsii.member(jsii_name=\\"anyNull\\") + @jsii.member(jsii_name="anyNull") @builtins.classmethod def any_null(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyNull\\", []) + """ + return jsii.sinvoke(cls, "anyNull", []) - @jsii.member(jsii_name=\\"anyNumber\\") + @jsii.member(jsii_name="anyNumber") @builtins.classmethod def any_number(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyNumber\\", []) + """ + return jsii.sinvoke(cls, "anyNumber", []) - @jsii.member(jsii_name=\\"anyRef\\") + @jsii.member(jsii_name="anyRef") @builtins.classmethod def any_ref(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyRef\\", []) + """ + return jsii.sinvoke(cls, "anyRef", []) - @jsii.member(jsii_name=\\"anyString\\") + @jsii.member(jsii_name="anyString") @builtins.classmethod def any_string(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyString\\", []) + """ + return jsii.sinvoke(cls, "anyString", []) - @jsii.member(jsii_name=\\"anyUndefined\\") + @jsii.member(jsii_name="anyUndefined") @builtins.classmethod def any_undefined(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyUndefined\\", []) + """ + return jsii.sinvoke(cls, "anyUndefined", []) - @jsii.member(jsii_name=\\"anyZero\\") + @jsii.member(jsii_name="anyZero") @builtins.classmethod def any_zero(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"anyZero\\", []) + """ + return jsii.sinvoke(cls, "anyZero", []) - @jsii.member(jsii_name=\\"stringify\\") + @jsii.member(jsii_name="stringify") @builtins.classmethod def stringify(cls, value: typing.Any = None) -> typing.Optional[str]: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"stringify\\", [value]) + """ + return jsii.sinvoke(cls, "stringify", [value]) @jsii.data_type( - jsii_type=\\"jsii-calc.LoadBalancedFargateServiceProps\\", + jsii_type="jsii-calc.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={ - \\"container_port\\": \\"containerPort\\", - \\"cpu\\": \\"cpu\\", - \\"memory_mib\\": \\"memoryMiB\\", - \\"public_load_balancer\\": \\"publicLoadBalancer\\", - \\"public_tasks\\": \\"publicTasks\\", + "container_port": "containerPort", + "cpu": "cpu", + "memory_mib": "memoryMiB", + "public_load_balancer": "publicLoadBalancer", + "public_tasks": "publicTasks", }, ) class LoadBalancedFargateServiceProps: @@ -62623,7 +61631,7 @@ class LoadBalancedFargateServiceProps: public_load_balancer: typing.Optional[bool] = None, public_tasks: typing.Optional[bool] = None, ) -> None: - \\"\\"\\"jsii#298: show default values in sphinx documentation, and respect newlines. + """jsii#298: show default values in sphinx documentation, and respect newlines. :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 @@ -62633,22 +61641,22 @@ class LoadBalancedFargateServiceProps: stability :stability: experimental - \\"\\"\\" + """ self._values = {} if container_port is not None: - self._values[\\"container_port\\"] = container_port + self._values["container_port"] = container_port if cpu is not None: - self._values[\\"cpu\\"] = cpu + self._values["cpu"] = cpu if memory_mib is not None: - self._values[\\"memory_mib\\"] = memory_mib + self._values["memory_mib"] = memory_mib if public_load_balancer is not None: - self._values[\\"public_load_balancer\\"] = public_load_balancer + self._values["public_load_balancer"] = public_load_balancer if public_tasks is not None: - self._values[\\"public_tasks\\"] = public_tasks + self._values["public_tasks"] = public_tasks @builtins.property def container_port(self) -> typing.Optional[jsii.Number]: - \\"\\"\\"The container port of the application load balancer attached to your Fargate service. + """The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. @@ -62657,12 +61665,12 @@ class LoadBalancedFargateServiceProps: stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"container_port\\") + """ + return self._values.get("container_port") @builtins.property def cpu(self) -> typing.Optional[str]: - \\"\\"\\"The number of cpu units used by the task. + """The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB @@ -62678,12 +61686,12 @@ class LoadBalancedFargateServiceProps: stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"cpu\\") + """ + return self._values.get("cpu") @builtins.property def memory_mib(self) -> typing.Optional[str]: - \\"\\"\\"The amount (in MiB) of memory used by the task. + """The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: @@ -62705,32 +61713,32 @@ class LoadBalancedFargateServiceProps: stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"memory_mib\\") + """ + return self._values.get("memory_mib") @builtins.property def public_load_balancer(self) -> typing.Optional[bool]: - \\"\\"\\"Determines whether the Application Load Balancer will be internet-facing. + """Determines whether the Application Load Balancer will be internet-facing. default :default: true stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"public_load_balancer\\") + """ + return self._values.get("public_load_balancer") @builtins.property def public_tasks(self) -> typing.Optional[bool]: - \\"\\"\\"Determines whether your Fargate Service will be assigned a public IP address. + """Determines whether your Fargate Service will be assigned a public IP address. default :default: false stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"public_tasks\\") + """ + return self._values.get("public_tasks") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -62739,139 +61747,159 @@ class LoadBalancedFargateServiceProps: return not (rhs == self) def __repr__(self) -> str: - return \\"LoadBalancedFargateServiceProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "LoadBalancedFargateServiceProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class MethodNamedProperty( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.MethodNamedProperty\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(MethodNamedProperty, self, []) - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"property\\", []) + """ + return jsii.invoke(self, "property", []) @builtins.property - @jsii.member(jsii_name=\\"elite\\") + @jsii.member(jsii_name="elite") def elite(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"elite\\") + """ + return jsii.get(self, "elite") @jsii.implements(IFriendlier, IRandomNumberGenerator) class Multiply( - BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Multiply\\" + BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply" ): - \\"\\"\\"The \\"*\\" binary operation. + """The "*" binary operation. stability :stability: experimental - \\"\\"\\" + """ def __init__( self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value ) -> None: - \\"\\"\\"Creates a BinaryOperation. + """Creates a BinaryOperation. :param lhs: Left-hand side operand. :param rhs: Right-hand side operand. stability :stability: experimental - \\"\\"\\" + """ jsii.create(Multiply, self, [lhs, rhs]) - @jsii.member(jsii_name=\\"farewell\\") + @jsii.member(jsii_name="farewell") def farewell(self) -> str: - \\"\\"\\"Say farewell. + """Say farewell. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"farewell\\", []) + """ + return jsii.invoke(self, "farewell", []) - @jsii.member(jsii_name=\\"goodbye\\") + @jsii.member(jsii_name="goodbye") def goodbye(self) -> str: - \\"\\"\\"Say goodbye. + """Say goodbye. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"goodbye\\", []) + """ + return jsii.invoke(self, "goodbye", []) - @jsii.member(jsii_name=\\"next\\") + @jsii.member(jsii_name="next") def next(self) -> jsii.Number: - \\"\\"\\"Returns another random number. + """Returns another random number. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"next\\", []) + """ + return jsii.invoke(self, "next", []) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. + + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +class NestedClassInstance( + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NestedClassInstance" +): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance( + cls + ) -> scope.jsii_calc_lib.custom_submodule_name.NestingClass.NestedClass: + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.sinvoke(cls, "makeInstance", []) @jsii.data_type( - jsii_type=\\"jsii-calc.NestedStruct\\", + jsii_type="jsii-calc.NestedStruct", jsii_struct_bases=[], - name_mapping={\\"number_prop\\": \\"numberProp\\"}, + name_mapping={"number_prop": "numberProp"}, ) class NestedStruct: def __init__(self, *, number_prop: jsii.Number) -> None: - \\"\\"\\" + """ :param number_prop: When provided, must be > 0. stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"number_prop\\": number_prop, + "number_prop": number_prop, } @builtins.property def number_prop(self) -> jsii.Number: - \\"\\"\\"When provided, must be > 0. + """When provided, must be > 0. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"number_prop\\") + """ + return self._values.get("number_prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -62880,152 +61908,152 @@ class NestedStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"NestedStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "NestedStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class NodeStandardLibrary( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NodeStandardLibrary\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary" ): - \\"\\"\\"Test fixture to verify that jsii modules can use the node standard library. + """Test fixture to verify that jsii modules can use the node standard library. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(NodeStandardLibrary, self, []) - @jsii.member(jsii_name=\\"cryptoSha256\\") + @jsii.member(jsii_name="cryptoSha256") def crypto_sha256(self) -> str: - \\"\\"\\"Uses node.js \\"crypto\\" module to calculate sha256 of a string. + """Uses node.js "crypto" module to calculate sha256 of a string. return - :return: \\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\\" + :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"cryptoSha256\\", []) + """ + return jsii.invoke(self, "cryptoSha256", []) - @jsii.member(jsii_name=\\"fsReadFile\\") + @jsii.member(jsii_name="fsReadFile") def fs_read_file(self) -> str: - \\"\\"\\"Reads a local resource file (resource.txt) asynchronously. + """Reads a local resource file (resource.txt) asynchronously. return - :return: \\"Hello, resource!\\" + :return: "Hello, resource!" stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"fsReadFile\\", []) + """ + return jsii.ainvoke(self, "fsReadFile", []) - @jsii.member(jsii_name=\\"fsReadFileSync\\") + @jsii.member(jsii_name="fsReadFileSync") def fs_read_file_sync(self) -> str: - \\"\\"\\"Sync version of fsReadFile. + """Sync version of fsReadFile. return - :return: \\"Hello, resource! SYNC!\\" + :return: "Hello, resource! SYNC!" stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"fsReadFileSync\\", []) + """ + return jsii.invoke(self, "fsReadFileSync", []) @builtins.property - @jsii.member(jsii_name=\\"osPlatform\\") + @jsii.member(jsii_name="osPlatform") def os_platform(self) -> str: - \\"\\"\\"Returns the current os.platform() from the \\"os\\" node module. + """Returns the current os.platform() from the "os" node module. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"osPlatform\\") + """ + return jsii.get(self, "osPlatform") class NullShouldBeTreatedAsUndefined( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NullShouldBeTreatedAsUndefined\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined" ): - \\"\\"\\"jsii#282, aws-cdk#157: null should be treated as \\"undefined\\". + """jsii#282, aws-cdk#157: null should be treated as "undefined". stability :stability: experimental - \\"\\"\\" + """ def __init__(self, _param1: str, optional: typing.Any = None) -> None: - \\"\\"\\" + """ :param _param1: - :param optional: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) - @jsii.member(jsii_name=\\"giveMeUndefined\\") + @jsii.member(jsii_name="giveMeUndefined") def give_me_undefined(self, value: typing.Any = None) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"giveMeUndefined\\", [value]) + """ + return jsii.invoke(self, "giveMeUndefined", [value]) - @jsii.member(jsii_name=\\"giveMeUndefinedInsideAnObject\\") + @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") def give_me_undefined_inside_an_object( self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any = None, ) -> None: - \\"\\"\\" + """ :param array_with_three_elements_and_undefined_as_second_argument: :param this_should_be_undefined: stability :stability: experimental - \\"\\"\\" + """ input = NullShouldBeTreatedAsUndefinedData( array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined, ) - return jsii.invoke(self, \\"giveMeUndefinedInsideAnObject\\", [input]) + return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) - @jsii.member(jsii_name=\\"verifyPropertyIsUndefined\\") + @jsii.member(jsii_name="verifyPropertyIsUndefined") def verify_property_is_undefined(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"verifyPropertyIsUndefined\\", []) + """ + return jsii.invoke(self, "verifyPropertyIsUndefined", []) @builtins.property - @jsii.member(jsii_name=\\"changeMeToUndefined\\") + @jsii.member(jsii_name="changeMeToUndefined") def change_me_to_undefined(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"changeMeToUndefined\\") + """ + return jsii.get(self, "changeMeToUndefined") @change_me_to_undefined.setter def change_me_to_undefined(self, value: typing.Optional[str]) -> None: - jsii.set(self, \\"changeMeToUndefined\\", value) + jsii.set(self, "changeMeToUndefined", value) @jsii.data_type( - jsii_type=\\"jsii-calc.NullShouldBeTreatedAsUndefinedData\\", + jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={ - \\"array_with_three_elements_and_undefined_as_second_argument\\": \\"arrayWithThreeElementsAndUndefinedAsSecondArgument\\", - \\"this_should_be_undefined\\": \\"thisShouldBeUndefined\\", + "array_with_three_elements_and_undefined_as_second_argument": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "this_should_be_undefined": "thisShouldBeUndefined", }, ) class NullShouldBeTreatedAsUndefinedData: @@ -63035,36 +62063,36 @@ class NullShouldBeTreatedAsUndefinedData: array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any = None, ) -> None: - \\"\\"\\" + """ :param array_with_three_elements_and_undefined_as_second_argument: :param this_should_be_undefined: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"array_with_three_elements_and_undefined_as_second_argument\\": array_with_three_elements_and_undefined_as_second_argument, + "array_with_three_elements_and_undefined_as_second_argument": array_with_three_elements_and_undefined_as_second_argument, } if this_should_be_undefined is not None: - self._values[\\"this_should_be_undefined\\"] = this_should_be_undefined + self._values["this_should_be_undefined"] = this_should_be_undefined @builtins.property def array_with_three_elements_and_undefined_as_second_argument( self, ) -> typing.List[typing.Any]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"array_with_three_elements_and_undefined_as_second_argument\\") + """ + return self._values.get("array_with_three_elements_and_undefined_as_second_argument") @builtins.property def this_should_be_undefined(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"this_should_be_undefined\\") + """ + return self._values.get("this_should_be_undefined") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -63073,188 +62101,188 @@ class NullShouldBeTreatedAsUndefinedData: return not (rhs == self) def __repr__(self) -> str: - return \\"NullShouldBeTreatedAsUndefinedData(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "NullShouldBeTreatedAsUndefinedData(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.NumberGenerator\\"): - \\"\\"\\"This allows us to test that a reference can be stored for objects that implement interfaces. +class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"): + """This allows us to test that a reference can be stored for objects that implement interfaces. stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, generator: \\"IRandomNumberGenerator\\") -> None: - \\"\\"\\" + def __init__(self, generator: "IRandomNumberGenerator") -> None: + """ :param generator: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(NumberGenerator, self, [generator]) - @jsii.member(jsii_name=\\"isSameGenerator\\") - def is_same_generator(self, gen: \\"IRandomNumberGenerator\\") -> bool: - \\"\\"\\" + @jsii.member(jsii_name="isSameGenerator") + def is_same_generator(self, gen: "IRandomNumberGenerator") -> bool: + """ :param gen: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"isSameGenerator\\", [gen]) + """ + return jsii.invoke(self, "isSameGenerator", [gen]) - @jsii.member(jsii_name=\\"nextTimes100\\") + @jsii.member(jsii_name="nextTimes100") def next_times100(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"nextTimes100\\", []) + """ + return jsii.invoke(self, "nextTimes100", []) @builtins.property - @jsii.member(jsii_name=\\"generator\\") - def generator(self) -> \\"IRandomNumberGenerator\\": - \\"\\"\\" + @jsii.member(jsii_name="generator") + def generator(self) -> "IRandomNumberGenerator": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"generator\\") + """ + return jsii.get(self, "generator") @generator.setter - def generator(self, value: \\"IRandomNumberGenerator\\") -> None: - jsii.set(self, \\"generator\\", value) + def generator(self, value: "IRandomNumberGenerator") -> None: + jsii.set(self, "generator", value) class ObjectRefsInCollections( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ObjectRefsInCollections\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections" ): - \\"\\"\\"Verify that object references can be passed inside collections. + """Verify that object references can be passed inside collections. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ObjectRefsInCollections, self, []) - @jsii.member(jsii_name=\\"sumFromArray\\") + @jsii.member(jsii_name="sumFromArray") def sum_from_array( self, values: typing.List[scope.jsii_calc_lib.Value] ) -> jsii.Number: - \\"\\"\\"Returns the sum of all values. + """Returns the sum of all values. :param values: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"sumFromArray\\", [values]) + """ + return jsii.invoke(self, "sumFromArray", [values]) - @jsii.member(jsii_name=\\"sumFromMap\\") + @jsii.member(jsii_name="sumFromMap") def sum_from_map( self, values: typing.Mapping[str, scope.jsii_calc_lib.Value] ) -> jsii.Number: - \\"\\"\\"Returns the sum of all values in a map. + """Returns the sum of all values in a map. :param values: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"sumFromMap\\", [values]) + """ + return jsii.invoke(self, "sumFromMap", [values]) class ObjectWithPropertyProvider( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ObjectWithPropertyProvider\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"provide\\") + @jsii.member(jsii_name="provide") @builtins.classmethod - def provide(cls) -> \\"IObjectWithProperty\\": - \\"\\"\\" + def provide(cls) -> "IObjectWithProperty": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"provide\\", []) + """ + return jsii.sinvoke(cls, "provide", []) -class Old(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Old\\"): - \\"\\"\\"Old class. +class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"): + """Old class. deprecated :deprecated: Use the new class stability :stability: deprecated - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Old, self, []) - @jsii.member(jsii_name=\\"doAThing\\") + @jsii.member(jsii_name="doAThing") def do_a_thing(self) -> None: - \\"\\"\\"Doo wop that thing. + """Doo wop that thing. stability :stability: deprecated - \\"\\"\\" - return jsii.invoke(self, \\"doAThing\\", []) + """ + return jsii.invoke(self, "doAThing", []) class OptionalArgumentInvoker( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalArgumentInvoker\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, delegate: \\"IInterfaceWithOptionalMethodArguments\\") -> None: - \\"\\"\\" + def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: + """ :param delegate: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(OptionalArgumentInvoker, self, [delegate]) - @jsii.member(jsii_name=\\"invokeWithOptional\\") + @jsii.member(jsii_name="invokeWithOptional") def invoke_with_optional(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"invokeWithOptional\\", []) + """ + return jsii.invoke(self, "invokeWithOptional", []) - @jsii.member(jsii_name=\\"invokeWithoutOptional\\") + @jsii.member(jsii_name="invokeWithoutOptional") def invoke_without_optional(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"invokeWithoutOptional\\", []) + """ + return jsii.invoke(self, "invokeWithoutOptional", []) class OptionalConstructorArgument( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalConstructorArgument\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__( self, @@ -63262,68 +62290,68 @@ class OptionalConstructorArgument( arg2: str, arg3: typing.Optional[datetime.datetime] = None, ) -> None: - \\"\\"\\" + """ :param arg1: - :param arg2: - :param arg3: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) @builtins.property - @jsii.member(jsii_name=\\"arg1\\") + @jsii.member(jsii_name="arg1") def arg1(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg1\\") + """ + return jsii.get(self, "arg1") @builtins.property - @jsii.member(jsii_name=\\"arg2\\") + @jsii.member(jsii_name="arg2") def arg2(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg2\\") + """ + return jsii.get(self, "arg2") @builtins.property - @jsii.member(jsii_name=\\"arg3\\") + @jsii.member(jsii_name="arg3") def arg3(self) -> typing.Optional[datetime.datetime]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"arg3\\") + """ + return jsii.get(self, "arg3") @jsii.data_type( - jsii_type=\\"jsii-calc.OptionalStruct\\", + jsii_type="jsii-calc.OptionalStruct", jsii_struct_bases=[], - name_mapping={\\"field\\": \\"field\\"}, + name_mapping={"field": "field"}, ) class OptionalStruct: def __init__(self, *, field: typing.Optional[str] = None) -> None: - \\"\\"\\" + """ :param field: stability :stability: experimental - \\"\\"\\" + """ self._values = {} if field is not None: - self._values[\\"field\\"] = field + self._values["field"] = field @builtins.property def field(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"field\\") + """ + return self._values.get("field") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -63332,164 +62360,164 @@ class OptionalStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"OptionalStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "OptionalStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class OptionalStructConsumer( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OptionalStructConsumer\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, *, field: typing.Optional[str] = None) -> None: - \\"\\"\\" + """ :param field: stability :stability: experimental - \\"\\"\\" + """ optional_struct = OptionalStruct(field=field) jsii.create(OptionalStructConsumer, self, [optional_struct]) @builtins.property - @jsii.member(jsii_name=\\"parameterWasUndefined\\") + @jsii.member(jsii_name="parameterWasUndefined") def parameter_was_undefined(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"parameterWasUndefined\\") + """ + return jsii.get(self, "parameterWasUndefined") @builtins.property - @jsii.member(jsii_name=\\"fieldValue\\") + @jsii.member(jsii_name="fieldValue") def field_value(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"fieldValue\\") + """ + return jsii.get(self, "fieldValue") class OverridableProtectedMember( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OverridableProtectedMember\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember" ): - \\"\\"\\" + """ see :see: https://github.com/aws/jsii/issues/903 stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(OverridableProtectedMember, self, []) - @jsii.member(jsii_name=\\"overrideMe\\") + @jsii.member(jsii_name="overrideMe") def _override_me(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"overrideMe\\", []) + """ + return jsii.invoke(self, "overrideMe", []) - @jsii.member(jsii_name=\\"switchModes\\") + @jsii.member(jsii_name="switchModes") def switch_modes(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"switchModes\\", []) + """ + return jsii.invoke(self, "switchModes", []) - @jsii.member(jsii_name=\\"valueFromProtected\\") + @jsii.member(jsii_name="valueFromProtected") def value_from_protected(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"valueFromProtected\\", []) + """ + return jsii.invoke(self, "valueFromProtected", []) @builtins.property - @jsii.member(jsii_name=\\"overrideReadOnly\\") + @jsii.member(jsii_name="overrideReadOnly") def _override_read_only(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"overrideReadOnly\\") + """ + return jsii.get(self, "overrideReadOnly") @builtins.property - @jsii.member(jsii_name=\\"overrideReadWrite\\") + @jsii.member(jsii_name="overrideReadWrite") def _override_read_write(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"overrideReadWrite\\") + """ + return jsii.get(self, "overrideReadWrite") @_override_read_write.setter def _override_read_write(self, value: str) -> None: - jsii.set(self, \\"overrideReadWrite\\", value) + jsii.set(self, "overrideReadWrite", value) class OverrideReturnsObject( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.OverrideReturnsObject\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(OverrideReturnsObject, self, []) - @jsii.member(jsii_name=\\"test\\") - def test(self, obj: \\"IReturnsNumber\\") -> jsii.Number: - \\"\\"\\" + @jsii.member(jsii_name="test") + def test(self, obj: "IReturnsNumber") -> jsii.Number: + """ :param obj: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"test\\", [obj]) + """ + return jsii.invoke(self, "test", [obj]) @jsii.data_type( - jsii_type=\\"jsii-calc.ParentStruct982\\", + jsii_type="jsii-calc.ParentStruct982", jsii_struct_bases=[], - name_mapping={\\"foo\\": \\"foo\\"}, + name_mapping={"foo": "foo"}, ) class ParentStruct982: def __init__(self, *, foo: str) -> None: - \\"\\"\\"https://github.com/aws/jsii/issues/982. + """https://github.com/aws/jsii/issues/982. :param foo: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, + "foo": foo, } @builtins.property def foo(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"foo\\") + """ + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -63498,532 +62526,532 @@ class ParentStruct982: return not (rhs == self) def __repr__(self) -> str: - return \\"ParentStruct982(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ParentStruct982(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class PartiallyInitializedThisConsumer( metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.PartiallyInitializedThisConsumer\\", + jsii_type="jsii-calc.PartiallyInitializedThisConsumer", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _PartiallyInitializedThisConsumerProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(PartiallyInitializedThisConsumer, self, []) - @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") + @jsii.member(jsii_name="consumePartiallyInitializedThis") @abc.abstractmethod def consume_partially_initialized_this( self, - obj: \\"ConstructorPassesThisOut\\", + obj: "ConstructorPassesThisOut", dt: datetime.datetime, - ev: \\"AllTypesEnum\\", + ev: "AllTypesEnum", ) -> str: - \\"\\"\\" + """ :param obj: - :param dt: - :param ev: - stability :stability: experimental - \\"\\"\\" + """ ... class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): - @jsii.member(jsii_name=\\"consumePartiallyInitializedThis\\") + @jsii.member(jsii_name="consumePartiallyInitializedThis") def consume_partially_initialized_this( self, - obj: \\"ConstructorPassesThisOut\\", + obj: "ConstructorPassesThisOut", dt: datetime.datetime, - ev: \\"AllTypesEnum\\", + ev: "AllTypesEnum", ) -> str: - \\"\\"\\" + """ :param obj: - :param dt: - :param ev: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"consumePartiallyInitializedThis\\", [obj, dt, ev]) + """ + return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) -class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Polymorphism\\"): - \\"\\"\\" +class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Polymorphism, self, []) - @jsii.member(jsii_name=\\"sayHello\\") + @jsii.member(jsii_name="sayHello") def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - \\"\\"\\" + """ :param friendly: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"sayHello\\", [friendly]) + """ + return jsii.invoke(self, "sayHello", [friendly]) class Power( - _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Power\\" + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power" ): - \\"\\"\\"The power operation. + """The power operation. stability :stability: experimental - \\"\\"\\" + """ def __init__( self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value ) -> None: - \\"\\"\\"Creates a Power operation. + """Creates a Power operation. :param base: The base of the power. :param pow: The number of times to multiply. stability :stability: experimental - \\"\\"\\" + """ jsii.create(Power, self, [base, pow]) @builtins.property - @jsii.member(jsii_name=\\"base\\") + @jsii.member(jsii_name="base") def base(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The base of the power. + """The base of the power. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"base\\") + """ + return jsii.get(self, "base") @builtins.property - @jsii.member(jsii_name=\\"expression\\") + @jsii.member(jsii_name="expression") def expression(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The expression that this operation consists of. + """The expression that this operation consists of. Must be implemented by derived classes. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"expression\\") + """ + return jsii.get(self, "expression") @builtins.property - @jsii.member(jsii_name=\\"pow\\") + @jsii.member(jsii_name="pow") def pow(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The number of times to multiply. + """The number of times to multiply. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"pow\\") + """ + return jsii.get(self, "pow") class PropertyNamedProperty( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PropertyNamedProperty\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty" ): - \\"\\"\\"Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \\"property\\" would result in impossible to load Python code. + """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(PropertyNamedProperty, self, []) @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"property\\") + """ + return jsii.get(self, "property") @builtins.property - @jsii.member(jsii_name=\\"yetAnoterOne\\") + @jsii.member(jsii_name="yetAnoterOne") def yet_anoter_one(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"yetAnoterOne\\") + """ + return jsii.get(self, "yetAnoterOne") -class PublicClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PublicClass\\"): - \\"\\"\\" +class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(PublicClass, self, []) - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) class PythonReservedWords( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonReservedWords\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(PythonReservedWords, self, []) - @jsii.member(jsii_name=\\"and\\") + @jsii.member(jsii_name="and") def and_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"and\\", []) + """ + return jsii.invoke(self, "and", []) - @jsii.member(jsii_name=\\"as\\") + @jsii.member(jsii_name="as") def as_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"as\\", []) + """ + return jsii.invoke(self, "as", []) - @jsii.member(jsii_name=\\"assert\\") + @jsii.member(jsii_name="assert") def assert_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"assert\\", []) + """ + return jsii.invoke(self, "assert", []) - @jsii.member(jsii_name=\\"async\\") + @jsii.member(jsii_name="async") def async_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"async\\", []) + """ + return jsii.invoke(self, "async", []) - @jsii.member(jsii_name=\\"await\\") + @jsii.member(jsii_name="await") def await_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"await\\", []) + """ + return jsii.invoke(self, "await", []) - @jsii.member(jsii_name=\\"break\\") + @jsii.member(jsii_name="break") def break_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"break\\", []) + """ + return jsii.invoke(self, "break", []) - @jsii.member(jsii_name=\\"class\\") + @jsii.member(jsii_name="class") def class_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"class\\", []) + """ + return jsii.invoke(self, "class", []) - @jsii.member(jsii_name=\\"continue\\") + @jsii.member(jsii_name="continue") def continue_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"continue\\", []) + """ + return jsii.invoke(self, "continue", []) - @jsii.member(jsii_name=\\"def\\") + @jsii.member(jsii_name="def") def def_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"def\\", []) + """ + return jsii.invoke(self, "def", []) - @jsii.member(jsii_name=\\"del\\") + @jsii.member(jsii_name="del") def del_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"del\\", []) + """ + return jsii.invoke(self, "del", []) - @jsii.member(jsii_name=\\"elif\\") + @jsii.member(jsii_name="elif") def elif_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"elif\\", []) + """ + return jsii.invoke(self, "elif", []) - @jsii.member(jsii_name=\\"else\\") + @jsii.member(jsii_name="else") def else_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"else\\", []) + """ + return jsii.invoke(self, "else", []) - @jsii.member(jsii_name=\\"except\\") + @jsii.member(jsii_name="except") def except_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"except\\", []) + """ + return jsii.invoke(self, "except", []) - @jsii.member(jsii_name=\\"finally\\") + @jsii.member(jsii_name="finally") def finally_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"finally\\", []) + """ + return jsii.invoke(self, "finally", []) - @jsii.member(jsii_name=\\"for\\") + @jsii.member(jsii_name="for") def for_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"for\\", []) + """ + return jsii.invoke(self, "for", []) - @jsii.member(jsii_name=\\"from\\") + @jsii.member(jsii_name="from") def from_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"from\\", []) + """ + return jsii.invoke(self, "from", []) - @jsii.member(jsii_name=\\"global\\") + @jsii.member(jsii_name="global") def global_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"global\\", []) + """ + return jsii.invoke(self, "global", []) - @jsii.member(jsii_name=\\"if\\") + @jsii.member(jsii_name="if") def if_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"if\\", []) + """ + return jsii.invoke(self, "if", []) - @jsii.member(jsii_name=\\"import\\") + @jsii.member(jsii_name="import") def import_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"import\\", []) + """ + return jsii.invoke(self, "import", []) - @jsii.member(jsii_name=\\"in\\") + @jsii.member(jsii_name="in") def in_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"in\\", []) + """ + return jsii.invoke(self, "in", []) - @jsii.member(jsii_name=\\"is\\") + @jsii.member(jsii_name="is") def is_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"is\\", []) + """ + return jsii.invoke(self, "is", []) - @jsii.member(jsii_name=\\"lambda\\") + @jsii.member(jsii_name="lambda") def lambda_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"lambda\\", []) + """ + return jsii.invoke(self, "lambda", []) - @jsii.member(jsii_name=\\"nonlocal\\") + @jsii.member(jsii_name="nonlocal") def nonlocal_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"nonlocal\\", []) + """ + return jsii.invoke(self, "nonlocal", []) - @jsii.member(jsii_name=\\"not\\") + @jsii.member(jsii_name="not") def not_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"not\\", []) + """ + return jsii.invoke(self, "not", []) - @jsii.member(jsii_name=\\"or\\") + @jsii.member(jsii_name="or") def or_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"or\\", []) + """ + return jsii.invoke(self, "or", []) - @jsii.member(jsii_name=\\"pass\\") + @jsii.member(jsii_name="pass") def pass_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"pass\\", []) + """ + return jsii.invoke(self, "pass", []) - @jsii.member(jsii_name=\\"raise\\") + @jsii.member(jsii_name="raise") def raise_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"raise\\", []) + """ + return jsii.invoke(self, "raise", []) - @jsii.member(jsii_name=\\"return\\") + @jsii.member(jsii_name="return") def return_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"return\\", []) + """ + return jsii.invoke(self, "return", []) - @jsii.member(jsii_name=\\"try\\") + @jsii.member(jsii_name="try") def try_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"try\\", []) + """ + return jsii.invoke(self, "try", []) - @jsii.member(jsii_name=\\"while\\") + @jsii.member(jsii_name="while") def while_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"while\\", []) + """ + return jsii.invoke(self, "while", []) - @jsii.member(jsii_name=\\"with\\") + @jsii.member(jsii_name="with") def with_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"with\\", []) + """ + return jsii.invoke(self, "with", []) - @jsii.member(jsii_name=\\"yield\\") + @jsii.member(jsii_name="yield") def yield_(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"yield\\", []) + """ + return jsii.invoke(self, "yield", []) class ReferenceEnumFromScopedPackage( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.ReferenceEnumFromScopedPackage\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage" ): - \\"\\"\\"See awslabs/jsii#138. + """See awslabs/jsii#138. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ReferenceEnumFromScopedPackage, self, []) - @jsii.member(jsii_name=\\"loadFoo\\") + @jsii.member(jsii_name="loadFoo") def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"loadFoo\\", []) + """ + return jsii.invoke(self, "loadFoo", []) - @jsii.member(jsii_name=\\"saveFoo\\") + @jsii.member(jsii_name="saveFoo") def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"saveFoo\\", [value]) + """ + return jsii.invoke(self, "saveFoo", [value]) @builtins.property - @jsii.member(jsii_name=\\"foo\\") + @jsii.member(jsii_name="foo") def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"foo\\") + """ + return jsii.get(self, "foo") @foo.setter def foo( self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule] ) -> None: - jsii.set(self, \\"foo\\", value) + jsii.set(self, "foo", value) class ReturnsPrivateImplementationOfInterface( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ReturnsPrivateImplementationOfInterface\\", + jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface", ): - \\"\\"\\"Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. return :return: an instance of an un-exported class that extends \`\`ExportedBaseClass\`\`, declared as \`\`IPrivatelyImplemented\`\`. @@ -64032,72 +63060,72 @@ class ReturnsPrivateImplementationOfInterface( :see: https://github.com/aws/jsii/issues/320 stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ReturnsPrivateImplementationOfInterface, self, []) @builtins.property - @jsii.member(jsii_name=\\"privateImplementation\\") - def private_implementation(self) -> \\"IPrivatelyImplemented\\": - \\"\\"\\" + @jsii.member(jsii_name="privateImplementation") + def private_implementation(self) -> "IPrivatelyImplemented": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"privateImplementation\\") + """ + return jsii.get(self, "privateImplementation") @jsii.data_type( - jsii_type=\\"jsii-calc.RootStruct\\", + jsii_type="jsii-calc.RootStruct", jsii_struct_bases=[], - name_mapping={\\"string_prop\\": \\"stringProp\\", \\"nested_struct\\": \\"nestedStruct\\"}, + name_mapping={"string_prop": "stringProp", "nested_struct": "nestedStruct"}, ) class RootStruct: def __init__( self, *, string_prop: str, - nested_struct: typing.Optional[\\"NestedStruct\\"] = None, + nested_struct: typing.Optional["NestedStruct"] = None, ) -> None: - \\"\\"\\"This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - This is cheating with the (current) declared types, but this is the \\"more - idiomatic\\" way for Pythonists. + This is cheating with the (current) declared types, but this is the "more + idiomatic" way for Pythonists. :param string_prop: May not be empty. :param nested_struct: stability :stability: experimental - \\"\\"\\" + """ if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) self._values = { - \\"string_prop\\": string_prop, + "string_prop": string_prop, } if nested_struct is not None: - self._values[\\"nested_struct\\"] = nested_struct + self._values["nested_struct"] = nested_struct @builtins.property def string_prop(self) -> str: - \\"\\"\\"May not be empty. + """May not be empty. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"string_prop\\") + """ + return self._values.get("string_prop") @builtins.property - def nested_struct(self) -> typing.Optional[\\"NestedStruct\\"]: - \\"\\"\\" + def nested_struct(self) -> typing.Optional["NestedStruct"]: + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"nested_struct\\") + """ + return self._values.get("nested_struct") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64106,86 +63134,86 @@ class RootStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"RootStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "RootStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class RootStructValidator( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.RootStructValidator\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"validate\\") + @jsii.member(jsii_name="validate") @builtins.classmethod def validate( - cls, *, string_prop: str, nested_struct: typing.Optional[\\"NestedStruct\\"] = None + cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None ) -> None: - \\"\\"\\" + """ :param string_prop: May not be empty. :param nested_struct: stability :stability: experimental - \\"\\"\\" + """ struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) - return jsii.sinvoke(cls, \\"validate\\", [struct]) + return jsii.sinvoke(cls, "validate", [struct]) class RuntimeTypeChecking( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.RuntimeTypeChecking\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(RuntimeTypeChecking, self, []) - @jsii.member(jsii_name=\\"methodWithDefaultedArguments\\") + @jsii.member(jsii_name="methodWithDefaultedArguments") def method_with_defaulted_arguments( self, arg1: typing.Optional[jsii.Number] = None, arg2: typing.Optional[str] = None, arg3: typing.Optional[datetime.datetime] = None, ) -> None: - \\"\\"\\" + """ :param arg1: - :param arg2: - :param arg3: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"methodWithDefaultedArguments\\", [arg1, arg2, arg3]) + """ + return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) - @jsii.member(jsii_name=\\"methodWithOptionalAnyArgument\\") + @jsii.member(jsii_name="methodWithOptionalAnyArgument") def method_with_optional_any_argument(self, arg: typing.Any = None) -> None: - \\"\\"\\" + """ :param arg: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"methodWithOptionalAnyArgument\\", [arg]) + """ + return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) - @jsii.member(jsii_name=\\"methodWithOptionalArguments\\") + @jsii.member(jsii_name="methodWithOptionalArguments") def method_with_optional_arguments( self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime] = None, ) -> None: - \\"\\"\\"Used to verify verification of number of method arguments. + """Used to verify verification of number of method arguments. :param arg1: - :param arg2: - @@ -64193,16 +63221,16 @@ class RuntimeTypeChecking( stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"methodWithOptionalArguments\\", [arg1, arg2, arg3]) + """ + return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) @jsii.data_type( - jsii_type=\\"jsii-calc.SecondLevelStruct\\", + jsii_type="jsii-calc.SecondLevelStruct", jsii_struct_bases=[], name_mapping={ - \\"deeper_required_prop\\": \\"deeperRequiredProp\\", - \\"deeper_optional_prop\\": \\"deeperOptionalProp\\", + "deeper_required_prop": "deeperRequiredProp", + "deeper_optional_prop": "deeperOptionalProp", }, ) class SecondLevelStruct: @@ -64212,36 +63240,36 @@ class SecondLevelStruct: deeper_required_prop: str, deeper_optional_prop: typing.Optional[str] = None, ) -> None: - \\"\\"\\" + """ :param deeper_required_prop: It's long and required. :param deeper_optional_prop: It's long, but you'll almost never pass it. stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"deeper_required_prop\\": deeper_required_prop, + "deeper_required_prop": deeper_required_prop, } if deeper_optional_prop is not None: - self._values[\\"deeper_optional_prop\\"] = deeper_optional_prop + self._values["deeper_optional_prop"] = deeper_optional_prop @builtins.property def deeper_required_prop(self) -> str: - \\"\\"\\"It's long and required. + """It's long and required. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"deeper_required_prop\\") + """ + return self._values.get("deeper_required_prop") @builtins.property def deeper_optional_prop(self) -> typing.Optional[str]: - \\"\\"\\"It's long, but you'll almost never pass it. + """It's long, but you'll almost never pass it. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"deeper_optional_prop\\") + """ + return self._values.get("deeper_optional_prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64250,15 +63278,15 @@ class SecondLevelStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"SecondLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "SecondLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class SingleInstanceTwoTypes( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingleInstanceTwoTypes\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes" ): - \\"\\"\\"Test that a single instance can be returned under two different FQNs. + """Test that a single instance can be returned under two different FQNs. JSII clients can instantiate 2 different strongly-typed wrappers for the same object. Unfortunately, this will break object equality, but if we didn't do @@ -64266,138 +63294,138 @@ class SingleInstanceTwoTypes( stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(SingleInstanceTwoTypes, self, []) - @jsii.member(jsii_name=\\"interface1\\") - def interface1(self) -> \\"InbetweenClass\\": - \\"\\"\\" + @jsii.member(jsii_name="interface1") + def interface1(self) -> "InbetweenClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"interface1\\", []) + """ + return jsii.invoke(self, "interface1", []) - @jsii.member(jsii_name=\\"interface2\\") - def interface2(self) -> \\"IPublicInterface\\": - \\"\\"\\" + @jsii.member(jsii_name="interface2") + def interface2(self) -> "IPublicInterface": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"interface2\\", []) + """ + return jsii.invoke(self, "interface2", []) -class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingletonInt\\"): - \\"\\"\\"Verifies that singleton enums are handled correctly. +class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"): + """Verifies that singleton enums are handled correctly. https://github.com/aws/jsii/issues/231 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"isSingletonInt\\") + @jsii.member(jsii_name="isSingletonInt") def is_singleton_int(self, value: jsii.Number) -> bool: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"isSingletonInt\\", [value]) + """ + return jsii.invoke(self, "isSingletonInt", [value]) -@jsii.enum(jsii_type=\\"jsii-calc.SingletonIntEnum\\") +@jsii.enum(jsii_type="jsii-calc.SingletonIntEnum") class SingletonIntEnum(enum.Enum): - \\"\\"\\"A singleton integer. + """A singleton integer. stability :stability: experimental - \\"\\"\\" + """ - SINGLETON_INT = \\"SINGLETON_INT\\" - \\"\\"\\"Elite! + SINGLETON_INT = "SINGLETON_INT" + """Elite! stability :stability: experimental - \\"\\"\\" + """ -class SingletonString(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SingletonString\\"): - \\"\\"\\"Verifies that singleton enums are handled correctly. +class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"): + """Verifies that singleton enums are handled correctly. https://github.com/aws/jsii/issues/231 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"isSingletonString\\") + @jsii.member(jsii_name="isSingletonString") def is_singleton_string(self, value: str) -> bool: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"isSingletonString\\", [value]) + """ + return jsii.invoke(self, "isSingletonString", [value]) -@jsii.enum(jsii_type=\\"jsii-calc.SingletonStringEnum\\") +@jsii.enum(jsii_type="jsii-calc.SingletonStringEnum") class SingletonStringEnum(enum.Enum): - \\"\\"\\"A singleton string. + """A singleton string. stability :stability: experimental - \\"\\"\\" + """ - SINGLETON_STRING = \\"SINGLETON_STRING\\" - \\"\\"\\"1337. + SINGLETON_STRING = "SINGLETON_STRING" + """1337. stability :stability: experimental - \\"\\"\\" + """ @jsii.data_type( - jsii_type=\\"jsii-calc.SmellyStruct\\", + jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], - name_mapping={\\"property\\": \\"property\\", \\"yet_anoter_one\\": \\"yetAnoterOne\\"}, + name_mapping={"property": "property", "yet_anoter_one": "yetAnoterOne"}, ) class SmellyStruct: def __init__(self, *, property: str, yet_anoter_one: bool) -> None: - \\"\\"\\" + """ :param property: :param yet_anoter_one: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"property\\": property, - \\"yet_anoter_one\\": yet_anoter_one, + "property": property, + "yet_anoter_one": yet_anoter_one, } @builtins.property def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"property\\") + """ + return self._values.get("property") @builtins.property def yet_anoter_one(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"yet_anoter_one\\") + """ + return self._values.get("yet_anoter_one") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64406,95 +63434,95 @@ class SmellyStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"SmellyStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "SmellyStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SomeTypeJsii976\\"): - \\"\\"\\" +class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(SomeTypeJsii976, self, []) - @jsii.member(jsii_name=\\"returnAnonymous\\") + @jsii.member(jsii_name="returnAnonymous") @builtins.classmethod def return_anonymous(cls) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"returnAnonymous\\", []) + """ + return jsii.sinvoke(cls, "returnAnonymous", []) - @jsii.member(jsii_name=\\"returnReturn\\") + @jsii.member(jsii_name="returnReturn") @builtins.classmethod - def return_return(cls) -> \\"IReturnJsii976\\": - \\"\\"\\" + def return_return(cls) -> "IReturnJsii976": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"returnReturn\\", []) + """ + return jsii.sinvoke(cls, "returnReturn", []) -class StableClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StableClass\\"): +class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"): def __init__( self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None ) -> None: - \\"\\"\\" + """ :param readonly_string: - :param mutable_number: - - \\"\\"\\" + """ jsii.create(StableClass, self, [readonly_string, mutable_number]) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self) -> None: - return jsii.invoke(self, \\"method\\", []) + return jsii.invoke(self, "method", []) @builtins.property - @jsii.member(jsii_name=\\"readonlyProperty\\") + @jsii.member(jsii_name="readonlyProperty") def readonly_property(self) -> str: - return jsii.get(self, \\"readonlyProperty\\") + return jsii.get(self, "readonlyProperty") @builtins.property - @jsii.member(jsii_name=\\"mutableProperty\\") + @jsii.member(jsii_name="mutableProperty") def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, \\"mutableProperty\\") + return jsii.get(self, "mutableProperty") @mutable_property.setter def mutable_property(self, value: typing.Optional[jsii.Number]) -> None: - jsii.set(self, \\"mutableProperty\\", value) + jsii.set(self, "mutableProperty", value) -@jsii.enum(jsii_type=\\"jsii-calc.StableEnum\\") +@jsii.enum(jsii_type="jsii-calc.StableEnum") class StableEnum(enum.Enum): - OPTION_A = \\"OPTION_A\\" - OPTION_B = \\"OPTION_B\\" + OPTION_A = "OPTION_A" + OPTION_B = "OPTION_B" @jsii.data_type( - jsii_type=\\"jsii-calc.StableStruct\\", + jsii_type="jsii-calc.StableStruct", jsii_struct_bases=[], - name_mapping={\\"readonly_property\\": \\"readonlyProperty\\"}, + name_mapping={"readonly_property": "readonlyProperty"}, ) class StableStruct: def __init__(self, *, readonly_property: str) -> None: - \\"\\"\\" + """ :param readonly_property: - \\"\\"\\" + """ self._values = { - \\"readonly_property\\": readonly_property, + "readonly_property": readonly_property, } @builtins.property def readonly_property(self) -> str: - return self._values.get(\\"readonly_property\\") + return self._values.get("readonly_property") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64503,214 +63531,214 @@ class StableStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"StableStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StableStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class StaticContext(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StaticContext\\"): - \\"\\"\\"This is used to validate the ability to use \`\`this\`\` from within a static context. +class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"): + """This is used to validate the ability to use \`\`this\`\` from within a static context. https://github.com/awslabs/aws-cdk/issues/2304 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"canAccessStaticContext\\") + @jsii.member(jsii_name="canAccessStaticContext") @builtins.classmethod def can_access_static_context(cls) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"canAccessStaticContext\\", []) + """ + return jsii.sinvoke(cls, "canAccessStaticContext", []) @jsii.python.classproperty - @jsii.member(jsii_name=\\"staticVariable\\") + @jsii.member(jsii_name="staticVariable") def static_variable(cls) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"staticVariable\\") + """ + return jsii.sget(cls, "staticVariable") @static_variable.setter def static_variable(cls, value: bool) -> None: - jsii.sset(cls, \\"staticVariable\\", value) + jsii.sset(cls, "staticVariable", value) -class Statics(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Statics\\"): - \\"\\"\\" +class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, value: str) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(Statics, self, [value]) - @jsii.member(jsii_name=\\"staticMethod\\") + @jsii.member(jsii_name="staticMethod") @builtins.classmethod def static_method(cls, name: str) -> str: - \\"\\"\\"Jsdocs for static method. + """Jsdocs for static method. :param name: The name of the person to say hello to. stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"staticMethod\\", [name]) + """ + return jsii.sinvoke(cls, "staticMethod", [name]) - @jsii.member(jsii_name=\\"justMethod\\") + @jsii.member(jsii_name="justMethod") def just_method(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"justMethod\\", []) + """ + return jsii.invoke(self, "justMethod", []) @jsii.python.classproperty - @jsii.member(jsii_name=\\"BAR\\") + @jsii.member(jsii_name="BAR") def BAR(cls) -> jsii.Number: - \\"\\"\\"Constants may also use all-caps. + """Constants may also use all-caps. stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"BAR\\") + """ + return jsii.sget(cls, "BAR") @jsii.python.classproperty - @jsii.member(jsii_name=\\"ConstObj\\") - def CONST_OBJ(cls) -> \\"DoubleTrouble\\": - \\"\\"\\" + @jsii.member(jsii_name="ConstObj") + def CONST_OBJ(cls) -> "DoubleTrouble": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"ConstObj\\") + """ + return jsii.sget(cls, "ConstObj") @jsii.python.classproperty - @jsii.member(jsii_name=\\"Foo\\") + @jsii.member(jsii_name="Foo") def FOO(cls) -> str: - \\"\\"\\"Jsdocs for static property. + """Jsdocs for static property. stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"Foo\\") + """ + return jsii.sget(cls, "Foo") @jsii.python.classproperty - @jsii.member(jsii_name=\\"zooBar\\") + @jsii.member(jsii_name="zooBar") def ZOO_BAR(cls) -> typing.Mapping[str, str]: - \\"\\"\\"Constants can also use camelCase. + """Constants can also use camelCase. stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"zooBar\\") + """ + return jsii.sget(cls, "zooBar") @jsii.python.classproperty - @jsii.member(jsii_name=\\"instance\\") - def instance(cls) -> \\"Statics\\": - \\"\\"\\"Jsdocs for static getter. + @jsii.member(jsii_name="instance") + def instance(cls) -> "Statics": + """Jsdocs for static getter. Jsdocs for static setter. stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"instance\\") + """ + return jsii.sget(cls, "instance") @instance.setter - def instance(cls, value: \\"Statics\\") -> None: - jsii.sset(cls, \\"instance\\", value) + def instance(cls, value: "Statics") -> None: + jsii.sset(cls, "instance", value) @jsii.python.classproperty - @jsii.member(jsii_name=\\"nonConstStatic\\") + @jsii.member(jsii_name="nonConstStatic") def non_const_static(cls) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"nonConstStatic\\") + """ + return jsii.sget(cls, "nonConstStatic") @non_const_static.setter def non_const_static(cls, value: jsii.Number) -> None: - jsii.sset(cls, \\"nonConstStatic\\", value) + jsii.sset(cls, "nonConstStatic", value) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") -@jsii.enum(jsii_type=\\"jsii-calc.StringEnum\\") +@jsii.enum(jsii_type="jsii-calc.StringEnum") class StringEnum(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - A = \\"A\\" - \\"\\"\\" + A = "A" + """ stability :stability: experimental - \\"\\"\\" - B = \\"B\\" - \\"\\"\\" + """ + B = "B" + """ stability :stability: experimental - \\"\\"\\" - C = \\"C\\" - \\"\\"\\" + """ + C = "C" + """ stability :stability: experimental - \\"\\"\\" + """ -class StripInternal(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StripInternal\\"): - \\"\\"\\" +class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(StripInternal, self, []) @builtins.property - @jsii.member(jsii_name=\\"youSeeMe\\") + @jsii.member(jsii_name="youSeeMe") def you_see_me(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"youSeeMe\\") + """ + return jsii.get(self, "youSeeMe") @you_see_me.setter def you_see_me(self, value: str) -> None: - jsii.set(self, \\"youSeeMe\\", value) + jsii.set(self, "youSeeMe", value) @jsii.data_type( - jsii_type=\\"jsii-calc.StructA\\", + jsii_type="jsii-calc.StructA", jsii_struct_bases=[], name_mapping={ - \\"required_string\\": \\"requiredString\\", - \\"optional_number\\": \\"optionalNumber\\", - \\"optional_string\\": \\"optionalString\\", + "required_string": "requiredString", + "optional_number": "optionalNumber", + "optional_string": "optionalString", }, ) class StructA: @@ -64721,7 +63749,7 @@ class StructA: optional_number: typing.Optional[jsii.Number] = None, optional_string: typing.Optional[str] = None, ) -> None: - \\"\\"\\"We can serialize and deserialize structs without silently ignoring optional fields. + """We can serialize and deserialize structs without silently ignoring optional fields. :param required_string: :param optional_number: @@ -64729,38 +63757,38 @@ class StructA: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"required_string\\": required_string, + "required_string": required_string, } if optional_number is not None: - self._values[\\"optional_number\\"] = optional_number + self._values["optional_number"] = optional_number if optional_string is not None: - self._values[\\"optional_string\\"] = optional_string + self._values["optional_string"] = optional_string @builtins.property def required_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"required_string\\") + """ + return self._values.get("required_string") @builtins.property def optional_number(self) -> typing.Optional[jsii.Number]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_number\\") + """ + return self._values.get("optional_number") @builtins.property def optional_string(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_string\\") + """ + return self._values.get("optional_string") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64769,18 +63797,18 @@ class StructA: return not (rhs == self) def __repr__(self) -> str: - return \\"StructA(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructA(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.StructB\\", + jsii_type="jsii-calc.StructB", jsii_struct_bases=[], name_mapping={ - \\"required_string\\": \\"requiredString\\", - \\"optional_boolean\\": \\"optionalBoolean\\", - \\"optional_struct_a\\": \\"optionalStructA\\", + "required_string": "requiredString", + "optional_boolean": "optionalBoolean", + "optional_struct_a": "optionalStructA", }, ) class StructB: @@ -64789,9 +63817,9 @@ class StructB: *, required_string: str, optional_boolean: typing.Optional[bool] = None, - optional_struct_a: typing.Optional[\\"StructA\\"] = None, + optional_struct_a: typing.Optional["StructA"] = None, ) -> None: - \\"\\"\\"This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. :param required_string: :param optional_boolean: @@ -64799,40 +63827,40 @@ class StructB: stability :stability: experimental - \\"\\"\\" + """ if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) self._values = { - \\"required_string\\": required_string, + "required_string": required_string, } if optional_boolean is not None: - self._values[\\"optional_boolean\\"] = optional_boolean + self._values["optional_boolean"] = optional_boolean if optional_struct_a is not None: - self._values[\\"optional_struct_a\\"] = optional_struct_a + self._values["optional_struct_a"] = optional_struct_a @builtins.property def required_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"required_string\\") + """ + return self._values.get("required_string") @builtins.property def optional_boolean(self) -> typing.Optional[bool]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_boolean\\") + """ + return self._values.get("optional_boolean") @builtins.property - def optional_struct_a(self) -> typing.Optional[\\"StructA\\"]: - \\"\\"\\" + def optional_struct_a(self) -> typing.Optional["StructA"]: + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional_struct_a\\") + """ + return self._values.get("optional_struct_a") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64841,19 +63869,19 @@ class StructB: return not (rhs == self) def __repr__(self) -> str: - return \\"StructB(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructB(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.StructParameterType\\", + jsii_type="jsii-calc.StructParameterType", jsii_struct_bases=[], - name_mapping={\\"scope\\": \\"scope\\", \\"props\\": \\"props\\"}, + name_mapping={"scope": "scope", "props": "props"}, ) class StructParameterType: def __init__(self, *, scope: str, props: typing.Optional[bool] = None) -> None: - \\"\\"\\"Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. See: https://github.com/aws/aws-cdk/issues/4302 @@ -64862,28 +63890,28 @@ class StructParameterType: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"scope\\": scope, + "scope": scope, } if props is not None: - self._values[\\"props\\"] = props + self._values["props"] = props @builtins.property def scope(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"scope\\") + """ + return self._values.get("scope") @builtins.property def props(self) -> typing.Optional[bool]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"props\\") + """ + return self._values.get("props") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -64892,94 +63920,94 @@ class StructParameterType: return not (rhs == self) def __repr__(self) -> str: - return \\"StructParameterType(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructParameterType(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class StructPassing(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StructPassing\\"): - \\"\\"\\"Just because we can.\\"\\"\\" +class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"): + """Just because we can.""" def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(StructPassing, self, []) - @jsii.member(jsii_name=\\"howManyVarArgsDidIPass\\") + @jsii.member(jsii_name="howManyVarArgsDidIPass") @builtins.classmethod def how_many_var_args_did_i_pass( - cls, _positional: jsii.Number, *inputs: \\"TopLevelStruct\\" + cls, _positional: jsii.Number, *inputs: "TopLevelStruct" ) -> jsii.Number: - \\"\\"\\" + """ :param _positional: - :param inputs: - - \\"\\"\\" - return jsii.sinvoke(cls, \\"howManyVarArgsDidIPass\\", [_positional, *inputs]) + """ + return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) - @jsii.member(jsii_name=\\"roundTrip\\") + @jsii.member(jsii_name="roundTrip") @builtins.classmethod def round_trip( cls, _positional: jsii.Number, *, required: str, - second_level: typing.Union[jsii.Number, \\"SecondLevelStruct\\"], + second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str] = None, - ) -> \\"TopLevelStruct\\": - \\"\\"\\" + ) -> "TopLevelStruct": + """ :param _positional: - :param required: This is a required field. :param second_level: A union to really stress test our serialization. :param optional: You don't have to pass this. - \\"\\"\\" + """ input = TopLevelStruct( required=required, second_level=second_level, optional=optional ) - return jsii.sinvoke(cls, \\"roundTrip\\", [_positional, input]) + return jsii.sinvoke(cls, "roundTrip", [_positional, input]) class StructUnionConsumer( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.StructUnionConsumer\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"isStructA\\") + @jsii.member(jsii_name="isStructA") @builtins.classmethod - def is_struct_a(cls, struct: typing.Union[\\"StructA\\", \\"StructB\\"]) -> bool: - \\"\\"\\" + def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ :param struct: - stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"isStructA\\", [struct]) + """ + return jsii.sinvoke(cls, "isStructA", [struct]) - @jsii.member(jsii_name=\\"isStructB\\") + @jsii.member(jsii_name="isStructB") @builtins.classmethod - def is_struct_b(cls, struct: typing.Union[\\"StructA\\", \\"StructB\\"]) -> bool: - \\"\\"\\" + def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ :param struct: - stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"isStructB\\", [struct]) + """ + return jsii.sinvoke(cls, "isStructB", [struct]) @jsii.data_type( - jsii_type=\\"jsii-calc.StructWithJavaReservedWords\\", + jsii_type="jsii-calc.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={ - \\"default\\": \\"default\\", - \\"assert_\\": \\"assert\\", - \\"result\\": \\"result\\", - \\"that\\": \\"that\\", + "default": "default", + "assert_": "assert", + "result": "result", + "that": "that", }, ) class StructWithJavaReservedWords: @@ -64991,7 +64019,7 @@ class StructWithJavaReservedWords: result: typing.Optional[str] = None, that: typing.Optional[str] = None, ) -> None: - \\"\\"\\" + """ :param default: :param assert_: :param result: @@ -64999,48 +64027,48 @@ class StructWithJavaReservedWords: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"default\\": default, + "default": default, } if assert_ is not None: - self._values[\\"assert_\\"] = assert_ + self._values["assert_"] = assert_ if result is not None: - self._values[\\"result\\"] = result + self._values["result"] = result if that is not None: - self._values[\\"that\\"] = that + self._values["that"] = that @builtins.property def default(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"default\\") + """ + return self._values.get("default") @builtins.property def assert_(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"assert_\\") + """ + return self._values.get("assert_") @builtins.property def result(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"result\\") + """ + return self._values.get("result") @builtins.property def that(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"that\\") + """ + return self._values.get("that") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -65049,93 +64077,93 @@ class StructWithJavaReservedWords: return not (rhs == self) def __repr__(self) -> str: - return \\"StructWithJavaReservedWords(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructWithJavaReservedWords(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class Sum( - _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Sum\\" + _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum" ): - \\"\\"\\"An operation that sums multiple values. + """An operation that sums multiple values. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Sum, self, []) @builtins.property - @jsii.member(jsii_name=\\"expression\\") + @jsii.member(jsii_name="expression") def expression(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The expression that this operation consists of. + """The expression that this operation consists of. Must be implemented by derived classes. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"expression\\") + """ + return jsii.get(self, "expression") @builtins.property - @jsii.member(jsii_name=\\"parts\\") + @jsii.member(jsii_name="parts") def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: - \\"\\"\\"The parts to sum. + """The parts to sum. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"parts\\") + """ + return jsii.get(self, "parts") @parts.setter def parts(self, value: typing.List[scope.jsii_calc_lib.Value]) -> None: - jsii.set(self, \\"parts\\", value) + jsii.set(self, "parts", value) @jsii.data_type( - jsii_type=\\"jsii-calc.SupportsNiceJavaBuilderProps\\", + jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], - name_mapping={\\"bar\\": \\"bar\\", \\"id\\": \\"id\\"}, + name_mapping={"bar": "bar", "id": "id"}, ) class SupportsNiceJavaBuilderProps: def __init__(self, *, bar: jsii.Number, id: typing.Optional[str] = None) -> None: - \\"\\"\\" + """ :param bar: Some number, like 42. :param id: An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. But here we are, doing it like we didn't care. stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"bar\\": bar, + "bar": bar, } if id is not None: - self._values[\\"id\\"] = id + self._values["id"] = id @builtins.property def bar(self) -> jsii.Number: - \\"\\"\\"Some number, like 42. + """Some number, like 42. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"bar\\") + """ + return self._values.get("bar") @builtins.property def id(self) -> typing.Optional[str]: - \\"\\"\\"An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. + """An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. But here we are, doing it like we didn't care. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"id\\") + """ + return self._values.get("id") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -65144,272 +64172,272 @@ class SupportsNiceJavaBuilderProps: return not (rhs == self) def __repr__(self) -> str: - return \\"SupportsNiceJavaBuilderProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "SupportsNiceJavaBuilderProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) class SupportsNiceJavaBuilderWithRequiredProps( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps\\", + jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", ): - \\"\\"\\"We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. stability :stability: experimental - \\"\\"\\" + """ def __init__( self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str] = None ) -> None: - \\"\\"\\" + """ :param id_: some identifier of your choice. :param bar: Some number, like 42. :param id: An \`\`id\`\` field here is terrible API design, because the constructor of \`\`SupportsNiceJavaBuilder\`\` already has a parameter named \`\`id\`\`. But here we are, doing it like we didn't care. stability :stability: experimental - \\"\\"\\" + """ props = SupportsNiceJavaBuilderProps(bar=bar, id=id) jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) @builtins.property - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"bar\\") + """ + return jsii.get(self, "bar") @builtins.property - @jsii.member(jsii_name=\\"id\\") + @jsii.member(jsii_name="id") def id(self) -> jsii.Number: - \\"\\"\\"some identifier of your choice. + """some identifier of your choice. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"id\\") + """ + return jsii.get(self, "id") @builtins.property - @jsii.member(jsii_name=\\"propId\\") + @jsii.member(jsii_name="propId") def prop_id(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"propId\\") + """ + return jsii.get(self, "propId") class SyncVirtualMethods( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.SyncVirtualMethods\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(SyncVirtualMethods, self, []) - @jsii.member(jsii_name=\\"callerIsAsync\\") + @jsii.member(jsii_name="callerIsAsync") def caller_is_async(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"callerIsAsync\\", []) + """ + return jsii.ainvoke(self, "callerIsAsync", []) - @jsii.member(jsii_name=\\"callerIsMethod\\") + @jsii.member(jsii_name="callerIsMethod") def caller_is_method(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"callerIsMethod\\", []) + """ + return jsii.invoke(self, "callerIsMethod", []) - @jsii.member(jsii_name=\\"modifyOtherProperty\\") + @jsii.member(jsii_name="modifyOtherProperty") def modify_other_property(self, value: str) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"modifyOtherProperty\\", [value]) + """ + return jsii.invoke(self, "modifyOtherProperty", [value]) - @jsii.member(jsii_name=\\"modifyValueOfTheProperty\\") + @jsii.member(jsii_name="modifyValueOfTheProperty") def modify_value_of_the_property(self, value: str) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"modifyValueOfTheProperty\\", [value]) + """ + return jsii.invoke(self, "modifyValueOfTheProperty", [value]) - @jsii.member(jsii_name=\\"readA\\") + @jsii.member(jsii_name="readA") def read_a(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"readA\\", []) + """ + return jsii.invoke(self, "readA", []) - @jsii.member(jsii_name=\\"retrieveOtherProperty\\") + @jsii.member(jsii_name="retrieveOtherProperty") def retrieve_other_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"retrieveOtherProperty\\", []) + """ + return jsii.invoke(self, "retrieveOtherProperty", []) - @jsii.member(jsii_name=\\"retrieveReadOnlyProperty\\") + @jsii.member(jsii_name="retrieveReadOnlyProperty") def retrieve_read_only_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"retrieveReadOnlyProperty\\", []) + """ + return jsii.invoke(self, "retrieveReadOnlyProperty", []) - @jsii.member(jsii_name=\\"retrieveValueOfTheProperty\\") + @jsii.member(jsii_name="retrieveValueOfTheProperty") def retrieve_value_of_the_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"retrieveValueOfTheProperty\\", []) + """ + return jsii.invoke(self, "retrieveValueOfTheProperty", []) - @jsii.member(jsii_name=\\"virtualMethod\\") + @jsii.member(jsii_name="virtualMethod") def virtual_method(self, n: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param n: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"virtualMethod\\", [n]) + """ + return jsii.invoke(self, "virtualMethod", [n]) - @jsii.member(jsii_name=\\"writeA\\") + @jsii.member(jsii_name="writeA") def write_a(self, value: jsii.Number) -> None: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"writeA\\", [value]) + """ + return jsii.invoke(self, "writeA", [value]) @builtins.property - @jsii.member(jsii_name=\\"readonlyProperty\\") + @jsii.member(jsii_name="readonlyProperty") def readonly_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readonlyProperty\\") + """ + return jsii.get(self, "readonlyProperty") @builtins.property - @jsii.member(jsii_name=\\"a\\") + @jsii.member(jsii_name="a") def a(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"a\\") + """ + return jsii.get(self, "a") @a.setter def a(self, value: jsii.Number) -> None: - jsii.set(self, \\"a\\", value) + jsii.set(self, "a", value) @builtins.property - @jsii.member(jsii_name=\\"callerIsProperty\\") + @jsii.member(jsii_name="callerIsProperty") def caller_is_property(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"callerIsProperty\\") + """ + return jsii.get(self, "callerIsProperty") @caller_is_property.setter def caller_is_property(self, value: jsii.Number) -> None: - jsii.set(self, \\"callerIsProperty\\", value) + jsii.set(self, "callerIsProperty", value) @builtins.property - @jsii.member(jsii_name=\\"otherProperty\\") + @jsii.member(jsii_name="otherProperty") def other_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"otherProperty\\") + """ + return jsii.get(self, "otherProperty") @other_property.setter def other_property(self, value: str) -> None: - jsii.set(self, \\"otherProperty\\", value) + jsii.set(self, "otherProperty", value) @builtins.property - @jsii.member(jsii_name=\\"theProperty\\") + @jsii.member(jsii_name="theProperty") def the_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"theProperty\\") + """ + return jsii.get(self, "theProperty") @the_property.setter def the_property(self, value: str) -> None: - jsii.set(self, \\"theProperty\\", value) + jsii.set(self, "theProperty", value) @builtins.property - @jsii.member(jsii_name=\\"valueOfOtherProperty\\") + @jsii.member(jsii_name="valueOfOtherProperty") def value_of_other_property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"valueOfOtherProperty\\") + """ + return jsii.get(self, "valueOfOtherProperty") @value_of_other_property.setter def value_of_other_property(self, value: str) -> None: - jsii.set(self, \\"valueOfOtherProperty\\", value) + jsii.set(self, "valueOfOtherProperty", value) -class Thrower(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Thrower\\"): - \\"\\"\\" +class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Thrower, self, []) - @jsii.member(jsii_name=\\"throwError\\") + @jsii.member(jsii_name="throwError") def throw_error(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"throwError\\", []) + """ + return jsii.invoke(self, "throwError", []) @jsii.data_type( - jsii_type=\\"jsii-calc.TopLevelStruct\\", + jsii_type="jsii-calc.TopLevelStruct", jsii_struct_bases=[], name_mapping={ - \\"required\\": \\"required\\", - \\"second_level\\": \\"secondLevel\\", - \\"optional\\": \\"optional\\", + "required": "required", + "second_level": "secondLevel", + "optional": "optional", }, ) class TopLevelStruct: @@ -65417,50 +64445,50 @@ class TopLevelStruct: self, *, required: str, - second_level: typing.Union[jsii.Number, \\"SecondLevelStruct\\"], + second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str] = None, ) -> None: - \\"\\"\\" + """ :param required: This is a required field. :param second_level: A union to really stress test our serialization. :param optional: You don't have to pass this. stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"required\\": required, - \\"second_level\\": second_level, + "required": required, + "second_level": second_level, } if optional is not None: - self._values[\\"optional\\"] = optional + self._values["optional"] = optional @builtins.property def required(self) -> str: - \\"\\"\\"This is a required field. + """This is a required field. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"required\\") + """ + return self._values.get("required") @builtins.property - def second_level(self) -> typing.Union[jsii.Number, \\"SecondLevelStruct\\"]: - \\"\\"\\"A union to really stress test our serialization. + def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: + """A union to really stress test our serialization. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"second_level\\") + """ + return self._values.get("second_level") @builtins.property def optional(self) -> typing.Optional[str]: - \\"\\"\\"You don't have to pass this. + """You don't have to pass this. stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"optional\\") + """ + return self._values.get("optional") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -65469,63 +64497,63 @@ class TopLevelStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"TopLevelStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "TopLevelStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) -class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UmaskCheck\\"): - \\"\\"\\"Checks the current file permissions are cool (no funky UMASK down-scoping happened). +class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UmaskCheck"): + """Checks the current file permissions are cool (no funky UMASK down-scoping happened). see :see: https://github.com/aws/jsii/issues/1765 stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"mode\\") + @jsii.member(jsii_name="mode") @builtins.classmethod def mode(cls) -> jsii.Number: - \\"\\"\\"This should return 0o644 (-rw-r--r--). + """This should return 0o644 (-rw-r--r--). stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"mode\\", []) + """ + return jsii.sinvoke(cls, "mode", []) class UnaryOperation( scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.UnaryOperation\\", + jsii_type="jsii-calc.UnaryOperation", ): - \\"\\"\\"An operation on a single operand. + """An operation on a single operand. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _UnaryOperationProxy def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: - \\"\\"\\" + """ :param operand: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(UnaryOperation, self, [operand]) @builtins.property - @jsii.member(jsii_name=\\"operand\\") + @jsii.member(jsii_name="operand") def operand(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"operand\\") + """ + return jsii.get(self, "operand") class _UnaryOperationProxy( @@ -65535,45 +64563,45 @@ class _UnaryOperationProxy( @jsii.data_type( - jsii_type=\\"jsii-calc.UnionProperties\\", + jsii_type="jsii-calc.UnionProperties", jsii_struct_bases=[], - name_mapping={\\"bar\\": \\"bar\\", \\"foo\\": \\"foo\\"}, + name_mapping={"bar": "bar", "foo": "foo"}, ) class UnionProperties: def __init__( self, *, - bar: typing.Union[str, jsii.Number, \\"AllTypes\\"], + bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[str, jsii.Number]] = None, ) -> None: - \\"\\"\\" + """ :param bar: :param foo: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"bar\\": bar, + "bar": bar, } if foo is not None: - self._values[\\"foo\\"] = foo + self._values["foo"] = foo @builtins.property - def bar(self) -> typing.Union[str, jsii.Number, \\"AllTypes\\"]: - \\"\\"\\" + def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"bar\\") + """ + return self._values.get("bar") @builtins.property def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"foo\\") + """ + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -65582,278 +64610,278 @@ class UnionProperties: return not (rhs == self) def __repr__(self) -> str: - return \\"UnionProperties(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "UnionProperties(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(scope.jsii_calc_lib.custom_submodule_name.IReflectable) class UpcasingReflectable( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UpcasingReflectable\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable" ): - \\"\\"\\"Ensures submodule-imported types from dependencies can be used correctly. + """Ensures submodule-imported types from dependencies can be used correctly. stability :stability: experimental - \\"\\"\\" + """ def __init__(self, delegate: typing.Mapping[str, typing.Any]) -> None: - \\"\\"\\" + """ :param delegate: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(UpcasingReflectable, self, [delegate]) @jsii.python.classproperty - @jsii.member(jsii_name=\\"reflector\\") + @jsii.member(jsii_name="reflector") def REFLECTOR(cls) -> scope.jsii_calc_lib.custom_submodule_name.Reflector: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"reflector\\") + """ + return jsii.sget(cls, "reflector") @builtins.property - @jsii.member(jsii_name=\\"entries\\") + @jsii.member(jsii_name="entries") def entries( self, ) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"entries\\") + """ + return jsii.get(self, "entries") class UseBundledDependency( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UseBundledDependency\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(UseBundledDependency, self, []) - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> typing.Any: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"value\\", []) + """ + return jsii.invoke(self, "value", []) -class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UseCalcBase\\"): - \\"\\"\\"Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. +class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"): + """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(UseCalcBase, self, []) - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> scope.jsii_calc_base.Base: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) class UsesInterfaceWithProperties( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.UsesInterfaceWithProperties\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, obj: \\"IInterfaceWithProperties\\") -> None: - \\"\\"\\" + def __init__(self, obj: "IInterfaceWithProperties") -> None: + """ :param obj: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(UsesInterfaceWithProperties, self, [obj]) - @jsii.member(jsii_name=\\"justRead\\") + @jsii.member(jsii_name="justRead") def just_read(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"justRead\\", []) + """ + return jsii.invoke(self, "justRead", []) - @jsii.member(jsii_name=\\"readStringAndNumber\\") - def read_string_and_number(self, ext: \\"IInterfaceWithPropertiesExtension\\") -> str: - \\"\\"\\" + @jsii.member(jsii_name="readStringAndNumber") + def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: + """ :param ext: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"readStringAndNumber\\", [ext]) + """ + return jsii.invoke(self, "readStringAndNumber", [ext]) - @jsii.member(jsii_name=\\"writeAndRead\\") + @jsii.member(jsii_name="writeAndRead") def write_and_read(self, value: str) -> str: - \\"\\"\\" + """ :param value: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"writeAndRead\\", [value]) + """ + return jsii.invoke(self, "writeAndRead", [value]) @builtins.property - @jsii.member(jsii_name=\\"obj\\") - def obj(self) -> \\"IInterfaceWithProperties\\": - \\"\\"\\" + @jsii.member(jsii_name="obj") + def obj(self) -> "IInterfaceWithProperties": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"obj\\") + """ + return jsii.get(self, "obj") -class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VariadicInvoker\\"): - \\"\\"\\" +class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvoker"): + """ stability :stability: experimental - \\"\\"\\" + """ - def __init__(self, method: \\"VariadicMethod\\") -> None: - \\"\\"\\" + def __init__(self, method: "VariadicMethod") -> None: + """ :param method: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(VariadicInvoker, self, [method]) - @jsii.member(jsii_name=\\"asArray\\") + @jsii.member(jsii_name="asArray") def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: - \\"\\"\\" + """ :param values: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"asArray\\", [*values]) + """ + return jsii.invoke(self, "asArray", [*values]) -class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VariadicMethod\\"): - \\"\\"\\" +class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMethod"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, *prefix: jsii.Number) -> None: - \\"\\"\\" + """ :param prefix: a prefix that will be use for all values returned by \`\`#asArray\`\`. stability :stability: experimental - \\"\\"\\" + """ jsii.create(VariadicMethod, self, [*prefix]) - @jsii.member(jsii_name=\\"asArray\\") + @jsii.member(jsii_name="asArray") def as_array( self, first: jsii.Number, *others: jsii.Number ) -> typing.List[jsii.Number]: - \\"\\"\\" + """ :param first: the first element of the array to be returned (after the \`\`prefix\`\` provided at construction time). :param others: other elements to be included in the array. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"asArray\\", [first, *others]) + """ + return jsii.invoke(self, "asArray", [first, *others]) class VirtualMethodPlayground( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.VirtualMethodPlayground\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(VirtualMethodPlayground, self, []) - @jsii.member(jsii_name=\\"overrideMeAsync\\") + @jsii.member(jsii_name="overrideMeAsync") def override_me_async(self, index: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param index: - stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"overrideMeAsync\\", [index]) + """ + return jsii.ainvoke(self, "overrideMeAsync", [index]) - @jsii.member(jsii_name=\\"overrideMeSync\\") + @jsii.member(jsii_name="overrideMeSync") def override_me_sync(self, index: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param index: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"overrideMeSync\\", [index]) + """ + return jsii.invoke(self, "overrideMeSync", [index]) - @jsii.member(jsii_name=\\"parallelSumAsync\\") + @jsii.member(jsii_name="parallelSumAsync") def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param count: - stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"parallelSumAsync\\", [count]) + """ + return jsii.ainvoke(self, "parallelSumAsync", [count]) - @jsii.member(jsii_name=\\"serialSumAsync\\") + @jsii.member(jsii_name="serialSumAsync") def serial_sum_async(self, count: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param count: - stability :stability: experimental - \\"\\"\\" - return jsii.ainvoke(self, \\"serialSumAsync\\", [count]) + """ + return jsii.ainvoke(self, "serialSumAsync", [count]) - @jsii.member(jsii_name=\\"sumSync\\") + @jsii.member(jsii_name="sumSync") def sum_sync(self, count: jsii.Number) -> jsii.Number: - \\"\\"\\" + """ :param count: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"sumSync\\", [count]) + """ + return jsii.invoke(self, "sumSync", [count]) class VoidCallback( - metaclass=jsii.JSIIAbstractClass, jsii_type=\\"jsii-calc.VoidCallback\\" + metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback" ): - \\"\\"\\"This test is used to validate the runtimes can return correctly from a void callback. + """This test is used to validate the runtimes can return correctly from a void callback. - Implement \`\`overrideMe\`\` (method does not have to do anything). - Invoke \`\`callMe\`\` @@ -65861,290 +64889,290 @@ class VoidCallback( stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _VoidCallbackProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(VoidCallback, self, []) - @jsii.member(jsii_name=\\"callMe\\") + @jsii.member(jsii_name="callMe") def call_me(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"callMe\\", []) + """ + return jsii.invoke(self, "callMe", []) - @jsii.member(jsii_name=\\"overrideMe\\") + @jsii.member(jsii_name="overrideMe") @abc.abstractmethod def _override_me(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... @builtins.property - @jsii.member(jsii_name=\\"methodWasCalled\\") + @jsii.member(jsii_name="methodWasCalled") def method_was_called(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"methodWasCalled\\") + """ + return jsii.get(self, "methodWasCalled") class _VoidCallbackProxy(VoidCallback): - @jsii.member(jsii_name=\\"overrideMe\\") + @jsii.member(jsii_name="overrideMe") def _override_me(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"overrideMe\\", []) + """ + return jsii.invoke(self, "overrideMe", []) class WithPrivatePropertyInConstructor( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.WithPrivatePropertyInConstructor\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor" ): - \\"\\"\\"Verifies that private property declarations in constructor arguments are hidden. + """Verifies that private property declarations in constructor arguments are hidden. stability :stability: experimental - \\"\\"\\" + """ def __init__(self, private_field: typing.Optional[str] = None) -> None: - \\"\\"\\" + """ :param private_field: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) @builtins.property - @jsii.member(jsii_name=\\"success\\") + @jsii.member(jsii_name="success") def success(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"success\\") + """ + return jsii.get(self, "success") @jsii.implements(IInterfaceImplementedByAbstractClass) class AbstractClass( AbstractClassBase, metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.AbstractClass\\", + jsii_type="jsii-calc.AbstractClass", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _AbstractClassProxy def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AbstractClass, self, []) - @jsii.member(jsii_name=\\"abstractMethod\\") + @jsii.member(jsii_name="abstractMethod") @abc.abstractmethod def abstract_method(self, name: str) -> str: - \\"\\"\\" + """ :param name: - stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"nonAbstractMethod\\") + @jsii.member(jsii_name="nonAbstractMethod") def non_abstract_method(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"nonAbstractMethod\\", []) + """ + return jsii.invoke(self, "nonAbstractMethod", []) @builtins.property - @jsii.member(jsii_name=\\"propFromInterface\\") + @jsii.member(jsii_name="propFromInterface") def prop_from_interface(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"propFromInterface\\") + """ + return jsii.get(self, "propFromInterface") class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): - @jsii.member(jsii_name=\\"abstractMethod\\") + @jsii.member(jsii_name="abstractMethod") def abstract_method(self, name: str) -> str: - \\"\\"\\" + """ :param name: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"abstractMethod\\", [name]) + """ + return jsii.invoke(self, "abstractMethod", [name]) -class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Add\\"): - \\"\\"\\"The \\"+\\" binary operation. +class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): + """The "+" binary operation. stability :stability: experimental - \\"\\"\\" + """ def __init__( self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value ) -> None: - \\"\\"\\"Creates a BinaryOperation. + """Creates a BinaryOperation. :param lhs: Left-hand side operand. :param rhs: Right-hand side operand. stability :stability: experimental - \\"\\"\\" + """ jsii.create(Add, self, [lhs, rhs]) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") @jsii.implements(IAnonymousImplementationProvider) class AnonymousImplementationProvider( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.AnonymousImplementationProvider\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(AnonymousImplementationProvider, self, []) - @jsii.member(jsii_name=\\"provideAsClass\\") - def provide_as_class(self) -> \\"Implementation\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"provideAsClass\\", []) + """ + return jsii.invoke(self, "provideAsClass", []) - @jsii.member(jsii_name=\\"provideAsInterface\\") - def provide_as_interface(self) -> \\"IAnonymouslyImplementMe\\": - \\"\\"\\" + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"provideAsInterface\\", []) + """ + return jsii.invoke(self, "provideAsInterface", []) @jsii.implements(IBell) -class Bell(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Bell\\"): - \\"\\"\\" +class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Bell, self, []) - @jsii.member(jsii_name=\\"ring\\") + @jsii.member(jsii_name="ring") def ring(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"ring\\", []) + """ + return jsii.invoke(self, "ring", []) @builtins.property - @jsii.member(jsii_name=\\"rung\\") + @jsii.member(jsii_name="rung") def rung(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"rung\\") + """ + return jsii.get(self, "rung") @rung.setter def rung(self, value: bool) -> None: - jsii.set(self, \\"rung\\", value) + jsii.set(self, "rung", value) @jsii.data_type( - jsii_type=\\"jsii-calc.ChildStruct982\\", + jsii_type="jsii-calc.ChildStruct982", jsii_struct_bases=[ParentStruct982], - name_mapping={\\"foo\\": \\"foo\\", \\"bar\\": \\"bar\\"}, + name_mapping={"foo": "foo", "bar": "bar"}, ) class ChildStruct982(ParentStruct982): def __init__(self, *, foo: str, bar: jsii.Number) -> None: - \\"\\"\\" + """ :param foo: :param bar: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, - \\"bar\\": bar, + "foo": foo, + "bar": bar, } @builtins.property def foo(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"foo\\") + """ + return self._values.get("foo") @builtins.property def bar(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"bar\\") + """ + return self._values.get("bar") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -66153,207 +65181,207 @@ class ChildStruct982(ParentStruct982): return not (rhs == self) def __repr__(self) -> str: - return \\"ChildStruct982(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "ChildStruct982(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(INonInternalInterface) class ClassThatImplementsTheInternalInterface( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ClassThatImplementsTheInternalInterface\\", + jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassThatImplementsTheInternalInterface, self, []) @builtins.property - @jsii.member(jsii_name=\\"a\\") + @jsii.member(jsii_name="a") def a(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"a\\") + """ + return jsii.get(self, "a") @a.setter def a(self, value: str) -> None: - jsii.set(self, \\"a\\", value) + jsii.set(self, "a", value) @builtins.property - @jsii.member(jsii_name=\\"b\\") + @jsii.member(jsii_name="b") def b(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"b\\") + """ + return jsii.get(self, "b") @b.setter def b(self, value: str) -> None: - jsii.set(self, \\"b\\", value) + jsii.set(self, "b", value) @builtins.property - @jsii.member(jsii_name=\\"c\\") + @jsii.member(jsii_name="c") def c(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"c\\") + """ + return jsii.get(self, "c") @c.setter def c(self, value: str) -> None: - jsii.set(self, \\"c\\", value) + jsii.set(self, "c", value) @builtins.property - @jsii.member(jsii_name=\\"d\\") + @jsii.member(jsii_name="d") def d(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"d\\") + """ + return jsii.get(self, "d") @d.setter def d(self, value: str) -> None: - jsii.set(self, \\"d\\", value) + jsii.set(self, "d", value) @jsii.implements(INonInternalInterface) class ClassThatImplementsThePrivateInterface( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ClassThatImplementsThePrivateInterface\\", + jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassThatImplementsThePrivateInterface, self, []) @builtins.property - @jsii.member(jsii_name=\\"a\\") + @jsii.member(jsii_name="a") def a(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"a\\") + """ + return jsii.get(self, "a") @a.setter def a(self, value: str) -> None: - jsii.set(self, \\"a\\", value) + jsii.set(self, "a", value) @builtins.property - @jsii.member(jsii_name=\\"b\\") + @jsii.member(jsii_name="b") def b(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"b\\") + """ + return jsii.get(self, "b") @b.setter def b(self, value: str) -> None: - jsii.set(self, \\"b\\", value) + jsii.set(self, "b", value) @builtins.property - @jsii.member(jsii_name=\\"c\\") + @jsii.member(jsii_name="c") def c(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"c\\") + """ + return jsii.get(self, "c") @c.setter def c(self, value: str) -> None: - jsii.set(self, \\"c\\", value) + jsii.set(self, "c", value) @builtins.property - @jsii.member(jsii_name=\\"e\\") + @jsii.member(jsii_name="e") def e(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"e\\") + """ + return jsii.get(self, "e") @e.setter def e(self, value: str) -> None: - jsii.set(self, \\"e\\", value) + jsii.set(self, "e", value) @jsii.implements(IInterfaceWithProperties) class ClassWithPrivateConstructorAndAutomaticProperties( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\", + jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", ): - \\"\\"\\"Class that implements interface properties automatically, but using a private constructor. + """Class that implements interface properties automatically, but using a private constructor. stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"create\\") + @jsii.member(jsii_name="create") @builtins.classmethod def create( cls, read_only_string: str, read_write_string: str - ) -> \\"ClassWithPrivateConstructorAndAutomaticProperties\\": - \\"\\"\\" + ) -> "ClassWithPrivateConstructorAndAutomaticProperties": + """ :param read_only_string: - :param read_write_string: - stability :stability: experimental - \\"\\"\\" - return jsii.sinvoke(cls, \\"create\\", [read_only_string, read_write_string]) + """ + return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) @builtins.property - @jsii.member(jsii_name=\\"readOnlyString\\") + @jsii.member(jsii_name="readOnlyString") def read_only_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readOnlyString\\") + """ + return jsii.get(self, "readOnlyString") @builtins.property - @jsii.member(jsii_name=\\"readWriteString\\") + @jsii.member(jsii_name="readWriteString") def read_write_string(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"readWriteString\\") + """ + return jsii.get(self, "readWriteString") @read_write_string.setter def read_write_string(self, value: str) -> None: - jsii.set(self, \\"readWriteString\\", value) + jsii.set(self, "readWriteString", value) -@jsii.interface(jsii_type=\\"jsii-calc.IFriendlyRandomGenerator\\") +@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") class IFriendlyRandomGenerator( IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -66364,279 +65392,279 @@ class _IFriendlyRandomGeneratorProxy( jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly), ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IFriendlyRandomGenerator\\" + __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" pass -@jsii.interface(jsii_type=\\"jsii-calc.IInterfaceThatShouldNotBeADataType\\") +@jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType") class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): - \\"\\"\\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceThatShouldNotBeADataTypeProxy @builtins.property - @jsii.member(jsii_name=\\"otherValue\\") + @jsii.member(jsii_name="otherValue") def other_value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): - \\"\\"\\"Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IInterfaceThatShouldNotBeADataType\\" + __jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType" @builtins.property - @jsii.member(jsii_name=\\"otherValue\\") + @jsii.member(jsii_name="otherValue") def other_value(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"otherValue\\") + """ + return jsii.get(self, "otherValue") -@jsii.interface(jsii_type=\\"jsii-calc.IJSII417Derived\\") +@jsii.interface(jsii_type="jsii-calc.IJSII417Derived") class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IJSII417DerivedProxy @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... - @jsii.member(jsii_name=\\"baz\\") + @jsii.member(jsii_name="baz") def baz(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.IJSII417Derived\\" + __jsii_type__ = "jsii-calc.IJSII417Derived" @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"property\\") + """ + return jsii.get(self, "property") - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"bar\\", []) + """ + return jsii.invoke(self, "bar", []) - @jsii.member(jsii_name=\\"baz\\") + @jsii.member(jsii_name="baz") def baz(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"baz\\", []) + """ + return jsii.invoke(self, "baz", []) @jsii.implements(IPublicInterface2) class InbetweenClass( - PublicClass, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.InbetweenClass\\" + PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(InbetweenClass, self, []) - @jsii.member(jsii_name=\\"ciao\\") + @jsii.member(jsii_name="ciao") def ciao(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"ciao\\", []) + """ + return jsii.invoke(self, "ciao", []) class JSII417Derived( JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.JSII417Derived\\", + jsii_type="jsii-calc.JSII417Derived", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, property: str) -> None: - \\"\\"\\" + """ :param property: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(JSII417Derived, self, [property]) - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"bar\\", []) + """ + return jsii.invoke(self, "bar", []) - @jsii.member(jsii_name=\\"baz\\") + @jsii.member(jsii_name="baz") def baz(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"baz\\", []) + """ + return jsii.invoke(self, "baz", []) @builtins.property - @jsii.member(jsii_name=\\"property\\") + @jsii.member(jsii_name="property") def _property(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"property\\") + """ + return jsii.get(self, "property") @jsii.implements(IFriendlier) -class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.Negate\\"): - \\"\\"\\"The negation operation (\\"-value\\"). +class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negate"): + """The negation operation ("-value"). stability :stability: experimental - \\"\\"\\" + """ def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: - \\"\\"\\" + """ :param operand: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(Negate, self, [operand]) - @jsii.member(jsii_name=\\"farewell\\") + @jsii.member(jsii_name="farewell") def farewell(self) -> str: - \\"\\"\\"Say farewell. + """Say farewell. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"farewell\\", []) + """ + return jsii.invoke(self, "farewell", []) - @jsii.member(jsii_name=\\"goodbye\\") + @jsii.member(jsii_name="goodbye") def goodbye(self) -> str: - \\"\\"\\"Say goodbye. + """Say goodbye. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"goodbye\\", []) + """ + return jsii.invoke(self, "goodbye", []) - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> str: - \\"\\"\\"Say hello! + """Say hello! stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") class SupportsNiceJavaBuilder( SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.SupportsNiceJavaBuilder\\", + jsii_type="jsii-calc.SupportsNiceJavaBuilder", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__( self, id: jsii.Number, default_bar: typing.Optional[jsii.Number] = None, - props: typing.Optional[\\"SupportsNiceJavaBuilderProps\\"] = None, + props: typing.Optional["SupportsNiceJavaBuilderProps"] = None, *rest: str, ) -> None: - \\"\\"\\" + """ :param id: some identifier. :param default_bar: the default value of \`\`bar\`\`. :param props: some props once can provide. @@ -66644,263 +65672,262 @@ class SupportsNiceJavaBuilder( stability :stability: experimental - \\"\\"\\" + """ jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) @builtins.property - @jsii.member(jsii_name=\\"id\\") + @jsii.member(jsii_name="id") def id(self) -> jsii.Number: - \\"\\"\\"some identifier. + """some identifier. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"id\\") + """ + return jsii.get(self, "id") @builtins.property - @jsii.member(jsii_name=\\"rest\\") + @jsii.member(jsii_name="rest") def rest(self) -> typing.List[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"rest\\") + """ + return jsii.get(self, "rest") @jsii.implements(IFriendlyRandomGenerator) -class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DoubleTrouble\\"): - \\"\\"\\" +class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(DoubleTrouble, self, []) - @jsii.member(jsii_name=\\"hello\\") + @jsii.member(jsii_name="hello") def hello(self) -> str: - \\"\\"\\"Say hello! + """Say hello! stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"hello\\", []) + """ + return jsii.invoke(self, "hello", []) - @jsii.member(jsii_name=\\"next\\") + @jsii.member(jsii_name="next") def next(self) -> jsii.Number: - \\"\\"\\"Returns another random number. + """Returns another random number. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"next\\", []) + """ + return jsii.invoke(self, "next", []) __all__ = [ - \\"AbstractClass\\", - \\"AbstractClassBase\\", - \\"AbstractClassReturner\\", - \\"AbstractSuite\\", - \\"Add\\", - \\"AllTypes\\", - \\"AllTypesEnum\\", - \\"AllowedMethodNames\\", - \\"AmbiguousParameters\\", - \\"AnonymousImplementationProvider\\", - \\"AsyncVirtualMethods\\", - \\"AugmentableClass\\", - \\"BaseJsii976\\", - \\"Bell\\", - \\"BinaryOperation\\", - \\"BurriedAnonymousObject\\", - \\"Calculator\\", - \\"CalculatorProps\\", - \\"ChildStruct982\\", - \\"ClassThatImplementsTheInternalInterface\\", - \\"ClassThatImplementsThePrivateInterface\\", - \\"ClassWithCollections\\", - \\"ClassWithDocs\\", - \\"ClassWithJavaReservedWords\\", - \\"ClassWithMutableObjectLiteralProperty\\", - \\"ClassWithPrivateConstructorAndAutomaticProperties\\", - \\"ConfusingToJackson\\", - \\"ConfusingToJacksonStruct\\", - \\"ConstructorPassesThisOut\\", - \\"Constructors\\", - \\"ConsumePureInterface\\", - \\"ConsumerCanRingBell\\", - \\"ConsumersOfThisCrazyTypeSystem\\", - \\"DataRenderer\\", - \\"DefaultedConstructorArgument\\", - \\"Demonstrate982\\", - \\"DeprecatedClass\\", - \\"DeprecatedEnum\\", - \\"DeprecatedStruct\\", - \\"DerivedStruct\\", - \\"DiamondInheritanceBaseLevelStruct\\", - \\"DiamondInheritanceFirstMidLevelStruct\\", - \\"DiamondInheritanceSecondMidLevelStruct\\", - \\"DiamondInheritanceTopLevelStruct\\", - \\"DisappointingCollectionSource\\", - \\"DoNotOverridePrivates\\", - \\"DoNotRecognizeAnyAsOptional\\", - \\"DocumentedClass\\", - \\"DontComplainAboutVariadicAfterOptional\\", - \\"DoubleTrouble\\", - \\"EnumDispenser\\", - \\"EraseUndefinedHashValues\\", - \\"EraseUndefinedHashValuesOptions\\", - \\"ExperimentalClass\\", - \\"ExperimentalEnum\\", - \\"ExperimentalStruct\\", - \\"ExportedBaseClass\\", - \\"ExtendsInternalInterface\\", - \\"ExternalClass\\", - \\"ExternalEnum\\", - \\"ExternalStruct\\", - \\"GiveMeStructs\\", - \\"Greetee\\", - \\"GreetingAugmenter\\", - \\"IAnonymousImplementationProvider\\", - \\"IAnonymouslyImplementMe\\", - \\"IAnotherPublicInterface\\", - \\"IBell\\", - \\"IBellRinger\\", - \\"IConcreteBellRinger\\", - \\"IDeprecatedInterface\\", - \\"IExperimentalInterface\\", - \\"IExtendsPrivateInterface\\", - \\"IExternalInterface\\", - \\"IFriendlier\\", - \\"IFriendlyRandomGenerator\\", - \\"IInterfaceImplementedByAbstractClass\\", - \\"IInterfaceThatShouldNotBeADataType\\", - \\"IInterfaceWithInternal\\", - \\"IInterfaceWithMethods\\", - \\"IInterfaceWithOptionalMethodArguments\\", - \\"IInterfaceWithProperties\\", - \\"IInterfaceWithPropertiesExtension\\", - \\"IJSII417Derived\\", - \\"IJSII417PublicBaseOfBase\\", - \\"IJsii487External\\", - \\"IJsii487External2\\", - \\"IJsii496\\", - \\"IMutableObjectLiteral\\", - \\"INonInternalInterface\\", - \\"IObjectWithProperty\\", - \\"IOptionalMethod\\", - \\"IPrivatelyImplemented\\", - \\"IPublicInterface\\", - \\"IPublicInterface2\\", - \\"IRandomNumberGenerator\\", - \\"IReturnJsii976\\", - \\"IReturnsNumber\\", - \\"IStableInterface\\", - \\"IStructReturningDelegate\\", - \\"ImplementInternalInterface\\", - \\"Implementation\\", - \\"ImplementsInterfaceWithInternal\\", - \\"ImplementsInterfaceWithInternalSubclass\\", - \\"ImplementsPrivateInterface\\", - \\"ImplictBaseOfBase\\", - \\"InbetweenClass\\", - \\"InterfaceCollections\\", - \\"InterfacesMaker\\", - \\"Isomorphism\\", - \\"JSII417Derived\\", - \\"JSII417PublicBaseOfBase\\", - \\"JSObjectLiteralForInterface\\", - \\"JSObjectLiteralToNative\\", - \\"JSObjectLiteralToNativeClass\\", - \\"JavaReservedWords\\", - \\"Jsii487Derived\\", - \\"Jsii496Derived\\", - \\"JsiiAgent\\", - \\"JsonFormatter\\", - \\"LoadBalancedFargateServiceProps\\", - \\"MethodNamedProperty\\", - \\"Multiply\\", - \\"Negate\\", - \\"NestedStruct\\", - \\"NodeStandardLibrary\\", - \\"NullShouldBeTreatedAsUndefined\\", - \\"NullShouldBeTreatedAsUndefinedData\\", - \\"NumberGenerator\\", - \\"ObjectRefsInCollections\\", - \\"ObjectWithPropertyProvider\\", - \\"Old\\", - \\"OptionalArgumentInvoker\\", - \\"OptionalConstructorArgument\\", - \\"OptionalStruct\\", - \\"OptionalStructConsumer\\", - \\"OverridableProtectedMember\\", - \\"OverrideReturnsObject\\", - \\"ParentStruct982\\", - \\"PartiallyInitializedThisConsumer\\", - \\"Polymorphism\\", - \\"Power\\", - \\"PropertyNamedProperty\\", - \\"PublicClass\\", - \\"PythonReservedWords\\", - \\"ReferenceEnumFromScopedPackage\\", - \\"ReturnsPrivateImplementationOfInterface\\", - \\"RootStruct\\", - \\"RootStructValidator\\", - \\"RuntimeTypeChecking\\", - \\"SecondLevelStruct\\", - \\"SingleInstanceTwoTypes\\", - \\"SingletonInt\\", - \\"SingletonIntEnum\\", - \\"SingletonString\\", - \\"SingletonStringEnum\\", - \\"SmellyStruct\\", - \\"SomeTypeJsii976\\", - \\"StableClass\\", - \\"StableEnum\\", - \\"StableStruct\\", - \\"StaticContext\\", - \\"Statics\\", - \\"StringEnum\\", - \\"StripInternal\\", - \\"StructA\\", - \\"StructB\\", - \\"StructParameterType\\", - \\"StructPassing\\", - \\"StructUnionConsumer\\", - \\"StructWithJavaReservedWords\\", - \\"Sum\\", - \\"SupportsNiceJavaBuilder\\", - \\"SupportsNiceJavaBuilderProps\\", - \\"SupportsNiceJavaBuilderWithRequiredProps\\", - \\"SyncVirtualMethods\\", - \\"Thrower\\", - \\"TopLevelStruct\\", - \\"UmaskCheck\\", - \\"UnaryOperation\\", - \\"UnionProperties\\", - \\"UpcasingReflectable\\", - \\"UseBundledDependency\\", - \\"UseCalcBase\\", - \\"UsesInterfaceWithProperties\\", - \\"VariadicInvoker\\", - \\"VariadicMethod\\", - \\"VirtualMethodPlayground\\", - \\"VoidCallback\\", - \\"WithPrivatePropertyInConstructor\\", + "AbstractClass", + "AbstractClassBase", + "AbstractClassReturner", + "AbstractSuite", + "Add", + "AllTypes", + "AllTypesEnum", + "AllowedMethodNames", + "AmbiguousParameters", + "AnonymousImplementationProvider", + "AsyncVirtualMethods", + "AugmentableClass", + "BaseJsii976", + "Bell", + "BinaryOperation", + "BurriedAnonymousObject", + "Calculator", + "CalculatorProps", + "ChildStruct982", + "ClassThatImplementsTheInternalInterface", + "ClassThatImplementsThePrivateInterface", + "ClassWithCollections", + "ClassWithDocs", + "ClassWithJavaReservedWords", + "ClassWithMutableObjectLiteralProperty", + "ClassWithPrivateConstructorAndAutomaticProperties", + "ConfusingToJackson", + "ConfusingToJacksonStruct", + "ConstructorPassesThisOut", + "Constructors", + "ConsumePureInterface", + "ConsumerCanRingBell", + "ConsumersOfThisCrazyTypeSystem", + "DataRenderer", + "DefaultedConstructorArgument", + "Demonstrate982", + "DeprecatedClass", + "DeprecatedEnum", + "DeprecatedStruct", + "DerivedStruct", + "DiamondInheritanceBaseLevelStruct", + "DiamondInheritanceFirstMidLevelStruct", + "DiamondInheritanceSecondMidLevelStruct", + "DiamondInheritanceTopLevelStruct", + "DisappointingCollectionSource", + "DoNotOverridePrivates", + "DoNotRecognizeAnyAsOptional", + "DocumentedClass", + "DontComplainAboutVariadicAfterOptional", + "DoubleTrouble", + "EnumDispenser", + "EraseUndefinedHashValues", + "EraseUndefinedHashValuesOptions", + "ExperimentalClass", + "ExperimentalEnum", + "ExperimentalStruct", + "ExportedBaseClass", + "ExtendsInternalInterface", + "ExternalClass", + "ExternalEnum", + "ExternalStruct", + "GiveMeStructs", + "Greetee", + "GreetingAugmenter", + "IAnonymousImplementationProvider", + "IAnonymouslyImplementMe", + "IAnotherPublicInterface", + "IBell", + "IBellRinger", + "IConcreteBellRinger", + "IDeprecatedInterface", + "IExperimentalInterface", + "IExtendsPrivateInterface", + "IExternalInterface", + "IFriendlier", + "IFriendlyRandomGenerator", + "IInterfaceImplementedByAbstractClass", + "IInterfaceThatShouldNotBeADataType", + "IInterfaceWithInternal", + "IInterfaceWithMethods", + "IInterfaceWithOptionalMethodArguments", + "IInterfaceWithProperties", + "IInterfaceWithPropertiesExtension", + "IJSII417Derived", + "IJSII417PublicBaseOfBase", + "IJsii487External", + "IJsii487External2", + "IJsii496", + "IMutableObjectLiteral", + "INonInternalInterface", + "IObjectWithProperty", + "IOptionalMethod", + "IPrivatelyImplemented", + "IPublicInterface", + "IPublicInterface2", + "IRandomNumberGenerator", + "IReturnJsii976", + "IReturnsNumber", + "IStableInterface", + "IStructReturningDelegate", + "ImplementInternalInterface", + "Implementation", + "ImplementsInterfaceWithInternal", + "ImplementsInterfaceWithInternalSubclass", + "ImplementsPrivateInterface", + "ImplictBaseOfBase", + "InbetweenClass", + "InterfaceCollections", + "InterfacesMaker", + "Isomorphism", + "JSII417Derived", + "JSII417PublicBaseOfBase", + "JSObjectLiteralForInterface", + "JSObjectLiteralToNative", + "JSObjectLiteralToNativeClass", + "JavaReservedWords", + "Jsii487Derived", + "Jsii496Derived", + "JsiiAgent", + "JsonFormatter", + "LoadBalancedFargateServiceProps", + "MethodNamedProperty", + "Multiply", + "Negate", + "NestedClassInstance", + "NestedStruct", + "NodeStandardLibrary", + "NullShouldBeTreatedAsUndefined", + "NullShouldBeTreatedAsUndefinedData", + "NumberGenerator", + "ObjectRefsInCollections", + "ObjectWithPropertyProvider", + "Old", + "OptionalArgumentInvoker", + "OptionalConstructorArgument", + "OptionalStruct", + "OptionalStructConsumer", + "OverridableProtectedMember", + "OverrideReturnsObject", + "ParentStruct982", + "PartiallyInitializedThisConsumer", + "Polymorphism", + "Power", + "PropertyNamedProperty", + "PublicClass", + "PythonReservedWords", + "ReferenceEnumFromScopedPackage", + "ReturnsPrivateImplementationOfInterface", + "RootStruct", + "RootStructValidator", + "RuntimeTypeChecking", + "SecondLevelStruct", + "SingleInstanceTwoTypes", + "SingletonInt", + "SingletonIntEnum", + "SingletonString", + "SingletonStringEnum", + "SmellyStruct", + "SomeTypeJsii976", + "StableClass", + "StableEnum", + "StableStruct", + "StaticContext", + "Statics", + "StringEnum", + "StripInternal", + "StructA", + "StructB", + "StructParameterType", + "StructPassing", + "StructUnionConsumer", + "StructWithJavaReservedWords", + "Sum", + "SupportsNiceJavaBuilder", + "SupportsNiceJavaBuilderProps", + "SupportsNiceJavaBuilderWithRequiredProps", + "SyncVirtualMethods", + "Thrower", + "TopLevelStruct", + "UmaskCheck", + "UnaryOperation", + "UnionProperties", + "UpcasingReflectable", + "UseBundledDependency", + "UseCalcBase", + "UsesInterfaceWithProperties", + "VariadicInvoker", + "VariadicMethod", + "VirtualMethodPlayground", + "VoidCallback", + "WithPrivatePropertyInConstructor", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/_jsii/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -66915,23 +65942,21 @@ import scope.jsii_calc_base_of_base._jsii import scope.jsii_calc_lib._jsii __jsii_assembly__ = jsii.JSIIAssembly.load( - \\"jsii-calc\\", \\"0.0.0\\", __name__[0:-6], \\"jsii-calc@0.0.0.jsii.tgz\\" + "jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz" ) __all__ = [ - \\"__jsii_assembly__\\", + "__jsii_assembly__", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz 1`] = `python/src/jsii_calc/_jsii/jsii-calc@0.0.0.jsii.tgz is a tarball`; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/composition/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -66949,13 +65974,13 @@ import scope.jsii_calc_lib class CompositeOperation( scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.composition.CompositeOperation\\", + jsii_type="jsii-calc.composition.CompositeOperation", ): - \\"\\"\\"Abstract operation composed from an expression of other operations. + """Abstract operation composed from an expression of other operations. stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): @@ -66964,132 +65989,130 @@ class CompositeOperation( def __init__(self) -> None: jsii.create(CompositeOperation, self, []) - @jsii.member(jsii_name=\\"toString\\") + @jsii.member(jsii_name="toString") def to_string(self) -> str: - \\"\\"\\"String representation of the value. + """String representation of the value. stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self, \\"toString\\", []) + """ + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name=\\"expression\\") + @jsii.member(jsii_name="expression") @abc.abstractmethod def expression(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The expression that this operation consists of. + """The expression that this operation consists of. Must be implemented by derived classes. stability :stability: experimental - \\"\\"\\" + """ ... @builtins.property - @jsii.member(jsii_name=\\"value\\") + @jsii.member(jsii_name="value") def value(self) -> jsii.Number: - \\"\\"\\"The value. + """The value. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"value\\") + """ + return jsii.get(self, "value") @builtins.property - @jsii.member(jsii_name=\\"decorationPostfixes\\") + @jsii.member(jsii_name="decorationPostfixes") def decoration_postfixes(self) -> typing.List[str]: - \\"\\"\\"A set of postfixes to include in a decorated .toString(). + """A set of postfixes to include in a decorated .toString(). stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"decorationPostfixes\\") + """ + return jsii.get(self, "decorationPostfixes") @decoration_postfixes.setter def decoration_postfixes(self, value: typing.List[str]) -> None: - jsii.set(self, \\"decorationPostfixes\\", value) + jsii.set(self, "decorationPostfixes", value) @builtins.property - @jsii.member(jsii_name=\\"decorationPrefixes\\") + @jsii.member(jsii_name="decorationPrefixes") def decoration_prefixes(self) -> typing.List[str]: - \\"\\"\\"A set of prefixes to include in a decorated .toString(). + """A set of prefixes to include in a decorated .toString(). stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"decorationPrefixes\\") + """ + return jsii.get(self, "decorationPrefixes") @decoration_prefixes.setter def decoration_prefixes(self, value: typing.List[str]) -> None: - jsii.set(self, \\"decorationPrefixes\\", value) + jsii.set(self, "decorationPrefixes", value) @builtins.property - @jsii.member(jsii_name=\\"stringStyle\\") - def string_style(self) -> \\"CompositionStringStyle\\": - \\"\\"\\"The .toString() style. + @jsii.member(jsii_name="stringStyle") + def string_style(self) -> "CompositionStringStyle": + """The .toString() style. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"stringStyle\\") + """ + return jsii.get(self, "stringStyle") @string_style.setter - def string_style(self, value: \\"CompositionStringStyle\\") -> None: - jsii.set(self, \\"stringStyle\\", value) + def string_style(self, value: "CompositionStringStyle") -> None: + jsii.set(self, "stringStyle", value) @jsii.enum( - jsii_type=\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\" + jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle" ) class CompositionStringStyle(enum.Enum): - \\"\\"\\"Style of .toString() output for CompositeOperation. + """Style of .toString() output for CompositeOperation. stability :stability: experimental - \\"\\"\\" + """ - NORMAL = \\"NORMAL\\" - \\"\\"\\"Normal string expression. + NORMAL = "NORMAL" + """Normal string expression. stability :stability: experimental - \\"\\"\\" - DECORATED = \\"DECORATED\\" - \\"\\"\\"Decorated string expression. + """ + DECORATED = "DECORATED" + """Decorated string expression. stability :stability: experimental - \\"\\"\\" + """ class _CompositeOperationProxy( CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation) ): @builtins.property - @jsii.member(jsii_name=\\"expression\\") + @jsii.member(jsii_name="expression") def expression(self) -> scope.jsii_calc_lib.Value: - \\"\\"\\"The expression that this operation consists of. + """The expression that this operation consists of. Must be implemented by derived classes. stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"expression\\") + """ + return jsii.get(self, "expression") __all__ = [ - \\"CompositeOperation\\", + "CompositeOperation", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/derived_class_has_no_properties/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67103,65 +66126,63 @@ from .._jsii import * class Base( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.DerivedClassHasNoProperties.Base\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Base, self, []) @builtins.property - @jsii.member(jsii_name=\\"prop\\") + @jsii.member(jsii_name="prop") def prop(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"prop\\") + """ + return jsii.get(self, "prop") @prop.setter def prop(self, value: str) -> None: - jsii.set(self, \\"prop\\", value) + jsii.set(self, "prop", value) class Derived( Base, metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.DerivedClassHasNoProperties.Derived\\", + jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Derived, self, []) __all__ = [ - \\"Base\\", - \\"Derived\\", + "Base", + "Derived", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67176,58 +66197,58 @@ from .._jsii import * class Foo( metaclass=jsii.JSIIMeta, - jsii_type=\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Foo\\", + jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(Foo, self, []) @builtins.property - @jsii.member(jsii_name=\\"bar\\") + @jsii.member(jsii_name="bar") def bar(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"bar\\") + """ + return jsii.get(self, "bar") @bar.setter def bar(self, value: typing.Optional[str]) -> None: - jsii.set(self, \\"bar\\", value) + jsii.set(self, "bar", value) @jsii.data_type( - jsii_type=\\"jsii-calc.InterfaceInNamespaceIncludesClasses.Hello\\", + jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], - name_mapping={\\"foo\\": \\"foo\\"}, + name_mapping={"foo": "foo"}, ) class Hello: def __init__(self, *, foo: jsii.Number) -> None: - \\"\\"\\" + """ :param foo: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, + "foo": foo, } @builtins.property def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"foo\\") + """ + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67236,24 +66257,22 @@ class Hello: return not (rhs == self) def __repr__(self) -> str: - return \\"Hello(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "Hello(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"Foo\\", - \\"Hello\\", + "Foo", + "Hello", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67267,29 +66286,29 @@ from .._jsii import * @jsii.data_type( - jsii_type=\\"jsii-calc.InterfaceInNamespaceOnlyInterface.Hello\\", + jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], - name_mapping={\\"foo\\": \\"foo\\"}, + name_mapping={"foo": "foo"}, ) class Hello: def __init__(self, *, foo: jsii.Number) -> None: - \\"\\"\\" + """ :param foo: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"foo\\": foo, + "foo": foo, } @builtins.property def foo(self) -> jsii.Number: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"foo\\") + """ + return self._values.get("foo") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67298,30 +66317,26 @@ class Hello: return not (rhs == self) def __repr__(self) -> str: - return \\"Hello(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "Hello(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"Hello\\", + "Hello", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/py.typed 1`] = ` -Object { - Symbol(file): " -", -} + + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/python_self/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67335,136 +66350,136 @@ from .._jsii import * class ClassWithSelf( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonSelf.ClassWithSelf\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self_, self: str) -> None: - \\"\\"\\" + """ :param self: - stability :stability: experimental - \\"\\"\\" + """ jsii.create(ClassWithSelf, self_, [self]) - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self_, self: jsii.Number) -> str: - \\"\\"\\" + """ :param self: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self_, \\"method\\", [self]) + """ + return jsii.invoke(self_, "method", [self]) @builtins.property - @jsii.member(jsii_name=\\"self\\") + @jsii.member(jsii_name="self") def self(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"self\\") + """ + return jsii.get(self, "self") class ClassWithSelfKwarg( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.PythonSelf.ClassWithSelfKwarg\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self_, *, self: str) -> None: - \\"\\"\\" + """ :param self: stability :stability: experimental - \\"\\"\\" + """ props = StructWithSelf(self=self) jsii.create(ClassWithSelfKwarg, self_, [props]) @builtins.property - @jsii.member(jsii_name=\\"props\\") - def props(self) -> \\"StructWithSelf\\": - \\"\\"\\" + @jsii.member(jsii_name="props") + def props(self) -> "StructWithSelf": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"props\\") + """ + return jsii.get(self, "props") -@jsii.interface(jsii_type=\\"jsii-calc.PythonSelf.IInterfaceWithSelf\\") +@jsii.interface(jsii_type="jsii-calc.PythonSelf.IInterfaceWithSelf") class IInterfaceWithSelf(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _IInterfaceWithSelfProxy - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self_, self: jsii.Number) -> str: - \\"\\"\\" + """ :param self: - stability :stability: experimental - \\"\\"\\" + """ ... class _IInterfaceWithSelfProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.PythonSelf.IInterfaceWithSelf\\" + __jsii_type__ = "jsii-calc.PythonSelf.IInterfaceWithSelf" - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") def method(self_, self: jsii.Number) -> str: - \\"\\"\\" + """ :param self: - stability :stability: experimental - \\"\\"\\" - return jsii.invoke(self_, \\"method\\", [self]) + """ + return jsii.invoke(self_, "method", [self]) @jsii.data_type( - jsii_type=\\"jsii-calc.PythonSelf.StructWithSelf\\", + jsii_type="jsii-calc.PythonSelf.StructWithSelf", jsii_struct_bases=[], - name_mapping={\\"self\\": \\"self\\"}, + name_mapping={"self": "self"}, ) class StructWithSelf: def __init__(self_, *, self: str) -> None: - \\"\\"\\" + """ :param self: stability :stability: experimental - \\"\\"\\" + """ self_._values = { - \\"self\\": self, + "self": self, } @builtins.property def self(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"self\\") + """ + return self._values.get("self") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67473,26 +66488,24 @@ class StructWithSelf: return not (rhs == self) def __repr__(self) -> str: - return \\"StructWithSelf(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "StructWithSelf(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"ClassWithSelf\\", - \\"ClassWithSelfKwarg\\", - \\"IInterfaceWithSelf\\", - \\"StructWithSelf\\", + "ClassWithSelf", + "ClassWithSelfKwarg", + "IInterfaceWithSelf", + "StructWithSelf", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67515,85 +66528,83 @@ from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad @jsii.implements(_INamespaced_e2f386ad) -class MyClass(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.MyClass\\"): - \\"\\"\\" +class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None: - \\"\\"\\" + """ :param prop: stability :stability: experimental - \\"\\"\\" + """ props = _SomeStruct_91627123(prop=prop) jsii.create(MyClass, self, [props]) @builtins.property - @jsii.member(jsii_name=\\"awesomeness\\") + @jsii.member(jsii_name="awesomeness") def awesomeness(self) -> _Awesomeness_d37a24df: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"awesomeness\\") + """ + return jsii.get(self, "awesomeness") @builtins.property - @jsii.member(jsii_name=\\"definedAt\\") + @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"definedAt\\") + """ + return jsii.get(self, "definedAt") @builtins.property - @jsii.member(jsii_name=\\"goodness\\") + @jsii.member(jsii_name="goodness") def goodness(self) -> _Goodness_2df26737: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"goodness\\") + """ + return jsii.get(self, "goodness") @builtins.property - @jsii.member(jsii_name=\\"props\\") + @jsii.member(jsii_name="props") def props(self) -> _SomeStruct_91627123: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"props\\") + """ + return jsii.get(self, "props") @builtins.property - @jsii.member(jsii_name=\\"allTypes\\") + @jsii.member(jsii_name="allTypes") def all_types(self) -> typing.Optional[_AllTypes_b08307c5]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"allTypes\\") + """ + return jsii.get(self, "allTypes") @all_types.setter def all_types(self, value: typing.Optional[_AllTypes_b08307c5]) -> None: - jsii.set(self, \\"allTypes\\", value) + jsii.set(self, "allTypes", value) __all__ = [ - \\"MyClass\\", + "MyClass", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/back_references/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67609,29 +66620,29 @@ from .. import MyClass as _MyClass_a2fdc0b6 @jsii.data_type( - jsii_type=\\"jsii-calc.submodule.back_references.MyClassReference\\", + jsii_type="jsii-calc.submodule.back_references.MyClassReference", jsii_struct_bases=[], - name_mapping={\\"reference\\": \\"reference\\"}, + name_mapping={"reference": "reference"}, ) class MyClassReference: def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None: - \\"\\"\\" + """ :param reference: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"reference\\": reference, + "reference": reference, } @builtins.property def reference(self) -> _MyClass_a2fdc0b6: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"reference\\") + """ + return self._values.get("reference") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67640,23 +66651,21 @@ class MyClassReference: return not (rhs == self) def __repr__(self) -> str: - return \\"MyClassReference(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "MyClassReference(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"MyClassReference\\", + "MyClassReference", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/child/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67669,139 +66678,139 @@ import publication from ..._jsii import * -@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.Awesomeness\\") +@jsii.enum(jsii_type="jsii-calc.submodule.child.Awesomeness") class Awesomeness(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - AWESOME = \\"AWESOME\\" - \\"\\"\\"It was awesome! + AWESOME = "AWESOME" + """It was awesome! stability :stability: experimental - \\"\\"\\" + """ -@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.Goodness\\") +@jsii.enum(jsii_type="jsii-calc.submodule.child.Goodness") class Goodness(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - PRETTY_GOOD = \\"PRETTY_GOOD\\" - \\"\\"\\"It's pretty good. + PRETTY_GOOD = "PRETTY_GOOD" + """It's pretty good. stability :stability: experimental - \\"\\"\\" - REALLY_GOOD = \\"REALLY_GOOD\\" - \\"\\"\\"It's really good. + """ + REALLY_GOOD = "REALLY_GOOD" + """It's really good. stability :stability: experimental - \\"\\"\\" - AMAZINGLY_GOOD = \\"AMAZINGLY_GOOD\\" - \\"\\"\\"It's amazingly good. + """ + AMAZINGLY_GOOD = "AMAZINGLY_GOOD" + """It's amazingly good. stability :stability: experimental - \\"\\"\\" + """ class InnerClass( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.child.InnerClass\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass" ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(InnerClass, self, []) @jsii.python.classproperty - @jsii.member(jsii_name=\\"staticProp\\") - def STATIC_PROP(cls) -> \\"SomeStruct\\": - \\"\\"\\" + @jsii.member(jsii_name="staticProp") + def STATIC_PROP(cls) -> "SomeStruct": + """ stability :stability: experimental - \\"\\"\\" - return jsii.sget(cls, \\"staticProp\\") + """ + return jsii.sget(cls, "staticProp") class OuterClass( - metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.child.OuterClass\\" + metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass" ): - \\"\\"\\"Checks that classes can self-reference during initialization. + """Checks that classes can self-reference during initialization. see :see: : https://github.com/aws/jsii/pull/1706 stability :stability: experimental - \\"\\"\\" + """ def __init__(self) -> None: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ jsii.create(OuterClass, self, []) @builtins.property - @jsii.member(jsii_name=\\"innerClass\\") - def inner_class(self) -> \\"InnerClass\\": - \\"\\"\\" + @jsii.member(jsii_name="innerClass") + def inner_class(self) -> "InnerClass": + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"innerClass\\") + """ + return jsii.get(self, "innerClass") -@jsii.enum(jsii_type=\\"jsii-calc.submodule.child.SomeEnum\\") +@jsii.enum(jsii_type="jsii-calc.submodule.child.SomeEnum") class SomeEnum(enum.Enum): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - SOME = \\"SOME\\" - \\"\\"\\" + SOME = "SOME" + """ stability :stability: experimental - \\"\\"\\" + """ @jsii.data_type( - jsii_type=\\"jsii-calc.submodule.child.SomeStruct\\", + jsii_type="jsii-calc.submodule.child.SomeStruct", jsii_struct_bases=[], - name_mapping={\\"prop\\": \\"prop\\"}, + name_mapping={"prop": "prop"}, ) class SomeStruct: - def __init__(self, *, prop: \\"SomeEnum\\") -> None: - \\"\\"\\" + def __init__(self, *, prop: "SomeEnum") -> None: + """ :param prop: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"prop\\": prop, + "prop": prop, } @builtins.property - def prop(self) -> \\"SomeEnum\\": - \\"\\"\\" + def prop(self) -> "SomeEnum": + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"prop\\") + """ + return self._values.get("prop") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67810,35 +66819,35 @@ class SomeStruct: return not (rhs == self) def __repr__(self) -> str: - return \\"SomeStruct(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "SomeStruct(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.submodule.child.Structure\\", + jsii_type="jsii-calc.submodule.child.Structure", jsii_struct_bases=[], - name_mapping={\\"bool\\": \\"bool\\"}, + name_mapping={"bool": "bool"}, ) class Structure: def __init__(self, *, bool: bool) -> None: - \\"\\"\\" + """ :param bool: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"bool\\": bool, + "bool": bool, } @builtins.property def bool(self) -> bool: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"bool\\") + """ + return self._values.get("bool") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67847,46 +66856,46 @@ class Structure: return not (rhs == self) def __repr__(self) -> str: - return \\"Structure(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "Structure(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( - jsii_type=\\"jsii-calc.submodule.child.KwargsProps\\", + jsii_type="jsii-calc.submodule.child.KwargsProps", jsii_struct_bases=[SomeStruct], - name_mapping={\\"prop\\": \\"prop\\", \\"extra\\": \\"extra\\"}, + name_mapping={"prop": "prop", "extra": "extra"}, ) class KwargsProps(SomeStruct): - def __init__(self, *, prop: \\"SomeEnum\\", extra: typing.Optional[str] = None) -> None: - \\"\\"\\" + def __init__(self, *, prop: "SomeEnum", extra: typing.Optional[str] = None) -> None: + """ :param prop: :param extra: stability :stability: experimental - \\"\\"\\" + """ self._values = { - \\"prop\\": prop, + "prop": prop, } if extra is not None: - self._values[\\"extra\\"] = extra + self._values["extra"] = extra @builtins.property - def prop(self) -> \\"SomeEnum\\": - \\"\\"\\" + def prop(self) -> "SomeEnum": + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"prop\\") + """ + return self._values.get("prop") @builtins.property def extra(self) -> typing.Optional[str]: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return self._values.get(\\"extra\\") + """ + return self._values.get("extra") def __eq__(self, rhs) -> bool: return isinstance(rhs, self.__class__) and rhs._values == self._values @@ -67895,30 +66904,28 @@ class KwargsProps(SomeStruct): return not (rhs == self) def __repr__(self) -> str: - return \\"KwargsProps(%s)\\" % \\", \\".join( - k + \\"=\\" + repr(v) for k, v in self._values.items() + return "KwargsProps(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ - \\"Awesomeness\\", - \\"Goodness\\", - \\"InnerClass\\", - \\"KwargsProps\\", - \\"OuterClass\\", - \\"SomeEnum\\", - \\"SomeStruct\\", - \\"Structure\\", + "Awesomeness", + "Goodness", + "InnerClass", + "KwargsProps", + "OuterClass", + "SomeEnum", + "SomeStruct", + "Structure", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/isolated/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67935,42 +66942,40 @@ from ..child import ( ) -class Kwargs(metaclass=jsii.JSIIMeta, jsii_type=\\"jsii-calc.submodule.isolated.Kwargs\\"): - \\"\\"\\"Ensures imports are correctly registered for kwargs lifted properties from super-structs. +class Kwargs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.isolated.Kwargs"): + """Ensures imports are correctly registered for kwargs lifted properties from super-structs. stability :stability: experimental - \\"\\"\\" + """ - @jsii.member(jsii_name=\\"method\\") + @jsii.member(jsii_name="method") @builtins.classmethod def method( cls, *, extra: typing.Optional[str] = None, prop: _SomeEnum_b2e41d92 ) -> bool: - \\"\\"\\" + """ :param extra: :param prop: stability :stability: experimental - \\"\\"\\" + """ props = _KwargsProps_c7855dcf(extra=extra, prop=prop) - return jsii.sinvoke(cls, \\"method\\", [props]) + return jsii.sinvoke(cls, "method", [props]) __all__ = [ - \\"Kwargs\\", + "Kwargs", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/nested_submodule/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -67989,60 +66994,58 @@ from .deeply_nested import INamespaced as _INamespaced_e2f386ad @jsii.implements(_INamespaced_e2f386ad) class Namespaced( metaclass=jsii.JSIIAbstractClass, - jsii_type=\\"jsii-calc.submodule.nested_submodule.Namespaced\\", + jsii_type="jsii-calc.submodule.nested_submodule.Namespaced", ): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _NamespacedProxy @builtins.property - @jsii.member(jsii_name=\\"definedAt\\") + @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"definedAt\\") + """ + return jsii.get(self, "definedAt") @builtins.property - @jsii.member(jsii_name=\\"goodness\\") + @jsii.member(jsii_name="goodness") @abc.abstractmethod def goodness(self) -> _Goodness_2df26737: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _NamespacedProxy(Namespaced): @builtins.property - @jsii.member(jsii_name=\\"goodness\\") + @jsii.member(jsii_name="goodness") def goodness(self) -> _Goodness_2df26737: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"goodness\\") + """ + return jsii.get(self, "goodness") __all__ = [ - \\"Namespaced\\", + "Namespaced", ] publication.publish() -", -} + `; exports[`Generated code for "jsii-calc": /python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py 1`] = ` -Object { - Symbol(file): "import abc +import abc import builtins import datetime import enum @@ -68056,51 +67059,50 @@ from ...._jsii import * @jsii.interface( - jsii_type=\\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" ) class INamespaced(jsii.compat.Protocol): - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ @builtins.staticmethod def __jsii_proxy_class__(): return _INamespacedProxy @builtins.property - @jsii.member(jsii_name=\\"definedAt\\") + @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ ... class _INamespacedProxy: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" + """ - __jsii_type__ = \\"jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced\\" + __jsii_type__ = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" @builtins.property - @jsii.member(jsii_name=\\"definedAt\\") + @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: - \\"\\"\\" + """ stability :stability: experimental - \\"\\"\\" - return jsii.get(self, \\"definedAt\\") + """ + return jsii.get(self, "definedAt") __all__ = [ - \\"INamespaced\\", + "INamespaced", ] publication.publish() -", -} + `; diff --git a/packages/jsii-pacmak/test/build-test.sh b/packages/jsii-pacmak/test/build-test.sh index 58899b8257..5b31781106 100755 --- a/packages/jsii-pacmak/test/build-test.sh +++ b/packages/jsii-pacmak/test/build-test.sh @@ -32,7 +32,7 @@ else # Hello Windows! . ${venv}/Scripts/activate fi -python3 -m pip install pip~=20.0.2 setuptools~=46.1.3 wheel~=0.34.2 twine~=3.1.1 +python3 -m pip install --upgrade pip~=20.2.2 twine~=3.2.0 pipx~=0.15.4.0 # Single target, recursive build to a certain location clean_dists @@ -43,7 +43,7 @@ echo "Testing SINGLE TARGET, RECURSIVE build." clean_dists echo "Testing ONE-BY-ONE build." for dir in $packagedirs; do - ../bin/jsii-pacmak $dir -vv + ../bin/jsii-pacmak $dir done # Multiple targets, build all at once into own directory diff --git a/packages/jsii-pacmak/test/jsii-pacmak.test.ts b/packages/jsii-pacmak/test/jsii-pacmak.test.ts index a83ab003b0..feb6cded45 100644 --- a/packages/jsii-pacmak/test/jsii-pacmak.test.ts +++ b/packages/jsii-pacmak/test/jsii-pacmak.test.ts @@ -15,23 +15,24 @@ const TREE = Symbol('tree'); // Custom serializers so we can see the source without escape sequences expect.addSnapshotSerializer({ - test: (val) => val?.[TARBALL] != null, - serialize: (val) => `${val[TARBALL]} is a tarball`, -}); -expect.addSnapshotSerializer({ - test: (val) => val?.[TREE] != null, - serialize: (val) => { - return `\n${formatTree(val[TREE])}`; - }, + test: (val) => val?.[FILE] != null, + serialize: (val) => val[FILE], }); expect.addSnapshotSerializer({ test: (val) => val?.[MISSING] != null, serialize: (val) => `${val[MISSING]} does not exist`, }); + expect.addSnapshotSerializer({ test: (val) => val?.[TARBALL] != null, serialize: (val) => `${val[TARBALL]} is a tarball`, }); +expect.addSnapshotSerializer({ + test: (val) => val?.[TREE] != null, + serialize: (val) => { + return `\n${formatTree(val[TREE])}`; + }, +}); let outDir: string; beforeEach((done) => { diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index 8d89f84da6..5a105077eb 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -1228,6 +1228,11 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ value property (experimental) │ │ ├── immutable │ │ └── type: number + │ ├─┬ class NestedClassInstance (experimental) + │ │ └─┬ members + │ │ └─┬ static makeInstance() method (experimental) + │ │ ├── static + │ │ └── returns: @scope/jsii-calc-lib.submodule.NestingClass.NestedClass │ ├─┬ class NodeStandardLibrary (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -2549,6 +2554,14 @@ exports[`jsii-tree --all 1`] = ` ├─┬ submodules │ └─┬ submodule │ └─┬ types + │ ├─┬ class NestingClass (deprecated) + │ │ └── members + │ ├─┬ class NestedClass (deprecated) + │ │ └─┬ members + │ │ ├── () initializer (deprecated) + │ │ └─┬ property property (deprecated) + │ │ ├── immutable + │ │ └── type: string │ ├─┬ class Reflector (deprecated) │ │ └─┬ members │ │ ├── () initializer (deprecated) @@ -2807,6 +2820,7 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├─┬ class Negate │ │ ├── base: UnaryOperation │ │ └── interfaces: IFriendlier + │ ├── class NestedClassInstance │ ├── class NodeStandardLibrary │ ├── class NullShouldBeTreatedAsUndefined │ ├── class NumberGenerator @@ -2978,6 +2992,8 @@ exports[`jsii-tree --inheritance 1`] = ` ├─┬ submodules │ └─┬ submodule │ └─┬ types + │ ├── class NestingClass + │ ├── class NestedClass │ ├── class Reflector │ ├── interface IReflectable │ └── interface ReflectableEntry @@ -3566,6 +3582,9 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── hello() method │ │ ├── toString() method │ │ └── value property + │ ├─┬ class NestedClassInstance + │ │ └─┬ members + │ │ └── static makeInstance() method │ ├─┬ class NodeStandardLibrary │ │ └─┬ members │ │ ├── () initializer @@ -4139,6 +4158,12 @@ exports[`jsii-tree --members 1`] = ` ├─┬ submodules │ └─┬ submodule │ └─┬ types + │ ├─┬ class NestingClass + │ │ └── members + │ ├─┬ class NestedClass + │ │ └─┬ members + │ │ ├── () initializer + │ │ └── property property │ ├─┬ class Reflector │ │ └─┬ members │ │ ├── () initializer @@ -4336,6 +4361,7 @@ exports[`jsii-tree --types 1`] = ` │ ├── class MethodNamedProperty │ ├── class Multiply │ ├── class Negate + │ ├── class NestedClassInstance │ ├── class NodeStandardLibrary │ ├── class NullShouldBeTreatedAsUndefined │ ├── class NumberGenerator @@ -4472,6 +4498,8 @@ exports[`jsii-tree --types 1`] = ` ├─┬ submodules │ └─┬ submodule │ └─┬ types + │ ├── class NestingClass + │ ├── class NestedClass │ ├── class Reflector │ ├── interface IReflectable │ └── interface ReflectableEntry diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap index c3cab65f1b..40712f8eb0 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap @@ -16,6 +16,8 @@ Array [ "@scope/jsii-calc-lib.Number", "@scope/jsii-calc-lib.Operation", "@scope/jsii-calc-lib.Value", + "@scope/jsii-calc-lib.submodule.NestingClass", + "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass", "@scope/jsii-calc-lib.submodule.Reflector", "jsii-calc.AbstractClass", "jsii-calc.AbstractClassBase", @@ -88,6 +90,7 @@ Array [ "jsii-calc.MethodNamedProperty", "jsii-calc.Multiply", "jsii-calc.Negate", + "jsii-calc.NestedClassInstance", "jsii-calc.NodeStandardLibrary", "jsii-calc.NullShouldBeTreatedAsUndefined", "jsii-calc.NumberGenerator", diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index fa8bed0f3b..8b3b1d5c34 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -2528,6 +2528,7 @@ function _isPrivate(symbol: ts.Symbol): boolean { ts.SyntaxKind.InterfaceDeclaration, ts.SyntaxKind.EnumDeclaration, ]); + // if the symbol doesn't have a value declaration, we are assuming it's a type (enum/interface/class) // and check that it has an "export" modifier if ( @@ -2538,6 +2539,20 @@ function _isPrivate(symbol: ts.Symbol): boolean { for (const decl of symbol.declarations) { if (ts.getCombinedModifierFlags(decl) & ts.ModifierFlags.Export) { hasExport = true; + break; + } + // Handle nested classes from project references + if (ts.isModuleBlock(decl.parent)) { + const moduleDeclaration = decl.parent.parent; + const modifiers = ts.getCombinedModifierFlags(moduleDeclaration); + // The trick is the module is declared as ambient & exported + if ( + (modifiers & ts.ModifierFlags.Ambient) !== 0 && + (modifiers & ts.ModifierFlags.Export) !== 0 + ) { + hasExport = true; + break; + } } } return !hasExport; From c4fb31d3a7c065353b546c6eec18d84507ec27ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Wed, 12 Aug 2020 09:53:33 +0200 Subject: [PATCH 20/45] chore: fix integration test It was bailing out at the end of ./pack.sh because the version was left as 0.0.0. This runs align-versions.sh in order to avoid this failure. --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d0c0fe448..92a345bc9d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -365,6 +365,11 @@ jobs: # TypeScript project dependencies yarn install --frozen-lockfile working-directory: aws-cdk + - name: Align Versions + run: |- + # Align versions so we don't build 0.0.0 (it'd fail pack.sh's validation) + ./scripts/align-version.sh + working-directory: aws-cdk - name: Install Tested Packages run: |- npm install --no-save ${{ runner.temp }}/js/*.tgz From 3fb8cefbf0b01712a9d0a92ada56eb065fc9ee2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2020 10:17:12 +0200 Subject: [PATCH 21/45] chore(deps): bump Microsoft.Extensions.DependencyInjection (#1873) Bumps [Microsoft.Extensions.DependencyInjection](https://github.com/aspnet/Extensions) from 3.1.6 to 3.1.7. - [Release notes](https://github.com/aspnet/Extensions/releases) - [Commits](https://github.com/aspnet/Extensions/compare/v3.1.6...v3.1.7) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 589b285307..2db8942209 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -3,7 +3,7 @@ - + From 42a9823d251fa6df6bd1c6a1a1d6ef22ba235ce0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2020 10:44:31 +0200 Subject: [PATCH 22/45] chore(deps-dev): bump ts-jest from 26.1.4 to 26.2.0 (#1872) Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 26.1.4 to 26.2.0. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v26.1.4...v26.2.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/jsii-pacmak/package.json | 2 +- yarn.lock | 36 ++++++------------------------- 2 files changed, 8 insertions(+), 30 deletions(-) diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 2960c63427..59f1e623a1 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -69,7 +69,7 @@ "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", "prettier": "^2.0.5", - "ts-jest": "^26.1.4", + "ts-jest": "^26.2.0", "typescript": "~3.9.7" }, "keywords": [ diff --git a/yarn.lock b/yarn.lock index 3874bce9b6..86fcd4604b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -534,17 +534,6 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" -"@jest/types@^26.2.0": - version "26.2.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.2.0.tgz#b28ca1fb517a4eb48c0addea7fcd9edc4ab45721" - integrity sha512-lvm3rJvctxd7+wxKSxxbzpDbr4FXDLaC57WEKdUIZ2cjTYuxYSc0zlyD7Z4Uqr5VdKxRUrtwIkiqBuvgf8uKJA== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^1.1.1" - "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - "@jest/types@^26.3.0": version "26.3.0" resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.3.0.tgz#97627bf4bdb72c55346eef98e3b3f7ddc4941f71" @@ -1552,7 +1541,7 @@ dependencies: "@types/jest" "*" -"@types/jest@*", "@types/jest@^26.0.9": +"@types/jest@*", "@types/jest@26.x", "@types/jest@^26.0.9": version "26.0.9" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.9.tgz#0543b57da5f0cd949c5f423a00c56c492289c989" integrity sha512-k4qFfJ5AUKrWok5KYXp2EPm89b0P/KZpl7Vg4XuOTVVQEhLDBDBU3iBFrjjdgd8fLw96aAtmnwhXHl63bWeBQQ== @@ -5789,19 +5778,7 @@ jest-snapshot@^26.3.0: pretty-format "^26.3.0" semver "^7.3.2" -jest-util@26.x: - version "26.2.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.2.0.tgz#0597d2a27c559340957609f106c408c17c1d88ac" - integrity sha512-YmDwJxLZ1kFxpxPfhSJ0rIkiZOM0PQbRcfH0TzJOhqCisCAsI1WcmoQqO83My9xeVA2k4n+rzg2UuexVKzPpig== - dependencies: - "@jest/types" "^26.2.0" - "@types/node" "*" - chalk "^4.0.0" - graceful-fs "^4.2.4" - is-ci "^2.0.0" - micromatch "^4.0.2" - -jest-util@^26.3.0: +jest-util@26.x, jest-util@^26.3.0: version "26.3.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.3.0.tgz#a8974b191df30e2bf523ebbfdbaeb8efca535b3e" integrity sha512-4zpn6bwV0+AMFN0IYhH/wnzIQzRaYVrz1A8sYnRnj4UXDXbOVtWmlaZkO9mipFqZ13okIfN87aDoJWB7VH6hcw== @@ -9016,11 +8993,12 @@ trim-off-newlines@^1.0.0: resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= -ts-jest@^26.1.4: - version "26.1.4" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.1.4.tgz#87d41a96016a8efe4b8cc14501d3785459af6fa6" - integrity sha512-Nd7diUX6NZWfWq6FYyvcIPR/c7GbEF75fH1R6coOp3fbNzbRJBZZAn0ueVS0r8r9ral1VcrpneAFAwB3TsVS1Q== +ts-jest@^26.2.0: + version "26.2.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.2.0.tgz#7ec22faceb05ee1467fdb5265d1b33c27441f163" + integrity sha512-9+y2qwzXdAImgLSYLXAb/Rhq9+K4rbt0417b8ai987V60g2uoNWBBmMkYgutI7D8Zhu+IbCSHbBtrHxB9d7xyA== dependencies: + "@types/jest" "26.x" bs-logger "0.x" buffer-from "1.x" fast-json-stable-stringify "2.x" From cfc99c2c7f2577de5b7832ad30ba28458813c868 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 12 Aug 2020 13:51:01 +0200 Subject: [PATCH 23/45] feat(jsii): detect changing visibility when overriding (#1876) Since C# does not allow changing the visibility of a member when overriding it, added a check to ensure nobody attempts to make a protected member public when overriding it. This is a somewhat common pitfall for users (as seen for example in aws/aws-cdk#9616), and the check will allow faster detection and correction (i.e: at compilation time instead of during `jsii-pacmak`). --- packages/jsii/lib/validator.ts | 16 +++++++++++++++ .../test/__snapshots__/negatives.test.js.snap | 6 ++++++ .../neg.override-changes-visibility.ts | 20 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 packages/jsii/test/negatives/neg.override-changes-visibility.ts diff --git a/packages/jsii/lib/validator.ts b/packages/jsii/lib/validator.ts index 6f5aebcc1a..aedaa7d771 100644 --- a/packages/jsii/lib/validator.ts +++ b/packages/jsii/lib/validator.ts @@ -392,6 +392,14 @@ function _defaultValidations(): ValidationFunction[] { label: string, action: string, ) { + if (!!expected.protected !== !!actual.protected) { + const expVisibility = expected.protected ? 'protected' : 'public'; + const actVisibility = actual.protected ? 'protected' : 'public'; + diagnostic( + ts.DiagnosticCategory.Error, + `${label} changes visibility when ${action} (expected ${expVisibility}, found ${actVisibility})`, + ); + } if (!deepEqual(actual.returns, expected.returns)) { const expType = spec.describeTypeReference(expected.returns?.type); const actType = spec.describeTypeReference(actual.returns?.type); @@ -446,6 +454,14 @@ function _defaultValidations(): ValidationFunction[] { label: string, action: string, ) { + if (!!expected.protected !== !!actual.protected) { + const expVisibility = expected.protected ? 'protected' : 'public'; + const actVisibility = actual.protected ? 'protected' : 'public'; + diagnostic( + ts.DiagnosticCategory.Error, + `${label} changes visibility when ${action} (expected ${expVisibility}, found ${actVisibility})`, + ); + } if (!deepEqual(expected.type, actual.type)) { const expType = spec.describeTypeReference(expected.type); const actType = spec.describeTypeReference(actual.type); diff --git a/packages/jsii/test/__snapshots__/negatives.test.js.snap b/packages/jsii/test/__snapshots__/negatives.test.js.snap index d42c6919fc..d9b1f709a2 100644 --- a/packages/jsii/test/__snapshots__/negatives.test.js.snap +++ b/packages/jsii/test/__snapshots__/negatives.test.js.snap @@ -436,6 +436,12 @@ exports[`omit.4 1`] = ` " `; +exports[`override-changes-visibility 1`] = ` +"error TS0: jsii.ChildClass#method changes visibility when overriding jsii.BaseClass (expected protected, found public) +error TS0: jsii.ChildClass#property changes visibility when overriding jsii.BaseClass (expected protected, found public) +" +`; + exports[`prohibited-member-name 1`] = ` "neg.prohibited-member-name.ts:4:3 - error TS9999: JSII: Prohibited member name: equals diff --git a/packages/jsii/test/negatives/neg.override-changes-visibility.ts b/packages/jsii/test/negatives/neg.override-changes-visibility.ts new file mode 100644 index 0000000000..92f096defd --- /dev/null +++ b/packages/jsii/test/negatives/neg.override-changes-visibility.ts @@ -0,0 +1,20 @@ +// Note: not testing "public -> protected" because this is invalid TypeScript, +// so the type checker will already have caught it for us. + +export class BaseClass { + protected readonly property?: string; + + protected method() { + return; + } +} + +export class ChildClass extends BaseClass { + // This property cannot be public as it overrides the one on BaseClass which is protected + public readonly property?: string; + + // This method cannot be public as it overrides the one on BaseClass which is protected + public method() { + throw new Error('Not Implemented'); + } +} From b6c35e3c11771715912904241d8695f16d1d2ac5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2020 13:51:22 +0200 Subject: [PATCH 24/45] chore(deps): bump Microsoft.Extensions.Logging (#1874) Bumps [Microsoft.Extensions.Logging](https://github.com/aspnet/Extensions) from 3.1.6 to 3.1.7. - [Release notes](https://github.com/aspnet/Extensions/releases) - [Commits](https://github.com/aspnet/Extensions/compare/v3.1.6...v3.1.7) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 2db8942209..1c1634040c 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -4,7 +4,7 @@ - + From acdd9a85942d094d6c36874b4d9664de3abcd8be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2020 14:58:54 +0200 Subject: [PATCH 25/45] chore(deps): bump Microsoft.Extensions.Logging.Console (#1875) Bumps [Microsoft.Extensions.Logging.Console](https://github.com/aspnet/Extensions) from 3.1.6 to 3.1.7. - [Release notes](https://github.com/aspnet/Extensions/releases) - [Commits](https://github.com/aspnet/Extensions/compare/v3.1.6...v3.1.7) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index 1c1634040c..b414c59a02 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -5,7 +5,7 @@ - + From e375647d21255cf3efa84081d672143a920854d2 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 12 Aug 2020 20:04:32 +0200 Subject: [PATCH 26/45] fix(jsii): README.md filename is case sensitive (#1871) The `README.md` file was processed in a case sensitive manner, but it does not really matter what casing it uses. Changed the flow to look for the file in a case-insensitive manner instead. Fixes #1862 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii/lib/assembler.ts | 12 ++++++++---- packages/jsii/test/compiler.test.ts | 2 ++ packages/jsii/test/negatives/Readme.md | 5 +++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 packages/jsii/test/negatives/Readme.md diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 8b3b1d5c34..07611225b9 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -97,8 +97,8 @@ export class Assembler implements Emitter { if (readme == null) { this._diagnostic( null, - ts.DiagnosticCategory.Suggestion, - 'There is no "README.md" file. It is recommended to have one.', + ts.DiagnosticCategory.Warning, + 'There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.', ); } const docs = _loadDocs.call(this); @@ -226,10 +226,14 @@ export class Assembler implements Emitter { } async function _loadReadme(this: Assembler) { - const readmePath = path.join(this.projectInfo.projectRoot, 'README.md'); - if (!(await fs.pathExists(readmePath))) { + // Search for `README.md` in a case-insensitive way + const fileName = (await fs.readdir(this.projectInfo.projectRoot)).find( + (file) => file.toLocaleLowerCase() === 'readme.md', + ); + if (fileName == null) { return undefined; } + const readmePath = path.join(this.projectInfo.projectRoot, fileName); const renderedLines = await literate.includeAndRenderExamples( await literate.loadFromFile(readmePath), literate.fileSystemLoader(this.projectInfo.projectRoot), diff --git a/packages/jsii/test/compiler.test.ts b/packages/jsii/test/compiler.test.ts index 5e99a36a95..537641de6c 100644 --- a/packages/jsii/test/compiler.test.ts +++ b/packages/jsii/test/compiler.test.ts @@ -15,6 +15,8 @@ describe(Compiler, () => { try { await writeFile(join(sourceDir, 'index.ts'), 'export class MarkerA {}'); + // Intentionally using lower case name - it should be case-insensitive + await writeFile(join(sourceDir, 'readme.md'), '# Test Package'); const compiler = new Compiler({ projectInfo: _makeProjectInfo(sourceDir, 'index.d.ts'), diff --git a/packages/jsii/test/negatives/Readme.md b/packages/jsii/test/negatives/Readme.md new file mode 100644 index 0000000000..1a57ee28be --- /dev/null +++ b/packages/jsii/test/negatives/Readme.md @@ -0,0 +1,5 @@ +# Negatives Tests + +None of those files is supposed to actually pass a `jsii` build, because they're +intentionally invalid. This `Readme.md` is there to silence emission of a +compiler warning (PyPI packages may be invalid if no `README.md` is present). From bd92d110544d97ebcde6525ebb1b77c980aee9ad Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 12 Aug 2020 20:13:33 +0200 Subject: [PATCH 27/45] chore: run Python runtime through `black` (#1878) Also changed slightly how development dependencies are installed here, so that information is less scattered and it can be managed by @dependabot correctly. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .../python-runtime/build-tools/_constants.ts | 7 +- .../@jsii/python-runtime/build-tools/deps.ts | 17 +- packages/@jsii/python-runtime/package.json | 3 +- packages/@jsii/python-runtime/pyproject.toml | 11 +- .../@jsii/python-runtime/requirements.txt | 11 +- packages/@jsii/python-runtime/setup.py | 17 +- .../src/jsii/_kernel/__init__.py | 77 ++++++--- .../src/jsii/_kernel/providers/base.py | 6 +- .../src/jsii/_kernel/providers/process.py | 9 +- .../python-runtime/src/jsii/_kernel/types.py | 1 + .../python-runtime/src/jsii/_reference_map.py | 41 +++-- .../@jsii/python-runtime/src/jsii/_runtime.py | 2 +- .../@jsii/python-runtime/src/jsii/errors.py | 1 - .../python-runtime/tests/test_compliance.py | 157 ++++++++++++------ .../@jsii/python-runtime/tests/test_python.py | 8 +- 15 files changed, 233 insertions(+), 135 deletions(-) diff --git a/packages/@jsii/python-runtime/build-tools/_constants.ts b/packages/@jsii/python-runtime/build-tools/_constants.ts index 9674acb8a6..ade9a41bdb 100644 --- a/packages/@jsii/python-runtime/build-tools/_constants.ts +++ b/packages/@jsii/python-runtime/build-tools/_constants.ts @@ -18,10 +18,15 @@ export function runCommand( shell: process.platform === 'win32', stdio: 'inherit', }); + if (result.error) { + throw result.error; + } if (result.status !== 0) { throw new Error( `Command failed with ${ - result.signal ? `signal ${result.signal}` : `code ${result.status}` + result.signal != null + ? `signal ${result.signal}` + : `code ${result.status}` }: ${command} ${args.join(' ')}`, ); } diff --git a/packages/@jsii/python-runtime/build-tools/deps.ts b/packages/@jsii/python-runtime/build-tools/deps.ts index 6e76a9b2b2..299093e5ca 100644 --- a/packages/@jsii/python-runtime/build-tools/deps.ts +++ b/packages/@jsii/python-runtime/build-tools/deps.ts @@ -1,6 +1,6 @@ #!/usr/bin/env npx ts-node -import { join } from 'path'; +import { join, resolve } from 'path'; import { venv, runCommand } from './_constants'; const python = join(venv.bin, 'python'); @@ -15,19 +15,6 @@ const env = { runCommand( python, - [ - '-m', - 'pip', - 'install', - '--no-input', - 'pip~=20.2', - 'setuptools~=46.1.3', - 'wheel~=0.34.2', - ], - { env }, -); -runCommand( - python, - ['-m', 'pip', 'install', '--no-input', '-r', 'requirements.txt'], + ['-m', 'pip', 'install', '-r', resolve(__dirname, '..', 'requirements.txt')], { env }, ); diff --git a/packages/@jsii/python-runtime/package.json b/packages/@jsii/python-runtime/package.json index 3c53107395..9ed243ee21 100644 --- a/packages/@jsii/python-runtime/package.json +++ b/packages/@jsii/python-runtime/package.json @@ -25,7 +25,8 @@ "generate": "ts-node build-tools/gen.ts", "deps": "ts-node build-tools/deps.ts", "dist-clean": "rm -rf dist", - "build": "cp ../../../README.md . && rm -f jsii-*.whl && npm run generate && npm run deps", + "build": "cp ../../../README.md . && rm -f jsii-*.whl && npm run generate && npm run deps && npm run lint", + "lint": "ts-node build-tools/venv.ts black .", "package": "package-python && package-private", "test": "npm run test:gen && npm run test:run", "test:gen": "npm run deps && ts-node build-tools/gen-calc.ts", diff --git a/packages/@jsii/python-runtime/pyproject.toml b/packages/@jsii/python-runtime/pyproject.toml index d1e6ae6e56..cb0113114a 100644 --- a/packages/@jsii/python-runtime/pyproject.toml +++ b/packages/@jsii/python-runtime/pyproject.toml @@ -1,2 +1,11 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = [ + "pip~=20.2", + "setuptools~=46.1.3", + "wheel~=0.34.2", +] + +[tool.black] +target-version = ['py36', 'py37', 'py38'] +include = '\.pyi?$' +exclude = '\.(git|mypy_cache|env)' diff --git a/packages/@jsii/python-runtime/requirements.txt b/packages/@jsii/python-runtime/requirements.txt index e1f919be49..bfff0a1e92 100644 --- a/packages/@jsii/python-runtime/requirements.txt +++ b/packages/@jsii/python-runtime/requirements.txt @@ -1,3 +1,8 @@ -pytest -pytest-mypy -. +black~=19.10b0 +pytest~=6.0.1 +pytest-mypy~=0.6.2 +pip~=20.2 +setuptools~=46.1.3 +wheel~=0.34.2 + +-e . diff --git a/packages/@jsii/python-runtime/setup.py b/packages/@jsii/python-runtime/setup.py index 858e705079..92ad8a384c 100644 --- a/packages/@jsii/python-runtime/setup.py +++ b/packages/@jsii/python-runtime/setup.py @@ -14,26 +14,18 @@ name="jsii", version=metadata["version"], license=metadata["license"], - url=metadata["homepage"], - project_urls={ - "Bug Tracker": metadata["bugs"], - "Source": metadata["repository"], - }, - + project_urls={"Bug Tracker": metadata["bugs"], "Source": metadata["repository"],}, description=metadata["description"], long_description=long_description, long_description_content_type="text/markdown", - author=metadata["author"], - package_dir={"": "src"}, packages=setuptools.find_packages(where="src"), package_data={ "jsii": ["_metadata.json", "py.typed"], "jsii._embedded.jsii": ["*.js", "*.js.map", "*.wasm"], }, - install_requires=[ "attrs~=19.3.0", "cattrs~=1.0.0", @@ -41,25 +33,18 @@ "python-dateutil", "typing_extensions~=3.7.4", ], - python_requires=">=3.6", - classifiers=[ "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", - "Programming Language :: JavaScript", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", - "Topic :: Software Development :: Libraries", "Topic :: Utilities", - "Typing :: Typed", ], ) diff --git a/packages/@jsii/python-runtime/src/jsii/_kernel/__init__.py b/packages/@jsii/python-runtime/src/jsii/_kernel/__init__.py index abb90fca55..398888fca6 100644 --- a/packages/@jsii/python-runtime/src/jsii/_kernel/__init__.py +++ b/packages/@jsii/python-runtime/src/jsii/_kernel/__init__.py @@ -40,7 +40,7 @@ SetResponse, InvokeResponse, KernelResponse, - BeginResponse + BeginResponse, ) @@ -63,7 +63,10 @@ def _get_overides(klass: JSClass, obj: Any) -> List[Override]: ) ) for mro_klass in type(obj).mro(): - if mro_klass is klass and getattr(mro_klass, "__jsii_type__", "Object") is not None: + if ( + mro_klass is klass + and getattr(mro_klass, "__jsii_type__", "Object") is not None + ): break if mro_klass is Object: break @@ -75,7 +78,10 @@ def _get_overides(klass: JSClass, obj: Any) -> List[Override]: original = getattr(jsii_class, name, _nothing) if original is not _nothing: if inspect.isfunction(item) and hasattr(original, "__jsii_name__"): - if any(entry.method == original.__jsii_name__ for entry in overrides): + if any( + entry.method == original.__jsii_name__ + for entry in overrides + ): # Don't re-register an override we already discovered through a previous type continue overrides.append( @@ -84,7 +90,10 @@ def _get_overides(klass: JSClass, obj: Any) -> List[Override]: elif inspect.isdatadescriptor(item) and hasattr( getattr(original, "fget", None), "__jsii_name__" ): - if any(entry.property == original.fget.__jsii_name__ for entry in overrides): + if any( + entry.property == original.fget.__jsii_name__ + for entry in overrides + ): # Don't re-register an override we already discovered through a previous type continue overrides.append( @@ -119,7 +128,11 @@ def wrapped(kernel, *args, **kwargs): # doesn't natively handle. These items will be created as "Object" types in the JSII. def _make_reference_for_native(kernel, d): if isinstance(d, dict): - return {"$jsii.map": {k: _make_reference_for_native(kernel, v) for k, v in d.items()}} + return { + "$jsii.map": { + k: _make_reference_for_native(kernel, v) for k, v in d.items() + } + } elif isinstance(d, list): return [_make_reference_for_native(kernel, i) for i in d] @@ -130,13 +143,16 @@ def _make_reference_for_native(kernel, d): typeFqn = getattr(d, "__jsii_type__") mapping = python_jsii_mapping(d) - if mapping: # This means we are handling a data_type (aka Struct) + if mapping: # This means we are handling a data_type (aka Struct) return { "$jsii.struct": { "fqn": typeFqn, "data": { - jsii_name: _make_reference_for_native(kernel, getattr(d, python_name)) for python_name, jsii_name in mapping.items() - } + jsii_name: _make_reference_for_native( + kernel, getattr(d, python_name) + ) + for python_name, jsii_name in mapping.items() + }, } } return d @@ -146,7 +162,10 @@ def _make_reference_for_native(kernel, d): # Whether a given object is a function-like object. # We won't use iscallable() since objects may implement __call__() # but we still want to serialize them as normal. - raise JSIIError("Cannot pass function as argument here (did you mean to call this function?): %r" % d) + raise JSIIError( + "Cannot pass function as argument here (did you mean to call this function?): %r" + % d + ) else: kernel.create(d.__class__, d) _reference_map.register_reference(d) @@ -158,7 +177,9 @@ def _handle_callback(kernel, callback): if callback.invoke: obj = _reference_map.resolve_id(callback.invoke.objref.ref) method = getattr(obj, callback.cookie) - hydrated_args = [_recursize_dereference(kernel, a) for a in callback.invoke.args] + hydrated_args = [ + _recursize_dereference(kernel, a) for a in callback.invoke.args + ] return method(*hydrated_args) elif callback.get: obj = _reference_map.resolve_id(callback.get.objref.ref) @@ -171,12 +192,16 @@ def _handle_callback(kernel, callback): raise JSIIError("Callback does not contain invoke|get|set") -def _callback_till_result(kernel, response: Callback, response_type: Type[KernelResponse]) -> Any: +def _callback_till_result( + kernel, response: Callback, response_type: Type[KernelResponse] +) -> Any: while isinstance(response, Callback): try: result = _handle_callback(kernel, response) except Exception as exc: - response = kernel.sync_complete(response.cbid, str(exc), None, response_type) + response = kernel.sync_complete( + response.cbid, str(exc), None, response_type + ) else: response = kernel.sync_complete(response.cbid, None, result, response_type) @@ -226,11 +251,14 @@ def create( fqn=klass.__jsii_type__ or "Object", args=_make_reference_for_native(self, args), overrides=_get_overides(klass, obj), - interfaces=[iface.__jsii_type__ for iface in getattr(klass, "__jsii_ifaces__", [])], + interfaces=[ + iface.__jsii_type__ + for iface in getattr(klass, "__jsii_ifaces__", []) + ], ) ) if isinstance(response, Callback): - obj.__jsii_ref__ = _callback_till_result(self, response, CreateResponse) + obj.__jsii_ref__ = _callback_till_result(self, response, CreateResponse) else: obj.__jsii_ref__ = response @@ -317,26 +345,25 @@ def sinvoke( return response.result @_dereferenced - def complete( - self, cbid: str, err: Optional[str], result: Any - ) -> Any: + def complete(self, cbid: str, err: Optional[str], result: Any) -> Any: return self.provider.complete( CompleteRequest( - cbid=cbid, - err=err, - result=_make_reference_for_native(self, result) + cbid=cbid, err=err, result=_make_reference_for_native(self, result) ) ) def sync_complete( - self, cbid: str, err: Optional[str], result: Any, response_type: Type[KernelResponse] + self, + cbid: str, + err: Optional[str], + result: Any, + response_type: Type[KernelResponse], ) -> Any: return self.provider.sync_complete( CompleteRequest( - cbid=cbid, - err=err, - result=_make_reference_for_native(self, result)), - response_type=response_type + cbid=cbid, err=err, result=_make_reference_for_native(self, result) + ), + response_type=response_type, ) def ainvoke( diff --git a/packages/@jsii/python-runtime/src/jsii/_kernel/providers/base.py b/packages/@jsii/python-runtime/src/jsii/_kernel/providers/base.py index 1edc0cb768..4476d56aad 100644 --- a/packages/@jsii/python-runtime/src/jsii/_kernel/providers/base.py +++ b/packages/@jsii/python-runtime/src/jsii/_kernel/providers/base.py @@ -30,7 +30,7 @@ StatsResponse, Callback, CompleteRequest, - KernelResponse + KernelResponse, ) @@ -78,7 +78,9 @@ def complete(self, request: CompleteRequest) -> CompleteResponse: ... @abc.abstractmethod - def sync_complete(self, request: CompleteRequest, response_type: Type[KernelResponse]) -> Union[InvokeResponse, GetResponse]: + def sync_complete( + self, request: CompleteRequest, response_type: Type[KernelResponse] + ) -> Union[InvokeResponse, GetResponse]: ... @abc.abstractmethod diff --git a/packages/@jsii/python-runtime/src/jsii/_kernel/providers/process.py b/packages/@jsii/python-runtime/src/jsii/_kernel/providers/process.py index d7504d41f4..cab26c3600 100644 --- a/packages/@jsii/python-runtime/src/jsii/_kernel/providers/process.py +++ b/packages/@jsii/python-runtime/src/jsii/_kernel/providers/process.py @@ -82,16 +82,19 @@ class _ErrorRespose: error: str stack: str + @attr.s(auto_attribs=True, frozen=True, slots=True) class _CallbackResponse: callback: Callback + @attr.s(auto_attribs=True, frozen=True, slots=True) class _CompleteRequest: complete: CompleteRequest + _ProcessResponse = Union[_OkayResponse, _ErrorRespose, _CallbackResponse] # Workaround for mypy#5354 _ProcessResponse_R: Type[Any] @@ -264,7 +267,7 @@ def start(self): environ = os.environ.copy() environ["JSII_AGENT"] = f"Python/{platform.python_version()}" - jsii_runtime = environ.get('JSII_RUNTIME', self._jsii_runtime()) + jsii_runtime = environ.get("JSII_RUNTIME", self._jsii_runtime()) self._process = subprocess.Popen( ["node", jsii_runtime], @@ -365,7 +368,9 @@ def callbacks(self, request: CallbacksRequest) -> CallbacksResponse: def complete(self, request: CompleteRequest) -> CompleteResponse: return self._process.send(request, CompleteResponse) - def sync_complete(self, request: CompleteRequest, response_type: Type[KernelResponse]) -> Union[InvokeResponse, GetResponse]: + def sync_complete( + self, request: CompleteRequest, response_type: Type[KernelResponse] + ) -> Union[InvokeResponse, GetResponse]: resp = self._process.send(_CompleteRequest(complete=request), response_type) return resp diff --git a/packages/@jsii/python-runtime/src/jsii/_kernel/types.py b/packages/@jsii/python-runtime/src/jsii/_kernel/types.py index 3f43dac5d3..b50123eed9 100644 --- a/packages/@jsii/python-runtime/src/jsii/_kernel/types.py +++ b/packages/@jsii/python-runtime/src/jsii/_kernel/types.py @@ -251,6 +251,7 @@ def __jsii_type__(self) -> str: Returns a str that points to this class inside of the Javascript runtime. """ + class Referenceable(Protocol): @property def __jsii_ref__(self) -> ObjRef: diff --git a/packages/@jsii/python-runtime/src/jsii/_reference_map.py b/packages/@jsii/python-runtime/src/jsii/_reference_map.py index 1961342285..1ad016804f 100644 --- a/packages/@jsii/python-runtime/src/jsii/_reference_map.py +++ b/packages/@jsii/python-runtime/src/jsii/_reference_map.py @@ -72,7 +72,9 @@ def resolve(self, kernel, ref): inst.__jsii_ref__ = ref if ref.interfaces is not None: - return InterfaceDynamicProxy([inst] + self.build_interface_proxies_for_ref(ref)) + return InterfaceDynamicProxy( + [inst] + self.build_interface_proxies_for_ref(ref) + ) else: return inst @@ -89,24 +91,36 @@ def resolve(self, kernel, ref): data_type = _data_types[class_fqn] remote_struct = _FakeReference(ref) - python_props = {python_name: kernel.get(remote_struct, jsii_name) - for python_name, jsii_name in python_jsii_mapping(data_type).items()} + python_props = { + python_name: kernel.get(remote_struct, jsii_name) + for python_name, jsii_name in python_jsii_mapping(data_type).items() + } return data_type(**python_props) elif class_fqn in _enums: return _enums[class_fqn] elif class_fqn == "Object": # If any one interface is a struct, all of them are guaranteed to be (Kernel invariant) - if ref.interfaces is not None and any(fqn in _data_types for fqn in ref.interfaces): + if ref.interfaces is not None and any( + fqn in _data_types for fqn in ref.interfaces + ): # Ugly delayed import here because I can't solve the cyclic # package dependency right now :(. from ._runtime import python_jsii_mapping structs = [_data_types[fqn] for fqn in ref.interfaces] remote_struct = _FakeReference(ref) - insts = [struct(**{ - python_name: kernel.get(remote_struct, jsii_name) for python_name, jsii_name in python_jsii_mapping(struct).items() - }) for struct in structs] + insts = [ + struct( + **{ + python_name: kernel.get(remote_struct, jsii_name) + for python_name, jsii_name in python_jsii_mapping( + struct + ).items() + } + ) + for struct in structs + ] return StructDynamicProxy(insts) else: return InterfaceDynamicProxy(self.build_interface_proxies_for_ref(ref)) @@ -137,7 +151,7 @@ def __getattr__(self, name): raise AttributeError(f"'%s' object has no attribute '%s'" % (type_info, name)) def __setattr__(self, name, value): - if name == '_delegates': + if name == "_delegates": return super.__setattr__(self, name, value) for delegate in self._delegates: if hasattr(delegate, name): @@ -158,7 +172,7 @@ def __getattr__(self, name): raise AttributeError("'%s' object has no attribute '%s'" % (type_info, name)) def __setattr__(self, name, value): - if name == '_delegates': + if name == "_delegates": return super.__setattr__(self, name, value) for delegate in self._delegates: if hasattr(delegate, name): @@ -177,11 +191,14 @@ def __ne__(self, rhs) -> bool: def __repr__(self) -> str: if len(self._delegates) == 1: return self._delegates[0].__repr__() - return '%s(%s)' % ( - ' & '.join([delegate.__class__.__jsii_type__ for delegate in self._delegates]), - ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + return "%s(%s)" % ( + " & ".join( + [delegate.__class__.__jsii_type__ for delegate in self._delegates] + ), + ", ".join(k + "=" + repr(v) for k, v in self._values.items()), ) + _refs = _ReferenceMap(_types) diff --git a/packages/@jsii/python-runtime/src/jsii/_runtime.py b/packages/@jsii/python-runtime/src/jsii/_runtime.py index fed5f6bb29..ce4ad33105 100644 --- a/packages/@jsii/python-runtime/src/jsii/_runtime.py +++ b/packages/@jsii/python-runtime/src/jsii/_runtime.py @@ -129,4 +129,4 @@ def proxy_for(abstract_class): def python_jsii_mapping(cls): - return getattr(cls, '__jsii_name_mapping__', None) + return getattr(cls, "__jsii_name_mapping__", None) diff --git a/packages/@jsii/python-runtime/src/jsii/errors.py b/packages/@jsii/python-runtime/src/jsii/errors.py index 2a698cce07..3e85012c88 100644 --- a/packages/@jsii/python-runtime/src/jsii/errors.py +++ b/packages/@jsii/python-runtime/src/jsii/errors.py @@ -6,7 +6,6 @@ class JSIIError(Exception): class JavaScriptError(Exception): - def __init__(self, stack): self.stack = stack diff --git a/packages/@jsii/python-runtime/tests/test_compliance.py b/packages/@jsii/python-runtime/tests/test_compliance.py index 4397c94cea..df06cc1b00 100644 --- a/packages/@jsii/python-runtime/tests/test_compliance.py +++ b/packages/@jsii/python-runtime/tests/test_compliance.py @@ -219,8 +219,8 @@ def test_primitiveTypes(): assert types.date_property == datetime.fromtimestamp(123 / 1000.0, tz=timezone.utc) # json - types.json_property = { "Foo": { "bar": 123 } } - assert types.json_property.get("Foo") == { "bar": 123 } + types.json_property = {"Foo": {"bar": 123}} + assert types.json_property.get("Foo") == {"bar": 123} def test_dates(): @@ -555,12 +555,14 @@ def test_syncOverrides(): obj.multiplier = 3 assert obj.caller_is_async() == 10 * 5 * 3 + def test_propertyOverrides_get_set(): so = SyncOverrides() assert so.retrieve_value_of_the_property() == "I am an override!" so.modify_value_of_the_property("New Value") assert so.another_the_property == "New Value" + def test_propertyOverrides_get_calls_super(): class SuperSyncVirtualMethods(SyncVirtualMethods): @property @@ -576,6 +578,7 @@ def the_property(self, value): assert so.retrieve_value_of_the_property() == "super:initial value" assert so.the_property == "super:initial value" + def test_propertyOverrides_set_calls_super(): class SuperSyncVirtualMethods(SyncVirtualMethods): @property @@ -590,13 +593,16 @@ def the_property(self, value): # but this causes a problem because of: # https://bugs.python.org/issue14965 # so now we have this more convoluted form. - super(self.__class__, self.__class__).the_property.__set__(self, f"{value}:by override") + super(self.__class__, self.__class__).the_property.__set__( + self, f"{value}:by override" + ) so = SuperSyncVirtualMethods() so.modify_value_of_the_property("New Value") assert so.the_property == "New Value:by override" + def test_propertyOverrides_get_throws(): class ThrowingSyncVirtualMethods(SyncVirtualMethods): @property @@ -677,6 +683,7 @@ def read_write_string(self, value): assert interact.just_read() == "READ_ONLY" assert interact.write_and_read("Hello") == "Hello" + def test_syncOverrides_callsSuper(): obj = SyncOverrides() assert obj.caller_is_property == 10 * 5 @@ -914,10 +921,9 @@ def test_testJsiiAgent(): def test_receiveInstanceOfPrivateClass(): assert ReturnsPrivateImplementationOfInterface().private_implementation.success + def test_eraseUnsetDataValues(): - opts = EraseUndefinedHashValuesOptions( - option1="option1" - ) + opts = EraseUndefinedHashValuesOptions(option1="option1") assert EraseUndefinedHashValues.does_key_exist(opts, "option1") assert not EraseUndefinedHashValues.does_key_exist(opts, "option2") @@ -939,58 +945,76 @@ def test_variadicMethodCanBeInvoked(): variadic = VariadicMethod(1) assert variadic.as_array(3, 4, 5, 6) == [1, 3, 4, 5, 6] + def test_callbacksCorrectlyDeserializeArguments(): class DataRendererSubclass(DataRenderer): def render_map(self, map): return super().render_map(map) + renderer = DataRendererSubclass() - assert renderer.render(anumber = 42, astring = "bazinga!") == "{\n \"anumber\": 42,\n \"astring\": \"bazinga!\"\n}" + assert ( + renderer.render(anumber=42, astring="bazinga!") + == '{\n "anumber": 42,\n "astring": "bazinga!"\n}' + ) + def test_passNestedStruct(): - output = StructPassing.round_trip(123, - required='hello', - second_level=SecondLevelStruct(deeper_required_prop='exists')) + output = StructPassing.round_trip( + 123, + required="hello", + second_level=SecondLevelStruct(deeper_required_prop="exists"), + ) - assert output.required == 'hello' + assert output.required == "hello" assert output.optional is None - assert output.second_level.deeper_required_prop == 'exists' + assert output.second_level.deeper_required_prop == "exists" # Test stringification # Dicts are ordered in Python 3.7+, so this is fine: https://mail.python.org/pipermail/python-dev/2017-December/151283.html - assert str(output) == "TopLevelStruct(required='hello', second_level=SecondLevelStruct(deeper_required_prop='exists'))" + assert ( + str(output) + == "TopLevelStruct(required='hello', second_level=SecondLevelStruct(deeper_required_prop='exists'))" + ) + def test_passNestedScalar(): - output = StructPassing.round_trip(123, - required='hello', - second_level=5) + output = StructPassing.round_trip(123, required="hello", second_level=5) - assert output.required == 'hello' + assert output.required == "hello" assert output.optional is None assert output.second_level == 5 + def test_passStructsInVariadic(): - output = StructPassing.how_many_var_args_did_i_pass(123, - TopLevelStruct(required='hello', second_level=1), - TopLevelStruct(required='bye', second_level=SecondLevelStruct(deeper_required_prop='ciao')) + output = StructPassing.how_many_var_args_did_i_pass( + 123, + TopLevelStruct(required="hello", second_level=1), + TopLevelStruct( + required="bye", second_level=SecondLevelStruct(deeper_required_prop="ciao") + ), ) assert output == 2 + def test_structEquality(): - a = TopLevelStruct(required='bye', second_level=SecondLevelStruct(deeper_required_prop='ciao')) - b = TopLevelStruct(required='hello', second_level=1), - c = TopLevelStruct(required='hello', second_level=1), - d = SecondLevelStruct(deeper_required_prop='exists') + a = TopLevelStruct( + required="bye", second_level=SecondLevelStruct(deeper_required_prop="ciao") + ) + b = (TopLevelStruct(required="hello", second_level=1),) + c = (TopLevelStruct(required="hello", second_level=1),) + d = SecondLevelStruct(deeper_required_prop="exists") assert a != b assert b == c assert a != 5 assert a != d + def test_correctly_handling_struct_unions(): - a0 = StructA(required_string='Present!', optional_string='Bazinga!') - a1 = StructA(required_string='Present!', optional_number=1337) - b0 = StructB(required_string='Present!', optional_boolean=True) - b1 = StructB(required_string='Present!', optional_struct_a=a1) + a0 = StructA(required_string="Present!", optional_string="Bazinga!") + a1 = StructA(required_string="Present!", optional_number=1337) + b0 = StructB(required_string="Present!", optional_boolean=True) + b1 = StructB(required_string="Present!", optional_struct_a=a1) assert StructUnionConsumer.is_struct_a(a0) assert StructUnionConsumer.is_struct_a(a1) @@ -1002,52 +1026,61 @@ def test_correctly_handling_struct_unions(): assert StructUnionConsumer.is_struct_b(b0) assert StructUnionConsumer.is_struct_b(b1) + def test_consumer_calls_method_static_objliteral(): assert ConsumerCanRingBell.static_implemented_by_object_literal(PythonBellRinger()) + def test_consumer_calls_method_static_publicclass(): assert ConsumerCanRingBell.static_implemented_by_public_class(PythonBellRinger()) + def test_consumer_calls_method_static_privateclass(): assert ConsumerCanRingBell.static_implemented_by_private_class(PythonBellRinger()) + def test_consumer_calls_method_static_typed_as_class(): assert ConsumerCanRingBell.static_when_typed_as_class(PythonConcreteBellRinger()) + def test_consumer_calls_method_objliteral(): assert ConsumerCanRingBell().implemented_by_object_literal(PythonBellRinger()) + def test_consumer_calls_method_publicclass(): assert ConsumerCanRingBell().implemented_by_public_class(PythonBellRinger()) + def test_consumer_calls_method_privateclass(): assert ConsumerCanRingBell().implemented_by_private_class(PythonBellRinger()) + def test_consumer_calls_method_typed_as_class(): assert ConsumerCanRingBell().when_typed_as_class(PythonConcreteBellRinger()) + def test_can_pass_nested_struct_as_dict(): # Those shouldn't raise: - RootStructValidator.validate(string_prop= 'Pickle Rick!!!') - RootStructValidator.validate(string_prop= 'Pickle Rick!!!', nested_struct= None) + RootStructValidator.validate(string_prop="Pickle Rick!!!") + RootStructValidator.validate(string_prop="Pickle Rick!!!", nested_struct=None) RootStructValidator.validate( - string_prop= 'Pickle Rick!!!', - nested_struct= { - 'number_prop': 1337 - } + string_prop="Pickle Rick!!!", nested_struct={"number_prop": 1337} ) + def test_can_leverage_indirect_interface_polymorphism(): provider = AnonymousImplementationProvider() assert provider.provide_as_class().value == 1337 assert provider.provide_as_interface().value == 1337 assert provider.provide_as_interface().verb() == "to implement" + # https://github.com/aws/jsii/issues/976 def test_return_subclass_that_implements_interface_976(): obj = SomeTypeJsii976.return_return() assert obj.foo == 333 + def test_return_subclass_that_implements_interface_976_raises_attributeerror_when_using_non_existent_method(): obj = SomeTypeJsii976.return_return() try: @@ -1055,47 +1088,63 @@ def test_return_subclass_that_implements_interface_976_raises_attributeerror_whe failed = False except AttributeError as err: failed = True - assert err.args[0] == "'+' object has no attribute 'not_a_real_method_I_swear'" + assert ( + err.args[0] + == "'+' object has no attribute 'not_a_real_method_I_swear'" + ) assert failed + def test_return_anonymous_implementation_of_interface(): assert SomeTypeJsii976.return_anonymous() is not None + def test_structs_can_be_downcasted_to_parent_type(): assert Demonstrate982.take_this() is not None assert Demonstrate982.take_this_too() is not None + @jsii.implements(IBellRinger) class PythonBellRinger: def your_turn(self, bell): bell.ring() + @jsii.implements(IConcreteBellRinger) class PythonConcreteBellRinger: def your_turn(self, bell): bell.ring() + def test_null_is_a_valid_optional_list(): assert DisappointingCollectionSource.MAYBE_LIST is None + def test_null_is_a_valid_optional_map(): assert DisappointingCollectionSource.MAYBE_MAP is None + def test_can_use_interface_setters(): obj = ObjectWithPropertyProvider.provide() - obj.property = 'New Value' + obj.property = "New Value" assert obj.was_set() + def test_structs_are_undecorated_on_the_way_to_kernel(): - json = JsonFormatter.stringify(StructB(required_string='Bazinga!', optional_boolean=False)) - assert loads(json) == {'requiredString': 'Bazinga!', 'optionalBoolean': False} + json = JsonFormatter.stringify( + StructB(required_string="Bazinga!", optional_boolean=False) + ) + assert loads(json) == {"requiredString": "Bazinga!", "optionalBoolean": False} + def test_can_obtain_reference_with_overloaded_setter(): assert ConfusingToJackson.make_instance() is not None + def test_can_obtain_struct_reference_with_overloaded_setter(): assert ConfusingToJackson.make_struct_instance() is not None + def test_pure_interfaces_can_be_used_transparently(): expected = StructB(required_string="It's Britney b**ch!") @@ -1108,6 +1157,7 @@ def return_struct(self): consumer = ConsumePureInterface(delegate) assert consumer.work_it_baby() == expected + def test_pure_interfaces_can_be_used_transparently_when_transitively_implementing(): expected = StructB(required_string="It's Britney b**ch!") @@ -1116,13 +1166,16 @@ class ImplementsStructReturningDelegate: def return_struct(self): return expected - class IndirectlyImplementsStructReturningDelegate(ImplementsStructReturningDelegate): + class IndirectlyImplementsStructReturningDelegate( + ImplementsStructReturningDelegate + ): ... delegate = IndirectlyImplementsStructReturningDelegate() consumer = ConsumePureInterface(delegate) assert consumer.work_it_baby() == expected + def test_pure_interfaces_can_be_used_transparently_when_added_to_jsii_type(): expected = StructB(required_string="It's Britney b**ch!") @@ -1135,12 +1188,14 @@ def return_struct(self): consumer = ConsumePureInterface(delegate) assert consumer.work_it_baby() == expected + def test_lifted_kwarg_with_same_name_as_positional_arg(): bell = Bell() - amb = AmbiguousParameters(bell, scope='Driiiing!') + amb = AmbiguousParameters(bell, scope="Driiiing!") assert amb.scope == bell - assert amb.props == StructParameterType(scope='Driiiing!') + assert amb.props == StructParameterType(scope="Driiiing!") + def test_abstract_members_are_correctly_handled(): class AbstractSuiteImpl(AbstractSuite): @@ -1161,7 +1216,7 @@ def _some_method(self, str): def test_collection_of_interfaces_list_of_structs(): for elt in InterfaceCollections.list_of_structs(): - assert getattr(elt, 'required_string') is not None + assert getattr(elt, "required_string") is not None def test_collection_of_interfaces_list_of_interfaces(): @@ -1171,7 +1226,7 @@ def test_collection_of_interfaces_list_of_interfaces(): def test_collection_of_interfaces_map_of_structs(): for elt in InterfaceCollections.map_of_structs().values(): - assert getattr(elt, 'required_string') is not None + assert getattr(elt, "required_string") is not None def test_collection_of_interfaces_map_of_interfaces(): @@ -1180,9 +1235,9 @@ def test_collection_of_interfaces_map_of_interfaces(): def test_dependency_submodule_types_are_usable(): - subject = UpcasingReflectable({ 'foo': 'bar' }) + subject = UpcasingReflectable({"foo": "bar"}) - assert UpcasingReflectable.REFLECTOR.as_map(subject) == { 'FOO': 'bar' } + assert UpcasingReflectable.REFLECTOR.as_map(subject) == {"FOO": "bar"} def test_load_submodules(): @@ -1191,14 +1246,14 @@ def test_load_submodules(): def test_parameter_named_self_ClassWithSelf(): - subject = ClassWithSelf('Howdy!') - assert subject.self == 'Howdy!' - assert subject.method(1337) == '1337' + subject = ClassWithSelf("Howdy!") + assert subject.self == "Howdy!" + assert subject.method(1337) == "1337" def test_parameter_named_self_ClassWithSelfKwarg(): - subject = ClassWithSelfKwarg(self='Howdy!') - assert subject.props.self == 'Howdy!' + subject = ClassWithSelfKwarg(self="Howdy!") + assert subject.props.self == "Howdy!" def test_isomorphism_within_constructor(): @@ -1211,4 +1266,4 @@ def __init__(self): def test_kwargs_from_superinterface_are_working(): - assert Kwargs.method(extra='ordinary', prop=SomeEnum.SOME) + assert Kwargs.method(extra="ordinary", prop=SomeEnum.SOME) diff --git a/packages/@jsii/python-runtime/tests/test_python.py b/packages/@jsii/python-runtime/tests/test_python.py index d4778f6774..c874a78c11 100644 --- a/packages/@jsii/python-runtime/tests/test_python.py +++ b/packages/@jsii/python-runtime/tests/test_python.py @@ -19,9 +19,9 @@ def test_inheritance_maintained(self): # inspect.getmro() won't work because of TypedDict, but we add another annotation bases = find_struct_bases(jsii_calc.DerivedStruct) - base_names = [b.__name__ for b in bases] + base_names = [b.__name__ for b in bases] - assert base_names == ['DerivedStruct', 'MyFirstStruct'] + assert base_names == ["DerivedStruct", "MyFirstStruct"] def test_descriptive_error_when_passing_function(self): obj = jsii_calc.Calculator() @@ -38,9 +38,9 @@ def recurse(s): if s not in seen: ret.append(s) seen.add(s) - bases = getattr(s, '__jsii_struct_bases__', []) + bases = getattr(s, "__jsii_struct_bases__", []) for base in bases: recurse(base) recurse(x) - return ret \ No newline at end of file + return ret From 11d549ccbe8ac9adc7abbad27797f3133f4d374d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2020 09:41:24 +0200 Subject: [PATCH 28/45] chore(deps): update setuptools requirement (#1883) Updates the requirements on [setuptools](https://github.com/pypa/setuptools) to permit the latest version. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/master/CHANGES.rst) - [Commits](https://github.com/pypa/setuptools/compare/v46.1.3...v49.3.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/python-runtime/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/python-runtime/requirements.txt b/packages/@jsii/python-runtime/requirements.txt index bfff0a1e92..953815797d 100644 --- a/packages/@jsii/python-runtime/requirements.txt +++ b/packages/@jsii/python-runtime/requirements.txt @@ -2,7 +2,7 @@ black~=19.10b0 pytest~=6.0.1 pytest-mypy~=0.6.2 pip~=20.2 -setuptools~=46.1.3 +setuptools~=49.3.2 wheel~=0.34.2 -e . From 12f820709d3e445aaae5cb437a522f307883da99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2020 09:42:27 +0200 Subject: [PATCH 29/45] chore(deps): bump jest from 26.3.0 to 26.4.0 (#1882) Bumps [jest](https://github.com/facebook/jest) from 26.3.0 to 26.4.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.3.0...v26.4.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 260 ++++++++++++------------- 13 files changed, 142 insertions(+), 142 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index b563f818dd..1f26178029 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -20,7 +20,7 @@ "@octokit/rest": "^18.0.3", "dotenv": "^8.2.0", "fs-extra": "^9.0.1", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 32c242c40a..d2abd5f9e9 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -47,7 +47,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 3896f357ed..64f64f7293 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -45,7 +45,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^1.19.1", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index c1c47c4aae..e4c311d72d 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -39,7 +39,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "prettier": "^1.19.1", "typescript": "~3.9.7", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 840e795451..7454c8745f 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -42,7 +42,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "prettier": "^2.0.5", "typescript": "~3.9.7" }, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index c4419a046b..d58b3de8e1 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -27,7 +27,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index dd401583a3..f92a259a37 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -50,7 +50,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 59f1e623a1..9a85164fcd 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -64,7 +64,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "mock-fs": "^4.12.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 610bf2a112..5fd4ea253d 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -49,7 +49,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 61c069427a..04363d0aab 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -25,7 +25,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 7410f5a735..3e3ce1fdc4 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -60,7 +60,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5" diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 89c19879d3..492aee365a 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -36,7 +36,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", - "jest": "^26.3.0", + "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/yarn.lock b/yarn.lock index 86fcd4604b..f70b3d1dc4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -376,13 +376,13 @@ jest-util "^26.3.0" slash "^3.0.0" -"@jest/core@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.3.0.tgz#da496913ce7385b5e597b527078bf4ca12d2b627" - integrity sha512-WAAqGMpc+U+GS0oSr/ikI1JdRyPQyTZSVOr1xjnVcfvfUTZCK+wGoN0Cb7dm7HVdpbMQr/NvtM6vBVChctmzHA== +"@jest/core@^26.4.0": + version "26.4.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.4.0.tgz#8f42ae45640b46b4f8ffee134dcd408c210ab1ef" + integrity sha512-mpXm4OjWQbz7qbzGIiSqvfNZ1FxX6ywWgLtdSD2luPORt5zKPtqcdDnX7L8RdfMaj1znDBgN2+gB094ZIr7vnA== dependencies: "@jest/console" "^26.3.0" - "@jest/reporters" "^26.3.0" + "@jest/reporters" "^26.4.0" "@jest/test-result" "^26.3.0" "@jest/transform" "^26.3.0" "@jest/types" "^26.3.0" @@ -392,17 +392,17 @@ exit "^0.1.2" graceful-fs "^4.2.4" jest-changed-files "^26.3.0" - jest-config "^26.3.0" + jest-config "^26.4.0" jest-haste-map "^26.3.0" jest-message-util "^26.3.0" jest-regex-util "^26.0.0" - jest-resolve "^26.3.0" - jest-resolve-dependencies "^26.3.0" - jest-runner "^26.3.0" - jest-runtime "^26.3.0" - jest-snapshot "^26.3.0" + jest-resolve "^26.4.0" + jest-resolve-dependencies "^26.4.0" + jest-runner "^26.4.0" + jest-runtime "^26.4.0" + jest-snapshot "^26.4.0" jest-util "^26.3.0" - jest-validate "^26.3.0" + jest-validate "^26.4.0" jest-watcher "^26.3.0" micromatch "^4.0.2" p-each-series "^2.1.0" @@ -432,19 +432,19 @@ jest-mock "^26.3.0" jest-util "^26.3.0" -"@jest/globals@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.3.0.tgz#41a931c5bce4572b437dffab7146850044c7d359" - integrity sha512-oPe30VG9zor2U3Ev7khCM2LkjO3D+mgAv6s5D3Ed0sxfELxoRZwR8d1VgYWVQljcpumMwe9tDrKNuzgVjbEt7g== +"@jest/globals@^26.4.0": + version "26.4.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.4.0.tgz#ebab3ba937a200a4b3805f2e552bdf869465ffea" + integrity sha512-QKwoVAeL9d0xaEM9ebPvfc+bolN04F+o3zM2jswGDBiiNjCogZ3LvOaqumRdDyz6kLmbx+UhgMBAVuLunbXZ2A== dependencies: "@jest/environment" "^26.3.0" "@jest/types" "^26.3.0" - expect "^26.3.0" + expect "^26.4.0" -"@jest/reporters@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.3.0.tgz#12112cc0a073a92e7205d7ceee4de7cfac232105" - integrity sha512-MfLJOUPxhGb3sRT/wFjHXd6gyVQ1Fb1XxbEwY+gqdDBpg3pq5qAB5eiBUvcTheFRHmhu3gOv3UZ/gtxmqGBA+Q== +"@jest/reporters@^26.4.0": + version "26.4.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.4.0.tgz#dd3f03979170dd25dc6a9b746c693b591056d753" + integrity sha512-14OPAAuYhgRBSNxAocVluX6ksdMdK/EuP9NmtBXU9g1uKaVBrPnohn/CVm6iMot1a9iU8BCxa5715YRf8FEg/A== dependencies: "@bcoe/v8-coverage" "^0.2.3" "@jest/console" "^26.3.0" @@ -462,7 +462,7 @@ istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.0.2" jest-haste-map "^26.3.0" - jest-resolve "^26.3.0" + jest-resolve "^26.4.0" jest-util "^26.3.0" jest-worker "^26.3.0" slash "^3.0.0" @@ -492,16 +492,16 @@ "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.3.0.tgz#f22b4927f8eef391ebaba6205d6aba328af9fda9" - integrity sha512-G7TA0Z85uj5l1m9UKZ/nXbArn0y+MeLKbojNLDHgjb1PpNNFDAOO6FJhk9We34m/hadcciMcJFnxV94dV2TX+w== +"@jest/test-sequencer@^26.4.0": + version "26.4.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.4.0.tgz#f4902772392d478d310dd6fd3b6818fb4bcc4c82" + integrity sha512-9Z7lCShS7vERp+DRwIVNH/6sHMWwJK1DPnGCpGeVLGJJWJ4Y08sQI3vIKdmKHu2KmwlUBpRM+BFf7NlVUkl5XA== dependencies: "@jest/test-result" "^26.3.0" graceful-fs "^4.2.4" jest-haste-map "^26.3.0" - jest-runner "^26.3.0" - jest-runtime "^26.3.0" + jest-runner "^26.4.0" + jest-runtime "^26.4.0" "@jest/transform@^26.3.0": version "26.3.0" @@ -4082,15 +4082,15 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.3.0.tgz#6145b4999a2c9bd64a644360d0c781c44d369c54" - integrity sha512-3tC0dpPgkTGkycM9H+mMjzIhm8I3ZAOV+y1Cj3xmF9iKxDeHBCAB64hf1OY//bMzQ/AftfodNy2pQWMKpTIV8Q== +expect@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.4.0.tgz#34a0aae523343b0931ff1cf0aa972dfe40edfab4" + integrity sha512-dbYDJhFcqQsamlos6nEwAMe+ahdckJBk5fmw1DYGLQGabGSlUuT+Fm2jHYw5119zG3uIhP+lCQbjJhFEdZMJtg== dependencies: "@jest/types" "^26.3.0" ansi-styles "^4.0.0" jest-get-type "^26.3.0" - jest-matcher-utils "^26.3.0" + jest-matcher-utils "^26.4.0" jest-message-util "^26.3.0" jest-regex-util "^26.0.0" @@ -5452,12 +5452,12 @@ jest-changed-files@^26.3.0: execa "^4.0.0" throat "^5.0.0" -jest-cli@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.3.0.tgz#046164f0b8194234aaa76bb58e867f5d6e3fcf53" - integrity sha512-vrlDluEjnNTJNpmw+lJ1Dvjhc+2o7QG0dG8n+iDu3NaoQ9OzqNeZsZZ0a9KP7SdtD5BXgvGSpCWTlLH5SqtxcA== +jest-cli@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.4.0.tgz#9cbd6be818cd818d85bafe2cffa1dbf043602b28" + integrity sha512-kw2Pr3V2x9/WzSDGsbz/MJBNlCoPMxMudrIavft4bqRlv5tASjU51tyO+1Os1LdW2dAnLQZYsxFUZ8oWPyssGQ== dependencies: - "@jest/core" "^26.3.0" + "@jest/core" "^26.4.0" "@jest/test-result" "^26.3.0" "@jest/types" "^26.3.0" chalk "^4.0.0" @@ -5465,19 +5465,19 @@ jest-cli@^26.3.0: graceful-fs "^4.2.4" import-local "^3.0.2" is-ci "^2.0.0" - jest-config "^26.3.0" + jest-config "^26.4.0" jest-util "^26.3.0" - jest-validate "^26.3.0" + jest-validate "^26.4.0" prompts "^2.0.1" yargs "^15.3.1" -jest-config@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.3.0.tgz#adb776fa88fc45ea719287cc09e4f0f5d5b3ce00" - integrity sha512-xzvmhKYOXOc/JjGabUUXoi7Nxu6QpY5zJxND85wdqFrdP7raJT5wqlrVJbp6Bv4Sj1e83Z8bkxjsZCpwPASaPw== +jest-config@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.4.0.tgz#72ff3d0418b7ee7fdd9e2bcaef4dec10b38b3b02" + integrity sha512-MxsvrBug8YY+C4QcUBtmgnHyFeW7w3Ouk/w9eplCDN8VJGVyBEZFe8Lxzfp2pSqh0Dqurqv8Oik2YkbekGUlxg== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.3.0" + "@jest/test-sequencer" "^26.4.0" "@jest/types" "^26.3.0" babel-jest "^26.3.0" chalk "^4.0.0" @@ -5487,13 +5487,13 @@ jest-config@^26.3.0: jest-environment-jsdom "^26.3.0" jest-environment-node "^26.3.0" jest-get-type "^26.3.0" - jest-jasmine2 "^26.3.0" + jest-jasmine2 "^26.4.0" jest-regex-util "^26.0.0" - jest-resolve "^26.3.0" + jest-resolve "^26.4.0" jest-util "^26.3.0" - jest-validate "^26.3.0" + jest-validate "^26.4.0" micromatch "^4.0.2" - pretty-format "^26.3.0" + pretty-format "^26.4.0" jest-diff@^25.2.1: version "25.5.0" @@ -5505,15 +5505,15 @@ jest-diff@^25.2.1: jest-get-type "^25.2.6" pretty-format "^25.5.0" -jest-diff@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.3.0.tgz#485eea87b7003d34628c960c6c625ffe4de8ab04" - integrity sha512-q5OZAtnr5CbHzrhjANzc3wvROk7+rcjCUI5uqM4cjOjtscNKfbJKBs3YhsWWhsdsIZzI3gc6wOpm49r6S61beg== +jest-diff@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.4.0.tgz#d073a0a11952b5bd9f1ff39bb9ad24304a0c55f7" + integrity sha512-wwC38HlOW+iTq6j5tkj/ZamHn6/nrdcEOc/fKaVILNtN2NLWGdkfRaHWwfNYr5ehaLvuoG2LfCZIcWByVj0gjg== dependencies: chalk "^4.0.0" diff-sequences "^26.3.0" jest-get-type "^26.3.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" jest-docblock@^26.0.0: version "26.0.0" @@ -5522,16 +5522,16 @@ jest-docblock@^26.0.0: dependencies: detect-newline "^3.0.0" -jest-each@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.3.0.tgz#f70192d59f6a8d72b4ccfe8e9a39ddf667b1263e" - integrity sha512-OSAnLv0Eo/sDVhV0ifT2u6Q4aYUBoZ97R4k9cQshUFLTco0iRDbViJiW3Y6ySZjW95Tb83/xMYCppBih/7sW/A== +jest-each@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.4.0.tgz#c53605b20e7a0a58d6dcf4d8b2f309e607d35d5a" + integrity sha512-+cyBh1ehs6thVT/bsZVG+WwmRn2ix4Q4noS9yLZgM10yGWPW12/TDvwuOV2VZXn1gi09/ZwJKJWql6YW1C9zNw== dependencies: "@jest/types" "^26.3.0" chalk "^4.0.0" jest-get-type "^26.3.0" jest-util "^26.3.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" jest-environment-jsdom@^26.3.0: version "26.3.0" @@ -5594,10 +5594,10 @@ jest-haste-map@^26.3.0: optionalDependencies: fsevents "^2.1.2" -jest-jasmine2@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.3.0.tgz#5c9d365d3032342801cfd15abd2cdcccc7fb01ff" - integrity sha512-ZPkkA2XfH/fcLOp0SjeR4uDrMoNFilcwxLHORpjfMrcU0BFHNNRaF3DnslCdmewzqaERqtmHpYo8jj34RT+m2g== +jest-jasmine2@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.4.0.tgz#f66b2237203df4227d3bdbb4b8a0de54ba877d35" + integrity sha512-cGBxwzDDKB09EPJ4pE69BMDv+2lO442IB1xQd+vL3cua2OKdeXQK6iDlQKoRX/iP0RgU5T8sn9yahLcx/+ox8Q== dependencies: "@babel/traverse" "^7.1.0" "@jest/environment" "^26.3.0" @@ -5607,34 +5607,34 @@ jest-jasmine2@^26.3.0: "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - expect "^26.3.0" + expect "^26.4.0" is-generator-fn "^2.0.0" - jest-each "^26.3.0" - jest-matcher-utils "^26.3.0" + jest-each "^26.4.0" + jest-matcher-utils "^26.4.0" jest-message-util "^26.3.0" - jest-runtime "^26.3.0" - jest-snapshot "^26.3.0" + jest-runtime "^26.4.0" + jest-snapshot "^26.4.0" jest-util "^26.3.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" throat "^5.0.0" -jest-leak-detector@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.3.0.tgz#74c077a243585cc1d2cfd50d231d373100dd6e6f" - integrity sha512-8C2Bur0S6n2xgW5kx22bDbe+Jjz9sM7/abr7DRQ48ww6q4w7vVzEpDEZiY7KatjTHtUloLTAqwTXEXg+tuETTg== +jest-leak-detector@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.4.0.tgz#1efeeef693af3c9332062876add5ac5f25cb0a70" + integrity sha512-7EXKKEKnAWUPyiVtGZzJflbPOtYUdlNoevNVOkAcPpdR8xWiYKPGNGA6sz25S+8YhZq3rmkQJYAh3/P0VnoRwA== dependencies: jest-get-type "^26.3.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" -jest-matcher-utils@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.3.0.tgz#41dfecac8e7a38e38330c159789711a50edffaed" - integrity sha512-M5ZRSp6qpyzZyrLwXD2Sop7xaxm6qu/mKvqWU+BOSPTa4Y0ZEoKUYBzus/emg6kaVt7Ov9xMDLLZR1SrC8FxCw== +jest-matcher-utils@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.4.0.tgz#2bce9a939e008b894faf1bd4b5bb58facd00c252" + integrity sha512-u+xdCdq+F262DH+PutJKXLGr2H5P3DImdJCir51PGSfi3TtbLQ5tbzKaN8BkXbiTIU6ayuAYBWTlU1nyckVdzA== dependencies: chalk "^4.0.0" - jest-diff "^26.3.0" + jest-diff "^26.4.0" jest-get-type "^26.3.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" jest-message-util@^26.3.0: version "26.3.0" @@ -5668,19 +5668,19 @@ jest-regex-util@^26.0.0: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -jest-resolve-dependencies@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.3.0.tgz#98e4a2d17ffa352e6be72a3d180f2260d9d4f473" - integrity sha512-j5rZ2BUh8vVjJZ7bpgCre0t6mbFLm5BWfVhYb1H35A3nbPN3kepzMqkMnKXPhwyLIVwn25uYkv6LHc2/Xa1sGw== +jest-resolve-dependencies@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.4.0.tgz#c911fc991e1ae034dd8d01c192f23459d66b87b7" + integrity sha512-hznK/hlrlhu8hwdbieRdHFKmcV83GW8t30libt/v6j1L3IEzb8iN21SaWzV8KRAAK4ijiU0kuge0wnHn+0rytQ== dependencies: "@jest/types" "^26.3.0" jest-regex-util "^26.0.0" - jest-snapshot "^26.3.0" + jest-snapshot "^26.4.0" -jest-resolve@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.3.0.tgz#c497cded13714b9ec98848837525323184fb4c95" - integrity sha512-+oKVWDkXjdZ4Xciuxv+M5e5v/Z3RLjrKIzen9tq3IO6HpzsLf9Mk3rET5du1uU8iVUCvz4/1PmjzNF50Uc7l2A== +jest-resolve@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.4.0.tgz#6dc0af7fb93e65b73fec0368ca2b76f3eb59a6d7" + integrity sha512-bn/JoZTEXRSlEx3+SfgZcJAVuTMOksYq9xe9O6s4Ekg84aKBObEaVXKOEilULRqviSLAYJldnoWV9c07kwtiCg== dependencies: "@jest/types" "^26.3.0" chalk "^4.0.0" @@ -5691,10 +5691,10 @@ jest-resolve@^26.3.0: resolve "^1.17.0" slash "^3.0.0" -jest-runner@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.3.0.tgz#30093549b31659e64e987728a6ef601f464916b6" - integrity sha512-eiPKgbhTM4q6A7RBh4qzKf6hwFDJMfqoFJubFvWSrHdZUsvSiBWYDqQI+FUXDFxDAOn/AfZjKURACAH3fUDjwA== +jest-runner@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.4.0.tgz#4cb91b266390fbf266294a7d8250d0e7bf8c7a9d" + integrity sha512-XF+tnUGolnPriu6Gg+HHWftspMjD5NkTV2mQppQnpZe39GcUangJ0al7aBGtA3GbVAcRd048DQiJPmsQRdugjw== dependencies: "@jest/console" "^26.3.0" "@jest/environment" "^26.3.0" @@ -5705,27 +5705,27 @@ jest-runner@^26.3.0: emittery "^0.7.1" exit "^0.1.2" graceful-fs "^4.2.4" - jest-config "^26.3.0" + jest-config "^26.4.0" jest-docblock "^26.0.0" jest-haste-map "^26.3.0" - jest-leak-detector "^26.3.0" + jest-leak-detector "^26.4.0" jest-message-util "^26.3.0" - jest-resolve "^26.3.0" - jest-runtime "^26.3.0" + jest-resolve "^26.4.0" + jest-runtime "^26.4.0" jest-util "^26.3.0" jest-worker "^26.3.0" source-map-support "^0.5.6" throat "^5.0.0" -jest-runtime@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.3.0.tgz#2f2d030b8a3d6c7653cb9c40544d687a1a5c09af" - integrity sha512-cqCz+S76qwZcPnddkLCjuNw9O8/lB+i1odjz2hpvpDogXLp0qSMs+Slh1gBjB5V4feUyBHav/550Mr3FeTdmnA== +jest-runtime@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.4.0.tgz#0b860f2bcf4f6047919c5b3fe74ed6adbe0056b4" + integrity sha512-1fjZgGpkyQBUTo59Vi19I4IcsBwzY6uwVFNjUmR06iIi3XRErkY28yimi4IUDRrofQErqcDEw2n3DF9WmQ6vEg== dependencies: "@jest/console" "^26.3.0" "@jest/environment" "^26.3.0" "@jest/fake-timers" "^26.3.0" - "@jest/globals" "^26.3.0" + "@jest/globals" "^26.4.0" "@jest/source-map" "^26.3.0" "@jest/test-result" "^26.3.0" "@jest/transform" "^26.3.0" @@ -5736,15 +5736,15 @@ jest-runtime@^26.3.0: exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.2.4" - jest-config "^26.3.0" + jest-config "^26.4.0" jest-haste-map "^26.3.0" jest-message-util "^26.3.0" jest-mock "^26.3.0" jest-regex-util "^26.0.0" - jest-resolve "^26.3.0" - jest-snapshot "^26.3.0" + jest-resolve "^26.4.0" + jest-snapshot "^26.4.0" jest-util "^26.3.0" - jest-validate "^26.3.0" + jest-validate "^26.4.0" slash "^3.0.0" strip-bom "^4.0.0" yargs "^15.3.1" @@ -5757,25 +5757,25 @@ jest-serializer@^26.3.0: "@types/node" "*" graceful-fs "^4.2.4" -jest-snapshot@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.3.0.tgz#8bec08bda1133ad0a7fa0184b1c385f801e3b1df" - integrity sha512-tHVUIeOTN/0SZN2ZjBZHzPG5txs/6uEQx2mwjxIT7QRE7pddPLd8jktXthyIz6bV+3GKetWXSV4YAoPUQwrfMA== +jest-snapshot@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.4.0.tgz#efd42eef09bcb33e9a3eb98e229f2368c73c9235" + integrity sha512-vFGmNGWHMBomrlOpheTMoqihymovuH3GqfmaEIWoPpsxUXyxT3IlbxI5I4m2vg0uv3HUJYg5JoGrkgMzVsAwCg== dependencies: "@babel/types" "^7.0.0" "@jest/types" "^26.3.0" "@types/prettier" "^2.0.0" chalk "^4.0.0" - expect "^26.3.0" + expect "^26.4.0" graceful-fs "^4.2.4" - jest-diff "^26.3.0" + jest-diff "^26.4.0" jest-get-type "^26.3.0" jest-haste-map "^26.3.0" - jest-matcher-utils "^26.3.0" + jest-matcher-utils "^26.4.0" jest-message-util "^26.3.0" - jest-resolve "^26.3.0" + jest-resolve "^26.4.0" natural-compare "^1.4.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" semver "^7.3.2" jest-util@26.x, jest-util@^26.3.0: @@ -5790,17 +5790,17 @@ jest-util@26.x, jest-util@^26.3.0: is-ci "^2.0.0" micromatch "^4.0.2" -jest-validate@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.3.0.tgz#751c3f8e20a15b9d7ada8d1a361d0975ba793249" - integrity sha512-oIJWqkIdgh1Q1O7ku4kDGkQoFKUOtZyDMbfYs4DsBi6r+FDY37xKTyZ30nM8F6yGZfB72qc7XB+3qKRgokwoXg== +jest-validate@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.4.0.tgz#3874a7cc9e27328afac88899ee9e2fae5e3a4293" + integrity sha512-t56Z/FRMrLP6mpmje7/YgHy0wOzcuc6i3LBXz6kjmsUWYN62OuMdC86Vg9/dX59SvyitSqqegOrx+h7BkNXeaQ== dependencies: "@jest/types" "^26.3.0" camelcase "^6.0.0" chalk "^4.0.0" jest-get-type "^26.3.0" leven "^3.1.0" - pretty-format "^26.3.0" + pretty-format "^26.4.0" jest-watcher@^26.3.0: version "26.3.0" @@ -5824,14 +5824,14 @@ jest-worker@^26.3.0: merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.3.0.tgz#366e25827831e65743a324bc476de54f41f2e07b" - integrity sha512-LFCry7NS6bTa4BUGUHC+NvZ3B9WG7Jv8F+Lb96dAJFM23LMwSsL5RiJcw9S+nejsh8lS1VxHq+RSH4Xa9tujpA== +jest@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.4.0.tgz#495e81dcff40f8a656e567c664af87b29c5c5922" + integrity sha512-lNCOS+ckRHE1wFyVtQClBmbsOVuH2GWUTJMDL3vunp9DXcah+V8vfvVVApngClcdoc3rgZpqOfCNKLjxjj2l4g== dependencies: - "@jest/core" "^26.3.0" + "@jest/core" "^26.4.0" import-local "^3.0.2" - jest-cli "^26.3.0" + jest-cli "^26.4.0" js-tokens@^4.0.0: version "4.0.0" @@ -7430,10 +7430,10 @@ pretty-format@^25.2.1, pretty-format@^25.5.0: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-format@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.3.0.tgz#d9a7b4bb2948cabc646e6a7729b12f686f3fed36" - integrity sha512-24kRw4C2Ok8+SHquydTZZCZPF2fvANI7rChGs8sNu784+1Jkq5jVFMvNAJSLuLy6XUcP3Fnw+SscLIQag/CG8Q== +pretty-format@^26.4.0: + version "26.4.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.4.0.tgz#c08073f531429e9e5024049446f42ecc9f933a3b" + integrity sha512-mEEwwpCseqrUtuMbrJG4b824877pM5xald3AkilJ47Po2YLr97/siejYQHqj2oDQBeJNbu+Q0qUuekJ8F0NAPg== dependencies: "@jest/types" "^26.3.0" ansi-regex "^5.0.0" From b93b72c1cab5ce50863f26b0e00bf0be997320b3 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Thu, 13 Aug 2020 15:29:12 +0200 Subject: [PATCH 30/45] chore: npm-check-updates && yarn upgrade (#1879) Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Romain Marcadier --- .github/workflows/yarn-upgrade.yml | 31 ++- .gitignore | 1 + package.json | 6 +- packages/@jsii/integ-test/package.json | 4 +- packages/@jsii/kernel/package.json | 4 +- packages/@jsii/runtime/bundle.sh | 3 +- packages/@jsii/runtime/lib/host.ts | 2 +- packages/@jsii/runtime/package.json | 4 +- packages/@jsii/spec/package.json | 4 +- .../jsii-calc-base-of-base/package.json | 4 +- packages/@scope/jsii-calc-base/package.json | 4 +- packages/@scope/jsii-calc-lib/package.json | 4 +- packages/codemaker/package.json | 2 - packages/jsii-calc/package.json | 4 +- packages/jsii-config/package.json | 2 - packages/jsii-diff/package.json | 4 +- packages/jsii-pacmak/package.json | 2 - packages/jsii-reflect/package.json | 4 +- packages/jsii-rosetta/package.json | 2 - packages/jsii/package.json | 2 - packages/oo-ascii-tree/package.json | 2 - yarn.lock | 239 ++++++++++-------- 22 files changed, 171 insertions(+), 163 deletions(-) diff --git a/.github/workflows/yarn-upgrade.yml b/.github/workflows/yarn-upgrade.yml index 5364e5905c..5b84049fe4 100644 --- a/.github/workflows/yarn-upgrade.yml +++ b/.github/workflows/yarn-upgrade.yml @@ -32,15 +32,32 @@ jobs: restore-keys: |- ${{ runner.os }}-yarn- - - name: Run "ncu -u" in root - run: npx -p npm-check-updates ncu -u + - name: Install Tools + run: |- + npm -g install lerna npm-check-updates - # If "ncu -u" changed something... we must first invoke "yarn install" - - name: Run "yarn install" - run: yarn install + - name: List Mono-Repo Packages + id: list-packages + # These need to be ignored from the `ncu` runs! + run: |- + echo -n "::set-output name=list::" + node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')" - - name: Run "yarn upgrade" - run: yarn upgrade + - name: Run "ncu -u" + # We special-case @types/node because we want to stay on the current major (minimum supported node release) + # We special-case @types/fs-extra because the current major (9.x) is broken with @types/node@10 + run: |- + # Upgrade dependencies at repository root + ncu --upgrade --filter=@types/node,@types/fs-extra --semverLevel=minor + ncu --upgrade --reject=@types/node,@types/fs-extra + + # Upgrade all the packages + lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --semverLevel=minor + lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/fs-extra,${{ steps.list-packages.outputs.list }}' + + # This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`) + - name: Run "yarn install --force" + run: yarn install --force - name: Make Pull Request uses: peter-evans/create-pull-request@v2 diff --git a/.gitignore b/.gitignore index 0ca270e122..ff4e271d69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules/ lerna-debug.log +pip-wheel-metadata/ tsconfig.tsbuildinfo .DS_Store .idea diff --git a/package.json b/package.json index 09555159e0..08cc3cc6d6 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,15 @@ "@typescript-eslint/eslint-plugin": "^3.9.0", "@typescript-eslint/parser": "^3.9.0", "eslint": "^7.6.0", + "eslint-config-prettier": "^6.11.0", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.2.0", "eslint-plugin-import": "^2.22.0", + "eslint-plugin-prettier": "^3.1.4", "lerna": "^3.22.1", - "standard-version": "^8.0.2" + "prettier": "^2.0.5", + "standard-version": "^8.0.2", + "typescript": "~3.9.7" }, "repository": { "type": "git", diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 1f26178029..fdc569d9ff 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -33,9 +33,7 @@ "@types/node": "^10.17.28", "@types/tar": "^4.0.3", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", - "prettier": "^1.19.1", + "prettier": "^2.0.5", "typescript": "~3.9.7" }, "jest": { diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index d2abd5f9e9..0197ee1a02 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -45,13 +45,11 @@ "@types/node": "^10.17.28", "@types/tar": "^4.0.3", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", - "prettier": "^1.19.1", + "prettier": "^2.0.5", "typescript": "~3.9.7" }, "jest": { diff --git a/packages/@jsii/runtime/bundle.sh b/packages/@jsii/runtime/bundle.sh index bc59a1a759..b92f282ac5 100644 --- a/packages/@jsii/runtime/bundle.sh +++ b/packages/@jsii/runtime/bundle.sh @@ -1,6 +1,7 @@ #!/bin/bash set -euo pipefail -./node_modules/.bin/webpack-cli + +npx webpack-cli # HACK: the 'source-map' library used by @jsii/kernel requires __dirname/mappings.wasm # this means we need to make sure this is also brought in to the clients until we figure it diff --git a/packages/@jsii/runtime/lib/host.ts b/packages/@jsii/runtime/lib/host.ts index eb2a1524bd..d5a5d64288 100644 --- a/packages/@jsii/runtime/lib/host.ts +++ b/packages/@jsii/runtime/lib/host.ts @@ -96,7 +96,7 @@ export class KernelHost { throw new Error('Malformed request, "api" field is required'); } - const apiReq = req as { api: string } & api.KernelRequest; + const apiReq = req; const fn = this.findApi(apiReq.api); try { diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 64f64f7293..322e3a4042 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -43,12 +43,10 @@ "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", - "prettier": "^1.19.1", + "prettier": "^2.0.5", "source-map": "^0.7.3", "source-map-loader": "^1.0.1", "typescript": "~3.9.7", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index e4c311d72d..65df8123c0 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -37,11 +37,9 @@ "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", - "prettier": "^1.19.1", + "prettier": "^2.0.5", "typescript": "~3.9.7", "typescript-json-schema": "^0.42.0" }, diff --git a/packages/@scope/jsii-calc-base-of-base/package.json b/packages/@scope/jsii-calc-base-of-base/package.json index 8ebf4c8a96..c07a5a918d 100644 --- a/packages/@scope/jsii-calc-base-of-base/package.json +++ b/packages/@scope/jsii-calc-base-of-base/package.json @@ -30,12 +30,10 @@ }, "devDependencies": { "@types/node": "^10.17.28", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", - "prettier": "^1.19.1" + "prettier": "^2.0.5" }, "jsii": { "outdir": "dist", diff --git a/packages/@scope/jsii-calc-base/package.json b/packages/@scope/jsii-calc-base/package.json index 3aac534ef9..1a5491e08c 100644 --- a/packages/@scope/jsii-calc-base/package.json +++ b/packages/@scope/jsii-calc-base/package.json @@ -36,12 +36,10 @@ }, "devDependencies": { "@types/node": "^10.17.28", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", - "prettier": "^1.19.1" + "prettier": "^2.0.5" }, "jsii": { "outdir": "dist", diff --git a/packages/@scope/jsii-calc-lib/package.json b/packages/@scope/jsii-calc-lib/package.json index dfae89b423..80d8722ddb 100644 --- a/packages/@scope/jsii-calc-lib/package.json +++ b/packages/@scope/jsii-calc-lib/package.json @@ -39,12 +39,10 @@ }, "devDependencies": { "@types/node": "^10.17.28", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", - "prettier": "^1.19.1" + "prettier": "^2.0.5" }, "jsii": { "outdir": "dist", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 7454c8745f..d557644e44 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -40,8 +40,6 @@ "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/packages/jsii-calc/package.json b/packages/jsii-calc/package.json index dfb79ef87a..99de1914a7 100644 --- a/packages/jsii-calc/package.json +++ b/packages/jsii-calc/package.json @@ -32,7 +32,7 @@ "scripts": { "build": "jsii --project-references --silence-warnings reserved-word && npm run lint && jsii-rosetta --compile", "watch": "jsii --project-references -w", - "lint": "eslint . --ext=.js,.ts --format=codeframe --ignore-path=.gitignore", + "lint": "eslint . --ext .js,.ts --ignore-path=.gitignore", "lint:fix": "yarn lint --fix", "test": "node test/test.calc.js && diff-test test/assembly.jsii .jsii", "test:update": "npm run build && UPDATE_DIFF=1 npm run test" @@ -51,8 +51,6 @@ "devDependencies": { "@types/node": "^10.17.28", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index d58b3de8e1..e859c6cc5e 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -25,8 +25,6 @@ "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index f92a259a37..02846d6e4b 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -38,7 +38,7 @@ "jsii-reflect": "^0.0.0", "log4js": "^6.3.0", "typescript": "~3.9.7", - "yargs": "^15.4.0" + "yargs": "^15.4.1" }, "devDependencies": { "@types/fs-extra": "^8.1.1", @@ -48,8 +48,6 @@ "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 9a85164fcd..22b3f9972d 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -62,8 +62,6 @@ "@types/semver": "^7.3.1", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 5fd4ea253d..34d9fb9ee2 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -38,7 +38,7 @@ "colors": "^1.4.0", "fs-extra": "^9.0.1", "oo-ascii-tree": "^0.0.0", - "yargs": "^15.4.0" + "yargs": "^15.4.1" }, "devDependencies": { "@scope/jsii-calc-lib": "^0.0.0", @@ -47,8 +47,6 @@ "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 04363d0aab..a94afd3a8c 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -23,8 +23,6 @@ "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 3e3ce1fdc4..724f3193c1 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -58,8 +58,6 @@ "@types/yargs": "^15.0.5", "clone": "^2.1.2", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 492aee365a..d3f99bd677 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -34,8 +34,6 @@ "@types/jest": "^26.0.9", "@types/node": "^10.17.28", "eslint": "^7.6.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", diff --git a/yarn.lock b/yarn.lock index f70b3d1dc4..76067b8bf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -144,9 +144,9 @@ js-tokens "^4.0.0" "@babel/parser@^7.1.0", "@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1": - version "7.11.2" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.2.tgz#0882ab8a455df3065ea2dcb4c753b2460a24bead" - integrity sha512-Vuj/+7vLo6l1Vi7uuO+1ngCDNeVmNbTngcJFKCR/oEtz8tKz0CJxZEGmPt9KcIloZhOZ3Zit6xbpXT2MDlS9Vw== + version "7.11.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.3.tgz#9e1eae46738bcd08e23e867bab43e7b95299a8f9" + integrity sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -1392,9 +1392,9 @@ "@types/node" ">= 8" "@octokit/types@^5.0.0", "@octokit/types@^5.0.1", "@octokit/types@^5.1.1", "@octokit/types@^5.2.0": - version "5.2.1" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.2.1.tgz#c212f03b0492faf215fa2ae506d5ec18038c2a36" - integrity sha512-PugtgEw8u++zAyBpDpSkR8K1OsT2l8QWp3ECL6bZHFoq9PfHDoKeGFWSuX2Z+Ghy93k1fkKf8tsmqNBv+8dEfQ== + version "5.4.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.4.0.tgz#25f2f8e24fec09214553168c41c06383c9d0f529" + integrity sha512-D/uotqF69M50OIlwMqgyIg9PuLT2daOiBAYF0P40I2ekFA2ESwwBY5dxZe/UhXdPvIbNKDzuZmQrO7rMpuFbcg== dependencies: "@types/node" ">= 8" @@ -2150,24 +2150,20 @@ arrify@^1.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= -arrify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" - integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== - asap@^2.0.0: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= -asn1.js@^4.0.0: - version "4.10.1" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - integrity sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw== +asn1.js@^5.2.0: + version "5.4.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-5.4.1.tgz#11a980b84ebb91781ce35b0fdc2ee294e3783f07" + integrity sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA== dependencies: bn.js "^4.0.0" inherits "^2.0.1" minimalistic-assert "^1.0.0" + safer-buffer "^2.1.0" asn1@~0.2.3: version "0.2.4" @@ -2237,9 +2233,9 @@ aws-sign2@~0.7.0: integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= aws4@^1.8.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2" - integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA== + version "1.10.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428" + integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA== babel-jest@^26.3.0: version "26.3.0" @@ -2721,9 +2717,9 @@ chokidar@^2.1.8: fsevents "^1.2.7" chokidar@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.1.tgz#e905bdecf10eaa0a0b1db0c664481cc4cbc22ba1" - integrity sha512-TQTJyr2stihpC4Sya9hs2Xh+O2wf+igjL36Y75xx2WdHuiICcn/XJza46Jwt0eT5hVpQOzo3FpY3cj3RVYLX0g== + version "3.4.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.2.tgz#38dc8e658dec3809741eb3ef7bb0a47fe424232d" + integrity sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A== dependencies: anymatch "~3.1.1" braces "~3.0.2" @@ -2931,6 +2927,14 @@ compare-func@^1.3.1: array-ify "^1.0.0" dot-prop "^3.0.0" +compare-func@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3" + integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA== + dependencies: + array-ify "^1.0.0" + dot-prop "^5.1.0" + component-emitter@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" @@ -2990,11 +2994,11 @@ contains-path@^0.1.0: integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= conventional-changelog-angular@^5.0.10, conventional-changelog-angular@^5.0.3: - version "5.0.10" - resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.10.tgz#5cf7b00dd315b6a6a558223c80d5ef24ddb34205" - integrity sha512-k7RPPRs0vp8+BtPsM9uDxRl6KcgqtCJmzRD1wRtgqmhQ96g8ifBGo9O/TZBG23jqlXS/rg8BKRDELxfnQQGiaA== + version "5.0.11" + resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.11.tgz#99a3ca16e4a5305e0c2c2fae3ef74fd7631fc3fb" + integrity sha512-nSLypht/1yEflhuTogC03i7DX7sOrXGsRn14g131Potqi6cbGbGEE9PSDEHKldabB6N76HiSyw9Ph+kLmC04Qw== dependencies: - compare-func "^1.3.1" + compare-func "^2.0.0" q "^1.5.1" conventional-changelog-atom@^2.0.7: @@ -3016,7 +3020,7 @@ conventional-changelog-config-spec@2.1.0: resolved "https://registry.yarnpkg.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz#874a635287ef8b581fd8558532bf655d4fb59f2d" integrity sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ== -conventional-changelog-conventionalcommits@4.3.0, conventional-changelog-conventionalcommits@^4.3.0: +conventional-changelog-conventionalcommits@4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.3.0.tgz#c4205a659f7ca9d7881f29ee78a4e7d6aeb8b3c2" integrity sha512-oYHydvZKU+bS8LnGqTMlNrrd7769EsuEHKy4fh1oMdvvDi7fem8U+nvfresJ1IDB8K00Mn4LpiA/lR+7Gs6rgg== @@ -3025,6 +3029,15 @@ conventional-changelog-conventionalcommits@4.3.0, conventional-changelog-convent lodash "^4.17.15" q "^1.5.1" +conventional-changelog-conventionalcommits@^4.3.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.4.0.tgz#8d96687141c9bbd725a89b95c04966d364194cd4" + integrity sha512-ybvx76jTh08tpaYrYn/yd0uJNLt5yMrb1BphDe4WBredMlvPisvMghfpnJb6RmRNcqXeuhR6LfGZGewbkRm9yA== + dependencies: + compare-func "^2.0.0" + lodash "^4.17.15" + q "^1.5.1" + conventional-changelog-core@^3.1.6: version "3.2.3" resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz#b31410856f431c847086a7dcb4d2ca184a7d88fb" @@ -3045,18 +3058,18 @@ conventional-changelog-core@^3.1.6: through2 "^3.0.0" conventional-changelog-core@^4.1.7: - version "4.1.7" - resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.1.7.tgz#6b5cdadda4430895cc4a75a73dd8b36e322ab346" - integrity sha512-UBvSrQR2RdKbSQKh7RhueiiY4ZAIOW3+CSWdtKOwRv+KxIMNFKm1rOcGBFx0eA8AKhGkkmmacoTWJTqyz7Q0VA== + version "4.2.0" + resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.0.tgz#d8befd1e1f5126bf35a17668276cc8c244650469" + integrity sha512-8+xMvN6JvdDtPbGBqA7oRNyZD4od1h/SIzrWqHcKZjitbVXrFpozEeyn4iI4af1UwdrabQpiZMaV07fPUTGd4w== dependencies: add-stream "^1.0.0" - conventional-changelog-writer "^4.0.16" + conventional-changelog-writer "^4.0.17" conventional-commits-parser "^3.1.0" dateformat "^3.0.0" get-pkg-repo "^1.0.0" git-raw-commits "2.0.0" git-remote-origin-url "^2.0.0" - git-semver-tags "^4.0.0" + git-semver-tags "^4.1.0" lodash "^4.17.15" normalize-package-data "^2.3.5" q "^1.5.1" @@ -3094,11 +3107,11 @@ conventional-changelog-jquery@^3.0.10: q "^1.5.1" conventional-changelog-jshint@^2.0.7: - version "2.0.7" - resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.7.tgz#955a69266951cd31e8afeb3f1c55e0517fdca943" - integrity sha512-qHA8rmwUnLiIxANJbz650+NVzqDIwNtc0TcpIa0+uekbmKHttidvQ1dGximU3vEDdoJVKFgR3TXFqYuZmYy9ZQ== + version "2.0.8" + resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.8.tgz#3fff4df8cb46037f77b9dc3f8e354c7f99332f13" + integrity sha512-hB/iI0IiZwnZ+seYI+qEQ4b+EMQSEC8jGIvhO2Vpz1E5p8FgLz75OX8oB1xJWl+s4xBMB6f8zJr0tC/BL7YOjw== dependencies: - compare-func "^1.3.1" + compare-func "^2.0.0" q "^1.5.1" conventional-changelog-preset-loader@^2.1.1, conventional-changelog-preset-loader@^2.3.4: @@ -3106,12 +3119,12 @@ conventional-changelog-preset-loader@^2.1.1, conventional-changelog-preset-loade resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz#14a855abbffd59027fd602581f1f34d9862ea44c" integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== -conventional-changelog-writer@^4.0.16, conventional-changelog-writer@^4.0.6: - version "4.0.16" - resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.16.tgz#ca10f2691a8ea6d3c2eb74bd35bcf40aa052dda5" - integrity sha512-jmU1sDJDZpm/dkuFxBeRXvyNcJQeKhGtVcFFkwTphUAzyYWcwz2j36Wcv+Mv2hU3tpvLMkysOPXJTLO55AUrYQ== +conventional-changelog-writer@^4.0.17, conventional-changelog-writer@^4.0.6: + version "4.0.17" + resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.17.tgz#4753aaa138bf5aa59c0b274cb5937efcd2722e21" + integrity sha512-IKQuK3bib/n032KWaSb8YlBFds+aLmzENtnKtxJy3+HqDq5kohu3g/UdNbIHeJWygfnEbZjnCKFxAW0y7ArZAw== dependencies: - compare-func "^1.3.1" + compare-func "^2.0.0" conventional-commits-filter "^2.0.6" dateformat "^3.0.0" handlebars "^4.7.6" @@ -3622,6 +3635,13 @@ dot-prop@^4.2.0: dependencies: is-obj "^1.0.0" +dot-prop@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.2.0.tgz#c34ecc29556dc45f1f4c22697b6f4904e0cc4fcb" + integrity sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A== + dependencies: + is-obj "^2.0.0" + dotenv@*, dotenv@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" @@ -3636,9 +3656,9 @@ dotgitignore@^2.1.0: minimatch "^3.0.4" duplexer@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" - integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== duplexify@^3.4.2, duplexify@^3.6.0: version "3.7.1" @@ -4490,9 +4510,9 @@ get-stream@^4.0.0, get-stream@^4.1.0: pump "^3.0.0" get-stream@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" - integrity sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw== + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== dependencies: pump "^3.0.0" @@ -4535,26 +4555,26 @@ git-semver-tags@^2.0.3: meow "^4.0.0" semver "^6.0.0" -git-semver-tags@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.0.0.tgz#a9dd58a0dd3561a4a9898b7e9731cf441c98fc38" - integrity sha512-LajaAWLYVBff+1NVircURJFL8TQ3EMIcLAfHisWYX/nPoMwnTYfWAznQDmMujlLqoD12VtLmoSrF1sQ5MhimEQ== +git-semver-tags@^4.0.0, git-semver-tags@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.1.0.tgz#0146c9bc24ee96104c99f443071c8c2d7dc848e3" + integrity sha512-TcxAGeo03HdErzKzi4fDD+xEL7gi8r2Y5YSxH6N2XYdVSV5UkBwfrt7Gqo1b+uSHCjy/sa9Y6BBBxxFLxfbhTg== dependencies: meow "^7.0.0" semver "^6.0.0" git-up@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.1.tgz#cb2ef086653640e721d2042fe3104857d89007c0" - integrity sha512-LFTZZrBlrCrGCG07/dm1aCjjpL1z9L3+5aEeI9SBhAqSc+kiA9Or1bgZhQFNppJX6h/f5McrvJt1mQXTFm6Qrw== + version "4.0.2" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.2.tgz#10c3d731051b366dc19d3df454bfca3f77913a7c" + integrity sha512-kbuvus1dWQB2sSW4cbfTeGpCMd8ge9jx9RKnhXhuJ7tnvT+NIrTVfYZxjtflZddQYcmdOTlkAcjmx7bor+15AQ== dependencies: is-ssh "^1.3.0" parse-url "^5.0.0" git-url-parse@^11.1.2: - version "11.1.2" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.1.2.tgz#aff1a897c36cc93699270587bea3dbcbbb95de67" - integrity sha512-gZeLVGY8QVKMIkckncX+iCq2/L8PlwncvDFKiWkBn9EtCfYDbliRTTp6qzyQ1VMdITUfq7293zDzfpjdiGASSQ== + version "11.1.3" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.1.3.tgz#03625b6fc09905e9ad1da7bb2b84be1bf9123143" + integrity sha512-GPsfwticcu52WQ+eHp0IYkAyaOASgYdtsQDIt4rUp6GbiNt1P9ddrh3O0kQB0eD4UJZszVqNT3+9Zwcg40fywA== dependencies: git-up "^4.0.0" @@ -5248,6 +5268,11 @@ is-obj@^1.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -5283,9 +5308,9 @@ is-set@^2.0.1: integrity sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA== is-ssh@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.3.1.tgz#f349a8cadd24e65298037a522cf7520f2e81a0f3" - integrity sha512-0eRIASHZt1E68/ixClI8bp2YK2wmBPVWEismTs6M+M099jKgrzl/3E976zIbImSIob48N2/XGe9y7ZiYdImSlg== + version "1.3.2" + resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.3.2.tgz#a4b82ab63d73976fd8263cceee27f99a88bdae2b" + integrity sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ== dependencies: protocols "^1.1.0" @@ -5852,9 +5877,9 @@ jsbn@~0.1.0: integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= jsdom@^16.2.2: - version "16.3.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.3.0.tgz#75690b7dac36c67be49c336dcd7219bbbed0810c" - integrity sha512-zggeX5UuEknpdZzv15+MS1dPYG0J/TftiiNunOeNxSl3qr8Z6cIlQpN0IdJa44z9aFxZRIVqRncvEhQ7X5DtZg== + version "16.4.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.4.0.tgz#36005bde2d136f73eee1a830c6d45e55408edddb" + integrity sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w== dependencies: abab "^2.0.3" acorn "^7.1.1" @@ -6385,17 +6410,15 @@ meow@^4.0.0: trim-newlines "^2.0.0" meow@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/meow/-/meow-7.0.1.tgz#1ed4a0a50b3844b451369c48362eb0515f04c1dc" - integrity sha512-tBKIQqVrAHqwit0vfuFPY3LlzJYkEOFyKa3bPgxzNl6q/RtN8KQ+ALYEASYuFayzSAsjlhXj/JZ10rH85Q6TUw== + version "7.1.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-7.1.0.tgz#50ecbcdafa16f8b58fb7eb9675b933f6473b3a59" + integrity sha512-kq5F0KVteskZ3JdfyQFivJEj2RaA8NFsS4+r9DaMKLcUHpk5OcHS3Q0XkCXONB1mZRPsu/Y/qImKri0nwSEZog== dependencies: "@types/minimist" "^1.2.0" - arrify "^2.0.1" - camelcase "^6.0.0" camelcase-keys "^6.2.2" decamelize-keys "^1.1.0" hard-rejection "^2.1.0" - minimist-options "^4.0.2" + minimist-options "4.1.0" normalize-package-data "^2.5.0" read-pkg-up "^7.0.1" redent "^3.0.0" @@ -6492,15 +6515,7 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist-options@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" - integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - -minimist-options@^4.0.2: +minimist-options@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== @@ -6509,6 +6524,14 @@ minimist-options@^4.0.2: is-plain-obj "^1.1.0" kind-of "^6.0.3" +minimist-options@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" + integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5, minimist@~1.2.0: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" @@ -6994,9 +7017,9 @@ onetime@^2.0.0: mimic-fn "^1.0.0" onetime@^5.1.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.1.tgz#5c8016847b0d67fcedb7eef254751cfcdc7e9418" - integrity sha512-ZpZpjcJeugQfWsfyQlshVoowIIQ1qBGSVll4rfDq6JJVO//fesjoX808hXWfBjY+ROZgpKDI5TRSRBSoJiZ8eg== + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" @@ -7168,13 +7191,12 @@ parent-module@^1.0.0: callsites "^3.0.0" parse-asn1@^5.0.0, parse-asn1@^5.1.5: - version "5.1.5" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.5.tgz#003271343da58dc94cace494faef3d2147ecea0e" - integrity sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ== + version "5.1.6" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.6.tgz#385080a3ec13cb62a62d39409cb3e88844cdaed4" + integrity sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw== dependencies: - asn1.js "^4.0.0" + asn1.js "^5.2.0" browserify-aes "^1.0.0" - create-hash "^1.1.0" evp_bytestokey "^1.0.0" pbkdf2 "^3.0.3" safe-buffer "^5.1.1" @@ -7215,17 +7237,17 @@ parse-passwd@^1.0.0: integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= parse-path@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.1.tgz#0ec769704949778cb3b8eda5e994c32073a1adff" - integrity sha512-d7yhga0Oc+PwNXDvQ0Jv1BuWkLVPXcAoQ/WREgd6vNNoKYaW52KI+RdOFjI63wjkmps9yUE8VS4veP+AgpQ/hA== + version "4.0.2" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.2.tgz#ef14f0d3d77bae8dd4bc66563a4c151aac9e65aa" + integrity sha512-HSqVz6iuXSiL8C1ku5Gl1Z5cwDd9Wo0q8CoffdAghP6bz8pJa1tcMC+m4N+z6VAS8QdksnIGq1TB6EgR4vPR6w== dependencies: is-ssh "^1.3.0" protocols "^1.4.0" parse-url@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-5.0.1.tgz#99c4084fc11be14141efa41b3d117a96fcb9527f" - integrity sha512-flNUPP27r3vJpROi0/R3/2efgKkyXqnXwyP1KQ2U0SfFRgdizOdWfvrrvJg1LuOoxs7GQhmxJlq23IpQ/BkByg== + version "5.0.2" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-5.0.2.tgz#856a3be1fcdf78dc93fc8b3791f169072d898b59" + integrity sha512-Czj+GIit4cdWtxo3ISZCvLiUjErSo0iI3wJ+q9Oi3QuMYTI6OZu+7cewMWZ+C1YAnKhYTk6/TLuhIgCypLthPA== dependencies: is-ssh "^1.3.0" normalize-url "^3.3.0" @@ -7410,11 +7432,6 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== - prettier@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4" @@ -7489,9 +7506,9 @@ proto-list@~1.2.1: integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk= protocols@^1.1.0, protocols@^1.4.0: - version "1.4.7" - resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.7.tgz#95f788a4f0e979b291ffefcf5636ad113d037d32" - integrity sha512-Fx65lf9/YDn3hUX08XUc0J8rSux36rEsyiv21ZGUC1mOyeM3lTRpZLcrm8aAolzS4itwVfm7TAPyxC2E5zd6xg== + version "1.4.8" + resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" + integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== protoduck@^5.0.1: version "5.0.1" @@ -8118,10 +8135,10 @@ semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -serialize-javascript@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-3.1.0.tgz#8bf3a9170712664ef2561b44b691eafe399214ea" - integrity sha512-JIJT1DGiWmIKhzRsG91aS6Ze4sFUrYbltlkg2onR5OrnNM02Kl/hnY/T4FN2omvyeBbQmMJv+K4cPOpGzOTFBg== +serialize-javascript@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" + integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== dependencies: randombytes "^2.1.0" @@ -8799,15 +8816,15 @@ terminal-link@^2.0.0: supports-hyperlinks "^2.0.0" terser-webpack-plugin@^1.4.3: - version "1.4.4" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.4.tgz#2c63544347324baafa9a56baaddf1634c8abfc2f" - integrity sha512-U4mACBHIegmfoEe5fdongHESNJWqsGU+W0S/9+BmYGVQDw1+c2Ow05TpMhxjPK1sRb7cuYq1BPl1e5YHJMTCqA== + version "1.4.5" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz#a217aefaea330e734ffacb6120ec1fa312d6040b" + integrity sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw== dependencies: cacache "^12.0.2" find-cache-dir "^2.1.0" is-wsl "^1.1.0" schema-utils "^1.0.0" - serialize-javascript "^3.1.0" + serialize-javascript "^4.0.0" source-map "^0.6.1" terser "^4.1.2" webpack-sources "^1.4.0" @@ -9548,9 +9565,9 @@ wide-align@^1.1.0: string-width "^1.0.2 || 2" windows-release@^3.1.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.1.tgz#cb4e80385f8550f709727287bf71035e209c4ace" - integrity sha512-Pngk/RDCaI/DkuHPlGTdIkDiTAnAkyMjoQMZqRsxydNl1qGXNIoZrB7RK8g53F2tEgQBMqQJHQdYZuQEEAu54A== + version "3.3.3" + resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.3.tgz#1c10027c7225743eec6b89df160d64c2e0293999" + integrity sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg== dependencies: execa "^1.0.0" @@ -9754,7 +9771,7 @@ yargs@^14.0.0, yargs@^14.2.2: y18n "^4.0.0" yargs-parser "^15.0.1" -yargs@^15.3.1, yargs@^15.4.0, yargs@^15.4.1: +yargs@^15.3.1, yargs@^15.4.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== From 6fff6c7779596b9e49d9f602b209577bf97bb51e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Aug 2020 12:13:10 +0200 Subject: [PATCH 31/45] chore(deps-dev): bump @types/semver from 7.3.1 to 7.3.2 (#1886) Bumps [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) from 7.3.1 to 7.3.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/dotnet-runtime/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii/package.json | 2 +- yarn.lock | 10 ++++------ 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/@jsii/dotnet-runtime/package.json b/packages/@jsii/dotnet-runtime/package.json index 7982baea60..330caa5122 100644 --- a/packages/@jsii/dotnet-runtime/package.json +++ b/packages/@jsii/dotnet-runtime/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@jsii/runtime": "^0.0.0", "@types/node": "^10.17.28", - "@types/semver": "^7.3.1", + "@types/semver": "^7.3.2", "jsii-build-tools": "^0.0.0", "semver": "^7.3.2", "typescript": "~3.9.7" diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 22b3f9972d..ce90ec0ea8 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -59,7 +59,7 @@ "@types/jest": "^26.0.9", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", - "@types/semver": "^7.3.1", + "@types/semver": "^7.3.2", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", "jest": "^26.4.0", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 724f3193c1..334546d224 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -54,7 +54,7 @@ "@types/jest": "^26.0.9", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", - "@types/semver": "^7.3.1", + "@types/semver": "^7.3.2", "@types/yargs": "^15.0.5", "clone": "^2.1.2", "eslint": "^7.6.0", diff --git a/yarn.lock b/yarn.lock index 76067b8bf0..bd1c3303ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1603,12 +1603,10 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.0.2.tgz#5bb52ee68d0f8efa9cc0099920e56be6cc4e37f3" integrity sha512-IkVfat549ggtkZUthUzEX49562eGikhSYeVGX97SkMFn+sTZrgRewXjQ4tPKFPCykZHkX1Zfd9OoELGqKU2jJA== -"@types/semver@^7.3.1": - version "7.3.1" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.1.tgz#7a9a5d595b6d873f338c867dcef64df289468cfa" - integrity sha512-ooD/FJ8EuwlDKOI6D9HWxgIgJjMg2cuziXm/42npDC8y4NjxplBUn9loewZiBNCt44450lHAU0OSb51/UqXeag== - dependencies: - "@types/node" "*" +"@types/semver@^7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.2.tgz#39a0ee84ac60d77ed994b82c0d43895cbdd0e584" + integrity sha512-WrIesso5O0K9S/T87Uct2AvmEFqul11PnprQ98BZEyWILz8QYJt6/tlmqSOVKLNUtAgYHU7D9WGsOFVDb35nPA== "@types/stack-utils@^1.0.1": version "1.0.1" From 53ee19d941962f3caa3365e4020cf25c4683ac11 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Fri, 14 Aug 2020 16:36:48 +0200 Subject: [PATCH 32/45] chore: allow upgrade to bump minor --- .github/workflows/yarn-upgrade.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yarn-upgrade.yml b/.github/workflows/yarn-upgrade.yml index 5b84049fe4..d9385658ba 100644 --- a/.github/workflows/yarn-upgrade.yml +++ b/.github/workflows/yarn-upgrade.yml @@ -48,11 +48,11 @@ jobs: # We special-case @types/fs-extra because the current major (9.x) is broken with @types/node@10 run: |- # Upgrade dependencies at repository root - ncu --upgrade --filter=@types/node,@types/fs-extra --semverLevel=minor + ncu --upgrade --filter=@types/node,@types/fs-extra --semverLevel=major ncu --upgrade --reject=@types/node,@types/fs-extra # Upgrade all the packages - lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --semverLevel=minor + lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --semverLevel=major lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/fs-extra,${{ steps.list-packages.outputs.list }}' # This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`) From 451940c806285f5ab72b5f18433accb1ecb9f6c7 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 17 Aug 2020 11:52:12 +0200 Subject: [PATCH 33/45] chore: add workflow to validate jsii/superchain image (#1885) --- .github/workflows/main.yml | 4 +-- .github/workflows/superchain.yml | 45 ++++++++++++++++++++++++++++++++ superchain/Dockerfile | 12 ++++----- 3 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/superchain.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92a345bc9d..36ce31b860 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,9 +3,9 @@ name: Main on: pull_request: - branches: [main, master] + branches: [main, master, release] push: - branches: [main, master] + branches: [main, master, release] env: DOTNET_NOLOGO: true diff --git a/.github/workflows/superchain.yml b/.github/workflows/superchain.yml new file mode 100644 index 0000000000..51c88dc78a --- /dev/null +++ b/.github/workflows/superchain.yml @@ -0,0 +1,45 @@ +# Workflows pertaining to the jsii/superchain Docker image +name: Docker Images + +on: + pull_request: + branches: [main, master, release] + # For PRs, only run if there are changes around the Dockerfile + paths: ['superchain/**'] + push: + branches: [main, master, release] + +jobs: + superchain: + name: jsii/superchain + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v2 + - name: Build Image + run: |- + docker build \ + --pull \ + --build-arg BUILD_TIMESTAMP="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ + --build-arg COMMIT_ID='${{ github.sha }}' \ + --tag 'jsii/superchain:nightly' \ + ./superchain + - name: Test Image + run: |- + docker run \ + --rm \ + --tty \ + --network=host \ + -v${{ github.workspace }}:${{ github.workspace }} \ + -w${{ github.workspace }} \ + 'jsii/superchain:nightly' \ + bash -c "yarn install --frozen-lockfile && yarn build && yarn test" + - name: Dump Image + run: |- + docker image save 'jsii/superchain:nightly' \ + > ${{ runner.temp }}/jsii-superchain.nightly.tar + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: 'jsii-superchain.nightly' + path: ${{ runner.temp }}/jsii-superchain.nightly.tar diff --git a/superchain/Dockerfile b/superchain/Dockerfile index 3067c72a86..b73de846ac 100644 --- a/superchain/Dockerfile +++ b/superchain/Dockerfile @@ -6,6 +6,7 @@ RUN yum -y install deltarpm tar # Install .NET Core, mono & PowerShell ENV DOTNET_CLI_TELEMETRY_OPTOUT=true \ DOTNET_RUNNING_IN_CONTAINER=true \ + DOTNET_NOLOGO=true \ DOTNET_USE_POLLING_FILE_WATCHER=true \ NUGET_XMLDOC_MODE=skip COPY gpg/mono.asc /tmp/mono.asc @@ -15,12 +16,11 @@ RUN rpm --import "https://packages.microsoft.com/keys/microsoft.asc" && curl -sSL "https://download.mono-project.com/repo/centos7-stable.repo" \ | tee /etc/yum.repos.d/mono-centos7-stable.repo \ && yum -y install dotnet-sdk-3.1 mono-devel powershell \ - && yum clean all && rm -rf /var/cache/yum \ - && dotnet help + && yum clean all && rm -rf /var/cache/yum # Install Python 3 RUN yum -y install python3 python3-pip \ - && python3 -m pip install --upgrade pip setuptools wheel twine black \ + && python3 -m pip install --no-input --upgrade pip setuptools wheel twine black \ && yum clean all && rm -rf /var/cache/yum # Install Ruby 2.6+ @@ -88,6 +88,9 @@ COPY dockerd-entrypoint.sh /usr/local/bin/ ENV CHARSET=UTF-8 \ LC_ALL=C.UTF-8 +# Add the source used to build this Docker image (to facilitate re-builds, forensics) +COPY . /docker-source + ## Image Metadata ARG BUILD_TIMESTAMP ARG COMMIT_ID @@ -103,7 +106,4 @@ LABEL org.opencontainers.image.created=${BUILD_TIMESTAMP} RUN yum -y upgrade \ && yum clean all && rm -rf /var/cache/yum -# Add the source used to build this Docker image (to facilitate re-builds, forensics) -COPY . /docker-source - CMD ["/bin/bash"] From f8f0f1881c8118494fc020262c329ece0f5d553a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:28:48 +0200 Subject: [PATCH 34/45] chore(deps-dev): bump eslint-import-resolver-typescript (#1895) Bumps [eslint-import-resolver-typescript](https://github.com/alexgorbatchev/eslint-import-resolver-typescript) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/alexgorbatchev/eslint-import-resolver-typescript/releases) - [Changelog](https://github.com/alexgorbatchev/eslint-import-resolver-typescript/blob/master/CHANGELOG.md) - [Commits](https://github.com/alexgorbatchev/eslint-import-resolver-typescript/compare/v2.2.0...v2.2.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 08cc3cc6d6..1b37b67f05 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "eslint": "^7.6.0", "eslint-config-prettier": "^6.11.0", "eslint-import-resolver-node": "^0.3.4", - "eslint-import-resolver-typescript": "^2.2.0", + "eslint-import-resolver-typescript": "^2.2.1", "eslint-plugin-import": "^2.22.0", "eslint-plugin-prettier": "^3.1.4", "lerna": "^3.22.1", diff --git a/yarn.lock b/yarn.lock index bd1c3303ed..2db7078f7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3866,10 +3866,10 @@ eslint-import-resolver-node@^0.3.3, eslint-import-resolver-node@^0.3.4: debug "^2.6.9" resolve "^1.13.1" -eslint-import-resolver-typescript@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.2.0.tgz#f7b261e41a38b690f3044660f6d496cc312323b0" - integrity sha512-/NhKEH1gbRlcb9RcaZJe5zRn5eIffGTf1qh3JAyvkEuPli3DEa5HQWWUO5OTfUjj7buUXsDq8lEsdwbbSeqywg== +eslint-import-resolver-typescript@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.2.1.tgz#4b9bdfb51af7e14947ebc40ffdd6c32d5924b905" + integrity sha512-wxlVdwuWY6R5+CoesIy6n8EZX4k9lEeZGWTVBoX9g//8Xma8JMtL/p3AGnG43rRyXmIrX+/0IN8lpOPzrw1fSw== dependencies: debug "^4.1.1" glob "^7.1.6" From a3a908f44de4c34308128f4cf3eb62fcb5513aa4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:28:57 +0200 Subject: [PATCH 35/45] chore(deps-dev): bump @types/jest from 26.0.9 to 26.0.10 (#1896) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.9 to 26.0.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index fdc569d9ff..c49de6a8e9 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/dotenv": "^8.2.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", "eslint": "^7.6.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 0197ee1a02..6911aaa7cd 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -40,7 +40,7 @@ "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 322e3a4042..dbe0598f56 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "eslint": "^7.6.0", "jest": "^26.4.0", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 65df8123c0..4259f2f73f 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -34,7 +34,7 @@ "jsonschema": "^1.2.6" }, "devDependencies": { - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "eslint": "^7.6.0", "jest": "^26.4.0", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index d557644e44..004c3fc1ea 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "eslint": "^7.6.0", "jest": "^26.4.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index e859c6cc5e..2475b33703 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -20,7 +20,7 @@ }, "devDependencies": { "@types/inquirer": "^7.3.0", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index 02846d6e4b..a7f25a51df 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/tar-fs": "^2.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index ce90ec0ea8..21be8e4572 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -56,7 +56,7 @@ "@types/clone": "^2.1.0", "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/semver": "^7.3.2", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 34d9fb9ee2..03067acff4 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -43,7 +43,7 @@ "devDependencies": { "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", "eslint": "^7.6.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index a94afd3a8c..b68286d6ed 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@types/commonmark": "^0.27.4", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 334546d224..616efb57c6 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -51,7 +51,7 @@ "@types/clone": "^2.1.0", "@types/deep-equal": "^1.0.1", "@types/fs-extra": "^8.1.1", - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/semver": "^7.3.2", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index d3f99bd677..f9b610641e 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -31,7 +31,7 @@ "package": "package-js" }, "devDependencies": { - "@types/jest": "^26.0.9", + "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "eslint": "^7.6.0", "jest": "^26.4.0", diff --git a/yarn.lock b/yarn.lock index 2db7078f7b..0c733bc63e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1541,10 +1541,10 @@ dependencies: "@types/jest" "*" -"@types/jest@*", "@types/jest@26.x", "@types/jest@^26.0.9": - version "26.0.9" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.9.tgz#0543b57da5f0cd949c5f423a00c56c492289c989" - integrity sha512-k4qFfJ5AUKrWok5KYXp2EPm89b0P/KZpl7Vg4XuOTVVQEhLDBDBU3iBFrjjdgd8fLw96aAtmnwhXHl63bWeBQQ== +"@types/jest@*", "@types/jest@26.x", "@types/jest@^26.0.10": + version "26.0.10" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.10.tgz#8faf7e9756c033c39014ae76a7329efea00ea607" + integrity sha512-i2m0oyh8w/Lum7wWK/YOZJakYF8Mx08UaKA1CtbmFeDquVhAEdA7znacsVSf2hJ1OQ/OfVMGN90pw/AtzF8s/Q== dependencies: jest-diff "^25.2.1" pretty-format "^25.2.1" From 54e6a5d87ec73169a1bab41dbcd87d32f20bf64d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:29:30 +0200 Subject: [PATCH 36/45] chore(deps-dev): bump eslint from 7.6.0 to 7.7.0 (#1897) Bumps [eslint](https://github.com/eslint/eslint) from 7.6.0 to 7.7.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.6.0...v7.7.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-calc/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 1b37b67f05..8f9be79d6d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^3.9.0", "@typescript-eslint/parser": "^3.9.0", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "eslint-config-prettier": "^6.11.0", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.2.1", diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index c49de6a8e9..64e3c9d95a 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -32,7 +32,7 @@ "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "prettier": "^2.0.5", "typescript": "~3.9.7" }, diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 6911aaa7cd..5a7739010a 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -44,7 +44,7 @@ "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/tar": "^4.0.3", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index dbe0598f56..6a8d54e605 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -42,7 +42,7 @@ "@scope/jsii-calc-lib": "^0.0.0", "@types/jest": "^26.0.10", "@types/node": "^10.17.28", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 4259f2f73f..4d55211f92 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@types/jest": "^26.0.10", "@types/node": "^10.17.28", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 004c3fc1ea..16b0988b99 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -39,7 +39,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.10", "@types/node": "^10.17.28", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "prettier": "^2.0.5", "typescript": "~3.9.7" diff --git a/packages/jsii-calc/package.json b/packages/jsii-calc/package.json index 99de1914a7..5ca6782154 100644 --- a/packages/jsii-calc/package.json +++ b/packages/jsii-calc/package.json @@ -50,7 +50,7 @@ }, "devDependencies": { "@types/node": "^10.17.28", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 2475b33703..87c6554bd8 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -24,7 +24,7 @@ "@types/jest-expect-message": "^1.0.2", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "prettier": "^2.0.5", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index a7f25a51df..2014667dcc 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -47,7 +47,7 @@ "@types/node": "^10.17.28", "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.5", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 21be8e4572..8e668585ff 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -61,7 +61,7 @@ "@types/node": "^10.17.28", "@types/semver": "^7.3.2", "@types/yargs": "^15.0.5", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 03067acff4..d606421e0a 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -46,7 +46,7 @@ "@types/jest": "^26.0.10", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index b68286d6ed..ce0bad139b 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -22,7 +22,7 @@ "@types/mock-fs": "^4.10.0", "@types/node": "^10.17.28", "@types/yargs": "^15.0.5", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 616efb57c6..58befc31b9 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -57,7 +57,7 @@ "@types/semver": "^7.3.2", "@types/yargs": "^15.0.5", "clone": "^2.1.2", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index f9b610641e..0171cffe47 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@types/jest": "^26.0.10", "@types/node": "^10.17.28", - "eslint": "^7.6.0", + "eslint": "^7.7.0", "jest": "^26.4.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.0.5", diff --git a/yarn.lock b/yarn.lock index 0c733bc63e..5e03df005d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3939,10 +3939,10 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== -eslint@^7.6.0: - version "7.6.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.6.0.tgz#522d67cfaea09724d96949c70e7a0550614d64d6" - integrity sha512-QlAManNtqr7sozWm5TF4wIH9gmUm2hE3vNRUvyoYAa4y1l5/jxD/PQStEjBMQtCqZmSep8UxrcecI60hOpe61w== +eslint@^7.7.0: + version "7.7.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.7.0.tgz#18beba51411927c4b64da0a8ceadefe4030d6073" + integrity sha512-1KUxLzos0ZVsyL81PnRN335nDtQ8/vZUD6uMtWbF+5zDtjKcsklIi78XoE0MVL93QvWTu+E5y44VyyCsOMBrIg== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" From 67c9937f441da2d84c797f7b61a4d036e3bfc755 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:29:55 +0200 Subject: [PATCH 37/45] chore(deps): bump tar from 6.0.2 to 6.0.5 (#1898) Bumps [tar](https://github.com/npm/node-tar) from 6.0.2 to 6.0.5. - [Release notes](https://github.com/npm/node-tar/releases) - [Changelog](https://github.com/npm/node-tar/blob/master/CHANGELOG.md) - [Commits](https://github.com/npm/node-tar/compare/v6.0.2...v6.0.5) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- yarn.lock | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 64e3c9d95a..bf301197e7 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -24,7 +24,7 @@ "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", - "tar": "^6.0.2" + "tar": "^6.0.5" }, "devDependencies": { "@types/dotenv": "^8.2.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 5a7739010a..840cd6547d 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -34,7 +34,7 @@ "@jsii/spec": "^0.0.0", "fs-extra": "^9.0.1", "source-map": "^0.7.3", - "tar": "^6.0.2" + "tar": "^6.0.5" }, "devDependencies": { "@scope/jsii-calc-base": "^0.0.0", diff --git a/yarn.lock b/yarn.lock index 5e03df005d..34713a20fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6557,10 +6557,10 @@ minizlib@^1.2.1: dependencies: minipass "^2.9.0" -minizlib@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.0.tgz#fd52c645301ef09a63a2c209697c294c6ce02cf3" - integrity sha512-EzTZN/fjSvifSX0SlqUERCN39o6T40AMarPbv0MrarSFtIITCBh7bi+dU8nxGFHuqs9jdIAeoYoKuQAAASsPPA== +minizlib@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== dependencies: minipass "^3.0.0" yallist "^4.0.0" @@ -8776,15 +8776,15 @@ tar@^4.4.10, tar@^4.4.12, tar@^4.4.8: safe-buffer "^5.1.2" yallist "^3.0.3" -tar@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.2.tgz#5df17813468a6264ff14f766886c622b84ae2f39" - integrity sha512-Glo3jkRtPcvpDlAs/0+hozav78yoXKFr+c4wgw62NNMO3oo4AaJdCo21Uu7lcwr55h39W2XD1LMERc64wtbItg== +tar@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.5.tgz#bde815086e10b39f1dcd298e89d596e1535e200f" + integrity sha512-0b4HOimQHj9nXNEAA7zWwMM91Zhhba3pspja6sQbgTpynOJf+bkjBnfybNYzbpLbnwXnbyB4LOREvlyXLkCHSg== dependencies: chownr "^2.0.0" fs-minipass "^2.0.0" minipass "^3.0.0" - minizlib "^2.1.0" + minizlib "^2.1.1" mkdirp "^1.0.3" yallist "^4.0.0" From c20d6e3902bb68ea1770136f4d5f36f8482ac7b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:30:06 +0200 Subject: [PATCH 38/45] chore(deps-dev): bump standard-version from 8.0.2 to 9.0.0 (#1899) Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 8.0.2 to 9.0.0. - [Release notes](https://github.com/conventional-changelog/standard-version/releases) - [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/standard-version/compare/v8.0.2...v9.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 72 ++++++++++++++++++---------------------------------- 2 files changed, 25 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index 8f9be79d6d..f5b7baee1d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "eslint-plugin-prettier": "^3.1.4", "lerna": "^3.22.1", "prettier": "^2.0.5", - "standard-version": "^8.0.2", + "standard-version": "^9.0.0", "typescript": "~3.9.7" }, "repository": { diff --git a/yarn.lock b/yarn.lock index 34713a20fc..6276c74b8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2917,14 +2917,6 @@ commonmark@^0.29.1: minimist "~1.2.0" string.prototype.repeat "^0.2.0" -compare-func@^1.3.1: - version "1.3.4" - resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.4.tgz#6b07c4c5e8341119baf44578085bda0f4a823516" - integrity sha512-sq2sWtrqKPkEXAC8tEJA1+BqAH9GbFkGBtUOqrUX57VSfwp8xyktctk+uLoRy5eccTdxzDcVIztlYDpKs3Jv1Q== - dependencies: - array-ify "^1.0.0" - dot-prop "^3.0.0" - compare-func@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3" @@ -2991,7 +2983,7 @@ contains-path@^0.1.0: resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= -conventional-changelog-angular@^5.0.10, conventional-changelog-angular@^5.0.3: +conventional-changelog-angular@^5.0.11, conventional-changelog-angular@^5.0.3: version "5.0.11" resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.11.tgz#99a3ca16e4a5305e0c2c2fae3ef74fd7631fc3fb" integrity sha512-nSLypht/1yEflhuTogC03i7DX7sOrXGsRn14g131Potqi6cbGbGEE9PSDEHKldabB6N76HiSyw9Ph+kLmC04Qw== @@ -3018,16 +3010,7 @@ conventional-changelog-config-spec@2.1.0: resolved "https://registry.yarnpkg.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz#874a635287ef8b581fd8558532bf655d4fb59f2d" integrity sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ== -conventional-changelog-conventionalcommits@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.3.0.tgz#c4205a659f7ca9d7881f29ee78a4e7d6aeb8b3c2" - integrity sha512-oYHydvZKU+bS8LnGqTMlNrrd7769EsuEHKy4fh1oMdvvDi7fem8U+nvfresJ1IDB8K00Mn4LpiA/lR+7Gs6rgg== - dependencies: - compare-func "^1.3.1" - lodash "^4.17.15" - q "^1.5.1" - -conventional-changelog-conventionalcommits@^4.3.0: +conventional-changelog-conventionalcommits@4.4.0, conventional-changelog-conventionalcommits@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.4.0.tgz#8d96687141c9bbd725a89b95c04966d364194cd4" integrity sha512-ybvx76jTh08tpaYrYn/yd0uJNLt5yMrb1BphDe4WBredMlvPisvMghfpnJb6RmRNcqXeuhR6LfGZGewbkRm9yA== @@ -3055,7 +3038,7 @@ conventional-changelog-core@^3.1.6: read-pkg-up "^3.0.0" through2 "^3.0.0" -conventional-changelog-core@^4.1.7: +conventional-changelog-core@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.0.tgz#d8befd1e1f5126bf35a17668276cc8c244650469" integrity sha512-8+xMvN6JvdDtPbGBqA7oRNyZD4od1h/SIzrWqHcKZjitbVXrFpozEeyn4iI4af1UwdrabQpiZMaV07fPUTGd4w== @@ -3104,7 +3087,7 @@ conventional-changelog-jquery@^3.0.10: dependencies: q "^1.5.1" -conventional-changelog-jshint@^2.0.7: +conventional-changelog-jshint@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.8.tgz#3fff4df8cb46037f77b9dc3f8e354c7f99332f13" integrity sha512-hB/iI0IiZwnZ+seYI+qEQ4b+EMQSEC8jGIvhO2Vpz1E5p8FgLz75OX8oB1xJWl+s4xBMB6f8zJr0tC/BL7YOjw== @@ -3133,21 +3116,21 @@ conventional-changelog-writer@^4.0.17, conventional-changelog-writer@^4.0.6: split "^1.0.0" through2 "^3.0.0" -conventional-changelog@3.1.21: - version "3.1.21" - resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.21.tgz#4a774e6bf503acfd7e4685bb750da8c0eccf1e0d" - integrity sha512-ZGecVZPEo3aC75VVE4nu85589dDhpMyqfqgUM5Myq6wfKWiNqhDJLSDMsc8qKXshZoY7dqs1hR0H/15kI/G2jQ== +conventional-changelog@3.1.23: + version "3.1.23" + resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.23.tgz#d696408021b579a3814aba79b38729ed86478aea" + integrity sha512-sScUu2NHusjRC1dPc5p8/b3kT78OYr95/Bx7Vl8CPB8tF2mG1xei5iylDTRjONV5hTlzt+Cn/tBWrKdd299b7A== dependencies: - conventional-changelog-angular "^5.0.10" + conventional-changelog-angular "^5.0.11" conventional-changelog-atom "^2.0.7" conventional-changelog-codemirror "^2.0.7" - conventional-changelog-conventionalcommits "^4.3.0" - conventional-changelog-core "^4.1.7" + conventional-changelog-conventionalcommits "^4.4.0" + conventional-changelog-core "^4.2.0" conventional-changelog-ember "^2.0.8" conventional-changelog-eslint "^3.0.8" conventional-changelog-express "^2.0.5" conventional-changelog-jquery "^3.0.10" - conventional-changelog-jshint "^2.0.7" + conventional-changelog-jshint "^2.0.8" conventional-changelog-preset-loader "^2.3.4" conventional-commits-filter@^2.0.2, conventional-commits-filter@^2.0.6: @@ -3171,17 +3154,17 @@ conventional-commits-parser@^3.0.3, conventional-commits-parser@^3.1.0: through2 "^3.0.0" trim-off-newlines "^1.0.0" -conventional-recommended-bump@6.0.9: - version "6.0.9" - resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.0.9.tgz#49ee74f52fbafcc63e89e2297d020279fea318f0" - integrity sha512-DpRmW1k8CpRrcsXHOPGgHgOd4BMGiq2gtXAveGM8B9pSd9b4r4WKnqp1Fd0vkDtk8l973mIk8KKKUYnKRr9SFw== +conventional-recommended-bump@6.0.10: + version "6.0.10" + resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.0.10.tgz#ac2fb3e31bad2aeda80086b345bf0c52edd1d1b3" + integrity sha512-2ibrqAFMN3ZA369JgVoSbajdD/BHN6zjY7DZFKTHzyzuQejDUCjQ85S5KHxCRxNwsbDJhTPD5hOKcis/jQhRgg== dependencies: concat-stream "^2.0.0" conventional-changelog-preset-loader "^2.3.4" conventional-commits-filter "^2.0.6" conventional-commits-parser "^3.1.0" git-raw-commits "2.0.0" - git-semver-tags "^4.0.0" + git-semver-tags "^4.1.0" meow "^7.0.0" q "^1.5.1" @@ -3619,13 +3602,6 @@ domexception@^2.0.1: dependencies: webidl-conversions "^5.0.0" -dot-prop@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" - integrity sha1-G3CK8JSknJoOfbyteQq6U52sEXc= - dependencies: - is-obj "^1.0.0" - dot-prop@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" @@ -8463,16 +8439,16 @@ stack-utils@^2.0.2: dependencies: escape-string-regexp "^2.0.0" -standard-version@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-8.0.2.tgz#02ed7131f83046bd04358dc54f97d42c4b2fd828" - integrity sha512-L8X9KFq2SmVmaeZgUmWHFJMOsEWpjgFAwqic6yIIoveM1kdw1vH4Io03WWxUDjypjGqGU6qUtcJoR8UvOv5w3g== +standard-version@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-9.0.0.tgz#814055add91eec8679a773768927f927183fc818" + integrity sha512-eRR04IscMP3xW9MJTykwz13HFNYs8jS33AGuDiBKgfo5YrO0qX0Nxb4rjupVwT5HDYL/aR+MBEVLjlmVFmFEDQ== dependencies: chalk "^2.4.2" - conventional-changelog "3.1.21" + conventional-changelog "3.1.23" conventional-changelog-config-spec "2.1.0" - conventional-changelog-conventionalcommits "4.3.0" - conventional-recommended-bump "6.0.9" + conventional-changelog-conventionalcommits "4.4.0" + conventional-recommended-bump "6.0.10" detect-indent "^6.0.0" detect-newline "^3.1.0" dotgitignore "^2.1.0" From 26be2b6ec7ceb15a3abb842eb2e34190dd99bbb1 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 17 Aug 2020 14:39:32 +0200 Subject: [PATCH 39/45] feat(python): allow setting additional trove classifiers (#1902) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting the `jsii.targets.python.classifiers` property in `package.json` to an array of strings will trigger insertion of those values in the `classifiers` of the generated python package. Classifiers are de-duplicated and normalized in `setup.py`. Some classifiers prefixes are considered "managed" (an appropriate value is automatically determined for those based on the package's metadata), and while configuring those will not cause `jsii-pacmak` to fail, a warning will be emitted as manually specifying any of those is usually a Bad Idea™: - `Development Status ::` - `License ::` - `Operating System ::` - `Typing ::` Existing (i.e: valid) trove classifiers are mastered in the [`trove-classifiers`](https://github.com/pypa/trove-classifiers) PyPA package. This contributes to aws/cdk-ops#393 --- docs/configuration.md | 24 ++++++++- packages/@jsii/kernel/test/kernel.test.ts | 6 ++- packages/jsii-calc/package.json | 5 +- packages/jsii-calc/test/assembly.jsii | 5 +- packages/jsii-pacmak/lib/targets/python.ts | 50 +++++++++++++++++-- .../__snapshots__/jsii-pacmak.test.ts.snap | 8 ++- 6 files changed, 89 insertions(+), 9 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 025267c230..3998e199bd 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -154,6 +154,22 @@ The `python` target requires two configuration entries: * `module` - the name of the generated **Python** module, which will be used by users in `import` directives. * `distName` - the [PyPI] distribution name for the package. +* `classifiers` - a list of [trove classifiers] to declare on the package. It is + the user's responsibility to specify *valid* values (the authoritative list of + valid [trove classifiers] is masted in the [pypa/trove-classifiers] package). + * Some classifiers are automatically included (and should not be added to the + `classifiers` property) based on relevant configuration from the + `package.json` file: + * `Development Status :: ` is determined based on the package's `stability` + * `License ::` is determined based on the package's `license` + * `Operating System :: OS Independent` is always set + * `Typing :: Typed` is always set + * Additionally, the following `Programming Language ::` classifiers are + already set (more could be added by the user if relevant): + * `Programming Language :: Python :: 3 :: Only` + * `Programming Language :: Python :: 3.6` + * `Programming Language :: Python :: 3.7` + * `Programming Language :: Python :: 3.8` Example: ```js @@ -162,7 +178,11 @@ Example: "targets": { "python": { "module": "hello_jsii", // Required - "distName": "hello-jsii" // Required + "distName": "hello-jsii", // Required + "classifiers": [ // Optional + "Framework :: AWS CDK", + "Framework :: AWS CDK :: 1" + ] }, // ... } @@ -175,6 +195,8 @@ Example: The resulting package can be published to [PyPI]. [PyPI]: https://pypi.org/ +[trove classifiers]: https://www.python.org/dev/peps/pep-0301/#distutils-trove-classification +[pypa/trove-classifiers]: https://github.com/pypa/trove-classifiers #### Configuring `Java` diff --git a/packages/@jsii/kernel/test/kernel.test.ts b/packages/@jsii/kernel/test/kernel.test.ts index e8ab48b1ee..504bcb724a 100644 --- a/packages/@jsii/kernel/test/kernel.test.ts +++ b/packages/@jsii/kernel/test/kernel.test.ts @@ -406,7 +406,11 @@ defineTest( }, }, js: { npm: 'jsii-calc' }, - python: { distName: 'jsii-calc', module: 'jsii_calc' }, + python: { + distName: 'jsii-calc', + module: 'jsii_calc', + classifiers: ['Test :: Classifier :: Is Dummy'], + }, }); expect(sandbox.naming({ assembly: '@scope/jsii-calc-lib' }).naming).toEqual( { diff --git a/packages/jsii-calc/package.json b/packages/jsii-calc/package.json index 5ca6782154..3875832b61 100644 --- a/packages/jsii-calc/package.json +++ b/packages/jsii-calc/package.json @@ -73,7 +73,10 @@ }, "python": { "distName": "jsii-calc", - "module": "jsii_calc" + "module": "jsii_calc", + "classifiers": [ + "Test :: Classifier :: Is Dummy" + ] } }, "metadata": { diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index fc62bbbf1a..321c8da7f6 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -247,6 +247,9 @@ "npm": "jsii-calc" }, "python": { + "classifiers": [ + "Test :: Classifier :: Is Dummy" + ], "distName": "jsii-calc", "module": "jsii_calc" } @@ -13819,5 +13822,5 @@ } }, "version": "0.0.0", - "fingerprint": "NsqdwWgXi+kjrpLQtQ27eA/znULJ7TtXy03ht68N9Ms=" + "fingerprint": "TXGVwLZ10oZ08NxDzu6i+fqPtaw5aEqME8+d+KEhL08=" } diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index fc56f31e62..8450c28ca0 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -1709,10 +1709,54 @@ class Package { setupKwargs.classifiers.push('License :: OSI Approved'); } + const additionalClassifiers = this.metadata.targets?.python?.classifiers; + if (additionalClassifiers != null) { + if (!Array.isArray(additionalClassifiers)) { + throw new Error( + `The "jsii.targets.python.classifiers" value must be an array of strings if provided, but found ${JSON.stringify( + additionalClassifiers, + null, + 2, + )}`, + ); + } + // We discourage using those since we automatically set a value for them + for (let classifier of additionalClassifiers.sort()) { + if (typeof classifier !== 'string') { + throw new Error( + `The "jsii.targets.python.classifiers" value can only contain strings, but found ${JSON.stringify( + classifier, + null, + 2, + )}`, + ); + } + // We'll split on `::` and re-join later so classifiers are "normalized" to a standard spacing + const parts = classifier.split('::').map((part) => part.trim()); + const reservedClassifiers = [ + 'Development Status', + 'License', + 'Operating System', + 'Typing', + ]; + if (reservedClassifiers.includes(parts[0])) { + warn( + `Classifiers starting with ${reservedClassifiers + .map((x) => `"${x} ::"`) + .join( + ', ', + )} are automatically set and should not be manually configured`, + ); + } + classifier = parts.join(' :: '); + if (setupKwargs.classifiers.includes(classifier)) { + continue; + } + setupKwargs.classifiers.push(classifier); + } + } + // We Need a setup.py to make this Package, actually a Package. - // TODO: - // - License - // - Classifiers code.openFile('setup.py'); code.line('import json'); code.line('import setuptools'); diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap index f428ff92a9..2618d8b6bf 100644 --- a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap @@ -7100,6 +7100,9 @@ exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.Calcu "npm": "jsii-calc" }, "python": { + "classifiers": [ + "Test :: Classifier :: Is Dummy" + ], "distName": "jsii-calc", "module": "jsii_calc" } @@ -20672,7 +20675,7 @@ exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.Calcu } }, "version": "0.0.0", - "fingerprint": "NsqdwWgXi+kjrpLQtQ27eA/znULJ7TtXy03ht68N9Ms=" + "fingerprint": "TXGVwLZ10oZ08NxDzu6i+fqPtaw5aEqME8+d+KEhL08=" } `; @@ -55774,7 +55777,8 @@ kwargs = json.loads( "Programming Language :: Python :: 3.8", "Typing :: Typed", "Development Status :: 4 - Beta", - "License :: OSI Approved" + "License :: OSI Approved", + "Test :: Classifier :: Is Dummy" ] } """ From 9d5a439aaddef7ffd6e6add6e215a7cc3268e58a Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 17 Aug 2020 17:56:42 +0200 Subject: [PATCH 40/45] feat(jsii-pacmak): option to disallow parallel generation of languages (#1890) The build process for each language can be intensive in terms of limited resources, such as open file handles. In certain environments, 'EMFILE' can happen as a result of having ot many files concurrently open, failing the build. Limiting parallelism can reduce (or effectively negate) the risk this happens. The `EMFILE` problem was encountered by @richardhboyd. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii-pacmak/bin/jsii-pacmak.ts | 63 +++++++++++++++++++------ packages/jsii-pacmak/test/build-test.sh | 2 +- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/packages/jsii-pacmak/bin/jsii-pacmak.ts b/packages/jsii-pacmak/bin/jsii-pacmak.ts index 1c713448c7..f4254821a3 100644 --- a/packages/jsii-pacmak/bin/jsii-pacmak.ts +++ b/packages/jsii-pacmak/bin/jsii-pacmak.ts @@ -95,6 +95,12 @@ import { ALL_BUILDERS, TargetName } from '../lib/targets'; "Translate code samples on-the-fly if they can't be found in the samples tablet", default: true, }) + .option('parallel', { + type: 'boolean', + desc: + 'Generate all configured targets in parallel (disabling this might help if you encounter EMFILE errors)', + default: true, + }) .version(VERSION_DESC) .strict().argv; @@ -165,21 +171,25 @@ import { ALL_BUILDERS, TargetName } from '../lib/targets'; // We run all target sets in parallel for minimal wall clock time await Promise.all( - targetSets.map(async (targetSet) => { - logging.info( - `Packaging '${targetSet.targetType}' for ${describePackages( - targetSet, - )}`, - ); - await timers.recordAsync(targetSet.targetType, () => - buildTargetsForLanguage( - targetSet.targetType, - targetSet.modules, - perLanguageDirectory, - ), - ); - logging.info(`${targetSet.targetType} finished`); - }), + mapParallelOrSerial( + targetSets, + async (targetSet) => { + logging.info( + `Packaging '${targetSet.targetType}' for ${describePackages( + targetSet, + )}`, + ); + await timers.recordAsync(targetSet.targetType, () => + buildTargetsForLanguage( + targetSet.targetType, + targetSet.modules, + perLanguageDirectory, + ), + ); + logging.info(`${targetSet.targetType} finished`); + }, + { parallel: argv.parallel }, + ), ); } finally { if (argv.clean) { @@ -266,3 +276,26 @@ function describePackages(target: TargetSet) { } return `${target.modules.length} modules`; } + +function mapParallelOrSerial( + collection: readonly T[], + mapper: (item: T) => Promise, + { parallel }: { parallel: boolean }, +): Array> { + const result = new Array>(); + for (const item of collection) { + result.push( + result.length === 0 || parallel + ? // Running parallel, or first element + mapper(item) + : // Wait for the previous promise, then make the next one + result[result.length - 1].then( + () => mapper(item), + (error) => { + throw error; + }, + ), + ); + } + return result; +} diff --git a/packages/jsii-pacmak/test/build-test.sh b/packages/jsii-pacmak/test/build-test.sh index 5b31781106..64e73def06 100755 --- a/packages/jsii-pacmak/test/build-test.sh +++ b/packages/jsii-pacmak/test/build-test.sh @@ -49,4 +49,4 @@ done # Multiple targets, build all at once into own directory clean_dists echo "Testing ALL-AT-ONCE build." -../bin/jsii-pacmak $packagedirs +../bin/jsii-pacmak --no-parallel $packagedirs From 44d963b67c2fff6b7f7338b5f133bcd1badac601 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 18 Aug 2020 11:07:36 +0200 Subject: [PATCH 41/45] chore: sanitize the .NET codebase (a little) (#1877) Configured a bunch of Roslyn analyzers to ensure code quality, and made the necessary corrections: - Correct usage of `ArgumentException` - Use `Array.Empty()` to spare allocations of empty objects - Override equality on data types - Specify `InvariantCulture` where needed Additionally, folded all the contents of Amazon.JSII.JsonModel under the Amazon.JSII.Runtime assembly, and issued type frowards in Amazon.JSII.JsonModel to maintain backwards compatibility. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- packages/@jsii/Directory.Build.targets | 4 + .../Helpers/DiagnosticResult.cs | 91 +++++++++- .../Verifiers/DiagnosticVerifier.cs | 6 +- .../Amazon.JSII.Analyzers.csproj | 5 +- .../JsiiOptionalAnalyzer.cs | 35 ++-- .../Amazon.JSII.JsonModel.UnitTests.csproj | 24 --- .../Amazon.JSII.JsonModel.csproj | 7 +- .../Api/Response/CreateResponse.cs | 6 - .../src/Amazon.JSII.JsonModel/AssemblyInfo.cs | 79 +++++++++ .../Amazon.JSII.JsonModel/Spec/Constants.cs | 8 - .../JsonModel}/AssemblyTests.cs | 16 +- .../JsonModel}/ClassTypeTests.cs | 4 +- .../JsonModel}/CollectionKindTests.cs | 4 +- .../CollectionTypeReferenceTests.cs | 4 +- .../JsonModel}/DocsTests.cs | 10 +- .../JsonModel}/EnumMemberTests.cs | 4 +- .../JsonModel}/TestUtils.cs | 2 +- .../src/Amazon.JSII.Runtime.sln | 7 - .../Amazon.JSII.Runtime.csproj | 2 +- .../Amazon.JSII.Runtime/CallbackExtensions.cs | 12 +- .../Amazon.JSII.Runtime/Deputy/ByRefValue.cs | 4 +- .../Amazon.JSII.Runtime/Deputy/DeputyBase.cs | 24 +-- .../Deputy/JsiiClassAttribute.cs | 2 +- .../Deputy/JsiiMethodAttribute.cs | 2 +- .../Deputy/JsiiTypeAttributeBase.cs | 3 +- .../src/Amazon.JSII.Runtime/JsiiException.cs | 4 + .../JsonModel}/Api/Callback.cs | 2 +- .../JsonModel}/Api/ObjectReference.cs | 0 .../JsonModel}/Api/Override.cs | 2 +- .../JsonModel}/Api/Request/BeginRequest.cs | 2 +- .../Api/Request/CallbacksRequest.cs | 2 +- .../JsonModel}/Api/Request/CompleteRequest.cs | 2 +- .../JsonModel}/Api/Request/CreateRequest.cs | 6 +- .../JsonModel}/Api/Request/DeleteRequest.cs | 2 +- .../JsonModel}/Api/Request/EndRequest.cs | 2 +- .../JsonModel}/Api/Request/GetRequest.cs | 2 +- .../JsonModel}/Api/Request/IKernelRequest.cs | 0 .../JsonModel}/Api/Request/InvokeRequest.cs | 2 +- .../JsonModel}/Api/Request/LoadRequest.cs | 2 +- .../JsonModel}/Api/Request/NamingRequest.cs | 2 +- .../JsonModel}/Api/Request/SetRequest.cs | 2 +- .../Api/Request/StaticGetRequest.cs | 2 +- .../Api/Request/StaticInvokeRequest.cs | 2 +- .../Api/Request/StaticSetRequest.cs | 2 +- .../JsonModel}/Api/Request/StatsRequest.cs | 2 +- .../JsonModel}/Api/Response/BeginResponse.cs | 2 +- .../Api/Response/CallbackResponse.cs | 2 +- .../Api/Response/CallbacksResponse.cs | 2 +- .../Api/Response/CompleteResponse.cs | 2 +- .../JsonModel/Api/Response/CreateResponse.cs | 6 + .../JsonModel}/Api/Response/DeleteResponse.cs | 2 +- .../JsonModel}/Api/Response/EndResponse.cs | 2 +- .../JsonModel}/Api/Response/ErrorResponse.cs | 2 +- .../JsonModel}/Api/Response/GetResponse.cs | 2 +- .../JsonModel}/Api/Response/HelloResponse.cs | 2 +- .../Api/Response/IKernelResponse.cs | 0 .../JsonModel}/Api/Response/InvokeResponse.cs | 2 +- .../JsonModel}/Api/Response/LoadResponse.cs | 2 +- .../JsonModel}/Api/Response/NamingResponse.cs | 2 +- .../JsonModel}/Api/Response/OkResponse.cs | 2 +- .../JsonModel}/Api/Response/SetResponse.cs | 2 +- .../JsonModel}/Api/Response/StatsResponse.cs | 2 +- .../JsonModel}/Converters/TypeConverter.cs | 2 +- .../Converters/TypeDictionaryConverter.cs | 0 .../JsonModel}/Converters/Util.cs | 0 .../JsonModel}/FileSystem/FileSystem.cs | 6 +- .../JsonModel}/FileSystem/IFileSystem.cs | 0 .../JsonModel}/JsonDictionaryBase.cs | 0 .../JsonModel}/Spec/Assembly.cs | 4 +- .../JsonModel}/Spec/AssemblyTargets.cs | 6 +- .../JsonModel}/Spec/Callable.cs | 0 .../JsonModel}/Spec/ClassType.cs | 2 +- .../JsonModel}/Spec/CollectionKind.cs | 0 .../Spec/CollectionTypeReference.cs | 2 +- .../JsonModel/Spec/Constants.cs | 8 + .../JsonModel}/Spec/DependencyRoot.cs | 0 .../JsonModel}/Spec/Docs.cs | 4 +- .../JsonModel}/Spec/EnumMember.cs | 2 +- .../JsonModel}/Spec/EnumType.cs | 2 +- .../JsonModel}/Spec/IDocumentable.cs | 0 .../JsonModel}/Spec/IOverridable.cs | 2 +- .../JsonModel}/Spec/Initializer.cs | 2 +- .../JsonModel}/Spec/InterfaceType.cs | 2 +- .../JsonModel}/Spec/Method.cs | 2 +- .../JsonModel}/Spec/OptionalValue.cs | 0 .../JsonModel}/Spec/PackageVersion.cs | 2 +- .../JsonModel}/Spec/Parameter.cs | 2 +- .../JsonModel}/Spec/Person.cs | 2 +- .../JsonModel}/Spec/PrimitiveType.cs | 0 .../JsonModel}/Spec/Property.cs | 2 +- .../JsonModel}/Spec/Readme.cs | 2 +- .../JsonModel}/Spec/Stability.cs | 0 .../JsonModel}/Spec/Type.cs | 0 .../JsonModel}/Spec/TypeKind.cs | 0 .../JsonModel}/Spec/TypeReference.cs | 2 +- .../JsonModel}/Spec/UnionTypeReference.cs | 2 +- .../JsonModel}/Spec/UserTypeReference.cs | 2 +- .../Amazon.JSII.Runtime/ReflectionUtils.cs | 8 +- .../Converters/FrameworkToJsiiConverter.cs | 3 +- .../Converters/JsiiToFrameworkConverter.cs | 9 +- .../Services/Converters/ValueConverter.cs | 19 +- .../Services/NodeProcess.cs | 6 +- .../Amazon.JSII.Runtime/Services/Runtime.cs | 2 +- .../Amazon.JSII.Runtime/Services/TypeCache.cs | 2 +- .../lib/targets/dotnet/dotnetgenerator.ts | 6 +- .../__snapshots__/jsii-pacmak.test.ts.snap | 162 +++++++++--------- 106 files changed, 439 insertions(+), 283 deletions(-) delete mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Amazon.JSII.JsonModel.UnitTests.csproj delete mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CreateResponse.cs create mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/AssemblyInfo.cs delete mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Constants.cs rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/AssemblyTests.cs (96%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/ClassTypeTests.cs (99%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/CollectionKindTests.cs (91%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/CollectionTypeReferenceTests.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/DocsTests.cs (91%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/EnumMemberTests.cs (95%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel.UnitTests/Spec => Amazon.JSII.Runtime.UnitTests/JsonModel}/TestUtils.cs (89%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Callback.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/ObjectReference.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Override.cs (95%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/BeginRequest.cs (94%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/CallbacksRequest.cs (80%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/CompleteRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/CreateRequest.cs (85%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/DeleteRequest.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/EndRequest.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/GetRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/IKernelRequest.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/InvokeRequest.cs (94%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/LoadRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/NamingRequest.cs (89%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/SetRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/StaticGetRequest.cs (92%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/StaticInvokeRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/StaticSetRequest.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Request/StatsRequest.cs (80%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/BeginResponse.cs (87%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/CallbackResponse.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/CallbacksResponse.cs (87%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/CompleteResponse.cs (87%) create mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CreateResponse.cs rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/DeleteResponse.cs (72%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/EndResponse.cs (87%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/ErrorResponse.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/GetResponse.cs (85%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/HelloResponse.cs (87%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/IKernelResponse.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/InvokeResponse.cs (86%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/LoadResponse.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/NamingResponse.cs (96%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/OkResponse.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/SetResponse.cs (73%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Api/Response/StatsResponse.cs (85%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Converters/TypeConverter.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Converters/TypeDictionaryConverter.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Converters/Util.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/FileSystem/FileSystem.cs (87%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/FileSystem/IFileSystem.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/JsonDictionaryBase.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Assembly.cs (96%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/AssemblyTargets.cs (94%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Callable.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/ClassType.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/CollectionKind.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/CollectionTypeReference.cs (92%) create mode 100644 packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Constants.cs rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/DependencyRoot.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Docs.cs (96%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/EnumMember.cs (91%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/EnumType.cs (95%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/IDocumentable.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/IOverridable.cs (71%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Initializer.cs (92%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/InterfaceType.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Method.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/OptionalValue.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/PackageVersion.cs (91%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Parameter.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Person.cs (97%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/PrimitiveType.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Property.cs (95%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Readme.cs (93%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Stability.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/Type.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/TypeKind.cs (100%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/TypeReference.cs (96%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/UnionTypeReference.cs (90%) rename packages/@jsii/dotnet-runtime/src/{Amazon.JSII.JsonModel => Amazon.JSII.Runtime/JsonModel}/Spec/UserTypeReference.cs (91%) diff --git a/packages/@jsii/Directory.Build.targets b/packages/@jsii/Directory.Build.targets index b414c59a02..69bd640d11 100644 --- a/packages/@jsii/Directory.Build.targets +++ b/packages/@jsii/Directory.Build.targets @@ -7,6 +7,10 @@ + + + + diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Helpers/DiagnosticResult.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Helpers/DiagnosticResult.cs index 880e7b7628..7f93c45f85 100755 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Helpers/DiagnosticResult.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Helpers/DiagnosticResult.cs @@ -1,12 +1,13 @@ using Microsoft.CodeAnalysis; using System; +using System.Collections.Generic; namespace Amazon.JSII.Analyzers.UnitTests.Helpers { ///

/// Location where the diagnostic appears, as determined by path, line number, and column number. /// - public readonly struct DiagnosticResultLocation + public readonly struct DiagnosticResultLocation : IEquatable { public DiagnosticResultLocation(string path, int line, int column) { @@ -28,16 +29,50 @@ public DiagnosticResultLocation(string path, int line, int column) public string Path { get; } public int Line { get; } public int Column { get; } + + public override bool Equals(object? obj) + { + if (obj is DiagnosticResultLocation other) + { + return Equals(other); + } + + return false; + } + + public bool Equals(DiagnosticResultLocation other) + { + return Path == other.Path + && Line == other.Line + && Column == other.Column; + } + + public override int GetHashCode() + { + return Path.GetHashCode() + ^ Line.GetHashCode() + ^ Column.GetHashCode(); + } + + public static bool operator ==(DiagnosticResultLocation left, DiagnosticResultLocation right) + { + return left.Equals(right); + } + + public static bool operator !=(DiagnosticResultLocation left, DiagnosticResultLocation right) + { + return !left.Equals(right); + } } /// /// Struct that stores information about a Diagnostic appearing in a source /// - public struct DiagnosticResult + public struct DiagnosticResult : IEquatable { - private DiagnosticResultLocation[] _locations; + private IReadOnlyList _locations; - public DiagnosticResultLocation[] Locations + public IReadOnlyList Locations { get { @@ -54,10 +89,52 @@ public DiagnosticResultLocation[] Locations public string Message { get; set; } - public string Path => Locations.Length > 0 ? Locations[0].Path : ""; + public string Path => Locations.Count > 0 ? Locations[0].Path : ""; - public int Line => Locations.Length > 0 ? Locations[0].Line : -1; + public int Line => Locations.Count > 0 ? Locations[0].Line : -1; - public int Column => Locations.Length > 0 ? Locations[0].Column : -1; + public int Column => Locations.Count > 0 ? Locations[0].Column : -1; + + public override bool Equals(object? obj) + { + if (obj is DiagnosticResult other) + { + return Equals(other); + } + + return false; + } + + public override int GetHashCode() + { + return Locations.GetHashCode() + ^ Id.GetHashCode() + ^ Severity.GetHashCode() + ^ Message.GetHashCode() + ^ Path.GetHashCode() + ^ Line.GetHashCode() + ^ Column.GetHashCode(); + } + + public bool Equals(DiagnosticResult other) + { + return Locations == other.Locations + && Id == other.Id + && Severity == other.Severity + && Message == other.Message + && Path == other.Path + && Line == other.Line + && Column == other.Column; + } + + public static bool operator ==(DiagnosticResult left, DiagnosticResult right) + { + return left.Equals(right); + } + + public static bool operator !=(DiagnosticResult left, DiagnosticResult right) + { + return !left.Equals(right); + } } } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Verifiers/DiagnosticVerifier.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Verifiers/DiagnosticVerifier.cs index d13fa5db99..7f8b6cea81 100755 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Verifiers/DiagnosticVerifier.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers.UnitTests/Verifiers/DiagnosticVerifier.cs @@ -43,7 +43,7 @@ protected void VerifyCSharpDiagnostic(string source, params DiagnosticResult[] e /// The language of the classes represented by the source strings /// The analyzer to be run on the source code /// DiagnosticResults that should appear after the analyzer is run on the sources - private void VerifyDiagnostics(string[] sources, string language, DiagnosticAnalyzer analyzer, params DiagnosticResult[] expected) + private static void VerifyDiagnostics(string[] sources, string language, DiagnosticAnalyzer analyzer, params DiagnosticResult[] expected) { var diagnostics = GetSortedDiagnostics(sources, language, analyzer); VerifyDiagnosticResults(diagnostics, analyzer, expected); @@ -90,10 +90,10 @@ private static void VerifyDiagnosticResults(Diagnostic[] actualResults, Diagnost VerifyDiagnosticLocation(analyzer, actual, actual.Location, expected.Locations.First()); var additionalLocations = actual.AdditionalLocations.ToArray(); - if (additionalLocations.Length != expected.Locations.Length - 1) + if (additionalLocations.Length != expected.Locations.Count - 1) { Assert.True(false, - $"Expected {expected.Locations.Length - 1} additional locations but got {additionalLocations.Length} for Diagnostic:\r\n {FormatDiagnostics(analyzer, actual)}\r\n"); + $"Expected {expected.Locations.Count - 1} additional locations but got {additionalLocations.Length} for Diagnostic:\r\n {FormatDiagnostics(analyzer, actual)}\r\n"); } for (int j = 0; j < additionalLocations.Length; ++j) diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/Amazon.JSII.Analyzers.csproj b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/Amazon.JSII.Analyzers.csproj index bf875e30ba..45995b8d22 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/Amazon.JSII.Analyzers.csproj +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/Amazon.JSII.Analyzers.csproj @@ -10,7 +10,10 @@ - + + + + diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/JsiiOptionalAnalyzer.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/JsiiOptionalAnalyzer.cs index 7facb303d1..01c14155dd 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/JsiiOptionalAnalyzer.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Analyzers/JsiiOptionalAnalyzer.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Collections.Immutable; +using System.Globalization; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; @@ -15,17 +16,21 @@ public class JsiiOptionalAnalyzer : DiagnosticAnalyzer private const string Title = "A required property is missing or null"; private const string MessageFormat = "The property is required and cannot be null"; private const string MessageFormatWithPropertyName = "The property {0} is required and cannot be null"; - private const string Description = "The property is required and cannot be null"; - private const string DescriptionWitPropertyName = "The property {0} is required and cannot be null"; + private const string Description = "The property is required and cannot be null."; + private const string DescriptionWithPropertyName = "The property {0} is required and cannot be null."; private const string Category = "Jsii.Usage"; - private static readonly DiagnosticDescriptor Rule = + private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description); public override ImmutableArray SupportedDiagnostics => ImmutableArray.Create(Rule); - + public override void Initialize(AnalysisContext context) { + if (context == null) + { + return; + } context.EnableConcurrentExecution(); context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze); context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ObjectCreationExpression); @@ -38,7 +43,7 @@ private static void AnalyzeNode(SyntaxNodeAnalysisContext context) if (IsJsiiDatatype(typeInfo)) { // If the newly created instance is a Jsii datatype [JsiiByValue] - // Get all the properties passed + // Get all the properties passed var passedProperties = new HashSet(); foreach (var child in objectCreation.ChildNodes()) { @@ -82,13 +87,15 @@ private static void AnalyzeNode(SyntaxNodeAnalysisContext context) if (!passedProperties.Contains(requiredProperty.Name)) { // This property IS REQUIRED and was not passed in the arguments. Raising an error - var rule = new DiagnosticDescriptor(DiagnosticId, + var rule = new DiagnosticDescriptor(DiagnosticId, Title, - string.Format(MessageFormatWithPropertyName, requiredProperty.Name), - Category, - DiagnosticSeverity.Error, - isEnabledByDefault: true, - description: string.Format(DescriptionWitPropertyName, requiredProperty.Name)); + string.Format(CultureInfo.InvariantCulture, MessageFormatWithPropertyName, + requiredProperty.Name), + Category, + DiagnosticSeverity.Error, + isEnabledByDefault: true, + description: string.Format(CultureInfo.InvariantCulture, DescriptionWithPropertyName, + requiredProperty.Name)); context.ReportDiagnostic(Diagnostic.Create(rule, context.Node.GetLocation())); } } @@ -112,7 +119,7 @@ private static bool IsJsiiClass(TypeInfo typeInfo) var typeAttributes = typeInfo.Type.GetAttributes().ToArray(); return typeAttributes.Any(a => a.AttributeClass.Name == "JsiiClassAttribute"); } - + /// /// Checks if the TypeInfo is related to a Jsii datatype /// @@ -130,7 +137,7 @@ private static bool IsJsiiDatatype(TypeInfo typeInfo) var typeAttributes = typeInfo.Type.GetAttributes().ToArray(); return typeAttributes.Any(a => a.AttributeClass.Name == "JsiiByValueAttribute"); } - + /// /// Checks if the property is optional for jsii /// @@ -144,4 +151,4 @@ private static bool IsJsiiOptionalProperty(ISymbol property) return property.GetAttributes().Any(a => a.AttributeClass.Name == "JsiiOptionalAttribute"); } } -} \ No newline at end of file +} diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Amazon.JSII.JsonModel.UnitTests.csproj b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Amazon.JSII.JsonModel.UnitTests.csproj deleted file mode 100644 index cf59b0d57f..0000000000 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Amazon.JSII.JsonModel.UnitTests.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - netcoreapp3.1 - false - Amazon.JSII.JsonModel.UnitTests - Amazon.JSII.JsonModel.UnitTests - - enable - true - - - - - - - - - - - - - - diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Amazon.JSII.JsonModel.csproj b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Amazon.JSII.JsonModel.csproj index ebecb80de9..e7f3556a73 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Amazon.JSII.JsonModel.csproj +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Amazon.JSII.JsonModel.csproj @@ -1,10 +1,10 @@ - + netcoreapp3.1 Amazon.JSII.JsonModel - .NET JsonModel for JSII + [DEPRECATED] .NET JsonModel for JSII icon.png enable @@ -12,7 +12,8 @@ - + + diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CreateResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CreateResponse.cs deleted file mode 100644 index 687a7fc775..0000000000 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CreateResponse.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Amazon.JSII.JsonModel.Api.Response -{ - public class CreateResponse : ObjectReference, IKernelResponse - { - } -} \ No newline at end of file diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/AssemblyInfo.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/AssemblyInfo.cs new file mode 100644 index 0000000000..293c3b5476 --- /dev/null +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/AssemblyInfo.cs @@ -0,0 +1,79 @@ +using System.Runtime.CompilerServices; + +// All the types were folded into Amazon.JSII.Runtime now, so here's a bunch of type +// forwarders to maintain backwards compatibility with previous versions. + +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.JsonDictionaryBase<,>))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Assembly))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.AssemblyTargets))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Callable))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.ClassType))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.CollectionKind))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.CollectionTypeReference))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Constants))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.DependencyRoot))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Docs))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.EnumMember))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.EnumType))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.IDocumentable))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Initializer))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.InterfaceType))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.IOverridable))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Method))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.IOptionalValue))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.OptionalValue))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.PackageVersion))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Parameter))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Person))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.PrimitiveType))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Property))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Readme))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Stability))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.Type))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.TypeKind))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.TypeReference))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.UnionTypeReference))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Spec.UserTypeReference))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.FileSystem))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.DefaultFile))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.DefaultDirectory))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.IFileSystem))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.IFile))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.FileSystem.IDirectory))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Converters.TypeConverter))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Callback))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.ObjectReference))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Override))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.BeginResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.CallbackResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.CallbacksResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.CompleteResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.CreateResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.DeleteResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.EndResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.ErrorResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.GetResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.HelloResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.IKernelResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.InvokeResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.LoadResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.NamingResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.OkResponse<>))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.SetResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Response.StatsResponse))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.BeginRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.CallbacksRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.CompleteRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.CreateRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.DeleteRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.EndRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.GetRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.IKernelRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.InvokeRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.LoadRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.NamingRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.SetRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.StaticGetRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.StaticInvokeRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.StaticSetRequest))] +[assembly:TypeForwardedTo(typeof(Amazon.JSII.JsonModel.Api.Request.StatsRequest))] diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Constants.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Constants.cs deleted file mode 100644 index e85625987e..0000000000 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Constants.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Amazon.JSII.JsonModel.Spec -{ - public static class Constants - { - public static readonly string SPEC_VERSION = "jsii/0.9.0"; // minor version = no breaking change - public static readonly string SPEC_FILE_NAME = ".jsii"; - } -} diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/AssemblyTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/AssemblyTests.cs similarity index 96% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/AssemblyTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/AssemblyTests.cs index fcb7ca006e..d307cd9bac 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/AssemblyTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/AssemblyTests.cs @@ -5,11 +5,11 @@ using System.Collections.Generic; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class AssemblyTests { - const string RootPrefix = nameof(Spec) + "." + nameof(Assembly) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(Assembly) + "."; public class Serialization : TestUtils { @@ -49,7 +49,7 @@ public void ShouldSerializeAllMembers() ) }, bundled: new Dictionary(), - types: new Dictionary(), + types: new Dictionary(), docs: new Docs(), readme: new Readme("myReadme") ); @@ -126,7 +126,7 @@ public void ShouldThrowOnMissingName() )), dependencies: new Dictionary(), bundled: new Dictionary(), - types: new Dictionary(), + types: new Dictionary(), docs: new Docs() )); } @@ -153,7 +153,7 @@ public void ShouldThrowOnMissingVersion() assemblyOriginatorKeyFile: "key.snk", iconUrl: "http://www.example.com/icon.png" )), - types: new Dictionary(), + types: new Dictionary(), dependencies: new Dictionary(), bundled: new Dictionary(), docs: new Docs() @@ -180,7 +180,7 @@ public void ShouldNotSerializeMissingDependencies() assemblyOriginatorKeyFile: "key.snk", iconUrl: "http://www.example.com/icon.png" )), - types: new Dictionary(), + types: new Dictionary(), dependencies: null, bundled: new Dictionary(), docs: new Docs() @@ -240,7 +240,7 @@ public void ShouldNotSerializeMissingBundled() assemblyOriginatorKeyFile: "key.snk", iconUrl: "http://www.example.com/icon.png" )), - types: new Dictionary(), + types: new Dictionary(), dependencies: new Dictionary(), bundled: null, docs: new Docs() @@ -300,7 +300,7 @@ public void ShouldNotSerializeMissingDocs() assemblyOriginatorKeyFile: "key.snk", iconUrl: "http://www.example.com/icon.png" )), - types: new Dictionary(), + types: new Dictionary(), dependencies: new Dictionary(), bundled: new Dictionary(), docs: null diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/ClassTypeTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/ClassTypeTests.cs similarity index 99% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/ClassTypeTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/ClassTypeTests.cs index 5e25c3a8c2..77211694ff 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/ClassTypeTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/ClassTypeTests.cs @@ -4,11 +4,11 @@ using System.Linq; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class ClassTypeTests { - const string RootPrefix = nameof(Spec) + "." + nameof(ClassType) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(ClassType) + "."; public class Serialization : TestUtils { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionKindTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionKindTests.cs similarity index 91% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionKindTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionKindTests.cs index 84885bb1ed..65656f30f9 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionKindTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionKindTests.cs @@ -3,11 +3,11 @@ using System; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class CollectionKindTests { - const string RootPrefix = nameof(Spec) + "." + nameof(CollectionKind) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(CollectionKind) + "."; public class Serialization { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionTypeReferenceTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionTypeReferenceTests.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionTypeReferenceTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionTypeReferenceTests.cs index 4a6450174d..7e4c2bd49a 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/CollectionTypeReferenceTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/CollectionTypeReferenceTests.cs @@ -3,11 +3,11 @@ using System; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class CollectionTypeReferenceTests { - const string RootPrefix = nameof(Spec) + "." + nameof(CollectionTypeReference) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(CollectionTypeReference) + "."; public class Serialization { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/DocsTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/DocsTests.cs similarity index 91% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/DocsTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/DocsTests.cs index 562ae45d07..9af9860d3e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/DocsTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/DocsTests.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class DocsTests { - const string RootPrefix = nameof(Spec) + "." + nameof(Docs) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(Docs) + "."; public class Serialization { @@ -25,11 +25,11 @@ public void ShouldSerializeAllMembers() string actual = JsonConvert.SerializeObject(docs, Formatting.Indented); const string expected = @"{ + ""summary"": ""summary"", + ""remarks"": ""remarks"", ""custom"": { ""custtag"": ""custval"" - }, - ""summary"": ""summary"", - ""remarks"": ""remarks"" + } }"; Assert.Equal(expected, actual, ignoreLineEndingDifferences: true); diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/EnumMemberTests.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/EnumMemberTests.cs similarity index 95% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/EnumMemberTests.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/EnumMemberTests.cs index e56cca7a08..8f6ddd7be7 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/EnumMemberTests.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/EnumMemberTests.cs @@ -3,11 +3,11 @@ using System; using Xunit; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class EnumMemberTests { - const string RootPrefix = nameof(Spec) + "." + nameof(EnumMember) + "."; + const string RootPrefix = nameof(JsonModel) + "." + nameof(EnumMember) + "."; public class Serialization { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/TestUtils.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/TestUtils.cs similarity index 89% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/TestUtils.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/TestUtils.cs index bd40ea4831..86c1184a36 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel.UnitTests/Spec/TestUtils.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests/JsonModel/TestUtils.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Amazon.JSII.JsonModel.UnitTests.Spec +namespace Amazon.JSII.Runtime.UnitTests.JsonModel { public class TestUtils { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.sln b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.sln index 0f30c2fe5c..641c673b0b 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.sln +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime.sln @@ -19,8 +19,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.JSII.JsonModel", "Am EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.JSII.Analyzers", "Amazon.JSII.Analyzers\Amazon.JSII.Analyzers.csproj", "{0BD8DC3F-CB0A-4299-93E4-1496181F054E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.JSII.JsonModel.UnitTests", "Amazon.JSII.JsonModel.UnitTests\Amazon.JSII.JsonModel.UnitTests.csproj", "{A534D6E6-DD54-452E-B0ED-14246E263C20}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.JSII.Analyzers.UnitTests", "Amazon.JSII.Analyzers.UnitTests\Amazon.JSII.Analyzers.UnitTests.csproj", "{17D77476-5C95-4C13-8023-08664AA5F801}" EndProject Global @@ -45,10 +43,6 @@ Global {0BD8DC3F-CB0A-4299-93E4-1496181F054E}.Debug|Any CPU.Build.0 = Debug|Any CPU {0BD8DC3F-CB0A-4299-93E4-1496181F054E}.Release|Any CPU.ActiveCfg = Release|Any CPU {0BD8DC3F-CB0A-4299-93E4-1496181F054E}.Release|Any CPU.Build.0 = Release|Any CPU - {A534D6E6-DD54-452E-B0ED-14246E263C20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A534D6E6-DD54-452E-B0ED-14246E263C20}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A534D6E6-DD54-452E-B0ED-14246E263C20}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A534D6E6-DD54-452E-B0ED-14246E263C20}.Release|Any CPU.Build.0 = Release|Any CPU {17D77476-5C95-4C13-8023-08664AA5F801}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {17D77476-5C95-4C13-8023-08664AA5F801}.Debug|Any CPU.Build.0 = Debug|Any CPU {17D77476-5C95-4C13-8023-08664AA5F801}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -59,7 +53,6 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {96CC0C0B-1D90-448F-9BFC-07CE93D2CE29} = {1F4EEFB5-9E4C-4464-9C3B-6729ABB0511E} - {A534D6E6-DD54-452E-B0ED-14246E263C20} = {1F4EEFB5-9E4C-4464-9C3B-6729ABB0511E} {17D77476-5C95-4C13-8023-08664AA5F801} = {1F4EEFB5-9E4C-4464-9C3B-6729ABB0511E} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Amazon.JSII.Runtime.csproj b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Amazon.JSII.Runtime.csproj index 5ecc3586de..55a5911697 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Amazon.JSII.Runtime.csproj +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Amazon.JSII.Runtime.csproj @@ -15,8 +15,8 @@ + - diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/CallbackExtensions.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/CallbackExtensions.cs index e731a83e83..cf53e98200 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/CallbackExtensions.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/CallbackExtensions.cs @@ -7,6 +7,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Reflection; using Microsoft.Extensions.DependencyInjection; @@ -102,7 +103,7 @@ out object? result if (!requiredType.IsInstanceOfType(value) && value is IConvertible) { - value = Convert.ChangeType(value, requiredType); + value = Convert.ChangeType(value, requiredType, CultureInfo.InvariantCulture); } return value; @@ -160,7 +161,7 @@ private static CallbackResult InvokeGetter(GetRequest request, IReferenceMap ref throw new InvalidOperationException($"Received callback for {deputy.GetType().Name}.{request.Property} getter, but this property does not have a getter"); } - return new CallbackResult(attribute, methodInfo.Invoke(deputy, new object[] { })); + return new CallbackResult(attribute, methodInfo.Invoke(deputy, Array.Empty())); } private static void InvokeSetter(SetRequest request, IReferenceMap referenceMap) @@ -190,17 +191,18 @@ private static void InvokeSetter(SetRequest request, IReferenceMap referenceMap) private static object? FromKernel(object? obj, IReferenceMap referenceMap) { if (!(obj is JObject jObject)) return obj; - var prop = jObject.Property("$jsii.byref"); + var prop = jObject.Property("$jsii.byref", StringComparison.InvariantCulture); if (prop != null) { var objId = prop.Value.Value(); - var interfaces = jObject.Property("$jsii.interfaces")?.Value?.Values()?.ToArray(); + var interfaces = jObject.Property("$jsii.interfaces", StringComparison.InvariantCulture)?.Value + ?.Values()?.ToArray(); return referenceMap.GetOrCreateNativeReference(new ByRefValue(objId, interfaces)); } if (jObject.ContainsKey("$jsii.map")) { - jObject = (JObject)jObject.Property("$jsii.map")!.Value; + jObject = (JObject) jObject.Property("$jsii.map", StringComparison.InvariantCulture)!.Value; } /* diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/ByRefValue.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/ByRefValue.cs index 6db67aea5f..3b4923d50e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/ByRefValue.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/ByRefValue.cs @@ -13,7 +13,7 @@ public sealed class ByRefValue internal ByRefValue(string value, string[]? interfaces = null, bool isProxy = false) { Value = value ?? throw new ArgumentNullException(nameof(value)); - Interfaces = interfaces ?? new string[]{}; + Interfaces = interfaces ?? Array.Empty(); var lastIndex = value.LastIndexOf('@'); if (lastIndex == -1) @@ -37,7 +37,7 @@ internal ByRefValue(string value, string fullyQualifiedName, string id, string[] Value = value ?? throw new ArgumentNullException(nameof(value)); FullyQualifiedName = fullyQualifiedName ?? throw new ArgumentNullException(nameof(value)); Id = id ?? throw new ArgumentNullException(nameof(value)); - Interfaces = interfaces ?? new string[] {}; + Interfaces = interfaces ?? Array.Empty(); IsProxy = isProxy; } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs index e87d1c9e35..80bd315186 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs @@ -25,7 +25,7 @@ protected sealed class DeputyProps { public DeputyProps(object[]? arguments = null) { - Arguments = arguments ?? new object[] { }; + Arguments = arguments ?? Array.Empty(); } public object[] Arguments { get; } @@ -42,13 +42,13 @@ protected DeputyBase(DeputyProps? props = null) // If this is a native object, it won't have any jsii metadata. var attribute = ReflectionUtils.GetClassAttribute(type); var fullyQualifiedName = attribute?.FullyQualifiedName ?? "Object"; - var parameters = attribute?.Parameters ?? new Parameter[] { }; + var parameters = attribute?.Parameters ?? Array.Empty(); var serviceProvider = ServiceContainer.ServiceProvider; var client = serviceProvider.GetRequiredService(); var response = client.Create( fullyQualifiedName, - ConvertArguments(parameters, props?.Arguments ?? new object[]{ }), + ConvertArguments(parameters, props?.Arguments ?? Array.Empty()), GetOverrides(), GetInterfaces() ); @@ -241,7 +241,7 @@ protected static T InvokeStaticMethod(System.Type type, System.Type[] paramet return InvokeMethodCore( methodAttribute, arguments, - (client, args) => throw new ArgumentException("Async static methods are not supported in JSII", nameof(methodAttribute)), + (client, args) => throw new NotSupportedException("Async static methods are currently not supported"), (client, args) => client.StaticInvoke( classAttribute.FullyQualifiedName, methodAttribute.Name, @@ -287,7 +287,7 @@ private static T InvokeMethodCore( var result = GetResult(); if (!converter.TryConvert(methodAttribute.Returns, typeof(T), referenceMap, result, out object? frameworkValue)) { - throw new ArgumentException($"Could not convert result '{result}' for method '{methodAttribute.Name}'", nameof(result)); + throw new NotSupportedException($"Could not convert result '{result}' for method '{methodAttribute.Name}'"); } return (T)frameworkValue!; @@ -340,14 +340,16 @@ private static void InvokeCallbacks() { var serviceProvider = ServiceContainer.ServiceProvider; - if ((parameters == null || parameters.Length == 0) && (arguments == null || arguments.Length == 0)) + if (parameters.Length == 0 && arguments.Length == 0) { - return new object?[] { }; + return Array.Empty(); } - if (parameters == null || arguments == null || parameters.Length != arguments.Length) + if (parameters.Length != arguments.Length) { - throw new ArgumentException("Arguments do not match method parameters", nameof(arguments)); + throw new ArgumentException( + $"Arguments do not match method parameters (method has {parameters.Length} parameters, {arguments.Length} arguments received)", + nameof(arguments)); } var cleanedArgs = new List(arguments); @@ -446,9 +448,9 @@ private static JsiiMethodAttribute GetMethodAttributeCore(System.Type type, stri { methodName = methodName ?? throw new ArgumentNullException(nameof(methodName)); type = type ?? throw new ArgumentNullException(nameof(type)); - parameterTypes = parameterTypes ?? throw new ArgumentException(nameof(parameterTypes)); + parameterTypes = parameterTypes ?? throw new ArgumentNullException(nameof(parameterTypes)); - var methodInfo = type.GetMethod(methodName, bindingFlags, null, parameterTypes, new ParameterModifier[0]); + var methodInfo = type.GetMethod(methodName, bindingFlags, null, parameterTypes, Array.Empty()); if (methodInfo == null) { throw new ArgumentException($"Method {methodName} does not exist", nameof(methodName)); diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiClassAttribute.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiClassAttribute.cs index 1777a95588..f7b99436f3 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiClassAttribute.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiClassAttribute.cs @@ -11,7 +11,7 @@ public JsiiClassAttribute(System.Type nativeType, string fullyQualifiedName, str : base(nativeType, fullyQualifiedName) { Parameters = parametersJson == null - ? new Parameter[]{} + ? Array.Empty() : JsonConvert.DeserializeObject(parametersJson); } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiMethodAttribute.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiMethodAttribute.cs index 57556ad9f0..ffb6ca4f35 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiMethodAttribute.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiMethodAttribute.cs @@ -19,7 +19,7 @@ public JsiiMethodAttribute( ? null : JsonConvert.DeserializeObject(returnsJson); Parameters = parametersJson == null - ? new Parameter[] {} + ? Array.Empty() : JsonConvert.DeserializeObject(parametersJson); IsAsync = isAsync; IsOverride = isOverride; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiTypeAttributeBase.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiTypeAttributeBase.cs index b4ef632e11..6e7783c603 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiTypeAttributeBase.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/JsiiTypeAttributeBase.cs @@ -44,7 +44,8 @@ internal static void Load(Assembly assembly) } // find the .tgz resource - var tarballResourceName = assembly.GetManifestResourceNames().FirstOrDefault(name => name.EndsWith(".tgz")); + var tarballResourceName = assembly.GetManifestResourceNames() + .FirstOrDefault(name => name.EndsWith(".tgz", StringComparison.InvariantCultureIgnoreCase)); if (tarballResourceName == null) { throw new JsiiException("Cannot find embedded tarball resource in assembly " + assembly.GetName(), null); diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsiiException.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsiiException.cs index 12726d501e..9eed5cda83 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsiiException.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsiiException.cs @@ -7,6 +7,10 @@ public sealed class JsiiException : Exception { public ErrorResponse? ErrorResponse { get; } + internal JsiiException() : base() + { + } + internal JsiiException(string message) : base(message) { } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Callback.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Callback.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Callback.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Callback.cs index 64edb813fc..aa5e52d036 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Callback.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Callback.cs @@ -5,7 +5,7 @@ namespace Amazon.JSII.JsonModel.Api { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Callback + public sealed class Callback { public Callback ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/ObjectReference.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/ObjectReference.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/ObjectReference.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/ObjectReference.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Override.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Override.cs similarity index 95% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Override.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Override.cs index bfa1ebcf7f..db96c58144 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Override.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Override.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Override + public sealed class Override { public Override ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/BeginRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/BeginRequest.cs similarity index 94% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/BeginRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/BeginRequest.cs index c1dd77bacc..8afe790312 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/BeginRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/BeginRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class BeginRequest : IKernelRequest + public sealed class BeginRequest : IKernelRequest { public BeginRequest(ObjectReference objectReference, string method, object?[]? arguments = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CallbacksRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CallbacksRequest.cs similarity index 80% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CallbacksRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CallbacksRequest.cs index 0600b58178..29f8607052 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CallbacksRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CallbacksRequest.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CallbacksRequest : IKernelRequest + public sealed class CallbacksRequest : IKernelRequest { [JsonProperty("api")] public string Api { get; } = "callbacks"; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CompleteRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CompleteRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CompleteRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CompleteRequest.cs index 5cf84ffc0b..b373415df1 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CompleteRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CompleteRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CompleteRequest : IKernelRequest + public sealed class CompleteRequest : IKernelRequest { public CompleteRequest(string callbackId, string? error = null, object? result = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CreateRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CreateRequest.cs similarity index 85% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CreateRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CreateRequest.cs index 35b465af5e..8375cc8973 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/CreateRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/CreateRequest.cs @@ -4,14 +4,14 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CreateRequest : IKernelRequest + public sealed class CreateRequest : IKernelRequest { public CreateRequest(string fullyQualifiedName, object?[]? arguments = null, Override[]? overrides = null, string[]? interfaces = null) { FullyQualifiedName = fullyQualifiedName ?? throw new ArgumentNullException(nameof(fullyQualifiedName)); Arguments = arguments; - Overrides = overrides ?? new Override[] { }; - Interfaces = interfaces ?? new string[] { }; + Overrides = overrides ?? Array.Empty(); + Interfaces = interfaces ?? Array.Empty(); } [JsonProperty("api")] diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/DeleteRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/DeleteRequest.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/DeleteRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/DeleteRequest.cs index 2ec0c4d955..3ba499db3f 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/DeleteRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/DeleteRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class DeleteRequest : IKernelRequest + public sealed class DeleteRequest : IKernelRequest { public DeleteRequest(ObjectReference objectReference) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/EndRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/EndRequest.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/EndRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/EndRequest.cs index df5af6ebcd..f3c118f58b 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/EndRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/EndRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class EndRequest : IKernelRequest + public sealed class EndRequest : IKernelRequest { public EndRequest(string promiseId) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/GetRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/GetRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/GetRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/GetRequest.cs index a55624b6e9..a66ebf370c 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/GetRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/GetRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class GetRequest : IKernelRequest + public sealed class GetRequest : IKernelRequest { public GetRequest(ObjectReference objectReference, string property) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/IKernelRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/IKernelRequest.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/IKernelRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/IKernelRequest.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/InvokeRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/InvokeRequest.cs similarity index 94% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/InvokeRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/InvokeRequest.cs index 17c953ed29..37df584009 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/InvokeRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/InvokeRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class InvokeRequest : IKernelRequest + public sealed class InvokeRequest : IKernelRequest { public InvokeRequest(ObjectReference objectReference, string method, object?[]? arguments = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/LoadRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/LoadRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/LoadRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/LoadRequest.cs index 68dc1bcdfd..76497350f7 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/LoadRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/LoadRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class LoadRequest : IKernelRequest + public sealed class LoadRequest : IKernelRequest { public LoadRequest(string name, string version, string tarball) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/NamingRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/NamingRequest.cs similarity index 89% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/NamingRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/NamingRequest.cs index a9b23c9fcf..830d75dc90 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/NamingRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/NamingRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class NamingRequest : IKernelRequest + public sealed class NamingRequest : IKernelRequest { public NamingRequest(string assembly) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/SetRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/SetRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/SetRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/SetRequest.cs index a67162e77d..68e788abf5 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/SetRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/SetRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class SetRequest : IKernelRequest + public sealed class SetRequest : IKernelRequest { public SetRequest(ObjectReference objectReference, string property, object? value) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticGetRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticGetRequest.cs similarity index 92% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticGetRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticGetRequest.cs index 0b17926e9f..f95307912e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticGetRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticGetRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class StaticGetRequest : IKernelRequest + public sealed class StaticGetRequest : IKernelRequest { public StaticGetRequest(string fullyQualifiedName, string property) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticInvokeRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticInvokeRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticInvokeRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticInvokeRequest.cs index 8a5785d6b6..46adce4e59 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticInvokeRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticInvokeRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class StaticInvokeRequest : IKernelRequest + public sealed class StaticInvokeRequest : IKernelRequest { public StaticInvokeRequest(string fullyQualifiedName, string method, object?[]? arguments = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticSetRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticSetRequest.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticSetRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticSetRequest.cs index 3291c4f8f6..7d2d9e96d0 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StaticSetRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StaticSetRequest.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class StaticSetRequest : IKernelRequest + public sealed class StaticSetRequest : IKernelRequest { public StaticSetRequest(string fullyQualifiedName, string property, object? value) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StatsRequest.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StatsRequest.cs similarity index 80% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StatsRequest.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StatsRequest.cs index 69bc815faa..873fee1cb7 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Request/StatsRequest.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Request/StatsRequest.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Request { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class StatsRequest : IKernelRequest + public sealed class StatsRequest : IKernelRequest { [JsonProperty("api")] public string Api { get; } = "stats"; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/BeginResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/BeginResponse.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/BeginResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/BeginResponse.cs index 189791d5f7..3f72465b28 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/BeginResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/BeginResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class BeginResponse : IKernelResponse + public sealed class BeginResponse : IKernelResponse { public BeginResponse(string promiseId) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbackResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbackResponse.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbackResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbackResponse.cs index 2ade847d26..98491df18e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbackResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbackResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CallbackResponse + public sealed class CallbackResponse { public CallbackResponse(Callback callback) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbacksResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbacksResponse.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbacksResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbacksResponse.cs index d7e855f93b..bed67673b1 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CallbacksResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CallbacksResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CallbacksResponse : IKernelResponse + public sealed class CallbacksResponse : IKernelResponse { public CallbacksResponse(Callback[] callbacks) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CompleteResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CompleteResponse.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CompleteResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CompleteResponse.cs index f5d6e85961..ff33ff6fd2 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/CompleteResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CompleteResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CompleteResponse : IKernelResponse + public sealed class CompleteResponse : IKernelResponse { public CompleteResponse(string callbackId) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CreateResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CreateResponse.cs new file mode 100644 index 0000000000..0543c92cf5 --- /dev/null +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/CreateResponse.cs @@ -0,0 +1,6 @@ +namespace Amazon.JSII.JsonModel.Api.Response +{ + public sealed class CreateResponse : ObjectReference, IKernelResponse + { + } +} \ No newline at end of file diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/DeleteResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/DeleteResponse.cs similarity index 72% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/DeleteResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/DeleteResponse.cs index 1ed1d6d056..63d95129b5 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/DeleteResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/DeleteResponse.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class DeleteResponse : IKernelResponse + public sealed class DeleteResponse : IKernelResponse { } } \ No newline at end of file diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/EndResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/EndResponse.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/EndResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/EndResponse.cs index 412d41ebe4..c29b75dcf4 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/EndResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/EndResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class EndResponse : IKernelResponse + public sealed class EndResponse : IKernelResponse { public EndResponse(object result) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/ErrorResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/ErrorResponse.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/ErrorResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/ErrorResponse.cs index c2369d8cb7..6775a5786d 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/ErrorResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/ErrorResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class ErrorResponse + public sealed class ErrorResponse { public ErrorResponse(string error, string? stack = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/GetResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/GetResponse.cs similarity index 85% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/GetResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/GetResponse.cs index e40f1ccc9d..8db208d594 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/GetResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/GetResponse.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class GetResponse : IKernelResponse + public sealed class GetResponse : IKernelResponse { public GetResponse(object? value) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/HelloResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/HelloResponse.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/HelloResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/HelloResponse.cs index f09280fb8f..601252007a 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/HelloResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/HelloResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class HelloResponse : IKernelResponse + public sealed class HelloResponse : IKernelResponse { public HelloResponse(string hello) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/IKernelResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/IKernelResponse.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/IKernelResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/IKernelResponse.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/InvokeResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/InvokeResponse.cs similarity index 86% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/InvokeResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/InvokeResponse.cs index 1661d80f74..a10f3d703a 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/InvokeResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/InvokeResponse.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class InvokeResponse : IKernelResponse + public sealed class InvokeResponse : IKernelResponse { public InvokeResponse(object? result = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/LoadResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/LoadResponse.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/LoadResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/LoadResponse.cs index 0cfe409e7c..4dc6364d25 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/LoadResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/LoadResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class LoadResponse : IKernelResponse + public sealed class LoadResponse : IKernelResponse { public LoadResponse(string assembly, int typeCount) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/NamingResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/NamingResponse.cs similarity index 96% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/NamingResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/NamingResponse.cs index 144f4ddccd..5209455e47 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/NamingResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/NamingResponse.cs @@ -5,7 +5,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class NamingResponse : IKernelResponse + public sealed class NamingResponse : IKernelResponse { public NamingResponse(NamingData naming) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/OkResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/OkResponse.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/OkResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/OkResponse.cs index 8047821128..f02a64b463 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/OkResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/OkResponse.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class OkResponse + public sealed class OkResponse where TResult : class, IKernelResponse { public OkResponse(TResult ok) diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/SetResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/SetResponse.cs similarity index 73% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/SetResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/SetResponse.cs index 5760dc6306..7f340fb6bc 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/SetResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/SetResponse.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class SetResponse : IKernelResponse + public sealed class SetResponse : IKernelResponse { } } \ No newline at end of file diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/StatsResponse.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/StatsResponse.cs similarity index 85% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/StatsResponse.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/StatsResponse.cs index e5e987ac9f..de057f8805 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Api/Response/StatsResponse.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Api/Response/StatsResponse.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Api.Response { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class StatsResponse : IKernelResponse + public sealed class StatsResponse : IKernelResponse { public StatsResponse(int objectCount) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/TypeConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/TypeConverter.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/TypeConverter.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/TypeConverter.cs index 26e8f778b9..3a1742f250 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/TypeConverter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/TypeConverter.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Converters { - public class TypeConverter : JsonConverter + public sealed class TypeConverter : JsonConverter { public override bool CanRead => false; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/TypeDictionaryConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/TypeDictionaryConverter.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/TypeDictionaryConverter.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/TypeDictionaryConverter.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/Util.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/Util.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Converters/Util.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Converters/Util.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/FileSystem/FileSystem.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/FileSystem/FileSystem.cs similarity index 87% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/FileSystem/FileSystem.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/FileSystem/FileSystem.cs index f1f75f40ad..37c18ff4b7 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/FileSystem/FileSystem.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/FileSystem/FileSystem.cs @@ -2,14 +2,14 @@ namespace Amazon.JSII.JsonModel.FileSystem { - public class FileSystem : IFileSystem + public sealed class FileSystem : IFileSystem { public IFile File { get; } = new DefaultFile(); public IDirectory Directory { get; } = new DefaultDirectory(); } - public class DefaultFile : IFile + public sealed class DefaultFile : IFile { public string ReadAllText(string path) { @@ -32,7 +32,7 @@ public FileStream Create(string path) } } - public class DefaultDirectory : IDirectory + public sealed class DefaultDirectory : IDirectory { public void CreateDirectory(string path) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/FileSystem/IFileSystem.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/FileSystem/IFileSystem.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/FileSystem/IFileSystem.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/FileSystem/IFileSystem.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/JsonDictionaryBase.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/JsonDictionaryBase.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/JsonDictionaryBase.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/JsonDictionaryBase.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Assembly.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Assembly.cs similarity index 96% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Assembly.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Assembly.cs index e90588955d..301f266bd5 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Assembly.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Assembly.cs @@ -6,7 +6,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Assembly : DependencyRoot, IDocumentable + public sealed class Assembly : DependencyRoot, IDocumentable { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public class AssemblyRepository @@ -59,7 +59,7 @@ public Assembly } [JsonProperty("schema")] - public string Schema { get; } = Constants.SPEC_VERSION; + public string Schema { get; } = Constants.SpecVersion; [JsonProperty("name")] public string Name { get; } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/AssemblyTargets.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/AssemblyTargets.cs similarity index 94% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/AssemblyTargets.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/AssemblyTargets.cs index 6d35fcf1d2..0c91a56b87 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/AssemblyTargets.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/AssemblyTargets.cs @@ -5,9 +5,9 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class AssemblyTargets + public sealed class AssemblyTargets { - public AssemblyTargets(DotNetTarget dotnet, IDictionary? others = null) + public AssemblyTargets(DotNetTarget dotnet) { DotNet = dotnet ?? throw new ArgumentNullException(nameof(dotnet)); } @@ -38,7 +38,7 @@ public DotNetTarget IconUrl = iconUrl; VersionSuffix = versionSuffix; - if (VersionSuffix != null && !VersionSuffix.StartsWith("-")) + if (VersionSuffix != null && !VersionSuffix.StartsWith("-", StringComparison.InvariantCulture)) { throw new ArgumentException($"{nameof(versionSuffix)} must start with a '-' (received {versionSuffix})"); } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Callable.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Callable.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Callable.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Callable.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/ClassType.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/ClassType.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/ClassType.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/ClassType.cs index 83e0679ad4..a68973aa60 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/ClassType.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/ClassType.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class ClassType : Type + public sealed class ClassType : Type { public ClassType ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/CollectionKind.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/CollectionKind.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/CollectionKind.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/CollectionKind.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/CollectionTypeReference.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/CollectionTypeReference.cs similarity index 92% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/CollectionTypeReference.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/CollectionTypeReference.cs index b1f6076909..04232c01c6 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/CollectionTypeReference.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/CollectionTypeReference.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class CollectionTypeReference + public sealed class CollectionTypeReference { public CollectionTypeReference(CollectionKind kind, TypeReference elementType) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Constants.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Constants.cs new file mode 100644 index 0000000000..2481ee8632 --- /dev/null +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Constants.cs @@ -0,0 +1,8 @@ +namespace Amazon.JSII.JsonModel.Spec +{ + public static class Constants + { + public const string SpecVersion = "jsii/0.9.0"; // minor version = no breaking change + public const string SpecFileName = ".jsii"; + } +} diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/DependencyRoot.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/DependencyRoot.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/DependencyRoot.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/DependencyRoot.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Docs.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Docs.cs similarity index 96% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Docs.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Docs.cs index 60a71aeaa5..f11ddfc712 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Docs.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Docs.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Docs + public sealed class Docs { public Docs ( @@ -60,7 +60,7 @@ public Docs public string? Default { get; } [JsonProperty("custom", NullValueHandling = NullValueHandling.Ignore)] - public IDictionary Custom; + public IDictionary Custom { get; } public bool ShouldSerializeCustom() { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumMember.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumMember.cs similarity index 91% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumMember.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumMember.cs index aa446af3c2..cf7977e73f 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumMember.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumMember.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class EnumMember : IDocumentable + public sealed class EnumMember : IDocumentable { public EnumMember(string name, Docs? docs = null) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumType.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumType.cs similarity index 95% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumType.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumType.cs index 5bfa924c1e..b77f046703 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/EnumType.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/EnumType.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class EnumType : Type + public sealed class EnumType : Type { public EnumType ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/IDocumentable.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/IDocumentable.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/IDocumentable.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/IDocumentable.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/IOverridable.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/IOverridable.cs similarity index 71% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/IOverridable.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/IOverridable.cs index aedf6eee1a..6508a92908 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/IOverridable.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/IOverridable.cs @@ -2,6 +2,6 @@ { public interface IOverridable { - string? Overrides { get; } + string? Overrides { get; } } } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Initializer.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Initializer.cs similarity index 92% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Initializer.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Initializer.cs index ffd001f4b6..fbf0cc2621 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Initializer.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Initializer.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Initializer : Callable + public sealed class Initializer : Callable { public Initializer ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/InterfaceType.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/InterfaceType.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/InterfaceType.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/InterfaceType.cs index 05a6467316..a43d38f74c 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/InterfaceType.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/InterfaceType.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class InterfaceType : Type + public sealed class InterfaceType : Type { public InterfaceType ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Method.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Method.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Method.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Method.cs index e83f0638ae..170a030c6b 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Method.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Method.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Method : Callable + public sealed class Method : Callable { public Method ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/OptionalValue.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/OptionalValue.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/OptionalValue.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/OptionalValue.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/PackageVersion.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/PackageVersion.cs similarity index 91% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/PackageVersion.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/PackageVersion.cs index 1754907357..c989eb23ef 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/PackageVersion.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/PackageVersion.cs @@ -5,7 +5,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class PackageVersion: DependencyRoot + public sealed class PackageVersion: DependencyRoot { public PackageVersion ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Parameter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Parameter.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Parameter.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Parameter.cs index d05c81280f..b3c21317a4 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Parameter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Parameter.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Parameter : OptionalValue, IDocumentable + public sealed class Parameter : OptionalValue, IDocumentable { public Parameter ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Person.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Person.cs similarity index 97% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Person.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Person.cs index a710f4c677..873206013e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Person.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Person.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Person + public sealed class Person { public Person ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/PrimitiveType.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/PrimitiveType.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/PrimitiveType.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/PrimitiveType.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Property.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Property.cs similarity index 95% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Property.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Property.cs index 73df010e2c..8d6b3dcb01 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Property.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Property.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Property : OptionalValue, IDocumentable, IOverridable + public sealed class Property : OptionalValue, IDocumentable, IOverridable { public Property ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Readme.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Readme.cs similarity index 93% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Readme.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Readme.cs index 4bf171e399..c22a8d78cd 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Readme.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Readme.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class Readme + public sealed class Readme { public Readme(string markdown) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Stability.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Stability.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Stability.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Stability.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Type.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Type.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/Type.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/Type.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/TypeKind.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/TypeKind.cs similarity index 100% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/TypeKind.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/TypeKind.cs diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/TypeReference.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/TypeReference.cs similarity index 96% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/TypeReference.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/TypeReference.cs index 04da801a14..063f1f2d6b 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/TypeReference.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/TypeReference.cs @@ -3,7 +3,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class TypeReference + public sealed class TypeReference { public TypeReference ( diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UnionTypeReference.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UnionTypeReference.cs similarity index 90% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UnionTypeReference.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UnionTypeReference.cs index bd4717d186..4bd90dfb8a 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UnionTypeReference.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UnionTypeReference.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class UnionTypeReference + public sealed class UnionTypeReference { public UnionTypeReference(TypeReference[] types) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UserTypeReference.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UserTypeReference.cs similarity index 91% rename from packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UserTypeReference.cs rename to packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UserTypeReference.cs index 6ec86a2b50..227f606241 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.JsonModel/Spec/UserTypeReference.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/JsonModel/Spec/UserTypeReference.cs @@ -4,7 +4,7 @@ namespace Amazon.JSII.JsonModel.Spec { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] - public class UserTypeReference + public sealed class UserTypeReference { public UserTypeReference(string fullyQualifiedName) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/ReflectionUtils.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/ReflectionUtils.cs index 1755e72baa..3ab4cc1c3d 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/ReflectionUtils.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/ReflectionUtils.cs @@ -36,8 +36,8 @@ public static MethodInfo GetNativeMethod(Type classType, string name) if (methodInfo == null) { - throw new ArgumentNullException($"Class {classType.Name} does not have a method called {name}", - nameof(name)); + throw new ArgumentNullException(nameof(name), + $"Class {classType.Name} does not have a method called {name}"); } return methodInfo; @@ -54,8 +54,8 @@ public static PropertyInfo GetNativeProperty(Type classType, string name) if (propertyInfo == null) { - throw new ArgumentNullException($"Class {classType.Name} does not have a property called {name}", - nameof(name)); + throw new ArgumentNullException(nameof(name), + $"Class {classType.Name} does not have a property called {name}"); } return propertyInfo; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/FrameworkToJsiiConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/FrameworkToJsiiConverter.cs index f6147f94af..4cfddde92c 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/FrameworkToJsiiConverter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/FrameworkToJsiiConverter.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Reflection; using Amazon.JSII.JsonModel.Spec; @@ -187,7 +188,7 @@ protected override bool TryConvertNumber(object? value, bool isOptional, out obj if (IsNumeric(value.GetType())) { - result = Convert.ToDouble(value); + result = Convert.ToDouble(value, CultureInfo.InvariantCulture); return true; } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/JsiiToFrameworkConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/JsiiToFrameworkConverter.cs index d2ab57cc47..673133840c 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/JsiiToFrameworkConverter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/JsiiToFrameworkConverter.cs @@ -3,6 +3,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using System.Globalization; using System.Reflection; namespace Amazon.JSII.Runtime.Services.Converters @@ -41,7 +42,7 @@ protected override bool TryConvertClass(System.Type type, IReferenceMap referenc if (!type.IsInstanceOfType(result) && result is IConvertible) { - result = Convert.ChangeType(result, type); + result = Convert.ChangeType(result, type, CultureInfo.InvariantCulture); } return result != null; @@ -146,7 +147,7 @@ protected override bool TryConvertNumber(object? value, bool isOptional, out obj if (IsNumeric(value.GetType())) { - result = Convert.ToDouble(value); + result = Convert.ToDouble(value, CultureInfo.InvariantCulture); return true; } @@ -233,9 +234,9 @@ protected override bool TryConvertMap(IReferenceMap referenceMap, TypeReference var elementType = _types.GetFrameworkType(elementTypeInstance, false); var dictionaryType = typeof(Dictionary<,>).MakeGenericType(typeof(string), elementType); - var dictionaryConstructor = dictionaryType.GetConstructor(new System.Type[] { })!; + var dictionaryConstructor = dictionaryType.GetConstructor(Array.Empty())!; var dictionaryAddMethod = dictionaryType.GetMethod("Add", new [] { typeof(string), elementType })!; - var dictionary = dictionaryConstructor.Invoke(new object[] { }); + var dictionary = dictionaryConstructor.Invoke(Array.Empty()); if (jsonObject.ContainsKey("$jsii.map")) { diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs index eed620c9bb..5763a1cb1e 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Converters/ValueConverter.cs @@ -48,17 +48,16 @@ public bool TryConvert(IOptionalValue? optionalValue, System.Type type, IReferen throw new ArgumentException("Invalid type reference", nameof(optionalValue)); } - protected bool IsNumeric(System.Type type) + protected static bool IsNumeric(System.Type type) { - return - typeof(short).IsAssignableFrom(type) || - typeof(ushort).IsAssignableFrom(type) || - typeof(int).IsAssignableFrom(type) || - typeof(uint).IsAssignableFrom(type) || - typeof(long).IsAssignableFrom(type) || - typeof(ulong).IsAssignableFrom(type) || - typeof(float).IsAssignableFrom(type) || - typeof(double).IsAssignableFrom(type); + return typeof(short).IsAssignableFrom(type) + || typeof(ushort).IsAssignableFrom(type) + || typeof(int).IsAssignableFrom(type) + || typeof(uint).IsAssignableFrom(type) + || typeof(long).IsAssignableFrom(type) + || typeof(ulong).IsAssignableFrom(type) + || typeof(float).IsAssignableFrom(type) + || typeof(double).IsAssignableFrom(type); } protected abstract bool TryConvertVoid(object? value, out object? result); diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs index 9ac5b1f817..ee60e92b91 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.Versioning; @@ -39,7 +40,8 @@ public NodeProcess(IJsiiRuntimeProvider jsiiRuntimeProvider, ILoggerFactory logg var assemblyVersion = GetAssemblyFileVersion(); _process.StartInfo.EnvironmentVariables.Add(JsiiAgent, - string.Format(JsiiAgentVersionString, Environment.Version, assemblyVersion.Item1, assemblyVersion.Item2)); + string.Format(CultureInfo.InvariantCulture, JsiiAgentVersionString, Environment.Version, + assemblyVersion.Item1, assemblyVersion.Item2)); var debug = Environment.GetEnvironmentVariable(JsiiDebug); if (!string.IsNullOrWhiteSpace(debug) && !_process.StartInfo.EnvironmentVariables.ContainsKey(JsiiDebug)) @@ -72,7 +74,7 @@ void IDisposable.Dispose() /// A tuple where Item1 is the target framework /// ie .NETCoreApp,Version=v2.1 /// and item2 is the assembly file version (ie 1.0.0.0) - private Tuple GetAssemblyFileVersion() + private static Tuple GetAssemblyFileVersion() { var assembly = typeof(NodeProcess).GetTypeInfo().Assembly; var assemblyFileVersionAttribute = assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute)) as AssemblyFileVersionAttribute; diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs index be6557fbb0..d624257822 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs @@ -35,7 +35,7 @@ public void WriteRequest(string request) throw new ArgumentNullException(nameof(request)); } - if (request.Contains(Environment.NewLine)) + if (request.Contains(Environment.NewLine, StringComparison.InvariantCulture)) { throw new ArgumentException("All requests must be single-line", nameof(request)); } diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/TypeCache.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/TypeCache.cs index e7f6e2c168..32036da8c1 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/TypeCache.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/TypeCache.cs @@ -194,7 +194,7 @@ void CacheTypes(Assembly assembly) catch (ReflectionTypeLoadException e) { _logger.LogWarning("ReflectionTypeLoadException while searching for JSII types. Loader exceptions:"); - foreach (Exception? loaderException in e.LoaderExceptions ?? new Exception?[] {}) + foreach (Exception? loaderException in e.LoaderExceptions ?? Array.Empty()) { if (loaderException != null) { diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts index 98fffa0bc8..cde6c6e5aa 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts @@ -329,8 +329,12 @@ export class DotNetGenerator extends Generator { initializer.parameters?.find((param) => param.optional) != null ? '?' : ''; + const args = + parametersBase.length > 0 + ? `new object${hasOptional}[]{${parametersBase}}` + : `System.Array.Empty()`; this.code.openBlock( - `${visibility} ${className}(${parametersDefinition}): base(new DeputyProps(new object${hasOptional}[]{${parametersBase}}))`, + `${visibility} ${className}(${parametersDefinition}): base(new DeputyProps(${args}))`, ); this.code.closeBlock(); this.code.line(); diff --git a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap index 2618d8b6bf..7187aabbc4 100644 --- a/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap +++ b/packages/jsii-pacmak/test/__snapshots__/jsii-pacmak.test.ts.snap @@ -273,7 +273,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] public abstract class Base : DeputyBase { - protected Base(): base(new DeputyProps(new object[]{})) + protected Base(): base(new DeputyProps(System.Array.Empty())) { } @@ -1447,7 +1447,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: "@scope/jsii-calc-base-of-base.Very")] public class Very : DeputyBase { - public Very(): base(new DeputyProps(new object[]{})) + public Very(): base(new DeputyProps(System.Array.Empty())) { } @@ -3554,7 +3554,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public abstract class Operation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Value_ { - protected Operation(): base(new DeputyProps(new object[]{})) + protected Operation(): base(new DeputyProps(System.Array.Empty())) { } @@ -3757,7 +3757,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public abstract class Value_ : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base { - protected Value_(): base(new DeputyProps(new object[]{})) + protected Value_(): base(new DeputyProps(System.Array.Empty())) { } @@ -3973,7 +3973,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// Stability: Deprecated /// [System.Obsolete()] - public NestedClass(): base(new DeputyProps(new object[]{})) + public NestedClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -4109,7 +4109,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// Stability: Deprecated /// [System.Obsolete()] - public Reflector(): base(new DeputyProps(new object[]{})) + public Reflector(): base(new DeputyProps(System.Array.Empty())) { } @@ -20739,7 +20739,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected AbstractClass(): base(new DeputyProps(new object[]{})) + protected AbstractClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -20802,7 +20802,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected AbstractClassBase(): base(new DeputyProps(new object[]{})) + protected AbstractClassBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -20918,7 +20918,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AbstractClassReturner(): base(new DeputyProps(new object[]{})) + public AbstractClassReturner(): base(new DeputyProps(System.Array.Empty())) { } @@ -20984,7 +20984,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected AbstractSuite(): base(new DeputyProps(new object[]{})) + protected AbstractSuite(): base(new DeputyProps(System.Array.Empty())) { } @@ -21157,7 +21157,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AllTypes(): base(new DeputyProps(new object[]{})) + public AllTypes(): base(new DeputyProps(System.Array.Empty())) { } @@ -21446,7 +21446,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AllowedMethodNames(): base(new DeputyProps(new object[]{})) + public AllowedMethodNames(): base(new DeputyProps(System.Array.Empty())) { } @@ -21578,7 +21578,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AnonymousImplementationProvider(): base(new DeputyProps(new object[]{})) + public AnonymousImplementationProvider(): base(new DeputyProps(System.Array.Empty())) { } @@ -21634,7 +21634,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AsyncVirtualMethods(): base(new DeputyProps(new object[]{})) + public AsyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) { } @@ -21732,7 +21732,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public AugmentableClass(): base(new DeputyProps(new object[]{})) + public AugmentableClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -21788,7 +21788,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public BaseJsii976(): base(new DeputyProps(new object[]{})) + public BaseJsii976(): base(new DeputyProps(System.Array.Empty())) { } @@ -21826,7 +21826,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Bell(): base(new DeputyProps(new object[]{})) + public Bell(): base(new DeputyProps(System.Array.Empty())) { } @@ -22000,7 +22000,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected BurriedAnonymousObject(): base(new DeputyProps(new object[]{})) + protected BurriedAnonymousObject(): base(new DeputyProps(System.Array.Empty())) { } @@ -22442,7 +22442,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(new object[]{})) + public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -22520,7 +22520,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(new object[]{})) + public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -22705,7 +22705,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ClassWithDocs(): base(new DeputyProps(new object[]{})) + public ClassWithDocs(): base(new DeputyProps(System.Array.Empty())) { } @@ -22799,7 +22799,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(new object[]{})) + public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -22905,7 +22905,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { - protected CompositeOperation(): base(new DeputyProps(new object[]{})) + protected CompositeOperation(): base(new DeputyProps(System.Array.Empty())) { } @@ -23223,7 +23223,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Constructors(): base(new DeputyProps(new object[]{})) + public Constructors(): base(new DeputyProps(System.Array.Empty())) { } @@ -23375,7 +23375,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ConsumerCanRingBell(): base(new DeputyProps(new object[]{})) + public ConsumerCanRingBell(): base(new DeputyProps(System.Array.Empty())) { } @@ -23509,7 +23509,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(new object[]{})) + public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(System.Array.Empty())) { } @@ -23566,7 +23566,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DataRenderer(): base(new DeputyProps(new object[]{})) + public DataRenderer(): base(new DeputyProps(System.Array.Empty())) { } @@ -23701,7 +23701,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Demonstrate982(): base(new DeputyProps(new object[]{})) + public Demonstrate982(): base(new DeputyProps(System.Array.Empty())) { } @@ -23927,7 +23927,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties /// /// Stability: Experimental /// - public Base(): base(new DeputyProps(new object[]{})) + public Base(): base(new DeputyProps(System.Array.Empty())) { } @@ -23975,7 +23975,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties /// /// Stability: Experimental /// - public Derived(): base(new DeputyProps(new object[]{})) + public Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -24639,7 +24639,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DoNotOverridePrivates(): base(new DeputyProps(new object[]{})) + public DoNotOverridePrivates(): base(new DeputyProps(System.Array.Empty())) { } @@ -24705,7 +24705,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(new object[]{})) + public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(System.Array.Empty())) { } @@ -24756,7 +24756,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DocumentedClass(): base(new DeputyProps(new object[]{})) + public DocumentedClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -24817,7 +24817,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(new object[]{})) + public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(System.Array.Empty())) { } @@ -24864,7 +24864,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public DoubleTrouble(): base(new DeputyProps(new object[]{})) + public DoubleTrouble(): base(new DeputyProps(System.Array.Empty())) { } @@ -24971,7 +24971,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public EraseUndefinedHashValues(): base(new DeputyProps(new object[]{})) + public EraseUndefinedHashValues(): base(new DeputyProps(System.Array.Empty())) { } @@ -25581,7 +25581,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public GiveMeStructs(): base(new DeputyProps(new object[]{})) + public GiveMeStructs(): base(new DeputyProps(System.Array.Empty())) { } @@ -25725,7 +25725,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public GreetingAugmenter(): base(new DeputyProps(new object[]{})) + public GreetingAugmenter(): base(new DeputyProps(System.Array.Empty())) { } @@ -29361,7 +29361,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ImplementInternalInterface(): base(new DeputyProps(new object[]{})) + public ImplementInternalInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -29409,7 +29409,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Implementation(): base(new DeputyProps(new object[]{})) + public Implementation(): base(new DeputyProps(System.Array.Empty())) { } @@ -29456,7 +29456,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ImplementsInterfaceWithInternal(): base(new DeputyProps(new object[]{})) + public ImplementsInterfaceWithInternal(): base(new DeputyProps(System.Array.Empty())) { } @@ -29503,7 +29503,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(new object[]{})) + public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(System.Array.Empty())) { } @@ -29541,7 +29541,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ImplementsPrivateInterface(): base(new DeputyProps(new object[]{})) + public ImplementsPrivateInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -29674,7 +29674,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public InbetweenClass(): base(new DeputyProps(new object[]{})) + public InbetweenClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -29791,7 +29791,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas /// /// Stability: Experimental /// - public Foo(): base(new DeputyProps(new object[]{})) + public Foo(): base(new DeputyProps(System.Array.Empty())) { } @@ -30073,7 +30073,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected Isomorphism(): base(new DeputyProps(new object[]{})) + protected Isomorphism(): base(new DeputyProps(System.Array.Empty())) { } @@ -30210,7 +30210,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JSII417PublicBaseOfBase(): base(new DeputyProps(new object[]{})) + public JSII417PublicBaseOfBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -30275,7 +30275,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JSObjectLiteralForInterface(): base(new DeputyProps(new object[]{})) + public JSObjectLiteralForInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -30331,7 +30331,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JSObjectLiteralToNative(): base(new DeputyProps(new object[]{})) + public JSObjectLiteralToNative(): base(new DeputyProps(System.Array.Empty())) { } @@ -30378,7 +30378,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JSObjectLiteralToNativeClass(): base(new DeputyProps(new object[]{})) + public JSObjectLiteralToNativeClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -30436,7 +30436,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JavaReservedWords(): base(new DeputyProps(new object[]{})) + public JavaReservedWords(): base(new DeputyProps(System.Array.Empty())) { } @@ -30952,7 +30952,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Jsii487Derived(): base(new DeputyProps(new object[]{})) + public Jsii487Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -30990,7 +30990,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Jsii496Derived(): base(new DeputyProps(new object[]{})) + public Jsii496Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -31029,7 +31029,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public JsiiAgent_(): base(new DeputyProps(new object[]{})) + public JsiiAgent_(): base(new DeputyProps(System.Array.Empty())) { } @@ -31465,7 +31465,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public MethodNamedProperty(): base(new DeputyProps(new object[]{})) + public MethodNamedProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -31846,7 +31846,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public NodeStandardLibrary(): base(new DeputyProps(new object[]{})) + public NodeStandardLibrary(): base(new DeputyProps(System.Array.Empty())) { } @@ -32152,7 +32152,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ObjectRefsInCollections(): base(new DeputyProps(new object[]{})) + public ObjectRefsInCollections(): base(new DeputyProps(System.Array.Empty())) { } @@ -32252,7 +32252,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Old(): base(new DeputyProps(new object[]{})) + public Old(): base(new DeputyProps(System.Array.Empty())) { } @@ -32541,7 +32541,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public OverridableProtectedMember(): base(new DeputyProps(new object[]{})) + public OverridableProtectedMember(): base(new DeputyProps(System.Array.Empty())) { } @@ -32625,7 +32625,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public OverrideReturnsObject(): base(new DeputyProps(new object[]{})) + public OverrideReturnsObject(): base(new DeputyProps(System.Array.Empty())) { } @@ -32733,7 +32733,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected PartiallyInitializedThisConsumer(): base(new DeputyProps(new object[]{})) + protected PartiallyInitializedThisConsumer(): base(new DeputyProps(System.Array.Empty())) { } @@ -32808,7 +32808,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Polymorphism(): base(new DeputyProps(new object[]{})) + public Polymorphism(): base(new DeputyProps(System.Array.Empty())) { } @@ -32930,7 +32930,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public PropertyNamedProperty(): base(new DeputyProps(new object[]{})) + public PropertyNamedProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -32986,7 +32986,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public PublicClass(): base(new DeputyProps(new object[]{})) + public PublicClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -33033,7 +33033,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public PythonReservedWords(): base(new DeputyProps(new object[]{})) + public PythonReservedWords(): base(new DeputyProps(System.Array.Empty())) { } @@ -33601,7 +33601,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ReferenceEnumFromScopedPackage(): base(new DeputyProps(new object[]{})) + public ReferenceEnumFromScopedPackage(): base(new DeputyProps(System.Array.Empty())) { } @@ -33672,7 +33672,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(new object[]{})) + public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -33849,7 +33849,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public RuntimeTypeChecking(): base(new DeputyProps(new object[]{})) + public RuntimeTypeChecking(): base(new DeputyProps(System.Array.Empty())) { } @@ -34004,7 +34004,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public SingleInstanceTwoTypes(): base(new DeputyProps(new object[]{})) + public SingleInstanceTwoTypes(): base(new DeputyProps(System.Array.Empty())) { } @@ -34276,7 +34276,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public SomeTypeJsii976(): base(new DeputyProps(new object[]{})) + public SomeTypeJsii976(): base(new DeputyProps(System.Array.Empty())) { } @@ -34671,7 +34671,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public StripInternal(): base(new DeputyProps(new object[]{})) + public StripInternal(): base(new DeputyProps(System.Array.Empty())) { } @@ -35009,7 +35009,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public StructPassing(): base(new DeputyProps(new object[]{})) + public StructPassing(): base(new DeputyProps(System.Array.Empty())) { } @@ -35459,7 +35459,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - public InnerClass(): base(new DeputyProps(new object[]{})) + public InnerClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -35588,7 +35588,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child /// /// Stability: Experimental /// - public OuterClass(): base(new DeputyProps(new object[]{})) + public OuterClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -36039,7 +36039,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Sum(): base(new DeputyProps(new object[]{})) + public Sum(): base(new DeputyProps(System.Array.Empty())) { } @@ -36319,7 +36319,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public SyncVirtualMethods(): base(new DeputyProps(new object[]{})) + public SyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) { } @@ -36506,7 +36506,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public Thrower(): base(new DeputyProps(new object[]{})) + public Thrower(): base(new DeputyProps(System.Array.Empty())) { } @@ -36932,7 +36932,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public UseBundledDependency(): base(new DeputyProps(new object[]{})) + public UseBundledDependency(): base(new DeputyProps(System.Array.Empty())) { } @@ -36980,7 +36980,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public UseCalcBase(): base(new DeputyProps(new object[]{})) + public UseCalcBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -37198,7 +37198,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - public VirtualMethodPlayground(): base(new DeputyProps(new object[]{})) + public VirtualMethodPlayground(): base(new DeputyProps(System.Array.Empty())) { } @@ -37288,7 +37288,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - protected VoidCallback(): base(new DeputyProps(new object[]{})) + protected VoidCallback(): base(new DeputyProps(System.Array.Empty())) { } From f89ec65b1e819c9387acdcdc9273757e6bedc400 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 18 Aug 2020 12:18:03 +0200 Subject: [PATCH 42/45] chore(superchain): install awscli from pip instead of yum (#1912) The version of awscli in the yum repository appears to be somewhat outdated, and lacks support for certain recent services and features. Moving to the recommended way to install (using pip) will ensure the most recent release is installed every time the image is re-built. The recommended install/upgrade instructions are hosted at: https://docs.aws.amazon.com/cli/latest/userguide/install-linux-al2017.html#install-amazon-linux-pip Fixes #1905 --- superchain/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superchain/Dockerfile b/superchain/Dockerfile index b73de846ac..70a2fe31a4 100644 --- a/superchain/Dockerfile +++ b/superchain/Dockerfile @@ -20,7 +20,8 @@ RUN rpm --import "https://packages.microsoft.com/keys/microsoft.asc" # Install Python 3 RUN yum -y install python3 python3-pip \ - && python3 -m pip install --no-input --upgrade pip setuptools wheel twine black \ + && python3 -m pip install --no-input --upgrade pip \ + && python3 -m pip install --no-input --upgrade awscli black setuptools twine wheel \ && yum clean all && rm -rf /var/cache/yum # Install Ruby 2.6+ @@ -67,7 +68,7 @@ RUN amazon-linux-extras install docker VOLUME /var/lib/docker # Install shared dependencies -RUN yum -y install awscli git gzip openssl rsync unzip which zip \ +RUN yum -y install git gzip openssl rsync unzip which zip \ && yum clean all && rm -rf /var/cache/yum # Install Node 10+ From 8f31b1ac5cd20c18d0da20dad33782a9cb113643 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 18 Aug 2020 18:24:06 +0200 Subject: [PATCH 43/45] fix(dotnet): crash when TEMP contains certain unicode characters (#1913) In certain environments, the temporary directory path may contain unicode characters. If those are not properly encoded as UTF-8 when sent to the `@jsii/kernel` process, a failure will occur when trying to access such paths. This change contains fixes for two possible sources of problems in such situations: 1. In `@jsii/runtime`, the `SyncStdio` class was a little too eager in turning it's `Buffer` to UTF-8 strings, as it could have only a part of a multi-byte character sequence (the conversion would then fail or result in corruption). Instead, it now looks for `\n` directly on the `Buffer`, and only performs string conversion once one has been found. 2. In the .NET Runtime, the `NodeProcess` class would spawn using the `System.Diagnostic.Process` class without specifying input and output encodings, which by default are the `System.Console` encoding. If that happens to not be `UTF-8`, the result could be unreliable. Instead, the encodings are now forced to `System.Text.Encoding.UTF8` for all three pipes of the child process (`Input`, `Output` and `Error`). Reproducing the conditions for the failure reported in aws/aws-cdk#7456 is somewhat difficult, especially in the context of CI/CD. This makes it difficult to validate those fixes actually deliver on their promises. --- .../Services/INodeProcess.cs | 2 +- .../Services/NodeProcess.cs | 9 +++++-- packages/@jsii/runtime/lib/sync-stdio.ts | 24 ++++++++----------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/INodeProcess.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/INodeProcess.cs index 49baed7bfc..344cab0303 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/INodeProcess.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/INodeProcess.cs @@ -11,4 +11,4 @@ internal interface INodeProcess : IDisposable TextReader StandardError { get; } } -} \ No newline at end of file +} diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs index ee60e92b91..71f4367992 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Services/NodeProcess.cs @@ -4,6 +4,7 @@ using System.IO; using System.Reflection; using System.Runtime.Versioning; +using System.Text; using Microsoft.Extensions.Logging; namespace Amazon.JSII.Runtime.Services @@ -26,15 +27,19 @@ public NodeProcess(IJsiiRuntimeProvider jsiiRuntimeProvider, ILoggerFactory logg if (string.IsNullOrWhiteSpace(runtimePath)) runtimePath = jsiiRuntimeProvider.JsiiRuntimePath; + var utf8 = new UTF8Encoding(false /* no BOM */); _process = new Process { StartInfo = new ProcessStartInfo { FileName = "node", - Arguments = "--max-old-space-size=4096 " + runtimePath, + Arguments = $"--max-old-space-size=4096 {runtimePath}", RedirectStandardInput = true, + StandardInputEncoding = utf8, RedirectStandardOutput = true, - RedirectStandardError = true + StandardOutputEncoding = utf8, + RedirectStandardError = true, + StandardErrorEncoding = utf8 } }; diff --git a/packages/@jsii/runtime/lib/sync-stdio.ts b/packages/@jsii/runtime/lib/sync-stdio.ts index 422eb5958e..0bfd15c5a7 100644 --- a/packages/@jsii/runtime/lib/sync-stdio.ts +++ b/packages/@jsii/runtime/lib/sync-stdio.ts @@ -5,9 +5,10 @@ const STDOUT_FD = 1; const STDERR_FD = 2; const INPUT_BUFFER_SIZE = 1024 * 1024; // not related to max line length +const EMPTY_BUFFER = Buffer.alloc(0); + export class SyncStdio { - private readonly inputQueue = new Array(); - private currentLine = ''; + private bufferedData = EMPTY_BUFFER; public writeErrorLine(line: string) { this.writeBuffer(Buffer.from(`${line}\n`), STDERR_FD); @@ -19,7 +20,7 @@ export class SyncStdio { public readLine(): string | undefined { const buff = Buffer.alloc(INPUT_BUFFER_SIZE); - while (this.inputQueue.length === 0) { + while (!this.bufferedData.includes('\n', 0, 'utf-8')) { try { const read = fs.readSync(STDIN_FD, buff, 0, buff.length, null); @@ -27,16 +28,8 @@ export class SyncStdio { return undefined; } - const str = buff.slice(0, read).toString(); - - for (const ch of str) { - if (ch === '\n') { - this.inputQueue.push(this.currentLine); - this.currentLine = ''; - } else { - this.currentLine += ch; - } - } + const newData = buff.slice(0, read); + this.bufferedData = Buffer.concat([this.bufferedData, newData]); } catch (e) { // HACK: node may set O_NONBLOCK on it's STDIN depending on what kind of input it is made // of (see https://github.com/nodejs/help/issues/2663). When STDIN has O_NONBLOCK, calls may @@ -52,7 +45,10 @@ export class SyncStdio { } } - const next = this.inputQueue.shift(); + const newLinePos = this.bufferedData.indexOf('\n', 0, 'utf-8'); + const next = this.bufferedData.slice(0, newLinePos).toString('utf-8'); + this.bufferedData = this.bufferedData.slice(newLinePos + 1); + return next; } From 7316b44690eed46ce7e5d5089af77ee1f49a6a5e Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Tue, 18 Aug 2020 23:12:20 +0200 Subject: [PATCH 44/45] fix(pacmak): `EMFILE` error when running `jsii-pacmak` (#1891) The `findLocalBuildDirs` function did not have a protection against inspecting the same `package.json` file multiple times, and asynchronously traverses the whole dependency tree under the built package. In certain pathological cases, dependencies could be processed many times around (think about how `@aws-cdk/aws-iam` is a direct or transitive dependency of nearly every other `@aws-cdk/aws-*` module). The asynchronous nature of the process means that *many* instances of the same file could be opened at the same time, occasionally inching above the maximum file descriptor count limit, hence causing `EMFILE` ( which is the standard error code for "too many files open"). This change adds a `visitedDirectories` set to prevent re-visiting the same dependency instance multiple times (based on the absolute path of the package root). This incidentally also improves the performance of the process, since making promises incurs overhead, and not re-processing directories multiple times cut out a significant chunk of the promises made in extreme cases. Special thanks to @richardhboyd for having me look into this particular problem. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/jsii-pacmak/lib/dependency-graph.ts | 101 ++++++++++++++++ packages/jsii-pacmak/lib/target.ts | 36 +++--- .../jsii-pacmak/test/dependency-graph.test.ts | 113 ++++++++++++++++++ 3 files changed, 229 insertions(+), 21 deletions(-) create mode 100644 packages/jsii-pacmak/lib/dependency-graph.ts create mode 100644 packages/jsii-pacmak/test/dependency-graph.test.ts diff --git a/packages/jsii-pacmak/lib/dependency-graph.ts b/packages/jsii-pacmak/lib/dependency-graph.ts new file mode 100644 index 0000000000..b4f80e6f18 --- /dev/null +++ b/packages/jsii-pacmak/lib/dependency-graph.ts @@ -0,0 +1,101 @@ +import * as fs from 'fs-extra'; +import { join } from 'path'; + +import * as util from './util'; + +/** + * Traverses the dependency graph and invokes the provided callback method for + * each individual dependency root directory (including the current package). + * The dependency roots are de-duplicated based on their absolute path on the + * file system. + * + * @param packageDir the current package's root directory (i.e: where the + * `package.json` file is located) + * @param callback the function to invoke with each package's informations + * @param host the dependency graph traversal host to use (this parameter + * should typically not be provided unless this module is + * being unit tested) + */ +export async function traverseDependencyGraph( + packageDir: string, + callback: Callback, + host: TraverseDependencyGraphHost = { + readJson: fs.readJson, + resolveDependencyDirectory: util.resolveDependencyDirectory, + }, +): Promise { + return real$traverseDependencyGraph(packageDir, callback, host, new Set()); +} + +/** + * A callback invoked for each node in a NPM module's dependency graph. + * + * @param packageDir the directory where the current package is located. + * @param meta the contents of the `package.json` file for this package. + * @param root whether this package is the root that was provided to the + * `traverseDependencyGraph` call. + * + * @returns `true` if this package's own dependencies should be processed, + * `false` otherwise. + */ +export type Callback = ( + packageDir: string, + meta: PackageJson, + root: boolean, +) => boolean | Promise; + +/** + * Host methods for traversing dependency graphs. + */ +export interface TraverseDependencyGraphHost { + readonly readJson: typeof fs.readJson; + readonly resolveDependencyDirectory: typeof util.resolveDependencyDirectory; +} + +/** + * Contents of the `package.json` file. + */ +export interface PackageJson { + readonly dependencies?: { readonly [name: string]: string }; + readonly peerDependencies?: { readonly [name: string]: string }; + + readonly [key: string]: unknown; +} + +async function real$traverseDependencyGraph( + packageDir: string, + callback: Callback, + host: TraverseDependencyGraphHost, + visited: Set, +): Promise { + // We're at the root if we have not visited anything yet. How convenient! + const isRoot = visited.size === 0; + if (visited.has(packageDir)) { + return void 0; + } + visited.add(packageDir); + + const meta: PackageJson = await host.readJson( + join(packageDir, 'package.json'), + ); + if (!(await callback(packageDir, meta, isRoot))) { + return void 0; + } + + const deps = new Set([ + ...Object.keys(meta.dependencies ?? {}), + ...Object.keys(meta.peerDependencies ?? {}), + ]); + return Promise.all( + Array.from(deps).map((dep) => { + const dependencyDir = host.resolveDependencyDirectory(packageDir, dep); + return real$traverseDependencyGraph( + dependencyDir, + callback, + host, + visited, + ); + }), + // The following ".then" literally just turns a `Promise` into a `Promise`. Convenient! + ).then(); +} diff --git a/packages/jsii-pacmak/lib/target.ts b/packages/jsii-pacmak/lib/target.ts index d04aedafcf..8130b91bc0 100644 --- a/packages/jsii-pacmak/lib/target.ts +++ b/packages/jsii-pacmak/lib/target.ts @@ -3,9 +3,9 @@ import * as reflect from 'jsii-reflect'; import * as spec from '@jsii/spec'; import * as path from 'path'; +import { traverseDependencyGraph } from './dependency-graph'; import { IGenerator } from './generator'; import * as logging from './logging'; -import { resolveDependencyDirectory } from './util'; import { Rosetta } from 'jsii-rosetta'; export abstract class Target { @@ -91,39 +91,33 @@ export async function findLocalBuildDirs( targetName: string, ) { const results = new Set(); - await recurse(rootPackageDir, true); + await traverseDependencyGraph(rootPackageDir, processPackage); return Array.from(results); - async function recurse(packageDir: string, isRoot: boolean) { - const pkg = await fs.readJson(path.join(packageDir, 'package.json')); - + async function processPackage( + packageDir: string, + pkg: any, + isRoot: boolean, + ): Promise { // no jsii or jsii.outdir - either a misconfigured jsii package or a non-jsii dependency. either way, we are done here. if (!pkg.jsii || !pkg.jsii.outdir) { - return; + return false; + } + + if (isRoot) { + // This is the root package - no need to register it's outdir + return true; } // if an output directory exists for this module, then we add it to our // list of results (unless it's the root package, which we are currently building) const outdir = path.join(packageDir, pkg.jsii.outdir, targetName); - if (results.has(outdir)) { - return; - } // Already visited, don't recurse again - - if (!isRoot && (await fs.pathExists(outdir))) { + if (await fs.pathExists(outdir)) { logging.debug(`Found ${outdir} as a local dependency output`); results.add(outdir); } - // now descend to dependencies - await Promise.all( - Object.keys(pkg.dependencies ?? {}).map((dependencyName) => { - const dependencyDir = resolveDependencyDirectory( - packageDir, - dependencyName, - ); - return recurse(dependencyDir, false); - }), - ); + return true; } } diff --git a/packages/jsii-pacmak/test/dependency-graph.test.ts b/packages/jsii-pacmak/test/dependency-graph.test.ts new file mode 100644 index 0000000000..1a18618666 --- /dev/null +++ b/packages/jsii-pacmak/test/dependency-graph.test.ts @@ -0,0 +1,113 @@ +import { tmpdir } from 'os'; +import { join } from 'path'; +import { Callback, traverseDependencyGraph } from '../lib/dependency-graph'; + +const mockHost = { + readJson: jest.fn, [string]>().mockName('fs.readJson'), + resolveDependencyDirectory: jest + .fn() + .mockName('resolveDependencyDirectory'), +}; + +afterEach((done) => { + jest.resetAllMocks(); + done(); +}); + +test('de-duplicates package root directories', async () => { + // GIVEN the following package dependency graph: + // A -> B -> C + // A -> C + const packages: Record = { + A: { + root: join(tmpdir(), 'A'), + meta: { dependencies: { B: '*' }, peerDependencies: { C: '*' } }, + }, + B: { root: join(tmpdir(), 'B'), meta: { dependencies: { C: '*' } } }, + C: { root: join(tmpdir(), 'C'), meta: {} }, + }; + + const cb: Callback = jest + .fn() + .mockName('callback') + .mockImplementation(() => true); + + mockHost.readJson.mockImplementation((file) => { + const result = Object.values(packages).find( + ({ root }) => file === join(root, 'package.json'), + )?.meta; + return result != null + ? Promise.resolve(result) + : Promise.reject(new Error(`Unexpected file access: ${file}`)); + }); + + mockHost.resolveDependencyDirectory.mockImplementation((_dir, dep) => { + const result = packages[dep]?.root; + if (result == null) { + throw new Error(`Unknown dependency: ${dep}`); + } + return result; + }); + + // WHEN + await expect( + traverseDependencyGraph(packages.A.root, cb, mockHost), + ).resolves.not.toThrow(); + + // THEN + expect(cb).toHaveBeenCalledTimes(3); + + for (const { root, meta } of Object.values(packages)) { + expect(cb).toHaveBeenCalledWith(root, meta, root === packages.A.root); + } + + expect(mockHost.readJson).toHaveBeenCalledTimes(3); + expect(mockHost.resolveDependencyDirectory).toHaveBeenCalledTimes(3); +}); + +test('stops traversing when callback returns false', async () => { + // GIVEN the following package dependency graph: + // A -> B -> C + const packages: Record = { + A: { root: join(tmpdir(), 'A'), meta: { dependencies: { B: '*' } } }, + B: { root: join(tmpdir(), 'B'), meta: { peerDependencies: { C: '*' } } }, + C: { root: join(tmpdir(), 'C'), meta: {} }, + }; + + // The callback requests aborting once it reached B + const cb: Callback = jest + .fn() + .mockName('callback') + .mockImplementation((root) => root !== packages.B.root); + + mockHost.readJson.mockImplementation((file) => { + const result = Object.values(packages).find( + ({ root }) => file === join(root, 'package.json'), + )?.meta; + return result != null + ? Promise.resolve(result) + : Promise.reject(new Error(`Unexpected file access: ${file}`)); + }); + + mockHost.resolveDependencyDirectory.mockImplementation((_dir, dep) => { + const result = packages[dep]?.root; + if (result == null) { + throw new Error(`Unknown dependency: ${dep}`); + } + return result; + }); + + // WHEN + await expect( + traverseDependencyGraph(packages.A.root, cb, mockHost), + ).resolves.not.toThrow(); + + // THEN + expect(cb).toHaveBeenCalledTimes(2); + + expect(cb).toHaveBeenCalledWith(packages.A.root, packages.A.meta, true); + expect(cb).toHaveBeenCalledWith(packages.B.root, packages.B.meta, false); + + expect(mockHost.readJson).toHaveBeenCalledTimes(2); + expect(mockHost.resolveDependencyDirectory).toHaveBeenCalledTimes(1); +}); From c96e6d05446f5b319869f79208f697bf4ca83c28 Mon Sep 17 00:00:00 2001 From: AWS CDK Team Date: Tue, 18 Aug 2020 22:52:45 +0000 Subject: [PATCH 45/45] chore(release): 1.11.0 --- CHANGELOG.md | 19 +++++++++++++++++++ lerna.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8add99378d..4e5d2f4101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.11.0](https://github.com/aws/jsii/compare/v1.10.0...v1.11.0) (2020-08-18) + + +### Features + +* **jsii:** detect changing visibility when overriding ([#1876](https://github.com/aws/jsii/issues/1876)) ([cfc99c2](https://github.com/aws/jsii/commit/cfc99c2c7f2577de5b7832ad30ba28458813c868)), closes [aws/aws-cdk#9616](https://github.com/aws/aws-cdk/issues/9616) +* **jsii-pacmak:** option to disallow parallel generation of languages ([#1890](https://github.com/aws/jsii/issues/1890)) ([9d5a439](https://github.com/aws/jsii/commit/9d5a439aaddef7ffd6e6add6e215a7cc3268e58a)) +* **python:** allow setting additional trove classifiers ([#1902](https://github.com/aws/jsii/issues/1902)) ([26be2b6](https://github.com/aws/jsii/commit/26be2b6ec7ceb15a3abb842eb2e34190dd99bbb1)), closes [aws/cdk-ops#393](https://github.com/aws/cdk-ops/issues/393) + + +### Bug Fixes + +* **dotnet:** "Could not infer JSII type for .NET type 'AnonymousObject'" ([#1718](https://github.com/aws/jsii/issues/1718)) ([41d79e7](https://github.com/aws/jsii/commit/41d79e7f31a8e7c59c7274c91f17dcd23187757f)), closes [aws/aws-cdk#7977](https://github.com/aws/aws-cdk/issues/7977) +* **dotnet:** crash when TEMP contains certain unicode characters ([#1913](https://github.com/aws/jsii/issues/1913)) ([8f31b1a](https://github.com/aws/jsii/commit/8f31b1ac5cd20c18d0da20dad33782a9cb113643)), closes [aws/aws-cdk#7456](https://github.com/aws/aws-cdk/issues/7456) +* **jsii:** README.md filename is case sensitive ([#1871](https://github.com/aws/jsii/issues/1871)) ([e375647](https://github.com/aws/jsii/commit/e375647d21255cf3efa84081d672143a920854d2)), closes [#1862](https://github.com/aws/jsii/issues/1862) +* **jsii:** unable to use nested types from dependencies ([#1866](https://github.com/aws/jsii/issues/1866)) ([44f9109](https://github.com/aws/jsii/commit/44f91092a34179e6f5edbe1699cbaddac2f9a99b)), closes [#1861](https://github.com/aws/jsii/issues/1861) +* **pacmak:** `EMFILE` error when running `jsii-pacmak` ([#1891](https://github.com/aws/jsii/issues/1891)) ([7316b44](https://github.com/aws/jsii/commit/7316b44690eed46ce7e5d5089af77ee1f49a6a5e)) +* **rosetta:** use of keyword 'lambda' produces invalid Python code ([#1850](https://github.com/aws/jsii/issues/1850)) ([39769b0](https://github.com/aws/jsii/commit/39769b0311886158631f56be6dce0b6262ba9c5c)) + ## [1.10.0](https://github.com/aws/jsii/compare/v1.9.0...v1.10.0) (2020-08-05) diff --git a/lerna.json b/lerna.json index df62da702b..fdd36f877b 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "rejectCycles": true } }, - "version": "1.10.0" + "version": "1.11.0" }